diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAsset.ps1 index f9dd2fcfde78..b9ad877048b0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAsset.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/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAssetEndpointProfile.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAssetEndpointProfile.ps1 index bce68b43f375..5d03cdf407be 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAssetEndpointProfile.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAssetEndpointProfile.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/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryBillingContainer.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryBillingContainer.ps1 index c1f3c491639c..dd707348d16d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryBillingContainer.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryBillingContainer.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespace.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespace.ps1 index a5526eca8c5f..870378cdb4c1 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespace.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespace.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/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceAsset.ps1 index 8ad5473611e3..0103978b6d33 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceAsset.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDevice.ps1 index d1ddea093dc5..48ee5d99d460 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDevice.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 index 38b576539c8b..9d89365f5717 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 index fd55e192f8ff..49dd3ff4317e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchema.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchema.ps1 index 9d71c221272c..f0e602a02d3b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchema.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchema.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaRegistry.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaRegistry.ps1 index ee6b2b08a594..0ce3fe17e992 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaRegistry.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaRegistry.ps1 @@ -156,8 +156,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaVersion.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaVersion.ps1 index e68f60715a6b..38a04450e7a2 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaVersion.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistrySchemaVersion.ps1 @@ -226,8 +226,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Move-AzDeviceRegistryNamespace.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Move-AzDeviceRegistryNamespace.ps1 index 68c21f02de4e..6b82a86acc51 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Move-AzDeviceRegistryNamespace.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Move-AzDeviceRegistryNamespace.ps1 @@ -225,8 +225,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAsset.ps1 index 19b23e2f1efe..ad00c3379476 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAsset.ps1 @@ -391,8 +391,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAssetEndpointProfile.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAssetEndpointProfile.ps1 index 44a7d10a0eba..af96b107d84d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAssetEndpointProfile.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryAssetEndpointProfile.ps1 @@ -245,8 +245,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespace.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespace.ps1 index 3d05283d4679..9b0f317a201c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespace.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespace.ps1 @@ -183,8 +183,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 index 8100383577bd..23fd1720387f 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 @@ -572,8 +572,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 index 98baca15159e..4fd0b5793b9b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 @@ -268,8 +268,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 index eb3d0c50899a..88aa14d7b850 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 @@ -575,8 +575,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 index 4ce129ecbae3..4123e67ba982 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 @@ -257,8 +257,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchema.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchema.ps1 index b44e412163d7..d0b369a182ef 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchema.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchema.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaRegistry.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaRegistry.ps1 index 14ba3b4d4431..8a0346b9c546 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaRegistry.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaRegistry.ps1 @@ -198,8 +198,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaVersion.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaVersion.ps1 index 0d0c13318735..e10661322a74 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaVersion.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistrySchemaVersion.ps1 @@ -156,8 +156,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 index 03b8d0d8a6d3..92a89405740c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -381,8 +380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -600,8 +598,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -865,8 +862,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1131,8 +1127,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1397,8 +1392,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1663,8 +1657,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1894,8 +1887,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2123,8 +2115,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2422,8 +2413,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2691,8 +2681,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2989,8 +2978,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3309,8 +3297,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3772,8 +3759,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4416,8 +4402,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4756,8 +4741,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5403,8 +5387,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5732,8 +5715,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5987,8 +5969,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6257,8 +6238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6485,8 +6465,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6722,8 +6701,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6959,8 +6937,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7195,8 +7172,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7467,8 +7443,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7740,8 +7715,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8013,8 +7987,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8286,8 +8259,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8523,8 +8495,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8759,8 +8730,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9062,8 +9032,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9338,8 +9307,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9658,8 +9626,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10076,8 +10043,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10650,8 +10616,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11077,8 +11042,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11682,8 +11646,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12116,8 +12079,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12382,8 +12344,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12641,8 +12602,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12931,8 +12891,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13207,8 +13166,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAsset.ps1 index 649cf014ea69..0b0fcd85b447 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAsset.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAssetEndpointProfile.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAssetEndpointProfile.ps1 index e86ebffdb5af..02dea78315d0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAssetEndpointProfile.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryAssetEndpointProfile.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespace.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespace.ps1 index 9688fe1f88dc..5df93c400d3b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespace.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespace.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceAsset.ps1 index 2e3c43b56be4..bd604bcee909 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceAsset.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDevice.ps1 index f7e49fc6dd18..4bdee8990d2d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDevice.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 index 63b734efe4a7..4824c923a288 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 index 05c5aedb7bba..7307d1e57378 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 index 162cbfe779ce..95b638ffaa7e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaRegistry.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaRegistry.ps1 index f88dc5268ddc..d332b247ebf5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaRegistry.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaRegistry.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 index 010c68f7ab84..8dbeae62eb4f 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 @@ -232,8 +232,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAsset.ps1 index f5c3cb4c6597..1c13738c32e9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAsset.ps1 @@ -345,8 +345,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAssetEndpointProfile.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAssetEndpointProfile.ps1 index 6eb6bb8738ec..98a9e5d00b9b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAssetEndpointProfile.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryAssetEndpointProfile.ps1 @@ -248,8 +248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespace.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespace.ps1 index 262386039808..e2a0949daf29 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespace.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespace.ps1 @@ -192,8 +192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 index 19644dc133aa..14b49eff2476 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 @@ -501,8 +501,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 index 19074aa0ee7a..119b1bf458d9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 @@ -353,8 +353,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 index 587145b6936a..80d9d2a0b3c7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 @@ -531,8 +531,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 index d743095631c5..07495fd60948 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 @@ -360,8 +360,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchema.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchema.ps1 index 19703582020d..de606a96ce54 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchema.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchema.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaRegistry.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaRegistry.ps1 index 0a9c54f0ec70..684b0f2e6152 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaRegistry.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaRegistry.ps1 @@ -188,8 +188,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaVersion.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaVersion.ps1 index f7f78c8fd8f9..a794ee33d95f 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaVersion.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistrySchemaVersion.ps1 @@ -219,8 +219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceRegistry/DeviceRegistry.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 7fb95f6739da..e91f5c16a1d7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/DeviceRegistry/DeviceRegistry.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/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateAccount.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateAccount.ps1 index ba71f7132cc2..e6ee236b14eb 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateAccount.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateAccount.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/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateInstance.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateInstance.ps1 index 2e3267bd9235..affc4488ee9f 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateInstance.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Get-AzDeviceUpdateInstance.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateAccount.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateAccount.ps1 index e1183dc7ec1f..73af6ce9c8c9 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateAccount.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateAccount.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create Account. +Create Account. .Description -create Account. +Create Account. .Example New-AzDeviceUpdateAccount -Name azpstest-account -ResourceGroupName azpstest_gp -Location eastus -EnableSystemAssignedIdentity:$true -PublicNetworkAccess 'Enabled' -Sku 'Standard' @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateInstance.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateInstance.ps1 index a80f26637f89..92b5810cf0ca 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateInstance.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/New-AzDeviceUpdateInstance.ps1 @@ -216,8 +216,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/ProxyCmdletDefinitions.ps1 index 38a061d23f25..c6fbe13bebb8 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/ProxyCmdletDefinitions.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) { @@ -378,8 +377,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -467,9 +465,9 @@ end { <# .Synopsis -create Account. +Create Account. .Description -create Account. +Create Account. .Example New-AzDeviceUpdateAccount -Name azpstest-account -ResourceGroupName azpstest_gp -Location eastus -EnableSystemAssignedIdentity:$true -PublicNetworkAccess 'Enabled' -Sku 'Standard' @@ -646,8 +644,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -873,8 +870,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1122,8 +1118,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1337,8 +1332,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1426,9 +1420,9 @@ end { <# .Synopsis -update Account. +Update Account. .Description -update Account. +Update Account. .Example Update-AzDeviceUpdateAccount -Name azpstest-account -ResourceGroupName azpstest_gp -EnableSystemAssignedIdentity $true -Tag @{"abc"="123"} .Example @@ -1607,8 +1601,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1694,9 +1687,9 @@ end { <# .Synopsis -update instance's tags. +Update instance's tags. .Description -update instance's tags. +Update instance's tags. .Example Update-AzDeviceUpdateInstance -AccountName azpstest-account -ResourceGroupName azpstest_gp -Name azpstest-instance -Tag @{"abc"="123"} .Example @@ -1868,8 +1861,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2272,8 +2264,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateAccount.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateAccount.ps1 index 143cbf70e2dc..ddab9f05f496 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateAccount.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateAccount.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateInstance.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateInstance.ps1 index ab2f8567b6dd..98d6e71d038c 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateInstance.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Remove-AzDeviceUpdateInstance.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DeviceUpdate/DeviceUpdate.Autorest/exports/Test-AzDeviceUpdateNameAvailability.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Test-AzDeviceUpdateNameAvailability.ps1 index 37afd6da4fbc..0106087017c4 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Test-AzDeviceUpdateNameAvailability.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Test-AzDeviceUpdateNameAvailability.ps1 @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateAccount.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateAccount.ps1 index b715cc08ddae..4c14b6d43dfb 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateAccount.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateAccount.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update Account. +Update Account. .Description -update Account. +Update Account. .Example Update-AzDeviceUpdateAccount -Name azpstest-account -ResourceGroupName azpstest_gp -EnableSystemAssignedIdentity $true -Tag @{"abc"="123"} .Example @@ -197,8 +197,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateInstance.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateInstance.ps1 index 20bd8f8cf2d9..2148faa9bad5 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateInstance.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/exports/Update-AzDeviceUpdateInstance.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update instance's tags. +Update instance's tags. .Description -update instance's tags. +Update instance's tags. .Example Update-AzDeviceUpdateInstance -AccountName azpstest-account -ResourceGroupName azpstest_gp -Name azpstest-instance -Tag @{"abc"="123"} .Example @@ -190,8 +190,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Account.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Account.cs index 893ee27303fe..33ec9e285753 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Account.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Account.cs @@ -80,55 +80,55 @@ public partial class Account : public System.Collections.Generic.List Locations { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).Location; } /// Internal Acessors for HostName - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).HostName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.HostName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).HostName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).HostName = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Locations - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.Locations { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).Location = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.Locations { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).Location = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.AccountProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/AccountUpdate.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/AccountUpdate.cs index 5bac9a854e16..a5971e06ef4a 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/AccountUpdate.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/AccountUpdate.cs @@ -62,10 +62,10 @@ public partial class AccountUpdate : Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccountUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// /// List of key value pairs that describe the resource. This will overwrite the existing tags. diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ErrorResponse.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ErrorResponse.cs index 6bda93652395..a82e34054c90 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inlined)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformation.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformation.cs index 344b81cc6db1..171a070986af 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformation.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformation.cs @@ -31,46 +31,46 @@ public partial class GroupInformation : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for GroupId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.GroupInformationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RequiredMember - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformationProperties.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformationProperties.cs index 147f38567672..ae8bfad9b4f4 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformationProperties.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/GroupInformationProperties.cs @@ -27,10 +27,10 @@ public partial class GroupInformationProperties : string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IGroupInformationPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for GroupId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).GroupId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).GroupId = value ?? null; } /// Internal Acessors for RequiredMember - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).RequiredMember = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)__privateLinkResourceProperties).RequiredMember = value ?? null /* arrayOf */; } /// Backing field for property. private string _provisioningState; diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Instance.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Instance.cs index faba46a8c9ab..3724b7768740 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Instance.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Instance.cs @@ -62,49 +62,49 @@ public partial class Instance : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AccountName - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.AccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).AccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).AccountName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.AccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).AccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).AccountName = value ?? null; } /// Internal Acessors for DiagnosticStorageProperty - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDiagnosticStorageProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.DiagnosticStorageProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStorageProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStorageProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDiagnosticStorageProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.DiagnosticStorageProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStorageProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStorageProperty = value ?? null /* model class */; } /// Internal Acessors for DiagnosticStoragePropertyAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.DiagnosticStoragePropertyAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStoragePropertyAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStoragePropertyAuthenticationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.DiagnosticStoragePropertyAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStoragePropertyAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).DiagnosticStoragePropertyAuthenticationType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.InstanceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/InstanceProperties.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/InstanceProperties.cs index 3fadcec9ffa0..62c9cbabe05a 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/InstanceProperties.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/InstanceProperties.cs @@ -60,7 +60,7 @@ public partial class InstanceProperties : Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDiagnosticStorageProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal.DiagnosticStorageProperty { get => (this._diagnosticStorageProperty = this._diagnosticStorageProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.DiagnosticStorageProperties()); set { {_diagnosticStorageProperty = value;} } } /// Internal Acessors for DiagnosticStoragePropertyAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal.DiagnosticStoragePropertyAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDiagnosticStoragePropertiesInternal)DiagnosticStorageProperty).AuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDiagnosticStoragePropertiesInternal)DiagnosticStorageProperty).AuthenticationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal.DiagnosticStoragePropertyAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDiagnosticStoragePropertiesInternal)DiagnosticStorageProperty).AuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDiagnosticStoragePropertiesInternal)DiagnosticStorageProperty).AuthenticationType = value ?? null; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstancePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Operation.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Operation.cs index 5e72eb387ba2..73c590e680c2 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Operation.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnection.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnection.cs index 7f8bdb51ea60..08f79d13cbe7 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnection.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnection.cs @@ -31,49 +31,49 @@ public partial class PrivateEndpointConnection : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for PrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; } /// Internal Acessors for PrivateEndpointId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value ?? null; } /// Internal Acessors for PrivateLinkServiceConnectionState - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.PrivateEndpointConnectionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs index fa12ca12ec5f..bab9a6ebf53a 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs @@ -24,7 +24,7 @@ public partial class PrivateEndpointConnectionProperties : Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpoint { get => (this._privateEndpoint = this._privateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.PrivateEndpoint()); set { {_privateEndpoint = value;} } } /// Internal Acessors for PrivateEndpointId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointInternal)PrivateEndpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointInternal)PrivateEndpoint).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointInternal)PrivateEndpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointInternal)PrivateEndpoint).Id = value ?? null; } /// Internal Acessors for PrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateLinkServiceConnectionState { get => (this._privateLinkServiceConnectionState = this._privateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.PrivateLinkServiceConnectionState()); set { {_privateLinkServiceConnectionState = value;} } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.cs index 62eb232d953d..3c256f05935d 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateEndpointConnectionProxy.cs @@ -38,43 +38,43 @@ public partial class PrivateEndpointConnectionProxy : Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.PrivateEndpointConnectionProxyProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for ETag - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal.ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).ETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal.ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).ETag = value ?? null; } /// Internal Acessors for RemotePrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal.RemotePrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).RemotePrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).RemotePrivateEndpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal.RemotePrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).RemotePrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateEndpointConnectionProxyPropertiesAutoGeneratedInternal)__privateEndpointConnectionProxyPropertiesAutoGenerated).RemotePrivateEndpoint = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkResource.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkResource.cs index 4f664dcd8d19..82a1f331c925 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkResource.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkResource.cs @@ -29,43 +29,43 @@ public partial class PrivateLinkResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for GroupId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourceInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourceInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).GroupId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.PrivateLinkResourceProperties()); set { {_property = value;} } } /// Internal Acessors for RequiredMember - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourceInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourceInternal.RequiredMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkResourcePropertiesInternal)Property).RequiredMember = value ?? null /* arrayOf */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxy.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxy.cs index 9094eeeebb41..de57b9b223c7 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxy.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxy.cs @@ -31,7 +31,7 @@ public partial class PrivateLinkServiceProxy : Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceProxyRemotePrivateEndpointConnection Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceProxyInternal.RemotePrivateEndpointConnection { get => (this._remotePrivateEndpointConnection = this._remotePrivateEndpointConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.PrivateLinkServiceProxyRemotePrivateEndpointConnection()); set { {_remotePrivateEndpointConnection = value;} } } /// Internal Acessors for RemotePrivateEndpointConnectionId - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceProxyInternal.RemotePrivateEndpointConnectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)RemotePrivateEndpointConnection).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)RemotePrivateEndpointConnection).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceProxyInternal.RemotePrivateEndpointConnectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)RemotePrivateEndpointConnection).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)RemotePrivateEndpointConnection).Id = value ?? null; } /// Internal Acessors for RemotePrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IPrivateLinkServiceProxyInternal.RemotePrivateLinkServiceConnectionState { get => (this._remotePrivateLinkServiceConnectionState = this._remotePrivateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.PrivateLinkServiceConnectionState()); set { {_remotePrivateLinkServiceConnectionState = value;} } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxyRemotePrivateEndpointConnection.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxyRemotePrivateEndpointConnection.cs index 59d09d65d24a..b2ef326b3e78 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxyRemotePrivateEndpointConnection.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/PrivateLinkServiceProxyRemotePrivateEndpointConnection.cs @@ -24,7 +24,7 @@ public partial class PrivateLinkServiceProxyRemotePrivateEndpointConnection : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)__remotePrivateEndpointConnection).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)__remotePrivateEndpointConnection).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)__remotePrivateEndpointConnection).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)__remotePrivateEndpointConnection).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IRemotePrivateEndpointConnectionInternal)__remotePrivateEndpointConnection).Id = value ?? null; } /// /// Creates an new instance. diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ProxyResource.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ProxyResource.cs index 3ca7aede14fd..572818d15e93 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/ProxyResource.cs @@ -27,34 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Resource.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Resource.cs index 5aaf85cdce4f..564b8e1beb4e 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Resource.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/Resource.cs @@ -34,22 +34,22 @@ public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/TrackedResource.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/TrackedResource.cs index 56e98112095f..d4a30abec6d0 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/DeviceUpdate/DeviceUpdate.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.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.PropertyOrigin.Inherited)] diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateExpanded.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateExpanded.cs index 96bfbecfa95f..bd27a53e9c7a 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateExpanded.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzDeviceUpdateAccount_CreateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.NewAzDeviceUpdate /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -667,24 +653,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonFilePath.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonFilePath.cs index c74756d1198a..e5a8c8d2fe1b 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonFilePath.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzDeviceUpdateAccount_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.NewAzDeviceUpdate /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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.DeviceUpdate.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonString.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonString.cs index a792baa4a683..ce43154440ad 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonString.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateAccount_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzDeviceUpdateAccount_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.NewAzDeviceUpdate /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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.DeviceUpdate.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateExpanded.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateExpanded.cs index 605f5f69f255..c83a67c37fd2 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateExpanded.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzDeviceUpdateInstance_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; - /// Device Update instance details. private Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstance _instanceBody = new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.Instance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private string _accountName; @@ -334,11 +325,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.NewAzDeviceUpdate /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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.DeviceUpdate.Models.IInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaIdentityAccountExpanded.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaIdentityAccountExpanded.cs index 769c0a377c44..5607d2a0269e 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaIdentityAccountExpanded.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaIdentityAccountExpanded.cs @@ -41,18 +41,9 @@ public partial class NewAzDeviceUpdateInstance_CreateViaIdentityAccountExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Device Update instance details. private Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstance _instanceBody = new Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.Instance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDeviceUpdateIdentity _accountInputObject; @@ -294,11 +285,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.NewAzDeviceUpdate /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonFilePath.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonFilePath.cs index 4e507206ddf2..0273619fe8b5 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonFilePath.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzDeviceUpdateInstance_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; - /// Backing field for property. private string _accountName; @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.NewAzDeviceUpdate /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonString.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonString.cs index cb872542b840..2a278baabbf6 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonString.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/NewAzDeviceUpdateInstance_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzDeviceUpdateInstance_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; - /// Backing field for property. private string _accountName; @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.NewAzDeviceUpdate /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,24 +583,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_Delete.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_Delete.cs index 4491b3196774..8c7d4624e25f 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_Delete.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDeviceUpdateAccount_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.RemoveAzDeviceUpd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_DeleteViaIdentity.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_DeleteViaIdentity.cs index 406e6c6b01dc..58d6d2902bd8 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_DeleteViaIdentity.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateAccount_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDeviceUpdateAccount_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.RemoveAzDeviceUpd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_Delete.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_Delete.cs index 4019bfcf78ce..8586c01ada98 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_Delete.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDeviceUpdateInstance_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; - /// Backing field for property. private string _accountName; @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.RemoveAzDeviceUpd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentity.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentity.cs index 13aaeb5869e3..c6a57cc934a2 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentity.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDeviceUpdateInstance_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.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.RemoveAzDeviceUpd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentityAccount.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentityAccount.cs index 6f20c6625278..57449639e4d1 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentityAccount.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/RemoveAzDeviceUpdateInstance_DeleteViaIdentityAccount.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDeviceUpdateInstance_DeleteViaIdentityAccount : 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; - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IDeviceUpdateIdentity _accountInputObject; @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.RemoveAzDeviceUpd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -595,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateExpanded.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateExpanded.cs index a83d0b97ac0c..a80ae4bd1348 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateExpanded.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzDeviceUpdateAccount_UpdateExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -310,11 +301,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.UpdateAzDeviceUpd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -691,24 +677,7 @@ private void Update_accountBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateViaIdentityExpanded.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateViaIdentityExpanded.cs index f191893b9ec5..1dd02e28e025 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateViaIdentityExpanded.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/cmdlets/UpdateAzDeviceUpdateAccount_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzDeviceUpdateAccount_UpdateViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Cmdlets.UpdateAzDeviceUpd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -671,24 +657,7 @@ private void Update_accountBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.Models.IAccount var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 5dcb1c60fdf4..0b0a322dd27d 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/DeviceUpdate/DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 3e440b780d9e..93f7080367ac 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/DeviceUpdate/DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index cf09c91f20c3..71fcdbf1b469 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/DeviceUpdate/DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/Context.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/Context.cs index 27d60c35c49a..0660df13e66d 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/Context.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/MessageAttribute.cs b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/MessageAttribute.cs index 739a5356580f..3e650c4222cd 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceUpdate.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.DeviceUpdate" : @""; + //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/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/Properties/Resources.resx b/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/DeviceUpdate/DeviceUpdate.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/DeviceUpdate/DeviceUpdate.Autorest/internal/New-AzDeviceUpdateInstance.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/internal/New-AzDeviceUpdateInstance.ps1 index c377ffedcfe5..b6773af1734f 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/internal/New-AzDeviceUpdateInstance.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/internal/New-AzDeviceUpdateInstance.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create instance. +Create instance. .Description -create instance. +Create instance. .Example New-AzDeviceUpdateInstance -AccountName azpstest-account -Name azpstest-instance -ResourceGroupName azpstest_gp -Location eastus -IotHubId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azpstest_gp/providers/Microsoft.Devices/IotHubs/azpstest-iothub" -EnableDiagnostic:$false -DiagnosticStoragePropertyResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azpstest_gp/providers/Microsoft.Storage/storageAccounts/azpsteststorageaccount" -DiagnosticStoragePropertyConnectionString "De******et" diff --git a/generated/DeviceUpdate/DeviceUpdate.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/DeviceUpdate/DeviceUpdate.Autorest/internal/ProxyCmdletDefinitions.ps1 index 5b4c107b178e..b3ed40355a7d 100644 --- a/generated/DeviceUpdate/DeviceUpdate.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/DeviceUpdate/DeviceUpdate.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -132,9 +132,9 @@ end { <# .Synopsis -create instance. +Create instance. .Description -create instance. +Create instance. .Example New-AzDeviceUpdateInstance -AccountName azpstest-account -Name azpstest-instance -ResourceGroupName azpstest_gp -Location eastus -IotHubId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azpstest_gp/providers/Microsoft.Devices/IotHubs/azpstest-iothub" -EnableDiagnostic:$false -DiagnosticStoragePropertyResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azpstest_gp/providers/Microsoft.Storage/storageAccounts/azpsteststorageaccount" -DiagnosticStoragePropertyConnectionString "De******et" diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1 index f154e9005e20..fc3e0a3ee93b 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.ps1 index 372f6035de5a..9f2f8ccd1b68 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.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/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 index 2c7678d3a455..b6e02ef0d077 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1 index 8e4d404bfa62..de8ff0b48a42 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1 @@ -241,8 +241,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1 index 9f68dd9a5550..2f57cf51fe51 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1 @@ -181,8 +181,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 index bd063ab6c254..26471b516b11 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1 index 13a7f7eceef9..1ef46bd9521b 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -379,8 +378,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -617,8 +615,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -871,8 +868,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1120,8 +1116,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1345,8 +1340,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1594,8 +1588,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1820,8 +1813,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2077,8 +2069,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2389,8 +2380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2654,8 +2644,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2939,8 +2928,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3188,8 +3176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsEndpoint.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsEndpoint.ps1 index 8a0b5155e9fa..8fb949b28bb3 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsEndpoint.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsEndpoint.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsInstance.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsInstance.ps1 index e6728d01171a..3bac69184677 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsInstance.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsInstance.ps1 @@ -153,8 +153,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 index 9c8ea502319c..b7bdb6613665 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Remove-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DigitalTwins/DigitalTwins.Autorest/exports/Test-AzDigitalTwinsInstanceNameAvailability.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Test-AzDigitalTwinsInstanceNameAvailability.ps1 index 72f51506fa6a..6f571af98a7a 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Test-AzDigitalTwinsInstanceNameAvailability.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Test-AzDigitalTwinsInstanceNameAvailability.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/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsEndpoint.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsEndpoint.ps1 index 2cee8fad9c21..703f0f445259 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsEndpoint.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsEndpoint.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsInstance.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsInstance.ps1 index a5f45f39c918..72604017bdb4 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsInstance.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsInstance.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 index af2be6094915..7671d2c36e83 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 +++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Update-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_Create.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_Create.cs index 423d0574a696..e80ec0abf09e 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_Create.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_Create.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsEndpoint_Create : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateExpanded.cs index 80d34e4be6a4..1c3b90923240 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzDigitalTwinsEndpoint_CreateExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -317,11 +308,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -637,24 +623,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentity.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentity.cs index a5f17c6a1213..04f7993aafc2 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentity.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentity.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsEndpoint_CreateViaIdentity : 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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -563,24 +549,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstance.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstance.cs index bfe8c70a49fc..859e2c3013be 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstance.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstance.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,24 +564,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstanceExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstanceExpanded.cs index 1f57682dffb5..0fd3906274e0 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstanceExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInstanceExpanded.cs @@ -44,15 +44,6 @@ public partial class NewAzDigitalTwinsEndpoint_CreateViaIdentityDigitalTwinsInst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonFilePath.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonFilePath.cs index ca373ea24e27..8a3752d710d1 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonFilePath.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzDigitalTwinsEndpoint_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.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.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonString.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonString.cs index 203b108380a4..5d8b025d0285 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonString.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsEndpoint_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzDigitalTwinsEndpoint_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateExpanded.cs index 06d7ccfa7bc0..70c3344a67f7 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateExpanded.cs @@ -46,15 +46,6 @@ public partial class NewAzDigitalTwinsInstance_CreateExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -303,11 +294,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -623,24 +609,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonFilePath.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonFilePath.cs index f780c8ba057b..c9336ff6842a 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonFilePath.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonFilePath.cs @@ -44,17 +44,8 @@ public partial class NewAzDigitalTwinsInstance_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,24 +571,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonString.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonString.cs index 0c9288d49e2d..8a1b7abfeb71 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonString.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsInstance_CreateViaJsonString.cs @@ -44,15 +44,6 @@ public partial class NewAzDigitalTwinsInstance_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.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.DigitalTwins.Models.IDigitalTwinsDescription var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_Create.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_Create.cs index fd1635e39b15..f5a05d0bbf24 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_Create.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_Create.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsTimeSeriesDatabaseConnection_Create : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -599,24 +585,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateExpanded.cs index 207767653aee..f30e60c29672 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Describes a time series database connection resource. private Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection _timeSeriesDatabaseConnectionDescriptionBody = new Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnection(); @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentity.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentity.cs index 1af1503c6115..c7597b24ecca 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentity.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentity.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIden /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -223,11 +214,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -568,24 +554,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstance.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstance.cs index 63fa33df4c7a..70547f12c23a 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstance.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstance.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIden /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.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.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstanceExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstanceExpanded.cs index 96410843466f..1541ba4686c6 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstanceExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIdentityDigitalTwinsInstanceExpanded.cs @@ -41,15 +41,6 @@ public partial class NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaIden /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Describes a time series database connection resource. private Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection _timeSeriesDatabaseConnectionDescriptionBody = new Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnection(); @@ -226,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -568,24 +554,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonFilePath.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonFilePath.cs index 039709279467..1a1dbd607f7a 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonFilePath.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -602,24 +588,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonString.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonString.cs index dfec9ddb8005..0fb3aeb66d1c 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonString.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class NewAzDigitalTwinsTimeSeriesDatabaseConnection_CreateViaJson /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.NewAzDigitalTwins /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.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.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_Delete.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_Delete.cs index 7bd6b4deb0f3..1f41a5edce88 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_Delete.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsEndpoint_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -621,24 +607,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentity.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentity.cs index 5fc32bc652fd..d988f8693965 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentity.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsEndpoint_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,7 +546,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -588,24 +574,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentityDigitalTwinsInstance.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentityDigitalTwinsInstance.cs index 6d7253d2f9da..8a6ba3332665 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentityDigitalTwinsInstance.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsEndpoint_DeleteViaIdentityDigitalTwinsInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsEndpoint_DeleteViaIdentityDigitalTwinsI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -237,11 +228,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,7 +561,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -603,24 +589,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_Delete.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_Delete.cs index f41644be5bc6..6b9f5b31ccb4 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_Delete.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsInstance_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,24 +592,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_DeleteViaIdentity.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_DeleteViaIdentity.cs index a344c731e49d..2d0e43ab12d4 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_DeleteViaIdentity.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsInstance_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsInstance_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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_Delete.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_Delete.cs index 0295d22be28a..b897c4e6afe4 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_Delete.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_Delete : g /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -594,7 +580,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -622,24 +608,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentity.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentity.cs index 3a62e0f2f04f..41070d4c685e 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentity.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -222,11 +213,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -563,7 +549,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -591,24 +577,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentityDigitalTwinsInstance.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentityDigitalTwinsInstance.cs index adc453db9902..b8616617533e 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentityDigitalTwinsInstance.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentityDigitalTwinsInstance.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -238,11 +229,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.RemoveAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -576,7 +562,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,24 +590,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_Update.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_Update.cs index 5c8d83a9cbae..6b3f613f95ee 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_Update.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_Update.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsEndpoint_Update : 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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ private void UpdateEndpointDescription() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateExpanded.cs index 7451745b68a0..3f9a1508c542 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzDigitalTwinsEndpoint_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 flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -317,11 +308,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -659,24 +645,7 @@ private void Update_endpointDescriptionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentity.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentity.cs index 6088f4fcd7fb..e09ff7630c17 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentity.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentity.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsEndpoint_UpdateViaIdentity : 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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -219,11 +210,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,24 +561,7 @@ private void UpdateEndpointDescription() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstance.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstance.cs index 063b64aa01c6..2150dcffd395 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstance.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstance.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -236,11 +227,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ private void UpdateEndpointDescription() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs index 6219265bf7e9..d877d23ab577 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityDigitalTwinsI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -277,11 +268,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -643,24 +629,7 @@ private void Update_endpointDescriptionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityExpanded.cs index 6761109ce8e4..b2f1d670559d 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsEndpoint_UpdateViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzDigitalTwinsEndpoint_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 flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ private void Update_endpointDescriptionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateExpanded.cs index 6e8994918519..758bccbb8555 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateExpanded.cs @@ -46,15 +46,6 @@ public partial class UpdateAzDigitalTwinsInstance_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 flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -292,11 +283,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -654,24 +640,7 @@ private void Update_digitalTwinsCreateBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateViaIdentityExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateViaIdentityExpanded.cs index d6c931bea8aa..642f5a118a45 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateViaIdentityExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsInstance_UpdateViaIdentityExpanded.cs @@ -46,15 +46,6 @@ public partial class UpdateAzDigitalTwinsInstance_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 flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -250,11 +241,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -635,24 +621,7 @@ private void Update_digitalTwinsCreateBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_Update.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_Update.cs index 22696692aedb..ac77718b5559 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_Update.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_Update.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_Update : 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.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -609,24 +595,7 @@ private void UpdateTimeSeriesDatabaseConnectionDescription() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateExpanded.cs index ae7fd4665c83..2a6bdb5cbc53 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateExpa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Describes a time series database connection resource. private Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection _timeSeriesDatabaseConnectionDescriptionBody = new Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnection(); @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ private void Update_timeSeriesDatabaseConnectionDescriptionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentity.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentity.cs index 2da7feabb503..52a3e6df8ef4 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentity.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentity.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -223,11 +214,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ private void UpdateTimeSeriesDatabaseConnectionDescription() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstance.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstance.cs index d658c638140a..229660ebc5c2 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstance.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstance.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.ParameterCategory.Runtime)] @@ -239,11 +230,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -593,24 +579,7 @@ private void UpdateTimeSeriesDatabaseConnectionDescription() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs index c23413158e43..c5199bd3608a 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityDigitalTwinsInstanceExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Describes a time series database connection resource. private Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection _timeSeriesDatabaseConnectionDescriptionBody = new Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnection(); @@ -226,11 +217,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ private void Update_timeSeriesDatabaseConnectionDescriptionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityExpanded.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityExpanded.cs index 6412fa19d0ed..d6e03c46a2cc 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityExpanded.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/cmdlets/UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaIdentityExpanded.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDigitalTwinsTimeSeriesDatabaseConnection_UpdateViaI /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Describes a time series database connection resource. private Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection _timeSeriesDatabaseConnectionDescriptionBody = new Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnection(); @@ -210,11 +201,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Cmdlets.UpdateAzDigitalTw /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -564,24 +550,7 @@ private void Update_timeSeriesDatabaseConnectionDescriptionBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index f0d5afd995c6..2ec951b2676d 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/DigitalTwins/DigitalTwins.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/DigitalTwins/DigitalTwins.Autorest/generated/runtime/Context.cs b/generated/DigitalTwins/DigitalTwins.Autorest/generated/runtime/Context.cs index df58e66d5a5c..6dffc24d0dd9 100644 --- a/generated/DigitalTwins/DigitalTwins.Autorest/generated/runtime/Context.cs +++ b/generated/DigitalTwins/DigitalTwins.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.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/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPool.ps1 index d6469bc5f106..079aee3e1c7d 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPool.ps1 @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolIscsiTarget.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolIscsiTarget.ps1 index 2ee9135cd112..c6eb8fafe27f 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolIscsiTarget.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolIscsiTarget.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.ps1 index f96cdb56896f..324b98173585 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolResourceSku.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolResourceSku.ps1 index e28dcb5a97d9..fc7e0af15d03 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolResourceSku.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolResourceSku.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolZone.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolZone.ps1 index a819fe9a630d..ffb1405a224b 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolZone.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Get-AzDiskPoolZone.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DiskPool/DiskPool.Autorest/exports/Invoke-AzDiskPoolRedeployment.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Invoke-AzDiskPoolRedeployment.ps1 index ae1ec2614761..dea46c28f1bc 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Invoke-AzDiskPoolRedeployment.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Invoke-AzDiskPoolRedeployment.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPool.ps1 index c563551a6cbc..f70aaa7d0563 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPool.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPoolIscsiTarget.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPoolIscsiTarget.ps1 index c3b36a8f676c..805c01a8fde0 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPoolIscsiTarget.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/New-AzDiskPoolIscsiTarget.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create an iSCSI Target. +Create an iSCSI Target. .Description -create an iSCSI Target. +Create an iSCSI Target. .Example New-AzDiskPoolIscsiTarget -DiskPoolName 'disk-pool-1' -Name 'target1' -ResourceGroupName 'storagepool-rg-test' -AclMode 'Dynamic' @@ -225,8 +225,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DiskPool/DiskPool.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/ProxyCmdletDefinitions.ps1 index 54666b6a4a8a..7a9e9841917c 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -348,8 +347,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -524,8 +522,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -700,8 +697,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -913,8 +909,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1143,8 +1138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1230,9 +1224,9 @@ end { <# .Synopsis -create an iSCSI Target. +Create an iSCSI Target. .Description -create an iSCSI Target. +Create an iSCSI Target. .Example New-AzDiskPoolIscsiTarget -DiskPoolName 'disk-pool-1' -Name 'target1' -ResourceGroupName 'storagepool-rg-test' -AclMode 'Dynamic' @@ -1439,8 +1433,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1687,8 +1680,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1917,8 +1909,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2146,8 +2137,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2376,8 +2366,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2463,9 +2452,9 @@ end { <# .Synopsis -update an iSCSI Target. +Update an iSCSI Target. .Description -update an iSCSI Target. +Update an iSCSI Target. .Example $lun0 = New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk1" -Name "lun0" Update-AzDiskPoolIscsiTarget -Name 'target0' -DiskPoolName 'disk-pool-5' -ResourceGroupName 'storagepool-rg-test' -Lun @($lun0) @@ -2682,8 +2671,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2965,8 +2953,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3478,8 +3465,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPool.ps1 index 9d65831517a2..3a55e76ada81 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPool.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/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPoolIscsiTarget.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPoolIscsiTarget.ps1 index 56c007160cf9..bca0e94233da 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPoolIscsiTarget.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Remove-AzDiskPoolIscsiTarget.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/exports/Start-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Start-AzDiskPool.ps1 index ed3a21ea58c8..a53a52c82353 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Start-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Start-AzDiskPool.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/DiskPool/DiskPool.Autorest/exports/Stop-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Stop-AzDiskPool.ps1 index 6e7e1a6a89fa..7ed995315ebf 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Stop-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Stop-AzDiskPool.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/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPool.ps1 index c280f1629edd..e16d0aa46575 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPool.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPoolIscsiTarget.ps1 b/generated/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPoolIscsiTarget.ps1 index 7e066997c92d..9e16a85ae9ca 100644 --- a/generated/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPoolIscsiTarget.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/exports/Update-AzDiskPoolIscsiTarget.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an iSCSI Target. +Update an iSCSI Target. .Description -update an iSCSI Target. +Update an iSCSI Target. .Example $lun0 = New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk1" -Name "lun0" Update-AzDiskPoolIscsiTarget -Name 'target0' -DiskPoolName 'disk-pool-5' -ResourceGroupName 'storagepool-rg-test' -Lun @($lun0) @@ -235,8 +235,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPool.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPool.cs index dee7959d5ece..a76bd241f087 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPool.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPool.cs @@ -73,7 +73,7 @@ public partial class DiskPool : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolProperties Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.DiskPoolProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Sku()); set { {_sku = value;} } } @@ -82,31 +82,31 @@ public partial class DiskPool : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadata Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.SystemMetadata()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.PropertyOrigin.Inherited)] diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPoolZoneInfo.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPoolZoneInfo.cs index 3631d4844415..4f5e4e1848f3 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPoolZoneInfo.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/DiskPoolZoneInfo.cs @@ -39,10 +39,10 @@ public partial class DiskPoolZoneInfo : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolZoneInfoInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.Sku()); set { {_sku = value;} } } /// Internal Acessors for SkuName - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolZoneInfoInternal.SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolZoneInfoInternal.SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Name = value ?? null; } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolZoneInfoInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPoolZoneInfoInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISkuInternal)Sku).Tier = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISku _sku; diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/Error.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/Error.cs index d10cff3bf63b..0ba485c8cb31 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/Error.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/Error.cs @@ -37,22 +37,22 @@ public partial class Error : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error1 Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponse Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Error1 { get => (this._error1 = this._error1 ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ErrorResponse()); set { {_error1 = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IErrorResponseInternal)Error1).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.PropertyOrigin.Inlined)] diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTarget.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTarget.cs index a5f684f8cecb..eddbf4512db5 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTarget.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTarget.cs @@ -62,40 +62,40 @@ public partial class IscsiTarget : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetProperties Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Session - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.Session { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).Session; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).Session = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.Session { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).Session; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetPropertiesInternal)Property).Session = value ?? null /* arrayOf */; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadata Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.SystemMetadata()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ISystemMetadataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.PropertyOrigin.Inherited)] diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetCreate.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetCreate.cs index 50cbe5ef5323..7f52126df2e7 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetCreate.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetCreate.cs @@ -52,13 +52,13 @@ public partial class IscsiTargetCreate : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetCreateProperties Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetCreateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetCreateProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.PropertyOrigin.Inherited)] diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetUpdate.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetUpdate.cs index 93bb262350a8..c5bf96e5a782 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetUpdate.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/IscsiTargetUpdate.cs @@ -48,13 +48,13 @@ public partial class IscsiTargetUpdate : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetUpdateProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.PropertyOrigin.Inherited)] diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ProxyResource.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ProxyResource.cs index 19b5edce13c6..d537de068efd 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ProxyResource.cs @@ -27,13 +27,13 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.PropertyOrigin.Inherited)] diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuInfo.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuInfo.cs index 423bc10cd70b..1afa8d420f57 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuInfo.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuInfo.cs @@ -56,13 +56,13 @@ public partial class ResourceSkuInfo : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfo Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.LocationInfo { get => (this._locationInfo = this._locationInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ResourceSkuLocationInfo()); set { {_locationInfo = value;} } } /// Internal Acessors for LocationInfoLocation - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.LocationInfoLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.LocationInfoLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Location = value ?? null; } /// Internal Acessors for LocationInfoZone - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.LocationInfoZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Zone = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.LocationInfoZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).Zone = value ?? null /* arrayOf */; } /// Internal Acessors for LocationInfoZoneDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.LocationInfoZoneDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).ZoneDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).ZoneDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.LocationInfoZoneDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).ZoneDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuLocationInfoInternal)LocationInfo).ZoneDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuInfoInternal.Name { get => this._name; set { {_name = value;} } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuRestrictions.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuRestrictions.cs index c73cb6b32a62..69fd24291bd7 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuRestrictions.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/ResourceSkuRestrictions.cs @@ -20,10 +20,10 @@ public partial class ResourceSkuRestrictions : Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfo Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionsInternal.RestrictionInfo { get => (this._restrictionInfo = this._restrictionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.ResourceSkuRestrictionInfo()); set { {_restrictionInfo = value;} } } /// Internal Acessors for RestrictionInfoLocation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionsInternal.RestrictionInfoLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Location = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionsInternal.RestrictionInfoLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Location = value ?? null /* arrayOf */; } /// Internal Acessors for RestrictionInfoZone - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionsInternal.RestrictionInfoZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Zone = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionsInternal.RestrictionInfoZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionInfoInternal)RestrictionInfo).Zone = value ?? null /* arrayOf */; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceSkuRestrictionsInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/TrackedResource.cs b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/TrackedResource.cs index 3b394a53f371..b8b1eaa49668 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/api/Models/TrackedResource.cs @@ -32,13 +32,13 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Origin(Microsoft.Azure.PowerShell.Cmdlets.DiskPool.PropertyOrigin.Inherited)] diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_Redeploy.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_Redeploy.cs index 002dd5104721..fc6fc02dd785 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_Redeploy.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_Redeploy.cs @@ -43,15 +43,6 @@ public partial class InvokeAzDiskPoolRedeployment_Redeploy : 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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -253,11 +244,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.InvokeAzDiskPoolRedep /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,7 +555,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/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_RedeployViaIdentity.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_RedeployViaIdentity.cs index c6b0d8abd28d..4ffc30e2edbe 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_RedeployViaIdentity.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/InvokeAzDiskPoolRedeployment_RedeployViaIdentity.cs @@ -43,15 +43,6 @@ public partial class InvokeAzDiskPoolRedeployment_RedeployViaIdentity : 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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -211,11 +202,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.InvokeAzDiskPoolRedep /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateExpanded.cs index 6bb59dccdfb0..dae51b37dff3 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzDiskPoolIscsiTarget_CreateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Payload for iSCSI Target create or update requests. private Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetCreate _iscsiTargetCreatePayloadBody = new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetCreate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Mode for Target connectivity. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Mode for Target connectivity.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Body)] @@ -339,11 +330,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.NewAzDiskPoolIscsiTar /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -659,24 +645,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaIdentityDiskPoolExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaIdentityDiskPoolExpanded.cs index 7df12145342e..50ef4657bc69 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaIdentityDiskPoolExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaIdentityDiskPoolExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzDiskPoolIscsiTarget_CreateViaIdentityDiskPoolExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Payload for iSCSI Target create or update requests. private Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetCreate _iscsiTargetCreatePayloadBody = new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetCreate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Mode for Target connectivity. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Mode for Target connectivity.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Body)] @@ -299,11 +290,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.NewAzDiskPoolIscsiTar /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -640,24 +626,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonFilePath.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonFilePath.cs index 986efc26f5df..804479f0ff37 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonFilePath.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzDiskPoolIscsiTarget_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.NewAzDiskPoolIscsiTar /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.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.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonString.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonString.cs index b847b8ec3b60..a7d93a764619 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonString.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPoolIscsiTarget_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzDiskPoolIscsiTarget_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.NewAzDiskPoolIscsiTar /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateExpanded.cs index 760f5a0d2497..8a960176c478 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateExpanded.cs @@ -46,15 +46,6 @@ public partial class NewAzDiskPool_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; - /// List of additional capabilities for a Disk Pool. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of additional capabilities for a Disk Pool.")] @@ -370,11 +361,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.NewAzDiskPool_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.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -690,24 +676,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonFilePath.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonFilePath.cs index cd68e8c482a4..93823745038b 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonFilePath.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonFilePath.cs @@ -44,17 +44,8 @@ public partial class NewAzDiskPool_CreateViaJsonFilePath : 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; - 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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.NewAzDiskPool_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonString.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonString.cs index ac1cdfd75afa..605118d26711 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonString.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/NewAzDiskPool_CreateViaJsonString.cs @@ -44,15 +44,6 @@ public partial class NewAzDiskPool_CreateViaJsonString : 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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.NewAzDiskPool_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_Delete.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_Delete.cs index 56abd0d3268c..0ab2c447dbb0 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_Delete.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDiskPoolIscsiTarget_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.RemoveAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.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/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentity.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentity.cs index 34a84f77322e..c153becab99e 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentity.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDiskPoolIscsiTarget_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.RemoveAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.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/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentityDiskPool.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentityDiskPool.cs index 9de03ffdd945..fb61e030b485 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentityDiskPool.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPoolIscsiTarget_DeleteViaIdentityDiskPool.cs @@ -40,15 +40,6 @@ public partial class RemoveAzDiskPoolIscsiTarget_DeleteViaIdentityDiskPool : 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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.RemoveAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -571,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -595,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_Delete.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_Delete.cs index d49f8b902fbd..29df80b153b0 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_Delete.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_Delete.cs @@ -43,15 +43,6 @@ public partial class RemoveAzDiskPool_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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.RemoveAzDiskPool_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.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_DeleteViaIdentity.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_DeleteViaIdentity.cs index ae5cc12ca65f..e343e42b6cf6 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_DeleteViaIdentity.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/RemoveAzDiskPool_DeleteViaIdentity.cs @@ -43,15 +43,6 @@ public partial class RemoveAzDiskPool_DeleteViaIdentity : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -221,11 +212,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.RemoveAzDiskPool_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.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -557,7 +543,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -581,7 +567,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/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_Start.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_Start.cs index 5394c3afd6dd..562b682fce05 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_Start.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_Start.cs @@ -42,15 +42,6 @@ public partial class StartAzDiskPool_Start : global::System.Management.Automatio /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -253,11 +244,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.StartAzDiskPool_Start /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,7 +555,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/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_StartViaIdentity.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_StartViaIdentity.cs index 6833a35b3a15..28aa85413524 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_StartViaIdentity.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StartAzDiskPool_StartViaIdentity.cs @@ -42,15 +42,6 @@ public partial class StartAzDiskPool_StartViaIdentity : global::System.Managemen /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -210,11 +201,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.StartAzDiskPool_Start /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -546,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/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_Deallocate.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_Deallocate.cs index 14699ca9323a..f27f7d55bdc2 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_Deallocate.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_Deallocate.cs @@ -43,15 +43,6 @@ public partial class StopAzDiskPool_Deallocate : global::System.Management.Autom /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -253,11 +244,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.StopAzDiskPool_Deallo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,7 +555,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/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_DeallocateViaIdentity.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_DeallocateViaIdentity.cs index fd3d339d86d3..6268fecc5477 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_DeallocateViaIdentity.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/StopAzDiskPool_DeallocateViaIdentity.cs @@ -43,15 +43,6 @@ public partial class StopAzDiskPool_DeallocateViaIdentity : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -211,11 +202,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.StopAzDiskPool_Deallo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -547,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateExpanded.cs index 9308c4efcc37..1e8515834df2 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzDiskPoolIscsiTarget_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; - /// Payload for iSCSI Target update requests. private Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetUpdate _iscsiTargetUpdatePayloadBody = new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -314,11 +305,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -634,24 +620,7 @@ public UpdateAzDiskPoolIscsiTarget_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityDiskPoolExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityDiskPoolExpanded.cs index b857b96e6aa2..ba8fe21cb032 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityDiskPoolExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityDiskPoolExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityDiskPoolExpand /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Payload for iSCSI Target update requests. private Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetUpdate _iscsiTargetUpdatePayloadBody = new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -274,11 +265,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -616,24 +602,7 @@ public UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityDiskPoolExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityExpanded.cs index e38b859e15a7..136987a9a56f 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Payload for iSCSI Target update requests. private Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTargetUpdate _iscsiTargetUpdatePayloadBody = new Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IscsiTargetUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -256,11 +247,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -600,24 +586,7 @@ public UpdateAzDiskPoolIscsiTarget_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonFilePath.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonFilePath.cs index 3434c5c54a9c..1358a4d39f46 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonFilePath.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzDiskPoolIscsiTarget_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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -278,11 +269,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -598,24 +584,7 @@ public UpdateAzDiskPoolIscsiTarget_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonString.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonString.cs index 101508b9cf0b..2b888a05ec67 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonString.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPoolIscsiTarget_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzDiskPoolIscsiTarget_UpdateViaJsonString : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPoolIscsi /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ public UpdateAzDiskPoolIscsiTarget_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IIscsiTarget var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateExpanded.cs index c8c4fbf569f1..a1ea8754e056 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzDiskPool_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.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -322,11 +313,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPool_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.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -642,24 +628,7 @@ public UpdateAzDiskPool_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaIdentityExpanded.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaIdentityExpanded.cs index 5569e9202f07..c31119510eed 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaIdentityExpanded.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaIdentityExpanded.cs @@ -44,15 +44,6 @@ public partial class UpdateAzDiskPool_UpdateViaIdentityExpanded : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPool_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.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -619,24 +605,7 @@ public UpdateAzDiskPool_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonFilePath.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonFilePath.cs index 6ef83263b626..541c82e67437 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonFilePath.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonFilePath.cs @@ -42,17 +42,8 @@ public partial class UpdateAzDiskPool_UpdateViaJsonFilePath : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPool_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.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ public UpdateAzDiskPool_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonString.cs b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonString.cs index cfb65f661ed5..bfffd65f0857 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonString.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/cmdlets/UpdateAzDiskPool_UpdateViaJsonString.cs @@ -42,15 +42,6 @@ public partial class UpdateAzDiskPool_UpdateViaJsonString : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DiskPool.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Cmdlets.UpdateAzDiskPool_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.DiskPool.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzDiskPool_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DiskPool.Models.IDiskPool var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 33b006418f3d..05fd0e5348ba 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/DiskPool/DiskPool.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/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index c5978e0b9b4f..aaab3c93fbf8 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/DiskPool/DiskPool.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/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 7dddefe98efe..1c21098643fd 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/DiskPool/DiskPool.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/DiskPool/DiskPool.Autorest/generated/runtime/Context.cs b/generated/DiskPool/DiskPool.Autorest/generated/runtime/Context.cs index dab562d25a50..c369b35319b7 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/runtime/Context.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DiskPool.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/DiskPool/DiskPool.Autorest/generated/runtime/MessageAttribute.cs b/generated/DiskPool/DiskPool.Autorest/generated/runtime/MessageAttribute.cs index a0f574a76708..d16c252a6cdc 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/DiskPool/DiskPool.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DiskPool.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.DiskPool" : @""; + //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/DiskPool/DiskPool.Autorest/generated/runtime/Properties/Resources.resx b/generated/DiskPool/DiskPool.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/DiskPool/DiskPool.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/DiskPool/DiskPool.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/DiskPool/DiskPool.Autorest/internal/New-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/internal/New-AzDiskPool.ps1 index 1eea37104e45..02758f35fc02 100644 --- a/generated/DiskPool/DiskPool.Autorest/internal/New-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/internal/New-AzDiskPool.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -create Disk pool. +Create Disk pool. This create operation can take 15 minutes to complete. This is expected service behavior. .Description -create Disk pool. +Create Disk pool. This create operation can take 15 minutes to complete. This is expected service behavior. .Example diff --git a/generated/DiskPool/DiskPool.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/DiskPool/DiskPool.Autorest/internal/ProxyCmdletDefinitions.ps1 index 306c5feec8ba..5b35895aa8cb 100644 --- a/generated/DiskPool/DiskPool.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -132,11 +132,11 @@ end { <# .Synopsis -create Disk pool. +Create Disk pool. This create operation can take 15 minutes to complete. This is expected service behavior. .Description -create Disk pool. +Create Disk pool. This create operation can take 15 minutes to complete. This is expected service behavior. .Example @@ -377,9 +377,9 @@ end { <# .Synopsis -update a Disk pool. +Update a Disk pool. .Description -update a Disk pool. +Update a Disk pool. .Example Update-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -DiskId @() .Example diff --git a/generated/DiskPool/DiskPool.Autorest/internal/Update-AzDiskPool.ps1 b/generated/DiskPool/DiskPool.Autorest/internal/Update-AzDiskPool.ps1 index 4b219027cdac..5df65cc52a04 100644 --- a/generated/DiskPool/DiskPool.Autorest/internal/Update-AzDiskPool.ps1 +++ b/generated/DiskPool/DiskPool.Autorest/internal/Update-AzDiskPool.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a Disk pool. +Update a Disk pool. .Description -update a Disk pool. +Update a Disk pool. .Example Update-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -DiskId @() .Example diff --git a/generated/Dns/Dns.Autorest/exports/Get-AzDnsDnssecConfig.ps1 b/generated/Dns/Dns.Autorest/exports/Get-AzDnsDnssecConfig.ps1 index 776461637c0d..896a0430dc69 100644 --- a/generated/Dns/Dns.Autorest/exports/Get-AzDnsDnssecConfig.ps1 +++ b/generated/Dns/Dns.Autorest/exports/Get-AzDnsDnssecConfig.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Dns/Dns.Autorest/exports/New-AzDnsDnssecConfig.ps1 b/generated/Dns/Dns.Autorest/exports/New-AzDnsDnssecConfig.ps1 index 5c6a7984a307..9651534c46e0 100644 --- a/generated/Dns/Dns.Autorest/exports/New-AzDnsDnssecConfig.ps1 +++ b/generated/Dns/Dns.Autorest/exports/New-AzDnsDnssecConfig.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Dns/Dns.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Dns/Dns.Autorest/exports/ProxyCmdletDefinitions.ps1 index 3c69a81e71f9..8f4c1da81360 100644 --- a/generated/Dns/Dns.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Dns/Dns.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -368,8 +367,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -600,8 +598,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Dns/Dns.Autorest/exports/Remove-AzDnsDnssecConfig.ps1 b/generated/Dns/Dns.Autorest/exports/Remove-AzDnsDnssecConfig.ps1 index 45f325485ac3..116ea2b37672 100644 --- a/generated/Dns/Dns.Autorest/exports/Remove-AzDnsDnssecConfig.ps1 +++ b/generated/Dns/Dns.Autorest/exports/Remove-AzDnsDnssecConfig.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/Dns/Dns.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Dns/Dns.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index e21615f02c48..3126bb4b0601 100644 --- a/generated/Dns/Dns.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Dns/Dns.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/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskHub.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskHub.ps1 index dc1e0e123da4..178705db2daf 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskHub.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskHub.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskScheduler.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskScheduler.ps1 index 698e95dc6cb2..e7c140a6f8d4 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskScheduler.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/Get-AzDurableTaskScheduler.ps1 @@ -144,8 +144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskHub.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskHub.ps1 index 84eb483b22f7..e1c2e14f689e 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskHub.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskHub.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskScheduler.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskScheduler.ps1 index c5ac606c6954..417108e42ae8 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskScheduler.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/New-AzDurableTaskScheduler.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DurableTask/DurableTask.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/ProxyCmdletDefinitions.ps1 index eb9abacb4ae4..719cc3980803 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -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) { @@ -630,8 +628,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -881,8 +878,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1133,8 +1129,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1362,8 +1357,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1635,8 +1629,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskHub.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskHub.ps1 index a7c40fd94660..7c102ae413a9 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskHub.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskHub.ps1 @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskScheduler.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskScheduler.ps1 index 7b62ac67b7ce..e20b65b6b8e8 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskScheduler.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/Remove-AzDurableTaskScheduler.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/DurableTask/DurableTask.Autorest/exports/Update-AzDurableTaskScheduler.ps1 b/generated/DurableTask/DurableTask.Autorest/exports/Update-AzDurableTaskScheduler.ps1 index 00873bcf8ff8..c6520df6841e 100644 --- a/generated/DurableTask/DurableTask.Autorest/exports/Update-AzDurableTaskScheduler.ps1 +++ b/generated/DurableTask/DurableTask.Autorest/exports/Update-AzDurableTaskScheduler.ps1 @@ -202,8 +202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/DurableTask/DurableTask.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/DurableTask/DurableTask.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 32839ae5261c..6aa7f3acf916 100644 --- a/generated/DurableTask/DurableTask.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/DurableTask/DurableTask.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/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 index 5be3a496bd09..acc705b25b95 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 index 89242552eb31..fee6488253fc 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 @@ -125,8 +125,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 index c53b57f4c1ff..05daaf7bebd8 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 @@ -144,8 +144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 index 4a74c4704ba0..f5bd60e97d09 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 @@ -132,8 +132,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.ps1 index b1716e2566d5..e7b705a1ee1a 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.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/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 index 36cf24bf8096..e9eb4f19996b 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 @@ -101,8 +101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.ps1 index 6bc719d81f67..53fc305a2845 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.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/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 index 7c61abbe5950..17903873677a 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 @@ -224,8 +224,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 index a4563b5ef842..ab83a396b8a1 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -create a new address with the specified parameters. +Create a new address with the specified parameters. Existing address can be updated with this API .Description -create a new address with the specified parameters. +Create a new address with the specified parameters. Existing address can be updated with this API .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone @@ -204,8 +204,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 index 3a3230b6b600..9458b80a8104 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 @@ -16,10 +16,10 @@ <# .Synopsis -create an order item. +Create an order item. Existing order item cannot be updated with this api and should instead be updated with the create order item API. .Description -create an order item. +Create an order item. Existing order item cannot be updated with this api and should instead be updated with the create order item API. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone @@ -247,8 +247,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 index ebaf9303eb5e..8fd289646984 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -125,8 +125,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -341,8 +340,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -545,8 +543,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -718,8 +715,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -925,8 +921,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1143,8 +1138,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1382,8 +1376,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1679,8 +1672,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1768,10 +1760,10 @@ end { <# .Synopsis -create a new address with the specified parameters. +Create a new address with the specified parameters. Existing address can be updated with this API .Description -create a new address with the specified parameters. +Create a new address with the specified parameters. Existing address can be updated with this API .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone @@ -1956,8 +1948,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2044,10 +2035,10 @@ end { <# .Synopsis -create an order item. +Create an order item. Existing order item cannot be updated with this api and should instead be updated with the create order item API. .Description -create an order item. +Create an order item. Existing order item cannot be updated with this api and should instead be updated with the create order item API. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone @@ -2275,8 +2266,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2501,8 +2491,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2725,8 +2714,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2812,9 +2800,9 @@ end { <# .Synopsis -update the properties of an existing address. +Update the properties of an existing address. .Description -update the properties of an existing address. +Update the properties of an existing address. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone $DebugPreference = "Continue" @@ -3018,8 +3006,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3107,9 +3094,9 @@ end { <# .Synopsis -update the properties of an existing order item. +Update the properties of an existing order item. .Description -update the properties of an existing order item. +Update the properties of an existing order item. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone $DebugPreference = "Continue" @@ -3339,8 +3326,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.ps1 index fb22754b8205..22d9bf0e9886 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.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/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 index 27690f9f5be1..765009ea6a3c 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 @@ -153,8 +153,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 index f81e6f38e039..7583392f2e22 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the properties of an existing address. +Update the properties of an existing address. .Description -update the properties of an existing address. +Update the properties of an existing address. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone $DebugPreference = "Continue" @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 index 88ab789286d7..7acafc467f87 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 +++ b/generated/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update the properties of an existing order item. +Update the properties of an existing order item. .Description -update the properties of an existing order item. +Update the properties of an existing order item. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone $DebugPreference = "Continue" @@ -248,8 +248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressDetails.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressDetails.cs index 163e9ef8e1c1..2cf55306e4f2 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressDetails.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressDetails.cs @@ -36,19 +36,19 @@ public partial class AddressDetails : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ForwardAddress { get => (this._forwardAddress = this._forwardAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.AddressProperties()); set { {_forwardAddress = value;} } } /// Internal Acessors for ForwardAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus = value ?? null; } /// Internal Acessors for ReturnAddress Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ReturnAddress { get => (this._returnAddress = this._returnAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.AddressProperties()); set { {_returnAddress = value;} } } /// Internal Acessors for ReturnAddressContactDetail - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IContactDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ReturnAddressContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ContactDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IContactDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ReturnAddressContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ContactDetail = value ?? null /* model class */; } /// Internal Acessors for ReturnAddressShippingAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IShippingAddress Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ReturnAddressShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ShippingAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IShippingAddress Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ReturnAddressShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).ShippingAddress = value ?? null /* model class */; } /// Internal Acessors for ReturnAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties _returnAddress; diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressResource.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressResource.cs index e00bd3741418..d2a6c8727d9e 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressResource.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/AddressResource.cs @@ -37,7 +37,7 @@ public partial class AddressResource : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResourceInternal.AddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)Property).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)Property).AddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResourceInternal.AddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)Property).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)Property).AddressValidationStatus = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.AddressProperties()); set { {_property = value;} } } @@ -46,13 +46,13 @@ public partial class AddressResource : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inherited)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BasicInformation.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BasicInformation.cs index f5fb853acb1a..a3604c53d6aa 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BasicInformation.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BasicInformation.cs @@ -103,43 +103,43 @@ public partial class BasicInformation : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => (this._availabilityInformation = this._availabilityInformation ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.AvailabilityInformation()); set { {_availabilityInformation = value;} } } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).AvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).AvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).AvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).AvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformationInternal)AvailabilityInformation).DisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => (this._costInformation = this._costInformation ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.CostInformation()); set { {_costInformation = value;} } } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformationInternal)CostInformation).BillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => (this._description = this._description ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Description()); set { {_description = value;} } } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Attribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Attribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Attribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Attribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Keyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Keyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Keyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Keyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Link; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Link = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Link; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Link = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).LongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).LongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).LongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).LongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).ShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).ShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).ShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).ShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescriptionInternal)Description).Type = value ?? null; } /// Internal Acessors for DisplayName string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BillingMeterDetails.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BillingMeterDetails.cs index 4ebdc14e11c4..bcb5c4029543 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BillingMeterDetails.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/BillingMeterDetails.cs @@ -53,13 +53,13 @@ public partial class BillingMeterDetails : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeterDetail { get => (this._meterDetail = this._meterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.MeterDetails()); set { {_meterDetail = value;} } } /// Internal Acessors for MeterDetailBillingType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeterDetailBillingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).BillingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).BillingType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeterDetailBillingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).BillingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).BillingType = value ?? null; } /// Internal Acessors for MeterDetailChargingType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeterDetailChargingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).ChargingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).ChargingType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeterDetailChargingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).ChargingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).ChargingType = value ?? null; } /// Internal Acessors for MeterDetailMultiplier - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeterDetailMultiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).Multiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).Multiplier = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeterDetailMultiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).Multiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)MeterDetail).Multiplier = value ?? default(double); } /// Internal Acessors for MeteringType string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBillingMeterDetailsInternal.MeteringType { get => this._meteringType; set { {_meteringType = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/CommonProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/CommonProperties.cs index ac14de00043a..38ea4ce8a52c 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/CommonProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/CommonProperties.cs @@ -94,55 +94,55 @@ public partial class CommonProperties : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).DisplayName = value ?? null; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__basicInformation).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for FilterableProperty System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => this._filterableProperty; set { {_filterableProperty = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Configuration.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Configuration.cs index f387d8920eaf..03d0e5bea5d7 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Configuration.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Configuration.cs @@ -102,88 +102,88 @@ public partial class Configuration : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value ?? null; } /// Internal Acessors for Dimension - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensions Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.Dimension { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Dimension; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Dimension = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensions Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.Dimension { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Dimension; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Dimension = value ?? null /* model class */; } /// Internal Acessors for DimensionDepth - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionDepth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionDepth; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionDepth = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionDepth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionDepth; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionDepth = value ?? default(double); } /// Internal Acessors for DimensionHeight - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionHeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionHeight; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionHeight = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionHeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionHeight; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionHeight = value ?? default(double); } /// Internal Acessors for DimensionLength - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionLength { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLength; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLength = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionLength { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLength; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLength = value ?? default(double); } /// Internal Acessors for DimensionLengthHeightUnit - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionLengthHeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLengthHeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLengthHeightUnit = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionLengthHeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLengthHeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionLengthHeightUnit = value ?? null; } /// Internal Acessors for DimensionWeight - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionWeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeight; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeight = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionWeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeight; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeight = value ?? default(double); } /// Internal Acessors for DimensionWeightUnit - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionWeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeightUnit = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionWeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWeightUnit = value ?? null; } /// Internal Acessors for DimensionWidth - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionWidth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWidth; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWidth = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DimensionWidth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWidth; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).DimensionWidth = value ?? default(double); } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ConfigurationProperties()); set { {_property = value;} } } /// Internal Acessors for Specification - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.Specification { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Specification; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Specification = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationInternal.Specification { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Specification; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal)Property).Specification = value ?? null /* arrayOf */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationProperties _property; diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ConfigurationProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ConfigurationProperties.cs index d2d3b5bd9de8..5f1d660055f9 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ConfigurationProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ConfigurationProperties.cs @@ -126,82 +126,82 @@ public partial class ConfigurationProperties : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value ?? null; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for Dimension Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensions Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.Dimension { get => (this._dimension = this._dimension ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Dimensions()); set { {_dimension = value;} } } /// Internal Acessors for DimensionDepth - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionDepth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Depth; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Depth = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionDepth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Depth; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Depth = value ?? default(double); } /// Internal Acessors for DimensionHeight - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionHeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Height; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Height = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionHeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Height; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Height = value ?? default(double); } /// Internal Acessors for DimensionLength - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionLength { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Length; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Length = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionLength { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Length; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Length = value ?? default(double); } /// Internal Acessors for DimensionLengthHeightUnit - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionLengthHeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).LengthHeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).LengthHeightUnit = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionLengthHeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).LengthHeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).LengthHeightUnit = value ?? null; } /// Internal Acessors for DimensionWeight - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionWeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Weight; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Weight = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionWeight { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Weight; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Weight = value ?? default(double); } /// Internal Acessors for DimensionWeightUnit - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionWeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).WeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).WeightUnit = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionWeightUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).WeightUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).WeightUnit = value ?? null; } /// Internal Acessors for DimensionWidth - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionWidth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Width; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Width = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.DimensionWidth { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Width; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDimensionsInternal)Dimension).Width = value ?? default(double); } /// Internal Acessors for Specification System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IConfigurationPropertiesInternal.Specification { get => this._specification; set { {_specification = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ErrorResponse.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ErrorResponse.cs index e47ca7b0c77d..dbf39d640b95 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inlined)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Operation.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Operation.cs index 2984aed29e7b..369c3665de5b 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Operation.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemProperties.cs index c0b8d6e613c6..0916dcbec249 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemProperties.cs @@ -36,22 +36,22 @@ public partial class OrderItemProperties : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.AddressDetail { get => (this._addressDetail = this._addressDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.AddressDetails()); set { {_addressDetail = value;} } } /// Internal Acessors for AddressDetailForwardAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.AddressDetailForwardAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.AddressDetailForwardAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddress = value ?? null /* model class */; } /// Internal Acessors for AddressDetailReturnAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.AddressDetailReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.AddressDetailReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddress = value ?? null /* model class */; } /// Internal Acessors for ForwardAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ForwardAddressValidationStatus = value ?? null; } /// Internal Acessors for ReturnAddressContactDetail - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IContactDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ReturnAddressContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressContactDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IContactDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ReturnAddressContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressContactDetail = value ?? null /* model class */; } /// Internal Acessors for ReturnAddressShippingAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IShippingAddress Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ReturnAddressShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressShippingAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IShippingAddress Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ReturnAddressShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressShippingAddress = value ?? null /* model class */; } /// Internal Acessors for ReturnAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetailsInternal)AddressDetail).ReturnAddressValidationStatus = value ?? null; } /// Internal Acessors for StartTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemResource.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemResource.cs index 6949841fab31..e80209f24b42 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemResource.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemResource.cs @@ -41,43 +41,43 @@ public partial class OrderItemResource : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for AddressDetail - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.AddressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.AddressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetail = value ?? null /* model class */; } /// Internal Acessors for AddressDetailForwardAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.AddressDetailForwardAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailForwardAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailForwardAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.AddressDetailForwardAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailForwardAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailForwardAddress = value ?? null /* model class */; } /// Internal Acessors for AddressDetailReturnAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.AddressDetailReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailReturnAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.AddressDetailReturnAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailReturnAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).AddressDetailReturnAddress = value ?? null /* model class */; } /// Internal Acessors for ForwardAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ForwardAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ForwardAddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ForwardAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ForwardAddressValidationStatus = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.OrderItemProperties()); set { {_property = value;} } } /// Internal Acessors for ReturnAddressContactDetail - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IContactDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ReturnAddressContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressContactDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IContactDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ReturnAddressContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressContactDetail = value ?? null /* model class */; } /// Internal Acessors for ReturnAddressShippingAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IShippingAddress Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ReturnAddressShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressShippingAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IShippingAddress Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ReturnAddressShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressShippingAddress = value ?? null /* model class */; } /// Internal Acessors for ReturnAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).ReturnAddressValidationStatus = value ?? null; } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemPropertiesInternal)Property).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inherited)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateParameter.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateParameter.cs index 6c568bfab505..40a33d709c99 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateParameter.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateParameter.cs @@ -26,10 +26,10 @@ public partial class OrderItemUpdateParameter : public string ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddressValidationStatus; } /// Internal Acessors for ForwardAddress - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateParameterInternal.ForwardAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateParameterInternal.ForwardAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddress = value ?? null /* model class */; } /// Internal Acessors for ForwardAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateParameterInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateParameterInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal)Property).ForwardAddressValidationStatus = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateParameterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.OrderItemUpdateProperties()); set { {_property = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateProperties.cs index 671dd2d1a9f2..47979df03c4a 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderItemUpdateProperties.cs @@ -36,7 +36,7 @@ public partial class OrderItemUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal.ForwardAddress { get => (this._forwardAddress = this._forwardAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.AddressProperties()); set { {_forwardAddress = value;} } } /// Internal Acessors for ForwardAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdatePropertiesInternal.ForwardAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ForwardAddress).AddressValidationStatus = value ?? null; } /// Backing field for property. private System.Collections.Generic.List _notificationEmailList; diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderProperties.cs index c57c03fe7fa4..9ccb62ea9275 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderProperties.cs @@ -40,16 +40,16 @@ public partial class OrderProperties : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStage { get => (this._currentStage = this._currentStage ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.StageDetails()); set { {_currentStage = value;} } } /// Internal Acessors for CurrentStageDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).DisplayName = value ?? null; } /// Internal Acessors for CurrentStageName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageName = value ?? null; } /// Internal Acessors for CurrentStageStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for CurrentStageStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.CurrentStageStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetailsInternal)CurrentStage).StageStatus = value ?? null; } /// Internal Acessors for OrderItemId System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal.OrderItemId { get => this._orderItemId; set { {_orderItemId = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderResource.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderResource.cs index 587dcfeed435..7359139eb1ab 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderResource.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/OrderResource.cs @@ -43,25 +43,25 @@ public partial class OrderResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for CurrentStage - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStage = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IStageDetails Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStage = value ?? null /* model class */; } /// Internal Acessors for CurrentStageDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageDisplayName = value ?? null; } /// Internal Acessors for CurrentStageName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageName = value ?? null; } /// Internal Acessors for CurrentStageStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for CurrentStageStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.CurrentStageStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).CurrentStageStatus = value ?? null; } /// Internal Acessors for OrderItemId - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.OrderItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderItemId = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.OrderItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderItemId = value ?? null /* arrayOf */; } /// Internal Acessors for OrderStageHistory - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.OrderStageHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderStageHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderStageHistory = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.OrderStageHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderStageHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderPropertiesInternal)Property).OrderStageHistory = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.OrderProperties()); set { {_property = value;} } } @@ -70,13 +70,13 @@ public partial class OrderResource : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inherited)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Pav2MeterDetails.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Pav2MeterDetails.cs index 1bc5cded5339..c45f3df7e4e7 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Pav2MeterDetails.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Pav2MeterDetails.cs @@ -35,10 +35,10 @@ public partial class Pav2MeterDetails : public string MeterGuid { get => this._meterGuid; } /// Internal Acessors for ChargingType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.ChargingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.ChargingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType = value ?? null; } /// Internal Acessors for Multiplier - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.Multiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.Multiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier = value ?? default(double); } /// Internal Acessors for MeterGuid string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IPav2MeterDetailsInternal.MeterGuid { get => this._meterGuid; set { {_meterGuid = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Product.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Product.cs index cab917cb75e7..0b1a51a7735e 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Product.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Product.cs @@ -78,61 +78,61 @@ public partial class Product : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for Configuration - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductPropertiesInternal)Property).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductPropertiesInternal)Property).Configuration = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductPropertiesInternal)Property).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductPropertiesInternal)Property).Configuration = value ?? null /* arrayOf */; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ProductProperties()); set { {_property = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductDetails.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductDetails.cs index 586d1c10ab41..4f66ef426245 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductDetails.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductDetails.cs @@ -59,10 +59,10 @@ public partial class ProductDetails : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfo Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductDetailsInternal.DisplayInfo { get => (this._displayInfo = this._displayInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.DisplayInfo()); set { {_displayInfo = value;} } } /// Internal Acessors for DisplayInfoConfigurationDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductDetailsInternal.DisplayInfoConfigurationDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ConfigurationDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ConfigurationDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductDetailsInternal.DisplayInfoConfigurationDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ConfigurationDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ConfigurationDisplayName = value ?? null; } /// Internal Acessors for DisplayInfoProductFamilyDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductDetailsInternal.DisplayInfoProductFamilyDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ProductFamilyDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ProductFamilyDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductDetailsInternal.DisplayInfoProductFamilyDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ProductFamilyDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDisplayInfoInternal)DisplayInfo).ProductFamilyDisplayName = value ?? null; } /// Internal Acessors for ProductDoubleEncryptionStatus string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductDetailsInternal.ProductDoubleEncryptionStatus { get => this._productDoubleEncryptionStatus; set { {_productDoubleEncryptionStatus = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamiliesMetadataDetails.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamiliesMetadataDetails.cs index be85e7d55837..68a2d5afcd56 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamiliesMetadataDetails.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamiliesMetadataDetails.cs @@ -74,67 +74,67 @@ public partial class ProductFamiliesMetadataDetails : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for ProductLine - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.ProductLine { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.ProductLine { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ProductFamilyProperties()); set { {_property = value;} } } /// Internal Acessors for ResourceProviderDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.ResourceProviderDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamiliesMetadataDetailsInternal.ResourceProviderDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail = value ?? null /* arrayOf */; } /// List of product lines supported in the product family [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inlined)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamily.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamily.cs index 4016cd602127..f508ef187649 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamily.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamily.cs @@ -74,67 +74,67 @@ public partial class ProductFamily : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for ProductLine - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.ProductLine { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.ProductLine { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ProductLine = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ProductFamilyProperties()); set { {_property = value;} } } /// Internal Acessors for ResourceProviderDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.ResourceProviderDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyInternal.ResourceProviderDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal)Property).ResourceProviderDetail = value ?? null /* arrayOf */; } /// List of product lines supported in the product family [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inlined)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamilyProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamilyProperties.cs index 60e365df28f6..e5ed10f3a984 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamilyProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductFamilyProperties.cs @@ -91,58 +91,58 @@ public partial class ProductFamilyProperties : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value ?? null; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for ProductLine System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductFamilyPropertiesInternal.ProductLine { get => this._productLine; set { {_productLine = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLine.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLine.cs index 64e558797309..eac8647f2a4d 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLine.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLine.cs @@ -74,61 +74,61 @@ public partial class ProductLine : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)Property).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)Property).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for Product - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.Product { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLinePropertiesInternal)Property).Product; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLinePropertiesInternal)Property).Product = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.Product { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLinePropertiesInternal)Property).Product; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLinePropertiesInternal)Property).Product = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ProductLineProperties()); set { {_property = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLineProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLineProperties.cs index 865ba16f5f07..a5658247c056 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLineProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductLineProperties.cs @@ -91,58 +91,58 @@ public partial class ProductLineProperties : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value ?? null; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for Product System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductLinePropertiesInternal.Product { get => this._product; set { {_product = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductProperties.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductProperties.cs index ec28a76a756b..5768cf04745b 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductProperties.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProductProperties.cs @@ -98,58 +98,58 @@ public partial class ProductProperties : public System.Collections.Generic.List ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; } /// Internal Acessors for AvailabilityInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAvailabilityInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformation = value ?? null /* model class */; } /// Internal Acessors for AvailabilityInformationAvailabilityStage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationAvailabilityStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationAvailabilityStage = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReason - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReason = value ?? null; } /// Internal Acessors for AvailabilityInformationDisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.AvailabilityInformationDisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).AvailabilityInformationDisabledReasonMessage = value ?? null; } /// Internal Acessors for CostInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICostInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformation = value ?? null /* model class */; } /// Internal Acessors for CostInformationBillingInfoUrl - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingInfoUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingInfoUrl = value ?? null; } /// Internal Acessors for CostInformationBillingMeterDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.CostInformationBillingMeterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).CostInformationBillingMeterDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Description - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IDescription Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).Description = value ?? null /* model class */; } /// Internal Acessors for DescriptionAttribute - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionAttribute { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionAttribute = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionKeyword - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionKeyword { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionKeyword = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLink - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLink = value ?? null /* arrayOf */; } /// Internal Acessors for DescriptionLongDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionLongDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionLongDescription = value ?? null; } /// Internal Acessors for DescriptionShortDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionShortDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionShortDescription = value ?? null; } /// Internal Acessors for DescriptionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DescriptionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DescriptionType = value ?? null; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).DisplayName = value ?? null; } /// Internal Acessors for HierarchyInformation - Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IHierarchyInformation Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.HierarchyInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).HierarchyInformation = value ?? null /* model class */; } /// Internal Acessors for ImageInformation - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal.ImageInformation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IBasicInformationInternal)__commonProperties).ImageInformation = value ?? null /* arrayOf */; } /// Internal Acessors for FilterableProperty - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal.FilterableProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ICommonPropertiesInternal)__commonProperties).FilterableProperty = value ?? null /* arrayOf */; } /// Internal Acessors for Configuration System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IProductPropertiesInternal.Configuration { get => this._configuration; set { {_configuration = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProxyResource.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProxyResource.cs index e351a8ece4cf..3a2aa2f81715 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ProxyResource.cs @@ -27,13 +27,13 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inherited)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/PurchaseMeterDetails.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/PurchaseMeterDetails.cs index 51c1a67d666c..eca98677b8de 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/PurchaseMeterDetails.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/PurchaseMeterDetails.cs @@ -28,10 +28,10 @@ public partial class PurchaseMeterDetails : public string ChargingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType; } /// Internal Acessors for ChargingType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.ChargingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.ChargingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).ChargingType = value ?? null; } /// Internal Acessors for Multiplier - double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.Multiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal.Multiplier { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IMeterDetailsInternal)__meterDetails).Multiplier = value ?? default(double); } /// Internal Acessors for ProductId string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IPurchaseMeterDetailsInternal.ProductId { get => this._productId; set { {_productId = value;} } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ReturnOrderItemDetails.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ReturnOrderItemDetails.cs index 800e97acea78..6892ab1fbd8f 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ReturnOrderItemDetails.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/ReturnOrderItemDetails.cs @@ -17,7 +17,7 @@ public partial class ReturnOrderItemDetails : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IReturnOrderItemDetailsInternal.ReturnAddress { get => (this._returnAddress = this._returnAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.AddressProperties()); set { {_returnAddress = value;} } } /// Internal Acessors for ReturnAddressValidationStatus - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IReturnOrderItemDetailsInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IReturnOrderItemDetailsInternal.ReturnAddressValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressPropertiesInternal)ReturnAddress).AddressValidationStatus = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressProperties _returnAddress; diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/TrackedResource.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/TrackedResource.cs index ecdd3471c529..f7f8eaefa298 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/EdgeOrder/EdgeOrder.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.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.PropertyOrigin.Inherited)] diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs index b82e5843cb01..39e2bb1ae717 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs index a00e834a8db5..635957dfa286 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs @@ -489,7 +489,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -513,7 +513,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonFilePath.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonFilePath.cs index 4d0bdfae4749..6e17c6ed3d3c 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonFilePath.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonFilePath.cs @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonString.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonString.cs index 6518f22e197c..78fb730190a1 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonString.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaJsonString.cs @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs index 78a47cd07b99..a12f7817b086 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs @@ -40,15 +40,6 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Return order item request body private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IReturnOrderItemDetails _returnOrderItemDetailsBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ReturnOrderItemDetails(); @@ -309,11 +300,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.InvokeAzEdgeOrderRet /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -625,7 +611,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/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs index 360df6b222fb..3069b151e906 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs @@ -40,15 +40,6 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Return order item request body private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IReturnOrderItemDetails _returnOrderItemDetailsBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.ReturnOrderItemDetails(); @@ -269,11 +260,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.InvokeAzEdgeOrderRet /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -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/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonFilePath.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonFilePath.cs index 9f6356b21f01..1bcbf1063ba8 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonFilePath.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonFilePath : gl /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -267,11 +258,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.InvokeAzEdgeOrderRet /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -583,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonString.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonString.cs index 3f3ed4d3b4ac..af32ec9e1f33 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonString.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonString.cs @@ -41,15 +41,6 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaJsonString : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -265,11 +256,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.InvokeAzEdgeOrderRet /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -581,7 +567,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/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs index c0dbaf73d18b..bcdbf57c03a5 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs @@ -45,15 +45,6 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -300,11 +291,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderAddres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -620,24 +606,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonFilePath.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonFilePath.cs index 577472123a3a..f156f89381d6 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonFilePath.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class NewAzEdgeOrderAddress_CreateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderAddres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonString.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonString.cs index 1d8b06f663a6..6382c0c44e27 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonString.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateViaJsonString.cs @@ -43,15 +43,6 @@ public partial class NewAzEdgeOrderAddress_CreateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderAddres /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs index 1e492a9ad9c4..1b9013c1a02d 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs @@ -43,18 +43,9 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Represents order item contract private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource _orderItemResourceBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.OrderItemResource(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -320,11 +311,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderItem_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -640,24 +626,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonFilePath.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonFilePath.cs index e8369582c8d2..b0021a8b0b1a 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonFilePath.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonFilePath.cs @@ -44,17 +44,8 @@ public partial class NewAzEdgeOrderItem_CreateViaJsonFilePath : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderItem_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonString.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonString.cs index 68fc062b480d..a30e554a14fa 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonString.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateViaJsonString.cs @@ -44,15 +44,6 @@ public partial class NewAzEdgeOrderItem_CreateViaJsonString : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderItem_C /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs index eb2d77b726e5..3ed1c5a405f3 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzEdgeOrderAddress_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.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -604,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs index 03d762901e44..772648619311 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzEdgeOrderAddress_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.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.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/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs index f4c62ac32382..6e0a7606bc42 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzEdgeOrderItem_Delete : global::System.Management.Au /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.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/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs index 70ec10f9967d..844208846b30 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzEdgeOrderItem_DeleteViaIdentity : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.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/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs index 396852c24c85..ae7b0e63b512 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : 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.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -632,24 +618,7 @@ public UpdateAzEdgeOrderAddress_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs index 5289176ee9f5..f3c32fb62c30 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs @@ -43,15 +43,6 @@ public partial class UpdateAzEdgeOrderAddress_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.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ public UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonFilePath.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonFilePath.cs index 90b1d8df7534..31d607ff5f36 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonFilePath.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -284,11 +275,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -608,24 +594,7 @@ public UpdateAzEdgeOrderAddress_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonString.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonString.cs index ad504196faa8..c213c2694307 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonString.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaJsonString : 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.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -282,11 +273,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ public UpdateAzEdgeOrderAddress_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAddressResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs index c22cee829d3b..b83510a40e00 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Updates order item parameters. private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateParameter _orderItemUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.OrderItemUpdateParameter(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -328,11 +319,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -652,24 +638,7 @@ public UpdateAzEdgeOrderItem_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs index ba9062e2f7f2..a61c894d5cd6 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs @@ -40,18 +40,9 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : 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; - /// Updates order item parameters. private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemUpdateParameter _orderItemUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.OrderItemUpdateParameter(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -629,24 +615,7 @@ public UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonFilePath.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonFilePath.cs index d41077327602..6a0db45d5d58 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonFilePath.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaJsonFilePath : global::Syste /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ public UpdateAzEdgeOrderItem_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonString.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonString.cs index cb5877b18739..29e215d6472c 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonString.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaJsonString : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -603,24 +589,7 @@ public UpdateAzEdgeOrderItem_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IOrderItemResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index abbdaef35be6..5a2f5180f64d 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/EdgeOrder/EdgeOrder.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/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index c4ca88dd1821..d8022a6cc154 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/EdgeOrder/EdgeOrder.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/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 8254fdc3aba9..6b355f06cfad 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/EdgeOrder/EdgeOrder.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/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Context.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Context.cs index b8359e430a75..fc3e442a680b 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Context.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.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/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs index c6152249bacf..9b15fdc33949 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.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.EdgeOrder" : @""; + //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/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from version : '{0}' +- The change is expected to take effect in '{0}' from version : '{1}' ```powershell diff --git a/generated/EdgeZones/EdgeZones.Autorest/Properties/AssemblyInfo.cs b/generated/EdgeZones/EdgeZones.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index 45c2032f6ab2..000000000000 --- a/generated/EdgeZones/EdgeZones.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 - EdgeZones")] -[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("7aedd4b9-364f-4036-97ed-0d5c5f8d73c8")] -[assembly: AssemblyVersion("0.1.2")] -[assembly: AssemblyFileVersion("0.1.2")] diff --git a/generated/EdgeZones/EdgeZones.Autorest/exports/Get-AzEdgeZonesExtendedZone.ps1 b/generated/EdgeZones/EdgeZones.Autorest/exports/Get-AzEdgeZonesExtendedZone.ps1 index 38f65e03068e..453499cb7422 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/exports/Get-AzEdgeZonesExtendedZone.ps1 +++ b/generated/EdgeZones/EdgeZones.Autorest/exports/Get-AzEdgeZonesExtendedZone.ps1 @@ -123,6 +123,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -146,8 +154,6 @@ begin { List = 'Az.EdgeZones.private\Get-AzEdgeZonesExtendedZone_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.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -161,6 +167,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/EdgeZones/EdgeZones.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/EdgeZones/EdgeZones.Autorest/exports/ProxyCmdletDefinitions.ps1 index 486ec14f3c53..8dd38ab2a4b3 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/EdgeZones/EdgeZones.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -123,6 +123,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -146,8 +154,6 @@ begin { List = 'Az.EdgeZones.private\Get-AzEdgeZonesExtendedZone_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.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -161,6 +167,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -310,6 +319,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -332,8 +349,6 @@ begin { RegisterViaIdentity = 'Az.EdgeZones.private\Register-AzEdgeZonesExtendedZone_RegisterViaIdentity'; } if (('Register') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -347,6 +362,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -496,6 +514,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -518,8 +544,6 @@ begin { UnregisterViaIdentity = 'Az.EdgeZones.private\Unregister-AzEdgeZonesExtendedZone_UnregisterViaIdentity'; } if (('Unregister') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -533,6 +557,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/EdgeZones/EdgeZones.Autorest/exports/Register-AzEdgeZonesExtendedZone.ps1 b/generated/EdgeZones/EdgeZones.Autorest/exports/Register-AzEdgeZonesExtendedZone.ps1 index b70524c4457e..0cbae95f9257 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/exports/Register-AzEdgeZonesExtendedZone.ps1 +++ b/generated/EdgeZones/EdgeZones.Autorest/exports/Register-AzEdgeZonesExtendedZone.ps1 @@ -120,6 +120,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -142,8 +150,6 @@ begin { RegisterViaIdentity = 'Az.EdgeZones.private\Register-AzEdgeZonesExtendedZone_RegisterViaIdentity'; } if (('Register') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -157,6 +163,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/EdgeZones/EdgeZones.Autorest/exports/Unregister-AzEdgeZonesExtendedZone.ps1 b/generated/EdgeZones/EdgeZones.Autorest/exports/Unregister-AzEdgeZonesExtendedZone.ps1 index e12c2722626c..b16835022b6e 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/exports/Unregister-AzEdgeZonesExtendedZone.ps1 +++ b/generated/EdgeZones/EdgeZones.Autorest/exports/Unregister-AzEdgeZonesExtendedZone.ps1 @@ -120,6 +120,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -142,8 +150,6 @@ begin { UnregisterViaIdentity = 'Az.EdgeZones.private\Unregister-AzEdgeZonesExtendedZone_UnregisterViaIdentity'; } if (('Unregister') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -157,6 +163,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/EdgeZones/EdgeZones.Autorest/generated/api/Models/ErrorResponse.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ErrorResponse.cs index c2124e0ff391..11121c4ca8ea 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)] diff --git a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZone.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZone.cs index 785176cb41cd..63472a661acf 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZone.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZone.cs @@ -51,52 +51,70 @@ public partial class ExtendedZone : public string Longitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude; } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).DisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).DisplayName = value ?? null; } /// Internal Acessors for Geography - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Geography { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Geography; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Geography = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Geography { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Geography; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Geography = value ?? null; } /// Internal Acessors for GeographyGroup - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.GeographyGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.GeographyGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).GeographyGroup = value ?? null; } /// Internal Acessors for HomeLocation - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.HomeLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).HomeLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).HomeLocation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.HomeLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).HomeLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).HomeLocation = value ?? null; } /// Internal Acessors for Latitude - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Latitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Latitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Latitude = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Latitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Latitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Latitude = value ?? null; } /// Internal Acessors for Longitude - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Longitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Longitude { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).Longitude = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneProperties Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ExtendedZoneProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RegionCategory - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionCategory = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionCategory = value ?? null; } /// Internal Acessors for RegionType - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionType = value ?? null; } /// Internal Acessors for RegionalDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionalDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegionalDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegionalDisplayName = value ?? null; } /// Internal Acessors for RegistrationState - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegistrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegistrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegistrationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZoneInternal.RegistrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegistrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IExtendedZonePropertiesInternal)Property).RegistrationState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] @@ -139,31 +157,31 @@ public partial class ExtendedZone : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZoneProperties.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZoneProperties.cs index e5804b9c5267..5cf64ce7d05a 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZoneProperties.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ExtendedZoneProperties.cs @@ -137,7 +137,7 @@ public partial interface IExtendedZoneProperties : { /// Display name of the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -148,7 +148,7 @@ public partial interface IExtendedZoneProperties : string DisplayName { get; } /// Geography of the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -159,7 +159,7 @@ public partial interface IExtendedZoneProperties : string Geography { get; } /// The Geography Group of the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -170,7 +170,7 @@ public partial interface IExtendedZoneProperties : string GeographyGroup { get; } /// The Home Location of the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -181,7 +181,7 @@ public partial interface IExtendedZoneProperties : string HomeLocation { get; } /// The Latitude of the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -192,7 +192,7 @@ public partial interface IExtendedZoneProperties : string Latitude { get; } /// The Longitude of the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -217,7 +217,7 @@ public partial interface IExtendedZoneProperties : string ProvisioningState { get; } /// Category of region for the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -228,7 +228,7 @@ public partial interface IExtendedZoneProperties : string RegionCategory { get; } /// Type of region for the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, @@ -239,7 +239,7 @@ public partial interface IExtendedZoneProperties : string RegionType { get; } /// Regional display name of the Azure Extended Zone. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.Info( - Required = true, + Required = false, ReadOnly = true, Read = true, Create = false, diff --git a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Operation.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Operation.cs index b9b0d5a1b701..0b782d1e5e90 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Operation.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ProxyResource.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ProxyResource.cs index 494081addce0..370550a2d40d 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Resource.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Resource.cs index d365f349ea0b..35be4379b699 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Resource.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Origin(Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 0bce990d54f6..d9c3cfe8f053 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/EdgeZones/EdgeZones.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/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 35589a53faae..ed2e7ca410dd 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.EdgeZones.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.EdgeZones.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/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index f6e6b244492a..6d622d0626ff 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/EdgeZones/EdgeZones.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/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 95f7e87c064d..635601feac1c 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/EdgeZones/EdgeZones.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/EdgeZones/EdgeZones.Autorest/generated/runtime/Context.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/Context.cs index cdafe96b410d..31c480e9a6c2 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/Context.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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/EdgeZones/EdgeZones.Autorest/generated/runtime/MessageAttribute.cs b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/MessageAttribute.cs index 50dfe11e3509..6c54b801544a 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.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.EdgeZones" : @""; + //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/EdgeZones/EdgeZones.Autorest/generated/runtime/Properties/Resources.resx b/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/EdgeZones/EdgeZones.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/EdgeZones/EdgeZones.Autorest/internal/Get-AzEdgeZonesOperation.ps1 b/generated/EdgeZones/EdgeZones.Autorest/internal/Get-AzEdgeZonesOperation.ps1 index 61256187ba83..0c7355f9115f 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/internal/Get-AzEdgeZonesOperation.ps1 +++ b/generated/EdgeZones/EdgeZones.Autorest/internal/Get-AzEdgeZonesOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.EdgeZones.private\Get-AzEdgeZonesOperation_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/EdgeZones/EdgeZones.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/EdgeZones/EdgeZones.Autorest/internal/ProxyCmdletDefinitions.ps1 index 61256187ba83..0c7355f9115f 100644 --- a/generated/EdgeZones/EdgeZones.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/EdgeZones/EdgeZones.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.EdgeZones.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.EdgeZones.private\Get-AzEdgeZonesOperation_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/DeviceRegistry/DeviceRegistry.Autorest/resources/README.md b/generated/EdgeZones/EdgeZones.Autorest/resources/README.md similarity index 100% rename from src/DeviceRegistry/DeviceRegistry.Autorest/resources/README.md rename to generated/EdgeZones/EdgeZones.Autorest/resources/README.md diff --git a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticAllTrafficFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticAllTrafficFilter.ps1 index e5c5f6b592ed..37f720393b79 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticAllTrafficFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticAllTrafficFilter.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/Elastic/Elastic.Autorest/exports/Get-AzElasticBillingInfo.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticBillingInfo.ps1 index bc8f8c70246d..a50980dd3648 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticBillingInfo.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticBillingInfo.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/Elastic/Elastic.Autorest/exports/Get-AzElasticConnectedPartnerResource.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticConnectedPartnerResource.ps1 index 9e3279cddf91..4e3b04c2907d 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticConnectedPartnerResource.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticConnectedPartnerResource.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/Elastic/Elastic.Autorest/exports/Get-AzElasticDeploymentInfo.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDeploymentInfo.ps1 index fa9921098dba..8e74845c4351 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDeploymentInfo.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDeploymentInfo.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/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailUpgradableVersion.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailUpgradableVersion.ps1 index 7c067c987c93..c6618efdd670 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailUpgradableVersion.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailUpgradableVersion.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/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailVMIngestion.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailVMIngestion.ps1 index da767a47df2d..02d612078522 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailVMIngestion.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticDetailVMIngestion.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/Elastic/Elastic.Autorest/exports/Get-AzElasticListAssociatedTrafficFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticListAssociatedTrafficFilter.ps1 index a52fa92e9c57..fafd77b1c711 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticListAssociatedTrafficFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticListAssociatedTrafficFilter.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/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitor.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitor.ps1 index d7602835b762..49c5d0180659 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitor.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitor.ps1 @@ -145,8 +145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredResource.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredResource.ps1 index 6195f4725d2e..8e2f213cdb7a 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredResource.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredResource.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/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredSubscription.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredSubscription.ps1 index de9497be14da..eaa831ed51d9 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredSubscription.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticMonitoredSubscription.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAi.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAi.ps1 index 360199821a27..b09a407a75e9 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAi.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAi.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAiStatus.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAiStatus.ps1 index 7644f091177f..23e440682488 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAiStatus.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOpenAiStatus.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationApiKey.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationApiKey.ps1 index 8ba0c6be0418..4e9fbe48a8bb 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationApiKey.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationApiKey.ps1 @@ -119,8 +119,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationElasticToAzureSubscriptionMapping.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationElasticToAzureSubscriptionMapping.ps1 index 36d02b8df9eb..370cfcd1258c 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationElasticToAzureSubscriptionMapping.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticOrganizationElasticToAzureSubscriptionMapping.ps1 @@ -101,8 +101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Get-AzElasticResubscribeOrganization.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticResubscribeOrganization.ps1 index 7425521fdf7c..79bcccb86d67 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticResubscribeOrganization.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticResubscribeOrganization.ps1 @@ -229,8 +229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticTagRule.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticTagRule.ps1 index b7e766ae3483..37122ade7225 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticTagRule.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticTagRule.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticVMHost.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticVMHost.ps1 index 0502319f2f1d..84dd54253180 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticVMHost.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticVMHost.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/Elastic/Elastic.Autorest/exports/Get-AzElasticVersion.ps1 b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticVersion.ps1 index 0373cc078c39..494510817792 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticVersion.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Get-AzElasticVersion.ps1 @@ -107,8 +107,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Join-AzElasticAssociateTrafficFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/Join-AzElasticAssociateTrafficFilter.ps1 index 7929e89aad1d..fe82bd281e37 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Join-AzElasticAssociateTrafficFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Join-AzElasticAssociateTrafficFilter.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/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociateIPFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociateIPFilter.ps1 index 71a28cf60fc5..0b667ac2b5ef 100644 --- a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociateIPFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociateIPFilter.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociatePlFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociatePlFilter.ps1 index e781fa2e20c0..881115328e36 100644 --- a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociatePlFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticCreateAndAssociatePlFilter.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticExternalUser.ps1 b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticExternalUser.ps1 index bfbbcd0d368a..991aff45bbe6 100644 --- a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticExternalUser.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticExternalUser.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/New-AzElasticMonitor.ps1 b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticMonitor.ps1 index 1f659c265522..d8b1e1b7dd8f 100644 --- a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticMonitor.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticMonitor.ps1 @@ -322,8 +322,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/New-AzElasticOpenAi.ps1 b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticOpenAi.ps1 index ed76154a64d3..2143736c23ee 100644 --- a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticOpenAi.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticOpenAi.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticTagRule.ps1 b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticTagRule.ps1 index eac5971a9457..9addc2b740ab 100644 --- a/generated/Elastic/Elastic.Autorest/exports/New-AzElasticTagRule.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/New-AzElasticTagRule.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Elastic/Elastic.Autorest/exports/ProxyCmdletDefinitions.ps1 index 71d440535bd4..71649787541f 100644 --- a/generated/Elastic/Elastic.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Elastic/Elastic.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) { @@ -319,8 +318,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -504,8 +502,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -688,8 +685,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -893,8 +889,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1101,8 +1096,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1286,8 +1280,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1470,8 +1463,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1705,8 +1697,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1923,8 +1914,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2153,8 +2143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2385,8 +2374,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2577,8 +2565,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2750,8 +2737,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3049,8 +3035,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3276,8 +3261,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3458,8 +3442,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3642,8 +3625,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3871,8 +3853,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4107,8 +4088,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4349,8 +4329,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4609,8 +4588,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5004,8 +4982,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5285,8 +5262,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5550,8 +5526,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5773,8 +5748,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6024,8 +5998,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6252,8 +6225,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6486,8 +6458,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6705,8 +6676,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6935,8 +6905,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7195,8 +7164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7497,8 +7465,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7782,8 +7749,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8039,8 +8005,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8302,8 +8267,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8550,8 +8514,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Remove-AzElasticDetachAndDeleteTrafficFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticDetachAndDeleteTrafficFilter.ps1 index 1535b9580fe5..763426f5d717 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticDetachAndDeleteTrafficFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticDetachAndDeleteTrafficFilter.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/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitor.ps1 b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitor.ps1 index 20138ef40e35..8a431f46171c 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitor.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitor.ps1 @@ -156,8 +156,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitoredSubscription.ps1 b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitoredSubscription.ps1 index b55874842699..60ce84baabc9 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitoredSubscription.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticMonitoredSubscription.ps1 @@ -180,8 +180,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticOpenAi.ps1 b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticOpenAi.ps1 index cd9b601013fc..cebb7f02b2dd 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticOpenAi.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticOpenAi.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticTrafficFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticTrafficFilter.ps1 index 47b4f1ad7d16..0ee414da22d2 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticTrafficFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Remove-AzElasticTrafficFilter.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/Elastic/Elastic.Autorest/exports/Update-AzElasticDetachTrafficFilter.ps1 b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticDetachTrafficFilter.ps1 index 3bc3aab83ceb..b0e59a4c7ad9 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticDetachTrafficFilter.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticDetachTrafficFilter.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/Elastic/Elastic.Autorest/exports/Update-AzElasticExternalUser.ps1 b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticExternalUser.ps1 index fbd011e53be8..c179406cc06a 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticExternalUser.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticExternalUser.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitor.ps1 b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitor.ps1 index 565d0a66502b..60b3b424dff7 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitor.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitor.ps1 @@ -211,8 +211,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitoredSubscription.ps1 b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitoredSubscription.ps1 index 7687655659b4..2f1772cb6c31 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitoredSubscription.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticMonitoredSubscription.ps1 @@ -229,8 +229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticOpenAi.ps1 b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticOpenAi.ps1 index 2131a06a53c5..907006853495 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticOpenAi.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticOpenAi.ps1 @@ -181,8 +181,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/exports/Update-AzElasticTagRule.ps1 b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticTagRule.ps1 index c0e901c0289a..49e03cd7d9bf 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticTagRule.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticTagRule.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticVMCollection.ps1 b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticVMCollection.ps1 index 9b808b362239..5b0cde348af7 100644 --- a/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticVMCollection.ps1 +++ b/generated/Elastic/Elastic.Autorest/exports/Update-AzElasticVMCollection.ps1 @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/Elastic/Elastic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Elastic/Elastic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index a9750a596159..73c7abc86356 100644 --- a/generated/Elastic/Elastic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Elastic/Elastic.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/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 index b93129ba871f..e80b7a4cf9bc 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 index b01d74d27f44..03348b49b25c 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 @@ -143,8 +143,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 index ac19596e6ab9..726b28233bd7 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 index ac8f149ffd01..9c3adbf45f02 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 index b6b85cc05a60..56597f78b973 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 index 8202a3f42266..673ee48cd447 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 @@ -196,8 +196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 index 84d3e905b78e..ea5020912cb7 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 @@ -206,8 +206,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 index 9029afa9626c..509b95054309 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 @@ -216,8 +216,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 index d2df447cab53..2b3412b6f416 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 @@ -261,8 +261,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 index 83f1fedbe60b..46e3b3ca63c6 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 @@ -203,8 +203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 index 5ba716421282..3d0b9309fa49 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -106,8 +106,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -340,8 +339,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -609,8 +607,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -872,8 +869,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1089,8 +1085,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1365,8 +1360,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1654,8 +1648,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1904,8 +1897,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2176,8 +2168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2468,8 +2459,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2695,8 +2685,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2967,8 +2956,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3215,8 +3203,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3448,8 +3435,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3725,8 +3711,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4172,8 +4157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4417,8 +4401,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4749,8 +4732,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.ps1 index 39d1f7a46909..d463d9ba6775 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.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/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 index 1c4d888c99d0..3d3f0038aed9 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 @@ -219,8 +219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 index 8c45d1dbbd65..e0708f61edd0 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 index 65d9d439c90e..d7f727bee9b7 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 index 597aa14cacd6..b54d2e9dcba8 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 @@ -200,8 +200,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 index 6a3a837fc28a..46ba91fb5ead 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 index ba0b69bcef56..48765b39cfd7 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 b/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 index 5000a124a6e2..e66993856e60 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 +++ b/generated/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 @@ -261,8 +261,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 4c4a9ec92153..c114540da699 100644 --- a/generated/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/ElasticSan/ElasticSan.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/EventGrid/EventGrid.Autorest/exports/Disable-AzEventGridPartnerTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Disable-AzEventGridPartnerTopic.ps1 index baff1921ebdf..c88a7f51384f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Disable-AzEventGridPartnerTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Disable-AzEventGridPartnerTopic.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerDestination.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerDestination.ps1 index f95c1a0f2cb2..a639e58f3c89 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerDestination.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerDestination.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/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerTopic.ps1 index ddab3cc0f72e..301b9265ce33 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Enable-AzEventGridPartnerTopic.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridCaCertificate.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridCaCertificate.ps1 index 06243e0d9b25..c7d85b6742b6 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridCaCertificate.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridCaCertificate.ps1 @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannel.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannel.ps1 index f91f128eda89..96b96d8e956d 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannel.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannel.ps1 @@ -237,8 +237,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannelFullUrl.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannelFullUrl.ps1 index 069f2f4acbdf..8c5c12e3e73d 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannelFullUrl.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridChannelFullUrl.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClient.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClient.ps1 index 0683ff9d8bdf..6d8f2f99cae6 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClient.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClient.ps1 @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClientGroup.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClientGroup.ps1 index cc6b4aba1ba0..e2c6fd5075af 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClientGroup.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridClientGroup.ps1 @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomain.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomain.ps1 index a89635dba03a..5c65333d190a 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomain.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomain.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscription.ps1 index a0cd26b0d1de..7c90adf19c6f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscription.ps1 @@ -237,8 +237,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionDeliveryAttribute.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionDeliveryAttribute.ps1 index 4368fa54fb8e..b0bad1169221 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionDeliveryAttribute.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionDeliveryAttribute.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionFullUrl.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionFullUrl.ps1 index 1020b6f655bf..3b4440f692b0 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionFullUrl.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainEventSubscriptionFullUrl.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainKey.ps1 index fd952c7e07d8..cc74f27f1249 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainKey.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopic.ps1 index 213d058dcf6f..543e0eeae398 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopic.ps1 @@ -238,8 +238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscription.ps1 index 57b9b201089d..31a35be2ab2b 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscription.ps1 @@ -286,8 +286,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionDeliveryAttribute.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionDeliveryAttribute.ps1 index 7b352a68c3db..a4d3c182e6c9 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionDeliveryAttribute.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionDeliveryAttribute.ps1 @@ -255,8 +255,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionFullUrl.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionFullUrl.ps1 index 11355eb04949..3374594a8cf3 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionFullUrl.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridDomainTopicEventSubscriptionFullUrl.ps1 @@ -261,8 +261,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridExtensionTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridExtensionTopic.ps1 index d305070c573c..56dd18f32136 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridExtensionTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridExtensionTopic.ps1 @@ -107,8 +107,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForPartnerTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForPartnerTopicEventSubscription.ps1 index 0beb33c18f83..33ee9bc309ed 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForPartnerTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForPartnerTopicEventSubscription.ps1 @@ -214,8 +214,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForSystemTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForSystemTopicEventSubscription.ps1 index 7a0d2ab296a8..9ab910b1bbe4 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForSystemTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridFullUrlForSystemTopicEventSubscription.ps1 @@ -213,8 +213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespace.ps1 index bf54f60ed526..461b9416d732 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespace.ps1 @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceKey.ps1 index ae0f0dbe0e6c..5d4649e8fe7f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceKey.ps1 @@ -115,8 +115,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopic.ps1 index 99b591f5be2b..ca1fa7962eb9 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopic.ps1 @@ -230,8 +230,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicEventSubscription.ps1 index e3ba4f4756ee..f8f1e7ca4d6c 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicEventSubscription.ps1 @@ -278,8 +278,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicKey.ps1 index 4e730c50a1ce..4ca8e03e4498 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridNamespaceTopicKey.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerConfiguration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerConfiguration.ps1 index 587810d5d5b7..89f9a0536e90 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerConfiguration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerConfiguration.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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerDestination.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerDestination.ps1 index 8ec66f7fb779..d2ef585563d9 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerDestination.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerDestination.ps1 @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespace.ps1 index b0e21fbb606f..8265610c2c74 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespace.ps1 @@ -194,8 +194,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespaceKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespaceKey.ps1 index 1eb393293d17..e22d78d204de 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespaceKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerNamespaceKey.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerRegistration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerRegistration.ps1 index 04945fcdfd00..fab2ad666100 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerRegistration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerRegistration.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopic.ps1 index 3500ef735115..a1686b95c19c 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopic.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscription.ps1 index 15604668574e..9a784e1653fa 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscription.ps1 @@ -238,8 +238,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscriptionDeliveryAttribute.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscriptionDeliveryAttribute.ps1 index 2f08b2d39ca9..cdcaa35a8e25 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscriptionDeliveryAttribute.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPartnerTopicEventSubscriptionDeliveryAttribute.ps1 @@ -211,8 +211,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPermissionBinding.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPermissionBinding.ps1 index 4066cfb3a0dc..5130df667d8d 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPermissionBinding.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridPermissionBinding.ps1 @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscription.ps1 index b2f48b9beed3..d3e9da5c7614 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscription.ps1 @@ -229,8 +229,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionDeliveryAttribute.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionDeliveryAttribute.ps1 index 8972ccedd89f..f0f325e9c7a2 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionDeliveryAttribute.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionDeliveryAttribute.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionFullUrl.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionFullUrl.ps1 index f0816633e99d..c2ce03b2769d 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionFullUrl.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionFullUrl.ps1 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionGlobal.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionGlobal.ps1 index 7b6988179b89..2bb779aa25f1 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionGlobal.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionGlobal.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionRegional.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionRegional.ps1 index b9a97fdc1dec..4c456852beaf 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionRegional.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSubscriptionRegional.ps1 @@ -149,8 +149,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopic.ps1 index 850b242bbf5c..a7d5f4d95516 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopic.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscription.ps1 index 9a3e0950870d..ea8be03a0a1a 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscription.ps1 @@ -234,8 +234,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscriptionDeliveryAttribute.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscriptionDeliveryAttribute.ps1 index 1a09c1b46b62..1cc6128afef6 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscriptionDeliveryAttribute.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridSystemTopicEventSubscriptionDeliveryAttribute.ps1 @@ -210,8 +210,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopic.ps1 index f4554c8f63e1..fb71928d3b94 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopic.ps1 @@ -193,8 +193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscription.ps1 index 3e77ae3ac9ff..e554a3b76462 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscription.ps1 @@ -234,8 +234,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionDeliveryAttribute.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionDeliveryAttribute.ps1 index 79b9664bf8f8..8e515749623a 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionDeliveryAttribute.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionDeliveryAttribute.ps1 @@ -209,8 +209,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionFullUrl.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionFullUrl.ps1 index e2829c1d302d..77c4285e0524 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionFullUrl.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventSubscriptionFullUrl.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventType.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventType.ps1 index 0224e17da3db..fac57e590b0b 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventType.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicEventType.ps1 @@ -132,8 +132,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicKey.ps1 index fc60d7d43449..1b279aab7918 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicKey.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/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicSpace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicSpace.ps1 index 10f43bfac16c..1f5105e64fa4 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicSpace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicSpace.ps1 @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicType.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicType.ps1 index 62b87ead80ab..8e4edbf327d6 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicType.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicType.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicTypeEventType.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicTypeEventType.ps1 index d16ed276bd4c..55ff2600cc5f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicTypeEventType.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridTopicTypeEventType.ps1 @@ -105,8 +105,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridVerifiedPartner.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridVerifiedPartner.ps1 index d554cb66bd7d..c159882f397b 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridVerifiedPartner.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Get-AzEventGridVerifiedPartner.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Grant-AzEventGridPartnerConfiguration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Grant-AzEventGridPartnerConfiguration.ps1 index b1b315e9d8a8..b746012220d3 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Grant-AzEventGridPartnerConfiguration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Grant-AzEventGridPartnerConfiguration.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridCaCertificate.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridCaCertificate.ps1 index 3ed4bedd0cdb..50a31a5e0d73 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridCaCertificate.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridCaCertificate.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a CA certificate with the specified parameters. +Create a CA certificate with the specified parameters. .Description -create a CA certificate with the specified parameters. +Create a CA certificate with the specified parameters. .Example New-AzEventGridCaCertificate -Name azps-cacert -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -EncodedCertificate "-----BEGIN CERTIFICATE----- >> **************** @@ -259,8 +259,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridChannel.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridChannel.ps1 index 45790e68e065..458eeb6c9826 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridChannel.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridChannel.ps1 @@ -381,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) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClient.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClient.ps1 index 2e3d52b042b8..6868f0338e32 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClient.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClient.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a client with the specified parameters. +Create a client with the specified parameters. .Description -create a client with the specified parameters. +Create a client with the specified parameters. .Example $attribute = @{"room"="345";"floor"="3";"deviceTypes"="Fan"} New-AzEventGridClient -Name azps-client -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Attribute $attribute -State Enabled -ClientCertificateAuthenticationValidationScheme "SubjectMatchesAuthenticationName" @@ -347,8 +347,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClientGroup.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClientGroup.ps1 index 2e7d583543f2..80aa9e510875 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClientGroup.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridClientGroup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a client group with the specified parameters. +Create a client group with the specified parameters. .Description -create a client group with the specified parameters. +Create a client group with the specified parameters. .Example New-AzEventGridClientGroup -Name azps-clientgroup -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Query "attributes.b IN ['a', 'b', 'c']" @@ -252,8 +252,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomain.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomain.ps1 index 5754b9fa6716..fcda20151a38 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomain.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomain.ps1 @@ -344,8 +344,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainEventSubscription.ps1 index c658f5057d4f..857dcbfe6371 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainEventSubscription.ps1 @@ -400,8 +400,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainKey.ps1 index 4d484dbe220f..236cd57cde78 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainKey.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopic.ps1 index aee7abc6da31..86a5a77690f1 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopic.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopicEventSubscription.ps1 index 6e5ebc9ac015..d60bf4818916 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDomainTopicEventSubscription.ps1 @@ -465,8 +465,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDynamicRoutingEnrichmentObject.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDynamicRoutingEnrichmentObject.ps1 index 54a2e0cb6a4b..1570d7bd0846 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDynamicRoutingEnrichmentObject.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridDynamicRoutingEnrichmentObject.ps1 @@ -20,7 +20,7 @@ Create an in-memory object for DynamicRoutingEnrichment. .Description Create an in-memory object for DynamicRoutingEnrichment. .Example -New-AzEventGridDynamicRoutingEnrichmentObject -Key key1 -Value vaule1 +New-AzEventGridDynamicRoutingEnrichmentObject -Key key1 -Value value1 .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DynamicRoutingEnrichment diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespace.ps1 index 8130257972bc..e0eb9c42180d 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespace.ps1 @@ -387,8 +387,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceKey.ps1 index d1bf42a015b5..c5f477daf1e3 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceKey.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopic.ps1 index c3b651530382..aadff9cf3f97 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopic.ps1 @@ -262,8 +262,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicEventSubscription.ps1 index c4f08417c0da..123993ef0561 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicEventSubscription.ps1 @@ -394,8 +394,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicKey.ps1 index feba7af03d28..f91826965414 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridNamespaceTopicKey.ps1 @@ -243,8 +243,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerConfiguration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerConfiguration.ps1 index e291a224d13f..243289f05a3c 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerConfiguration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerConfiguration.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerDestination.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerDestination.ps1 index c4e4aa1763de..da0d49662595 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerDestination.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerDestination.ps1 @@ -248,8 +248,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespace.ps1 index 56f9de849271..8329fb6580f3 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespace.ps1 @@ -268,8 +268,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespaceKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespaceKey.ps1 index b9060cfcca63..9c827868fb3f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespaceKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerNamespaceKey.ps1 @@ -189,8 +189,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerRegistration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerRegistration.ps1 index 04cc1806a5f1..c31813b71aff 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerRegistration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerRegistration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new partner registration with the specified parameters. +Create a new partner registration with the specified parameters. .Description -create a new partner registration with the specified parameters. +Create a new partner registration with the specified parameters. .Example New-AzEventGridPartnerRegistration -Name azps-registration -ResourceGroupName azps_test_group_eventgrid -Location global @@ -217,8 +217,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopic.ps1 index 7afce6ae4651..f4ee6dfa1424 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopic.ps1 @@ -295,8 +295,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopicEventSubscription.ps1 index fd0a080a3836..491d79ecdd74 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPartnerTopicEventSubscription.ps1 @@ -413,8 +413,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPermissionBinding.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPermissionBinding.ps1 index 4a8e2c9402c5..13583073f0d4 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPermissionBinding.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridPermissionBinding.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a permission binding with the specified parameters. +Create a permission binding with the specified parameters. .Description -create a permission binding with the specified parameters. +Create a permission binding with the specified parameters. .Example New-AzEventGridPermissionBinding -Name azps-pb -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -ClientGroupName "azps-clientgroup" -Permission Publisher -TopicSpaceName "azps-topicspace" @@ -269,8 +269,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSubscription.ps1 index 8b5222d6471d..7f77d09b9025 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSubscription.ps1 @@ -342,8 +342,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopic.ps1 index 06d5336b00b0..c2310aa10d59 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopic.ps1 @@ -255,8 +255,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopicEventSubscription.ps1 index 015b84a44c13..38b9c9247b73 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridSystemTopicEventSubscription.ps1 @@ -412,8 +412,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopic.ps1 index 2b1568a79634..560be554f046 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopic.ps1 @@ -346,8 +346,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicEventSubscription.ps1 index d197b3cf3eaf..9d6a48548cd7 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicEventSubscription.ps1 @@ -400,8 +400,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicKey.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicKey.ps1 index 1356654cf4d6..e05475f74d53 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicKey.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicKey.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicSpace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicSpace.ps1 index e6d66d306e32..a9cdd46d4142 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicSpace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/New-AzEventGridTopicSpace.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a topic space with the specified parameters. +Create a topic space with the specified parameters. .Description -create a topic space with the specified parameters. +Create a topic space with the specified parameters. .Example New-AzEventGridTopicSpace -Name azps-topicspace -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -TopicTemplate "filter1" @@ -253,8 +253,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/ProxyCmdletDefinitions.ps1 index 0b629ca71496..8375cdcb580b 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -394,8 +393,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -632,8 +630,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -934,8 +931,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1219,8 +1215,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1528,8 +1523,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1832,8 +1826,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2136,8 +2129,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2418,8 +2410,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2702,8 +2693,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3011,8 +3001,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3204,8 +3193,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3529,8 +3517,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3863,8 +3850,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4222,8 +4208,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4534,8 +4519,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4800,8 +4784,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4980,8 +4963,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5257,8 +5239,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5542,8 +5523,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5729,8 +5709,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6077,8 +6056,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6271,8 +6249,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6571,8 +6548,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6831,8 +6807,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7039,8 +7014,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7297,8 +7271,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7490,8 +7463,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7754,8 +7726,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8020,8 +7991,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8304,8 +8274,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8614,8 +8583,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8880,8 +8848,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9184,8 +9151,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9414,8 +9380,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9635,8 +9600,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9840,8 +9804,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10062,8 +10025,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10364,8 +10326,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10647,8 +10608,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10953,8 +10913,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11219,8 +11178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11501,8 +11459,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11785,8 +11742,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12091,8 +12047,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12296,8 +12251,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12487,8 +12441,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12788,8 +12741,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12966,8 +12918,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13181,8 +13132,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13439,8 +13389,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13683,8 +13632,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -13913,8 +13861,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14002,9 +13949,9 @@ end { <# .Synopsis -create a CA certificate with the specified parameters. +Create a CA certificate with the specified parameters. .Description -create a CA certificate with the specified parameters. +Create a CA certificate with the specified parameters. .Example New-AzEventGridCaCertificate -Name azps-cacert -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -EncodedCertificate "-----BEGIN CERTIFICATE----- >> **************** @@ -14245,8 +14192,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14700,8 +14646,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -14790,9 +14735,9 @@ end { <# .Synopsis -create a client group with the specified parameters. +Create a client group with the specified parameters. .Description -create a client group with the specified parameters. +Create a client group with the specified parameters. .Example New-AzEventGridClientGroup -Name azps-clientgroup -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Query "attributes.b IN ['a', 'b', 'c']" @@ -15026,8 +14971,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15116,9 +15060,9 @@ end { <# .Synopsis -create a client with the specified parameters. +Create a client with the specified parameters. .Description -create a client with the specified parameters. +Create a client with the specified parameters. .Example $attribute = @{"room"="345";"floor"="3";"deviceTypes"="Fan"} New-AzEventGridClient -Name azps-client -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Attribute $attribute -State Enabled -ClientCertificateAuthenticationValidationScheme "SubjectMatchesAuthenticationName" @@ -15447,8 +15391,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -15921,8 +15864,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16184,8 +16126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16722,8 +16663,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -16937,8 +16877,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17351,8 +17290,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -17619,8 +17557,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18086,8 +18023,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18404,8 +18340,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -18740,8 +18675,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19201,8 +19135,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19463,8 +19396,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -19783,8 +19715,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -20045,8 +19976,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -20386,8 +20316,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -20475,9 +20404,9 @@ end { <# .Synopsis -create a new partner registration with the specified parameters. +Create a new partner registration with the specified parameters. .Description -create a new partner registration with the specified parameters. +Create a new partner registration with the specified parameters. .Example New-AzEventGridPartnerRegistration -Name azps-registration -ResourceGroupName azps_test_group_eventgrid -Location global @@ -20676,8 +20605,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -21162,8 +21090,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -21531,8 +21458,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -21620,9 +21546,9 @@ end { <# .Synopsis -create a permission binding with the specified parameters. +Create a permission binding with the specified parameters. .Description -create a permission binding with the specified parameters. +Create a permission binding with the specified parameters. .Example New-AzEventGridPermissionBinding -Name azps-pb -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -ClientGroupName "azps-clientgroup" -Permission Publisher -TopicSpaceName "azps-topicspace" @@ -21873,8 +21799,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -22289,8 +22214,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -22767,8 +22691,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23096,8 +23019,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23569,8 +23491,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23844,8 +23765,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -23933,9 +23853,9 @@ end { <# .Synopsis -create a topic space with the specified parameters. +Create a topic space with the specified parameters. .Description -create a topic space with the specified parameters. +Create a topic space with the specified parameters. .Example New-AzEventGridTopicSpace -Name azps-topicspace -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -TopicTemplate "filter1" @@ -24170,8 +24090,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -24590,8 +24509,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -24885,8 +24803,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -25179,8 +25096,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -25473,8 +25389,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -25767,8 +25682,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -26061,8 +25975,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -26401,8 +26314,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -26697,8 +26609,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -26946,8 +26857,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -27285,8 +27195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -27579,8 +27488,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -27828,8 +27736,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -28025,8 +27932,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -28272,8 +28178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -28520,8 +28425,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -28768,8 +28672,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -29062,8 +28965,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -29311,8 +29213,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -29604,8 +29505,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -29846,8 +29746,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -30132,8 +30031,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -30381,8 +30279,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -30674,8 +30571,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -30968,8 +30864,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -31217,8 +31112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -31453,8 +31347,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -31787,8 +31680,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -31877,9 +31769,9 @@ end { <# .Synopsis -update a client group with the specified parameters. +Update a client group with the specified parameters. .Description -update a client group with the specified parameters. +Update a client group with the specified parameters. .Example Update-AzEventGridClientGroup -Name azps-clientgroup -Namespacename azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Description "This is a test client group" -Query "attributes.b IN ['a', 'b', 'c', 'd']" .Example @@ -32095,8 +31987,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -32183,9 +32074,9 @@ end { <# .Synopsis -update a client with the specified parameters. +Update a client with the specified parameters. .Description -update a client with the specified parameters. +Update a client with the specified parameters. .Example $attribute = @{"room"="345";"floor"="3";"deviceTypes"="AC"} Update-AzEventGridClient -Name azps-client -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Attribute $attribute -Description "This is a test client" @@ -32478,8 +32369,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -32566,9 +32456,9 @@ end { <# .Synopsis -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Description -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridDomainEventSubscription -DomainName azps-domain -EventSubscriptionName azps-eventsubname -ResourceGroupName azps_test_group_eventgrid -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj @@ -32949,8 +32839,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -33039,9 +32928,9 @@ end { <# .Synopsis -update an existing event subscription for a domain topic. +Update an existing event subscription for a domain topic. .Description -update an existing event subscription for a domain topic. +Update an existing event subscription for a domain topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridDomainTopicEventSubscription -DomainName azps-domain -EventSubscriptionName azps-eventsubname -ResourceGroupName azps_test_group_eventgrid -TopicName azps-topic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj @@ -33487,8 +33376,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -33871,8 +33759,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -33958,9 +33845,9 @@ end { <# .Synopsis -update an existing event subscription of a namespace topic. +Update an existing event subscription of a namespace topic. .Description -update an existing event subscription of a namespace topic. +Update an existing event subscription of a namespace topic. .Example Update-AzEventGridNamespaceTopicEventSubscription -EventSubscriptionName azps-eventsubname -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -TopicName azps-topic -DeliveryConfigurationDeliveryMode Queue -EventDeliverySchema CloudEventSchemaV1_0 .Example @@ -34339,8 +34226,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -34664,8 +34550,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -35088,8 +34973,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -35311,8 +35195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -35580,8 +35463,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -35899,8 +35781,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -35988,9 +35869,9 @@ end { <# .Synopsis -update an existing event subscription of a partner topic. +Update an existing event subscription of a partner topic. .Description -update an existing event subscription of a partner topic. +Update an existing event subscription of a partner topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridPartnerTopicEventSubscription -EventSubscriptionName azps-eventsubname -ResourceGroupName azps_test_group_eventgrid -PartnerTopicName default -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -EventDeliverySchema CloudEventSchemaV1_0 -Destination $obj @@ -36383,8 +36264,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -36719,8 +36599,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -36806,9 +36685,9 @@ end { <# .Synopsis -update a permission binding with the specified parameters. +Update a permission binding with the specified parameters. .Description -update a permission binding with the specified parameters. +Update a permission binding with the specified parameters. .Example Update-AzEventGridPermissionBinding -ResourceGroupName azps_test_group_eventgrid -NamespaceName azps-eventgridnamespace -Name azps-pb -ClientGroupName "azps-clientgroup" -Permission Publisher -TopicSpaceName "azps-topicspace" .Example @@ -37037,8 +36916,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -37446,8 +37324,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -37528,9 +37405,9 @@ end { <# .Synopsis -update an existing event subscription of a system topic. +Update an existing event subscription of a system topic. .Description -update an existing event subscription of a system topic. +Update an existing event subscription of a system topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridSystemTopicEventSubscription -EventSubscriptionName azps-evnetsub -ResourceGroupName azps_test_group_eventgrid -SystemTopicName azps-systopic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj @@ -37922,8 +37799,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -38228,8 +38104,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -38315,9 +38190,9 @@ end { <# .Synopsis -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Description -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridTopicEventSubscription -EventSubscriptionName azps-eventsub -ResourceGroupName azps_test_group_eventgrid -TopicName azps-topic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -EventDeliverySchema CloudEventSchemaV1_0 -Destination $obj @@ -38698,8 +38573,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -38788,9 +38662,9 @@ end { <# .Synopsis -update a topic space with the specified parameters. +Update a topic space with the specified parameters. .Description -update a topic space with the specified parameters. +Update a topic space with the specified parameters. .Example Update-AzEventGridTopicSpace -Name azps-topicspace -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -TopicTemplate "filter1" .Example @@ -39007,8 +38881,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -39393,8 +39266,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -39962,7 +39834,7 @@ Create an in-memory object for DynamicRoutingEnrichment. .Description Create an in-memory object for DynamicRoutingEnrichment. .Example -New-AzEventGridDynamicRoutingEnrichmentObject -Key key1 -Value vaule1 +New-AzEventGridDynamicRoutingEnrichmentObject -Key key1 -Value value1 .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DynamicRoutingEnrichment diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridCaCertificate.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridCaCertificate.ps1 index cc8e334e88a8..72933ace1285 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridCaCertificate.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridCaCertificate.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridChannel.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridChannel.ps1 index 27c55585045c..fd3bce9d0c6f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridChannel.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridChannel.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClient.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClient.ps1 index dac23ab87a02..f4c1917ba6cb 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClient.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClient.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClientGroup.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClientGroup.ps1 index 25ba8aeaa4ec..ae5f092c418d 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClientGroup.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridClientGroup.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomain.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomain.ps1 index 83a4b1df6ef4..fd0798b6aad2 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomain.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomain.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainEventSubscription.ps1 index 4f8a5394e707..7ed2dc4c27dc 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainEventSubscription.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopic.ps1 index af200ca0a642..4624aab82799 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopic.ps1 @@ -223,8 +223,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopicEventSubscription.ps1 index 960e25dc9906..ae346ec868af 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridDomainTopicEventSubscription.ps1 @@ -268,8 +268,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespace.ps1 index 850f8e8a4493..40ee8627fb11 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespace.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopic.ps1 index 3980177cb723..5eba270998f9 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopic.ps1 @@ -221,8 +221,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopicEventSubscription.ps1 index 8499ef012686..e2cf7aba1974 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridNamespaceTopicEventSubscription.ps1 @@ -268,8 +268,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerConfiguration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerConfiguration.ps1 index db196ff632b9..d78af3c9126c 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerConfiguration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerConfiguration.ps1 @@ -126,8 +126,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerDestination.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerDestination.ps1 index 7dd62afb982a..193b10500482 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerDestination.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerDestination.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerNamespace.ps1 index a4642802c129..3fde99be9e57 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerNamespace.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerRegistration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerRegistration.ps1 index 77797c35ea30..a02c061a0f90 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerRegistration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerRegistration.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopic.ps1 index 9c64510084f1..75f8eeafdfd6 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopic.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopicEventSubscription.ps1 index 82314a830180..88865d9d53ef 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPartnerTopicEventSubscription.ps1 @@ -223,8 +223,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPermissionBinding.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPermissionBinding.ps1 index 9c362a55c8df..17c32d122a78 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPermissionBinding.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridPermissionBinding.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSubscription.ps1 index a515e3177a0e..45ebc8225376 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSubscription.ps1 @@ -170,8 +170,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopic.ps1 index 17a703016abc..ffd8413b17d4 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopic.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopicEventSubscription.ps1 index 0db5221598d6..c750d7cc0cb1 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridSystemTopicEventSubscription.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopic.ps1 index 8740857e2d7e..fde30ead3623 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopic.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicEventSubscription.ps1 index 276d2f3f8d07..94c84df74000 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicEventSubscription.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicSpace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicSpace.ps1 index 45b87c9d06c9..6d633298abb9 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicSpace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Remove-AzEventGridTopicSpace.ps1 @@ -222,8 +222,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Revoke-AzEventGridPartnerConfiguration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Revoke-AzEventGridPartnerConfiguration.ps1 index 5da37e4edd04..adf0214bdaff 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Revoke-AzEventGridPartnerConfiguration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Revoke-AzEventGridPartnerConfiguration.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridChannel.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridChannel.ps1 index 162f23b9dfb4..9398bb444abe 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridChannel.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridChannel.ps1 @@ -261,8 +261,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClient.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClient.ps1 index 0529d753ec80..f76833e84235 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClient.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClient.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a client with the specified parameters. +Update a client with the specified parameters. .Description -update a client with the specified parameters. +Update a client with the specified parameters. .Example $attribute = @{"room"="345";"floor"="3";"deviceTypes"="AC"} Update-AzEventGridClient -Name azps-client -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Attribute $attribute -Description "This is a test client" @@ -311,8 +311,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClientGroup.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClientGroup.ps1 index 7634e4bcb188..91de0eef9cde 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClientGroup.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridClientGroup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a client group with the specified parameters. +Update a client group with the specified parameters. .Description -update a client group with the specified parameters. +Update a client group with the specified parameters. .Example Update-AzEventGridClientGroup -Name azps-clientgroup -Namespacename azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -Description "This is a test client group" -Query "attributes.b IN ['a', 'b', 'c', 'd']" .Example @@ -234,8 +234,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomain.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomain.ps1 index a4bbc9424f0a..4a05f8119886 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomain.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomain.ps1 @@ -309,8 +309,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainEventSubscription.ps1 index 36c6c292b28a..9b5f8421595f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainEventSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Description -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridDomainEventSubscription -DomainName azps-domain -EventSubscriptionName azps-eventsubname -ResourceGroupName azps_test_group_eventgrid -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj @@ -399,8 +399,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainTopicEventSubscription.ps1 index f5459464d9f0..246c0ef40c8c 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridDomainTopicEventSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing event subscription for a domain topic. +Update an existing event subscription for a domain topic. .Description -update an existing event subscription for a domain topic. +Update an existing event subscription for a domain topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridDomainTopicEventSubscription -DomainName azps-domain -EventSubscriptionName azps-eventsubname -ResourceGroupName azps_test_group_eventgrid -TopicName azps-topic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj @@ -464,8 +464,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespace.ps1 index 97bc47431975..2ab43836c41a 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespace.ps1 @@ -350,8 +350,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopic.ps1 index b97ee0cc5ab5..6a1ebcc69602 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopic.ps1 @@ -250,8 +250,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopicEventSubscription.ps1 index 5aaf45a0727a..ec0674b29f1f 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridNamespaceTopicEventSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing event subscription of a namespace topic. +Update an existing event subscription of a namespace topic. .Description -update an existing event subscription of a namespace topic. +Update an existing event subscription of a namespace topic. .Example Update-AzEventGridNamespaceTopicEventSubscription -EventSubscriptionName azps-eventsubname -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -TopicName azps-topic -DeliveryConfigurationDeliveryMode Queue -EventDeliverySchema CloudEventSchemaV1_0 .Example @@ -397,8 +397,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerConfiguration.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerConfiguration.ps1 index 525102d7a373..4f674ef4c7bc 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerConfiguration.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerConfiguration.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerDestination.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerDestination.ps1 index 537226e680af..1520e163d8d4 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerDestination.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerDestination.ps1 @@ -197,8 +197,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerNamespace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerNamespace.ps1 index b7611335bafa..5e61248ae53e 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerNamespace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerNamespace.ps1 @@ -246,8 +246,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopic.ps1 index e3e41d8605cc..ddefbabfdaa0 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopic.ps1 @@ -262,8 +262,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopicEventSubscription.ps1 index 86dd5bae8718..8a87c0149e02 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPartnerTopicEventSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing event subscription of a partner topic. +Update an existing event subscription of a partner topic. .Description -update an existing event subscription of a partner topic. +Update an existing event subscription of a partner topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridPartnerTopicEventSubscription -EventSubscriptionName azps-eventsubname -ResourceGroupName azps_test_group_eventgrid -PartnerTopicName default -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -EventDeliverySchema CloudEventSchemaV1_0 -Destination $obj @@ -411,8 +411,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPermissionBinding.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPermissionBinding.ps1 index 08a2f8ea7499..fc7502af7009 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPermissionBinding.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridPermissionBinding.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a permission binding with the specified parameters. +Update a permission binding with the specified parameters. .Description -update a permission binding with the specified parameters. +Update a permission binding with the specified parameters. .Example Update-AzEventGridPermissionBinding -ResourceGroupName azps_test_group_eventgrid -NamespaceName azps-eventgridnamespace -Name azps-pb -ClientGroupName "azps-clientgroup" -Permission Publisher -TopicSpaceName "azps-topicspace" .Example @@ -247,8 +247,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSubscription.ps1 index 088840cdb7eb..2344267ad90e 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSubscription.ps1 @@ -337,8 +337,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopic.ps1 index 856a3e50ca4f..3383aebb72e2 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopic.ps1 @@ -232,8 +232,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopicEventSubscription.ps1 index 623fc11f6356..f00a07479e8d 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridSystemTopicEventSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing event subscription of a system topic. +Update an existing event subscription of a system topic. .Description -update an existing event subscription of a system topic. +Update an existing event subscription of a system topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridSystemTopicEventSubscription -EventSubscriptionName azps-evnetsub -ResourceGroupName azps_test_group_eventgrid -SystemTopicName azps-systopic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -Destination $obj @@ -410,8 +410,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopic.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopic.ps1 index 4e6d37911443..9ec4fa98389c 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopic.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopic.ps1 @@ -314,8 +314,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicEventSubscription.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicEventSubscription.ps1 index ed438bfe8a5d..56f96be6b6b7 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicEventSubscription.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicEventSubscription.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Description -update an existing event subscription for a topic. +Update an existing event subscription for a topic. .Example $obj = New-AzEventGridWebHookEventSubscriptionDestinationObject -EndpointUrl "https://azpsweb.azurewebsites.net/api/updates" Update-AzEventGridTopicEventSubscription -EventSubscriptionName azps-eventsub -ResourceGroupName azps_test_group_eventgrid -TopicName azps-topic -FilterIsSubjectCaseSensitive:$false -FilterSubjectBeginsWith "ExamplePrefix" -FilterSubjectEndsWith "ExampleSuffix" -EventDeliverySchema CloudEventSchemaV1_0 -Destination $obj @@ -399,8 +399,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicSpace.ps1 b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicSpace.ps1 index 35f603e543ad..ce6542f17f48 100644 --- a/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicSpace.ps1 +++ b/generated/EventGrid/EventGrid.Autorest/exports/Update-AzEventGridTopicSpace.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a topic space with the specified parameters. +Update a topic space with the specified parameters. .Description -update a topic space with the specified parameters. +Update a topic space with the specified parameters. .Example Update-AzEventGridTopicSpace -Name azps-topicspace -NamespaceName azps-eventgridnamespace -ResourceGroupName azps_test_group_eventgrid -TopicTemplate "filter1" .Example @@ -235,8 +235,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/AzureAdPartnerClientAuthentication.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/AzureAdPartnerClientAuthentication.cs index 9594602b2058..4c03d52a49cd 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/AzureAdPartnerClientAuthentication.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/AzureAdPartnerClientAuthentication.cs @@ -41,7 +41,7 @@ public partial class AzureAdPartnerClientAuthentication : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IAzureAdPartnerClientAuthenticationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IAzureAdPartnerClientAuthenticationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.AzureAdPartnerClientAuthenticationProperties()); set { {_property = value;} } } /// Internal Acessors for ClientAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)__partnerClientAuthentication).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)__partnerClientAuthentication).ClientAuthenticationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)__partnerClientAuthentication).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)__partnerClientAuthentication).ClientAuthenticationType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IAzureAdPartnerClientAuthenticationProperties _property; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/CaCertificate.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/CaCertificate.cs index 6697e4a9348b..a15c050e87b1 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/CaCertificate.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/CaCertificate.cs @@ -39,28 +39,46 @@ public partial class CaCertificate : public global::System.DateTime? IssueTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).IssueTimeInUtc; } /// Internal Acessors for ExpiryTimeInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.ExpiryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ExpiryTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ExpiryTimeInUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.ExpiryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ExpiryTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ExpiryTimeInUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for IssueTimeInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.IssueTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).IssueTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).IssueTimeInUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.IssueTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).IssueTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).IssueTimeInUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.CaCertificateProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificatePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ICaCertificateInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -90,27 +108,27 @@ public partial class CaCertificate : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Channel.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Channel.cs index ea91f9dedc5b..2999e8742abf 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Channel.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Channel.cs @@ -54,16 +54,16 @@ public partial class Channel : public string MessageForActivation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).MessageForActivation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).MessageForActivation = value ?? null; } /// Internal Acessors for PartnerDestinationInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerDestinationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerDestinationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfo = value ?? null /* model class */; } /// Internal Acessors for PartnerDestinationInfoEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfoEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfoEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfoEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerDestinationInfoEndpointType = value ?? null; } /// Internal Acessors for PartnerTopicInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerTopicInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerTopicInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfo = value ?? null /* model class */; } /// Internal Acessors for PartnerTopicInfoEventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ChannelProperties()); set { {_property = value;} } } @@ -71,14 +71,32 @@ public partial class Channel : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -175,27 +193,27 @@ public partial class Channel : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelProperties.cs index 5a3177e60294..e00ede477a2a 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelProperties.cs @@ -57,13 +57,13 @@ public partial class ChannelProperties : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal.PartnerDestinationInfo { get => (this._partnerDestinationInfo = this._partnerDestinationInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerDestinationInfo()); set { {_partnerDestinationInfo = value;} } } /// Internal Acessors for PartnerDestinationInfoEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)PartnerDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)PartnerDestinationInfo).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)PartnerDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)PartnerDestinationInfo).EndpointType = value ?? null; } /// Internal Acessors for PartnerTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal.PartnerTopicInfo { get => (this._partnerTopicInfo = this._partnerTopicInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerTopicInfo()); set { {_partnerTopicInfo = value;} } } /// Internal Acessors for PartnerTopicInfoEventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInfoInternal)PartnerTopicInfo).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInfoInternal)PartnerTopicInfo).EventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelPropertiesInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInfoInternal)PartnerTopicInfo).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInfoInternal)PartnerTopicInfo).EventTypeInfo = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfo _partnerDestinationInfo; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParameters.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParameters.cs index 04ed25dced08..10ddce1c8252 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParameters.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParameters.cs @@ -36,16 +36,16 @@ public partial class ChannelUpdateParameters : public global::System.DateTime? ExpirationTimeIfNotActivatedUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).ExpirationTimeIfNotActivatedUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).ExpirationTimeIfNotActivatedUtc = value ?? default(global::System.DateTime); } /// Internal Acessors for PartnerDestinationInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerDestinationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerDestinationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfo = value ?? null /* model class */; } /// Internal Acessors for PartnerDestinationInfoEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfoEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfoEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfoEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerDestinationInfoEndpointType = value ?? null; } /// Internal Acessors for PartnerTopicInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerTopicInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerTopicInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfo = value ?? null /* model class */; } /// Internal Acessors for PartnerTopicInfoEventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal)Property).PartnerTopicInfoEventTypeInfo = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ChannelUpdateParametersProperties()); set { {_property = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParametersProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParametersProperties.cs index 1e62069301a5..0525ab72163c 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParametersProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ChannelUpdateParametersProperties.cs @@ -42,13 +42,13 @@ public partial class ChannelUpdateParametersProperties : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal.PartnerDestinationInfo { get => (this._partnerDestinationInfo = this._partnerDestinationInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerUpdateDestinationInfo()); set { {_partnerDestinationInfo = value;} } } /// Internal Acessors for PartnerDestinationInfoEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)PartnerDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)PartnerDestinationInfo).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal.PartnerDestinationInfoEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)PartnerDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)PartnerDestinationInfo).EndpointType = value ?? null; } /// Internal Acessors for PartnerTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateTopicInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal.PartnerTopicInfo { get => (this._partnerTopicInfo = this._partnerTopicInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerUpdateTopicInfo()); set { {_partnerTopicInfo = value;} } } /// Internal Acessors for PartnerTopicInfoEventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateTopicInfoInternal)PartnerTopicInfo).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateTopicInfoInternal)PartnerTopicInfo).EventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IChannelUpdateParametersPropertiesInternal.PartnerTopicInfoEventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateTopicInfoInternal)PartnerTopicInfo).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateTopicInfoInternal)PartnerTopicInfo).EventTypeInfo = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfo _partnerDestinationInfo; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Client.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Client.cs index bed5acfbdf55..ff77b0d0be51 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Client.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Client.cs @@ -87,34 +87,52 @@ public partial class Client : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Authentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.Authentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).Authentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.Authentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).Authentication = value ?? null /* model class */; } /// Internal Acessors for AuthenticationCertificateSubject - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateSubjectDistinguishedName Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.AuthenticationCertificateSubject { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateSubject; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateSubject = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateSubjectDistinguishedName Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.AuthenticationCertificateSubject { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateSubject; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateSubject = value ?? null /* model class */; } /// Internal Acessors for AuthenticationCertificateThumbprint - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateThumbprint Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.AuthenticationCertificateThumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateThumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateThumbprint = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateThumbprint Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.AuthenticationCertificateThumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateThumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).AuthenticationCertificateThumbprint = value ?? null /* model class */; } /// Internal Acessors for CertificateAuthentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.CertificateAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ClientCertificateAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ClientCertificateAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.CertificateAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ClientCertificateAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ClientCertificateAuthentication = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ClientProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -148,27 +166,27 @@ public partial class Client : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientGroup.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientGroup.cs index 8275cefd9787..e5c62c4f8a60 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientGroup.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientGroup.cs @@ -30,19 +30,37 @@ public partial class ClientGroup : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ClientGroupProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientGroupInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -79,27 +97,27 @@ public partial class ClientGroup : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientProperties.cs index e3da8673bdf9..5c483fe22ffc 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ClientProperties.cs @@ -104,10 +104,10 @@ public partial class ClientProperties : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal.Authentication { get => (this._authentication = this._authentication ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ClientAuthentication()); set { {_authentication = value;} } } /// Internal Acessors for AuthenticationCertificateSubject - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateSubjectDistinguishedName Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal.AuthenticationCertificateSubject { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateSubject; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateSubject = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateSubjectDistinguishedName Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal.AuthenticationCertificateSubject { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateSubject; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateSubject = value ?? null /* model class */; } /// Internal Acessors for AuthenticationCertificateThumbprint - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateThumbprint Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal.AuthenticationCertificateThumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateThumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateThumbprint = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateThumbprint Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal.AuthenticationCertificateThumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateThumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationInternal)Authentication).CertificateThumbprint = value ?? null /* model class */; } /// Internal Acessors for ClientCertificateAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientCertificateAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientPropertiesInternal.ClientCertificateAuthentication { get => (this._clientCertificateAuthentication = this._clientCertificateAuthentication ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ClientCertificateAuthentication()); set { {_clientCertificateAuthentication = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeadLetterWithResourceIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeadLetterWithResourceIdentity.cs index c6bd2d6b6715..196b79176980 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeadLetterWithResourceIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeadLetterWithResourceIdentity.cs @@ -50,7 +50,7 @@ public partial class DeadLetterWithResourceIdentity : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal.DeadLetterDestination { get => (this._deadLetterDestination = this._deadLetterDestination ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeadLetterDestination()); set { {_deadLetterDestination = value;} } } /// Internal Acessors for DeadLetterDestinationEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.EventSubscriptionIdentity()); set { {_identity = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeliveryConfiguration.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeliveryConfiguration.cs index 1006f9309b39..48527146e8ec 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeliveryConfiguration.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DeliveryConfiguration.cs @@ -44,21 +44,21 @@ public partial class DeliveryConfiguration : public string IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).IdentityUserAssignedIdentity = value ?? null; } /// Internal Acessors for DeadLetterDestinationEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityIdentity = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterDestinationWithResourceIdentityDeadLetterDestination /// - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value ?? null /* model class */; } /// Internal Acessors for Queue Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.Queue { get => (this._queue = this._queue ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.QueueInfo()); set { {_queue = value;} } } /// Internal Acessors for QueueDeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal)Queue).DeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo _queue; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Domain.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Domain.cs index 4afa2e85e5a8..fffc9d5a11df 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Domain.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Domain.cs @@ -152,31 +152,31 @@ public partial class Domain : public string MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).MetricResourceId; } /// Internal Acessors for Endpoint - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.Endpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).Endpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).Endpoint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.Endpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).Endpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).Endpoint = value ?? null; } /// Internal Acessors for EventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).EventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).EventTypeInfo = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IdentityInfo()); set { {_identity = value;} } } /// Internal Acessors for InputSchemaMapping - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.InputSchemaMapping { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMapping; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMapping = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.InputSchemaMapping { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMapping; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMapping = value ?? null /* model class */; } /// Internal Acessors for InputSchemaMappingInputSchemaMappingType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType = value ?? null; } /// Internal Acessors for MetricResourceId - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).MetricResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).MetricResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).MetricResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).MetricResourceId = value ?? null; } /// Internal Acessors for PrivateEndpointConnection - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).PrivateEndpointConnection = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).PrivateEndpointConnection = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DomainProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceSku Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ResourceSku()); set { {_sku = value;} } } @@ -184,14 +184,32 @@ public partial class Domain : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Minimum TLS version of the publisher allowed to publish to this domain [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] @@ -247,27 +265,27 @@ public partial class Domain : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainProperties.cs index 02135515786c..8b56627a249e 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainProperties.cs @@ -154,7 +154,7 @@ public partial class DomainProperties : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal.InputSchemaMapping { get => (this._inputSchemaMapping = this._inputSchemaMapping ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.InputSchemaMapping()); set { {_inputSchemaMapping = value;} } } /// Internal Acessors for InputSchemaMappingInputSchemaMappingType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type = value ?? null; } /// Internal Acessors for MetricResourceId string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainPropertiesInternal.MetricResourceId { get => this._metricResourceId; set { {_metricResourceId = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainTopic.cs index 219991844e42..989ad2fb01b5 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainTopic.cs @@ -26,19 +26,37 @@ public partial class DomainTopic : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DomainTopicProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainTopicInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -68,27 +86,27 @@ public partial class DomainTopic : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainUpdateParameters.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainUpdateParameters.cs index 4f9a52201479..a380a4051db9 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainUpdateParameters.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/DomainUpdateParameters.cs @@ -113,7 +113,7 @@ public partial class DomainUpdateParameters : public System.Collections.Generic.List InboundIPRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParameterPropertiesInternal)Property).InboundIPRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParameterPropertiesInternal)Property).InboundIPRule = value ?? null /* arrayOf */; } /// Internal Acessors for EventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParametersInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParameterPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParameterPropertiesInternal)Property).EventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParametersInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParameterPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParameterPropertiesInternal)Property).EventTypeInfo = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDomainUpdateParametersInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IdentityInfo()); set { {_identity = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ErrorResponse.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ErrorResponse.cs index 163bf355504b..3353011eb123 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscription.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscription.cs index 69299a7c91b6..4431055e136c 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscription.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscription.cs @@ -134,57 +134,75 @@ public partial class EventSubscription : public System.Collections.Generic.List Label { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Label; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Label = value ?? null /* arrayOf */; } /// Internal Acessors for DeadLetterDestination - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.DeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.DeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterDestination = value ?? null /* model class */; } /// Internal Acessors for DeadLetterWithResourceIdentityDeadLetterDestination - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.DeadLetterWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.DeadLetterWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestination = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType /// - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for EndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).EndpointType = value ?? null; } /// Internal Acessors for Filter - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionFilter Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.Filter { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Filter = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionFilter Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.Filter { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Filter = value ?? null /* model class */; } /// Internal Acessors for PropertiesDeadLetterWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeadLetterWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeadLetterWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentity = value ?? null /* model class */; } /// Internal Acessors for PropertiesDeadLetterWithResourceIdentityIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeadLetterWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeadLetterWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeadLetterWithResourceIdentityIdentity = value ?? null /* model class */; } /// Internal Acessors for PropertiesDeliveryWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeliveryWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeliveryWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentity = value ?? null /* model class */; } /// Internal Acessors for PropertiesDeliveryWithResourceIdentityIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeliveryWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentityIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentityIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.PropertiesDeliveryWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentityIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).DeliveryWithResourceIdentityIdentity = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.EventSubscriptionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for RetryPolicy - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRetryPolicy Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.RetryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).RetryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).RetryPolicy = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRetryPolicy Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.RetryPolicy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).RetryPolicy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).RetryPolicy = value ?? null /* model class */; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Topic - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.Topic { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Topic; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Topic = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionInternal.Topic { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Topic; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal)Property).Topic = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -222,27 +240,27 @@ public partial class EventSubscription : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Name of the topic of the event subscription. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionProperties.cs index 837d6f189c47..b64e7d62d2a8 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionProperties.cs @@ -176,24 +176,24 @@ public partial class EventSubscriptionProperties : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeadLetterWithResourceIdentity { get => (this._deadLetterWithResourceIdentity = this._deadLetterWithResourceIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeadLetterWithResourceIdentity()); set { {_deadLetterWithResourceIdentity = value;} } } /// Internal Acessors for DeadLetterWithResourceIdentityDeadLetterDestination - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeadLetterWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeadLetterWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType /// - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterWithResourceIdentityIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeadLetterWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeadLetterWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity = value ?? null /* model class */; } /// Internal Acessors for DeliveryWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeliveryWithResourceIdentity { get => (this._deliveryWithResourceIdentity = this._deliveryWithResourceIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeliveryWithResourceIdentity()); set { {_deliveryWithResourceIdentity = value;} } } /// Internal Acessors for DeliveryWithResourceIdentityIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeliveryWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.DeliveryWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity = value ?? null /* model class */; } /// Internal Acessors for EndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType = value ?? null; } /// Internal Acessors for Filter Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionFilter Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionPropertiesInternal.Filter { get => (this._filter = this._filter ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.EventSubscriptionFilter()); set { {_filter = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionUpdateParameters.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionUpdateParameters.cs index 9b940e63bdad..91ab414e64cd 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionUpdateParameters.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventSubscriptionUpdateParameters.cs @@ -176,24 +176,24 @@ public partial class EventSubscriptionUpdateParameters : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeadLetterWithResourceIdentity { get => (this._deadLetterWithResourceIdentity = this._deadLetterWithResourceIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeadLetterWithResourceIdentity()); set { {_deadLetterWithResourceIdentity = value;} } } /// Internal Acessors for DeadLetterWithResourceIdentityDeadLetterDestination - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeadLetterWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeadLetterWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestination = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType /// - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeadLetterWithResourceIdentityDeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterWithResourceIdentityIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeadLetterWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeadLetterWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterWithResourceIdentity).Identity = value ?? null /* model class */; } /// Internal Acessors for DeliveryWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeliveryWithResourceIdentity { get => (this._deliveryWithResourceIdentity = this._deliveryWithResourceIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeliveryWithResourceIdentity()); set { {_deliveryWithResourceIdentity = value;} } } /// Internal Acessors for DeliveryWithResourceIdentityIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeliveryWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.DeliveryWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryWithResourceIdentityInternal)DeliveryWithResourceIdentity).Identity = value ?? null /* model class */; } /// Internal Acessors for EndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)DeadLetterDestination).EndpointType = value ?? null; } /// Internal Acessors for Filter Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionFilter Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionUpdateParametersInternal.Filter { get => (this._filter = this._filter ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.EventSubscriptionFilter()); set { {_filter = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventType.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventType.cs index f17a6cc8cbdd..f654763aea82 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventType.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/EventType.cs @@ -38,13 +38,13 @@ public partial class EventType : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.EventTypeProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ExtensionTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ExtensionTopic.cs index 86d31aaba16c..4987d6c59f18 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ExtensionTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/ExtensionTopic.cs @@ -34,14 +34,32 @@ public partial class ExtensionTopic : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtensionTopicInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtensionTopicInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtensionTopicInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtensionTopicInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtensionTopicInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtensionTopicInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtensionTopicInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -67,27 +85,27 @@ public partial class ExtensionTopic : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// System topic resource id which is mapped to the source. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/JsonInputSchemaMapping.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/JsonInputSchemaMapping.cs index cd8c2cfa7498..064a7d97b0c0 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/JsonInputSchemaMapping.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/JsonInputSchemaMapping.cs @@ -61,28 +61,28 @@ public partial class JsonInputSchemaMapping : public string IdSourceField { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).IdSourceField; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).IdSourceField = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)__inputSchemaMapping).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)__inputSchemaMapping).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)__inputSchemaMapping).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)__inputSchemaMapping).Type = value ; } /// Internal Acessors for DataVersion - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonFieldWithDefault Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.DataVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).DataVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).DataVersion = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonFieldWithDefault Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.DataVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).DataVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).DataVersion = value ?? null /* model class */; } /// Internal Acessors for EventTime - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.EventTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventTime = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.EventTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventTime = value ?? null /* model class */; } /// Internal Acessors for EventType - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonFieldWithDefault Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.EventType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventType = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonFieldWithDefault Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.EventType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).EventType = value ?? null /* model class */; } /// Internal Acessors for Id - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Id = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Id = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.JsonInputSchemaMappingProperties()); set { {_property = value;} } } /// Internal Acessors for Subject - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonFieldWithDefault Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.Subject { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Subject; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Subject = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonFieldWithDefault Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.Subject { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Subject; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Subject = value ?? null /* model class */; } /// Internal Acessors for Topic - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.Topic { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Topic; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Topic = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonField Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingInternal.Topic { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Topic; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingPropertiesInternal)Property).Topic = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMappingProperties _property; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Namespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Namespace.cs index c3ffb9c16095..e9a269e6f62b 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Namespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Namespace.cs @@ -85,7 +85,7 @@ public partial class Namespace : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.NamespaceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceSku Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.NamespaceSku()); set { {_sku = value;} } } @@ -93,35 +93,53 @@ public partial class Namespace : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for TopicConfigurationHostname - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicConfigurationHostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicConfigurationHostname = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicConfigurationHostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicConfigurationHostname = value ?? null; } /// Internal Acessors for TopicSpaceConfigurationClientAuthentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationHostname - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationHostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationHostname = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationHostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationHostname = value ?? null; } /// Internal Acessors for TopicSpaceConfigurationRoutingEnrichment - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationRoutingIdentityInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo = value ?? null /* model class */; } /// Internal Acessors for TopicSpacesConfiguration - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpacesConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpacesConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpacesConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicSpacesConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpacesConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicSpacesConfiguration = value ?? null /* model class */; } /// Internal Acessors for TopicsConfiguration - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicsConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicsConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicsConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceInternal.TopicsConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicsConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal)Property).TopicsConfiguration = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// /// Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported. @@ -199,27 +217,27 @@ public partial class Namespace : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceProperties.cs index 57e4ab107b87..e754be03c7d1 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceProperties.cs @@ -44,19 +44,19 @@ public partial class NamespaceProperties : string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for TopicConfigurationHostname - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicsConfigurationInternal)TopicsConfiguration).Hostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicsConfigurationInternal)TopicsConfiguration).Hostname = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicsConfigurationInternal)TopicsConfiguration).Hostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicsConfigurationInternal)TopicsConfiguration).Hostname = value ?? null; } /// Internal Acessors for TopicSpaceConfigurationClientAuthentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).ClientAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).ClientAuthentication = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationHostname - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).Hostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).Hostname = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationHostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).Hostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).Hostname = value ?? null; } /// Internal Acessors for TopicSpaceConfigurationRoutingEnrichment - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingEnrichment = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingEnrichment = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationRoutingIdentityInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingIdentityInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfigurationInternal)TopicSpacesConfiguration).RoutingIdentityInfo = value ?? null /* model class */; } /// Internal Acessors for TopicSpacesConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacesConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespacePropertiesInternal.TopicSpacesConfiguration { get => (this._topicSpacesConfiguration = this._topicSpacesConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.TopicSpacesConfiguration()); set { {_topicSpacesConfiguration = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceTopic.cs index d174acde4bf1..8f60ded93de1 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceTopic.cs @@ -39,19 +39,37 @@ public partial class NamespaceTopic : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.NamespaceTopicProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceTopicInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -85,27 +103,27 @@ public partial class NamespaceTopic : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameterProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameterProperties.cs index 7361cb5e42a7..307c5c0aab63 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameterProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameterProperties.cs @@ -30,13 +30,13 @@ public partial class NamespaceUpdateParameterProperties : public System.Collections.Generic.List InboundIPRule { get => this._inboundIPRule; set => this._inboundIPRule = value; } /// Internal Acessors for TopicSpaceConfigurationClientAuthentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).ClientAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).ClientAuthentication = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationRoutingEnrichment - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingEnrichment = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingEnrichment = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationRoutingIdentityInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingIdentityInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfoInternal)TopicSpacesConfiguration).RoutingIdentityInfo = value ?? null /* model class */; } /// Internal Acessors for TopicSpacesConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal.TopicSpacesConfiguration { get => (this._topicSpacesConfiguration = this._topicSpacesConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.UpdateTopicSpacesConfigurationInfo()); set { {_topicSpacesConfiguration = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameters.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameters.cs index b34487ebc17e..61f12d927b9e 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameters.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/NamespaceUpdateParameters.cs @@ -67,16 +67,16 @@ public partial class NamespaceUpdateParameters : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceSku Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.NamespaceSku()); set { {_sku = value;} } } /// Internal Acessors for TopicSpaceConfigurationClientAuthentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IClientAuthenticationSettings Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpaceConfigurationClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationClientAuthentication = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationRoutingEnrichment - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingEnrichments Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpaceConfigurationRoutingEnrichment { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingEnrichment = value ?? null /* model class */; } /// Internal Acessors for TopicSpaceConfigurationRoutingIdentityInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IRoutingIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpaceConfigurationRoutingIdentityInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpaceConfigurationRoutingIdentityInfo = value ?? null /* model class */; } /// Internal Acessors for TopicSpacesConfiguration - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpacesConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpacesConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpacesConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IUpdateTopicSpacesConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParametersInternal.TopicSpacesConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpacesConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterPropertiesInternal)Property).TopicSpacesConfiguration = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.INamespaceUpdateParameterProperties _property; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerConfiguration.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerConfiguration.cs index 21d096e234d6..a98d876a0ad1 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerConfiguration.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerConfiguration.cs @@ -30,7 +30,7 @@ public partial class PartnerConfiguration : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for PartnerAuthorization - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerAuthorization Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.PartnerAuthorization { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationPropertiesInternal)Property).PartnerAuthorization; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationPropertiesInternal)Property).PartnerAuthorization = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerAuthorization Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.PartnerAuthorization { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationPropertiesInternal)Property).PartnerAuthorization; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationPropertiesInternal)Property).PartnerAuthorization = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerConfigurationProperties()); set { {_property = value;} } } @@ -38,14 +38,32 @@ public partial class PartnerConfiguration : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -87,27 +105,27 @@ public partial class PartnerConfiguration : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerConfigurationTags _tag; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerDestination.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerDestination.cs index def665e3e0b9..4d1192772130 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerDestination.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerDestination.cs @@ -53,19 +53,37 @@ public partial class PartnerDestination : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerDestinationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -99,27 +117,27 @@ public partial class PartnerDestination : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerNamespace.cs index f9e77afacfd7..73d75051f464 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerNamespace.cs @@ -45,28 +45,46 @@ public partial class PartnerNamespace : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Endpoint - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.Endpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).Endpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).Endpoint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.Endpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).Endpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).Endpoint = value ?? null; } /// Internal Acessors for PrivateEndpointConnection - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).PrivateEndpointConnection = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).PrivateEndpointConnection = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerNamespaceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespacePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerNamespaceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// /// Minimum TLS version of the publisher allowed to publish to this partner namespace @@ -129,27 +147,27 @@ public partial class PartnerNamespace : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerRegistration.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerRegistration.cs index 4ae0b1153fdd..0d2a00d60557 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerRegistration.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerRegistration.cs @@ -37,19 +37,37 @@ public partial class PartnerRegistration : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerRegistrationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerRegistrationInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -79,27 +97,27 @@ public partial class PartnerRegistration : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerTopic.cs index 1e958f28e136..fc4b4849771a 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PartnerTopic.cs @@ -97,7 +97,7 @@ public partial class PartnerTopic : public string MessageForActivation { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).MessageForActivation; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).MessageForActivation = value ?? null; } /// Internal Acessors for EventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).EventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).EventTypeInfo = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IdentityInfo()); set { {_identity = value;} } } @@ -106,19 +106,37 @@ public partial class PartnerTopic : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerTopicProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerTopicInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -158,27 +176,27 @@ public partial class PartnerTopic : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PermissionBinding.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PermissionBinding.cs index 09ef761da323..b8555b1017c6 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PermissionBinding.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PermissionBinding.cs @@ -37,19 +37,37 @@ public partial class PermissionBinding : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PermissionBindingProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPermissionBindingInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] @@ -83,27 +101,27 @@ public partial class PermissionBinding : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The name of the Topic Space resource that the permission is bound to. diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PrivateEndpointConnection.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PrivateEndpointConnection.cs index 0e1dc7a89b09..8e4be1569694 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PrivateEndpointConnection.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/PrivateEndpointConnection.cs @@ -26,22 +26,22 @@ public partial class PrivateEndpointConnection : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for PrivateEndpoint - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; } /// Internal Acessors for PrivateLinkServiceConnectionState - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IConnectionState Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IConnectionState Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPrivateEndpointConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PrivateEndpointConnectionProperties()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/QueueInfo.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/QueueInfo.cs index 83cb4522a7fb..d1a261b58a2f 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/QueueInfo.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/QueueInfo.cs @@ -84,7 +84,7 @@ public partial class QueueInfo : public int? MaxDeliveryCount { get => this._maxDeliveryCount; set => this._maxDeliveryCount = value; } /// Internal Acessors for DeadLetterDestinationEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterDestinationWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal.DeadLetterDestinationWithResourceIdentity { get => (this._deadLetterDestinationWithResourceIdentity = this._deadLetterDestinationWithResourceIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeadLetterWithResourceIdentity()); set { {_deadLetterDestinationWithResourceIdentity = value;} } } @@ -92,10 +92,10 @@ public partial class QueueInfo : /// /// Internal Acessors for DeadLetterDestinationWithResourceIdentityDeadLetterDestination /// - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).DeadLetterDestination = value ?? null /* model class */; } /// Internal Acessors for DeadLetterDestinationWithResourceIdentityIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal.DeadLetterDestinationWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfoInternal.DeadLetterDestinationWithResourceIdentityIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentityInternal)DeadLetterDestinationWithResourceIdentity).Identity = value ?? null /* model class */; } /// Backing field for property. private int? _receiveLockDurationInSecond; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/StorageBlobDeadLetterDestination.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/StorageBlobDeadLetterDestination.cs index 392fc402c698..ff6dda2ae54d 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/StorageBlobDeadLetterDestination.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/StorageBlobDeadLetterDestination.cs @@ -31,7 +31,7 @@ public partial class StorageBlobDeadLetterDestination : public string EndpointType { get => "StorageBlob"; } /// Internal Acessors for EndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)__deadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)__deadLetterDestination).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)__deadLetterDestination).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestinationInternal)__deadLetterDestination).EndpointType = value ; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IStorageBlobDeadLetterDestinationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IStorageBlobDeadLetterDestinationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.StorageBlobDeadLetterDestinationProperties()); set { {_property = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Subscription.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Subscription.cs index bc11e11d9ca2..b8b069f78fbc 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Subscription.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Subscription.cs @@ -65,46 +65,64 @@ public partial class Subscription : public string IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).IdentityUserAssignedIdentity = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Internal Acessors for DeadLetterDestinationEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterDestinationWithResourceIdentityDeadLetterDestination /// - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value ?? null /* model class */; } /// Internal Acessors for DeliveryConfiguration - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeliveryConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeliveryConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfiguration = value ?? null /* model class */; } /// Internal Acessors for DeliveryConfigurationQueue - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfigurationQueue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfigurationQueue = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfigurationQueue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).DeliveryConfigurationQueue = value ?? null /* model class */; } /// Internal Acessors for FiltersConfiguration - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IFiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.FiltersConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).FiltersConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).FiltersConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IFiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.FiltersConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).FiltersConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).FiltersConfiguration = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SubscriptionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for QueueDeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; } @@ -171,27 +189,27 @@ public partial class Subscription : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionProperties.cs index 0dc8e7d1a31e..b276b88664c0 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionProperties.cs @@ -73,21 +73,21 @@ public partial class SubscriptionProperties : public string IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).IdentityUserAssignedIdentity = value ?? null; } /// Internal Acessors for DeadLetterDestinationEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterDestinationWithResourceIdentityDeadLetterDestination /// - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value ?? null /* model class */; } /// Internal Acessors for DeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeliveryConfiguration { get => (this._deliveryConfiguration = this._deliveryConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeliveryConfiguration()); set { {_deliveryConfiguration = value;} } } /// Internal Acessors for DeliveryConfigurationQueue - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue = value ?? null /* model class */; } /// Internal Acessors for FiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IFiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.FiltersConfiguration { get => (this._filtersConfiguration = this._filtersConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.FiltersConfiguration()); set { {_filtersConfiguration = value;} } } @@ -96,7 +96,7 @@ public partial class SubscriptionProperties : string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for QueueDeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionPropertiesInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// Backing field for property. private string _provisioningState; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParameters.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParameters.cs index 17517581a67e..351c42cc4c69 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParameters.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParameters.cs @@ -56,30 +56,30 @@ public partial class SubscriptionUpdateParameters : public string IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).IdentityUserAssignedIdentity = value ?? null; } /// Internal Acessors for DeadLetterDestinationEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterDestinationWithResourceIdentityDeadLetterDestination /// - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value ?? null /* model class */; } /// Internal Acessors for DeliveryConfiguration - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeliveryConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeliveryConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfiguration = value ?? null /* model class */; } /// Internal Acessors for DeliveryConfigurationQueue - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfigurationQueue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfigurationQueue = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfigurationQueue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).DeliveryConfigurationQueue = value ?? null /* model class */; } /// Internal Acessors for FiltersConfiguration - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IFiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.FiltersConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).FiltersConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).FiltersConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IFiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.FiltersConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).FiltersConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).FiltersConfiguration = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SubscriptionUpdateParametersProperties()); set { {_property = value;} } } /// Internal Acessors for QueueDeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal)Property).QueueDeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersProperties _property; diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParametersProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParametersProperties.cs index 9b5bc9f438bb..0372e7c84590 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParametersProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SubscriptionUpdateParametersProperties.cs @@ -73,27 +73,27 @@ public partial class SubscriptionUpdateParametersProperties : public string IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).IdentityUserAssignedIdentity = value ?? null; } /// Internal Acessors for DeadLetterDestinationEndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeadLetterDestinationEndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationEndpointType = value ?? null; } /// Internal Acessors for DeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventSubscriptionIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// /// Internal Acessors for DeadLetterDestinationWithResourceIdentityDeadLetterDestination /// - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterDestination Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeadLetterDestinationWithResourceIdentityDeadLetterDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).DeadLetterDestinationWithResourceIdentityDeadLetterDestination = value ?? null /* model class */; } /// Internal Acessors for DeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeliveryConfiguration { get => (this._deliveryConfiguration = this._deliveryConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.DeliveryConfiguration()); set { {_deliveryConfiguration = value;} } } /// Internal Acessors for DeliveryConfigurationQueue - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IQueueInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.DeliveryConfigurationQueue { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).Queue = value ?? null /* model class */; } /// Internal Acessors for FiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IFiltersConfiguration Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.FiltersConfiguration { get => (this._filtersConfiguration = this._filtersConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.FiltersConfiguration()); set { {_filtersConfiguration = value;} } } /// Internal Acessors for QueueDeadLetterDestinationWithResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeadLetterWithResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISubscriptionUpdateParametersPropertiesInternal.QueueDeadLetterDestinationWithResourceIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IDeliveryConfigurationInternal)DeliveryConfiguration).QueueDeadLetterDestinationWithResourceIdentity = value ?? null /* model class */; } /// /// Time span duration in ISO 8601 format that determines how long messages are available to the subscription from the time diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SystemTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SystemTopic.cs index 5931b0a62d22..2d5c6891b439 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SystemTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/SystemTopic.cs @@ -62,29 +62,47 @@ public partial class SystemTopic : public string MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).MetricResourceId; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IdentityInfo()); set { {_identity = value;} } } /// Internal Acessors for MetricResourceId - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).MetricResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).MetricResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).MetricResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).MetricResourceId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemTopicProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemTopicInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; } @@ -117,27 +135,27 @@ public partial class SystemTopic : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Topic.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Topic.cs index 89ec21649943..e9c1fdf66fce 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Topic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/Topic.cs @@ -137,19 +137,19 @@ public partial class Topic : public string MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).MetricResourceId; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for Endpoint - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.Endpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).Endpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).Endpoint = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.Endpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).Endpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).Endpoint = value ?? null; } /// Internal Acessors for EventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).EventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).EventTypeInfo = value ?? null /* model class */; } /// Internal Acessors for ExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.ExtendedLocation { get => (this._extendedLocation = this._extendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ExtendedLocation()); set { {_extendedLocation = value;} } } @@ -158,22 +158,22 @@ public partial class Topic : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IdentityInfo()); set { {_identity = value;} } } /// Internal Acessors for InputSchemaMapping - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.InputSchemaMapping { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMapping; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMapping = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.InputSchemaMapping { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMapping; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMapping = value ?? null /* model class */; } /// Internal Acessors for InputSchemaMappingInputSchemaMappingType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).InputSchemaMappingInputSchemaMappingType = value ?? null; } /// Internal Acessors for MetricResourceId - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).MetricResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).MetricResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.MetricResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).MetricResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).MetricResourceId = value ?? null; } /// Internal Acessors for PrivateEndpointConnection - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).PrivateEndpointConnection = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).PrivateEndpointConnection = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.TopicProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceSku Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ResourceSku()); set { {_sku = value;} } } @@ -181,6 +181,24 @@ public partial class Topic : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Minimum TLS version of the publisher allowed to publish to this topic [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] public string MinimumTlsVersionAllowed { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).MinimumTlsVersionAllowed; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal)Property).MinimumTlsVersionAllowed = value ?? null; } @@ -235,27 +253,27 @@ public partial class Topic : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Tags of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicProperties.cs index 24891627da61..93eaa76ab7bd 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicProperties.cs @@ -111,7 +111,7 @@ public partial class TopicProperties : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMapping Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal.InputSchemaMapping { get => (this._inputSchemaMapping = this._inputSchemaMapping ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.InputSchemaMapping()); set { {_inputSchemaMapping = value;} } } /// Internal Acessors for InputSchemaMappingInputSchemaMappingType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal.InputSchemaMappingInputSchemaMappingType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IInputSchemaMappingInternal)InputSchemaMapping).Type = value ?? null; } /// Internal Acessors for MetricResourceId string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicPropertiesInternal.MetricResourceId { get => this._metricResourceId; set { {_metricResourceId = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicSpace.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicSpace.cs index a95ceba7fce5..a85ba53bb640 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicSpace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicSpace.cs @@ -27,23 +27,41 @@ public partial class TopicSpace : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.TopicSpaceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpacePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicSpaceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; } @@ -72,27 +90,27 @@ public partial class TopicSpace : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The topic filters in the topic space. diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicTypeInfo.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicTypeInfo.cs index 911ac3eda600..253fd8da05e0 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicTypeInfo.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicTypeInfo.cs @@ -37,13 +37,13 @@ public partial class TopicTypeInfo : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicTypeProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicTypeInfoInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.TopicTypeProperties()); set { {_property = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicUpdateParameters.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicUpdateParameters.cs index f42b7caa05ce..679166fef420 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicUpdateParameters.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TopicUpdateParameters.cs @@ -77,7 +77,7 @@ public partial class TopicUpdateParameters : public System.Collections.Generic.List InboundIPRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParameterPropertiesInternal)Property).InboundIPRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParameterPropertiesInternal)Property).InboundIPRule = value ?? null /* arrayOf */; } /// Internal Acessors for EventTypeInfo - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParametersInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParameterPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParameterPropertiesInternal)Property).EventTypeInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IEventTypeInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParametersInternal.EventTypeInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParameterPropertiesInternal)Property).EventTypeInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParameterPropertiesInternal)Property).EventTypeInfo = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IIdentityInfo Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ITopicUpdateParametersInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IdentityInfo()); set { {_identity = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TrackedResource.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TrackedResource.cs index 2774fefb5f61..ab3d7541f094 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/TrackedResource.cs @@ -30,13 +30,13 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/VerifiedPartner.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/VerifiedPartner.cs index da80701d777b..97f4cbee8bbd 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/VerifiedPartner.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/VerifiedPartner.cs @@ -23,19 +23,19 @@ public partial class VerifiedPartner : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Type = value ?? null; } /// Internal Acessors for PartnerDestinationDetail - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDetails Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.PartnerDestinationDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerDestinationDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerDestinationDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDetails Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.PartnerDestinationDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerDestinationDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerDestinationDetail = value ?? null /* model class */; } /// Internal Acessors for PartnerTopicDetail - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDetails Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.PartnerTopicDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerTopicDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerTopicDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDetails Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.PartnerTopicDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerTopicDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerPropertiesInternal)Property).PartnerTopicDetail = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.VerifiedPartnerProperties()); set { {_property = value;} } } @@ -43,6 +43,24 @@ public partial class VerifiedPartner : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IVerifiedPartnerInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IResourceInternal)__resource).Name; } @@ -121,27 +139,27 @@ public partial class VerifiedPartner : /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Type of the resource. [Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Origin(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.PropertyOrigin.Inherited)] diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebHookEventSubscriptionDestination.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebHookEventSubscriptionDestination.cs index 52d92549f3bf..6e6e7558844e 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebHookEventSubscriptionDestination.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebHookEventSubscriptionDestination.cs @@ -58,7 +58,7 @@ public partial class WebHookEventSubscriptionDestination : public int? MaxEventsPerBatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationPropertiesInternal)Property).MaxEventsPerBatch; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationPropertiesInternal)Property).MaxEventsPerBatch = value ?? default(int); } /// Internal Acessors for EndpointBaseUrl - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationInternal.EndpointBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationPropertiesInternal)Property).EndpointBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationPropertiesInternal)Property).EndpointBaseUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationInternal.EndpointBaseUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationPropertiesInternal)Property).EndpointBaseUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationPropertiesInternal)Property).EndpointBaseUrl = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebHookEventSubscriptionDestinationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.WebHookEventSubscriptionDestinationProperties()); set { {_property = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationInfo.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationInfo.cs index c6d9be4da791..b685fa449958 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationInfo.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationInfo.cs @@ -52,13 +52,13 @@ public partial class WebhookPartnerDestinationInfo : public string EndpointUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).EndpointUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).EndpointUrl = value ?? null; } /// Internal Acessors for EndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)__partnerDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)__partnerDestinationInfo).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)__partnerDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerDestinationInfoInternal)__partnerDestinationInfo).EndpointType = value ; } /// Internal Acessors for ClientAuthentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationInfoInternal.ClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationInfoInternal.ClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication = value ?? null /* model class */; } /// Internal Acessors for ClientAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationInfoInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationInfoInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationInfoInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.WebhookPartnerDestinationProperties()); set { {_property = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationProperties.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationProperties.cs index b76bfabb6263..7b56333360c3 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationProperties.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookPartnerDestinationProperties.cs @@ -42,7 +42,7 @@ public partial class WebhookPartnerDestinationProperties : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal.ClientAuthentication { get => (this._clientAuthentication = this._clientAuthentication ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.PartnerClientAuthentication()); set { {_clientAuthentication = value;} } } /// Internal Acessors for ClientAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)ClientAuthentication).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)ClientAuthentication).ClientAuthenticationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)ClientAuthentication).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthenticationInternal)ClientAuthentication).ClientAuthenticationType = value ?? null; } /// Creates an new instance. public WebhookPartnerDestinationProperties() diff --git a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookUpdatePartnerDestinationInfo.cs b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookUpdatePartnerDestinationInfo.cs index 8c7e5a942b7a..f91054885e86 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookUpdatePartnerDestinationInfo.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/api/Models/WebhookUpdatePartnerDestinationInfo.cs @@ -41,13 +41,13 @@ public partial class WebhookUpdatePartnerDestinationInfo : public string EndpointUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).EndpointUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).EndpointUrl = value ?? null; } /// Internal Acessors for EndpointType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)__partnerUpdateDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)__partnerUpdateDestinationInfo).EndpointType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal.EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)__partnerUpdateDestinationInfo).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerUpdateDestinationInfoInternal)__partnerUpdateDestinationInfo).EndpointType = value ; } /// Internal Acessors for ClientAuthentication - Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookUpdatePartnerDestinationInfoInternal.ClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication = value; } + Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IPartnerClientAuthentication Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookUpdatePartnerDestinationInfoInternal.ClientAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthentication = value ?? null /* model class */; } /// Internal Acessors for ClientAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookUpdatePartnerDestinationInfoInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookUpdatePartnerDestinationInfoInternal.ClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationPropertiesInternal)Property).ClientAuthenticationType = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookPartnerDestinationProperties Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IWebhookUpdatePartnerDestinationInfoInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.WebhookPartnerDestinationProperties()); set { {_property = value;} } } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_Delete.cs index 5bc5956a1ea6..51177d4249f7 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_Delete.cs @@ -582,7 +582,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,7 +606,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentity.cs index b52c3ae320e3..f95a909686f1 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentity.cs @@ -544,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); } @@ -568,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentityNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentityNamespace.cs index 92716cbdd14d..e177a6653067 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentityNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridCaCertificate_DeleteViaIdentityNamespace.cs @@ -559,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); } @@ -583,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_Delete.cs index 4e2703020af2..41763cb81d94 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_Delete.cs @@ -566,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -590,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentity.cs index ece2ebb43e8a..7fcbe28bc9e6 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentity.cs @@ -528,7 +528,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -552,7 +552,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentityPartnerNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentityPartnerNamespace.cs index 2687342abc14..314ffb79c0a1 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentityPartnerNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridChannel_DeleteViaIdentityPartnerNamespace.cs @@ -543,7 +543,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -567,7 +567,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_Delete.cs index 477acd2a0db6..eb90eac41c77 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_Delete.cs @@ -582,7 +582,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,7 +606,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentity.cs index 33eebb0f6145..ba8a4a9e0fbd 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentity.cs @@ -544,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); } @@ -568,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentityNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentityNamespace.cs index 05374f872e0f..814c5de43783 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentityNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClientGroup_DeleteViaIdentityNamespace.cs @@ -557,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -581,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_Delete.cs index 95f81d4258e1..7ac0b92f5298 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_Delete.cs @@ -582,7 +582,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,7 +606,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentity.cs index 446068b05911..926f3e3b0c02 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentity.cs @@ -544,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); } @@ -568,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentityNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentityNamespace.cs index 767cbff66bc8..da947b2581e6 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentityNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridClient_DeleteViaIdentityNamespace.cs @@ -557,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -581,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_Delete.cs index 0e4f865a5829..dbb40a1c8fab 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_Delete.cs @@ -568,7 +568,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -592,7 +592,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentity.cs index 2c1ef924a77f..b5b417603f86 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentity.cs @@ -530,7 +530,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -554,7 +554,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentityDomain.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentityDomain.cs index 06bdeb494eba..98a0728643fa 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentityDomain.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainEventSubscription_DeleteViaIdentityDomain.cs @@ -546,7 +546,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -570,7 +570,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_Delete.cs index a4cf332fa4cb..79ffb6e82233 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_Delete.cs @@ -583,7 +583,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -607,7 +607,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentity.cs index b3368b8c116b..52710aa3b371 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentity.cs @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -559,7 +559,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityDomain.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityDomain.cs index 9b746cf13b10..e1cdfdcb7382 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityDomain.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityDomain.cs @@ -561,7 +561,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -585,7 +585,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityTopic.cs index 9eddf52101be..f016403dd8d8 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopicEventSubscription_DeleteViaIdentityTopic.cs @@ -550,7 +550,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -574,7 +574,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_Delete.cs index 660f203b0a50..9409fc21f0b2 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_Delete.cs @@ -567,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); } @@ -591,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentity.cs index c2448ae37957..e43dabfdacc2 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentity.cs @@ -528,7 +528,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -552,7 +552,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentityDomain.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentityDomain.cs index 13cae7359d9e..7a3d5ac1c823 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentityDomain.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomainTopic_DeleteViaIdentityDomain.cs @@ -541,7 +541,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -565,7 +565,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_Delete.cs index 683540d373c3..5062b422a5f5 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_DeleteViaIdentity.cs index e04a91538184..dda30486cab0 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridDomain_DeleteViaIdentity.cs @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -548,7 +548,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_Delete.cs index 5ed87697f606..e248c8f1e0c5 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_Delete.cs @@ -599,7 +599,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -623,7 +623,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentity.cs index 9167b639c201..2e1746728a54 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentity.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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityNamespace.cs index ca17ef44f0fd..fa4c8d9664c8 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityNamespace.cs @@ -577,7 +577,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 +601,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityTopic.cs index 398fbd175ff2..bb04d96ab3ff 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopicEventSubscription_DeleteViaIdentityTopic.cs @@ -566,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -590,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_Delete.cs index a20d93943075..4539af6e8105 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_Delete.cs @@ -581,7 +581,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -605,7 +605,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentity.cs index 87a8e0e12bc3..190a21548f32 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentity.cs @@ -544,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); } @@ -568,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentityNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentityNamespace.cs index a65d380621cc..077207aadb91 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentityNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespaceTopic_DeleteViaIdentityNamespace.cs @@ -558,7 +558,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 +582,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_Delete.cs index 9a035d3298b5..e0430c02dffe 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_Delete.cs @@ -567,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); } @@ -591,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_DeleteViaIdentity.cs index f20721c5c1d3..b371b99e528a 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridNamespace_DeleteViaIdentity.cs @@ -540,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); } @@ -564,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerConfiguration_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerConfiguration_Delete.cs index d7c1b3fe5666..8a50091330fc 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerConfiguration_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerConfiguration_Delete.cs @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -559,7 +559,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_Delete.cs index d86720020f8a..37889d854582 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_Delete.cs @@ -567,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); } @@ -591,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_DeleteViaIdentity.cs index 1c1728c8f66f..9b6fd361b6b7 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerDestination_DeleteViaIdentity.cs @@ -540,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); } @@ -564,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_Delete.cs index 3b116bdaf747..fc4c78837bff 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_DeleteViaIdentity.cs index 1591f23bcdf8..05780c05374a 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerNamespace_DeleteViaIdentity.cs @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -548,7 +548,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_Delete.cs index de46b13d0416..2323be8fb805 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_DeleteViaIdentity.cs index b89b00cf4ae2..db1b850b2271 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerRegistration_DeleteViaIdentity.cs @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -548,7 +548,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_Delete.cs index 75186d9e4f8e..3ff8882f7f97 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_Delete.cs @@ -569,7 +569,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -593,7 +593,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentity.cs index bb5a01246f28..9fba7275686d 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentity.cs @@ -531,7 +531,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -555,7 +555,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentityPartnerTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentityPartnerTopic.cs index 4dce6dc9692b..df49ab09d256 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentityPartnerTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopicEventSubscription_DeleteViaIdentityPartnerTopic.cs @@ -547,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -571,7 +571,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_Delete.cs index d8b7d38f3b82..754792e904b4 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_DeleteViaIdentity.cs index e8bd5cd0942e..edef06a15554 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPartnerTopic_DeleteViaIdentity.cs @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -548,7 +548,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_Delete.cs index bbfbabdee700..25aaf4a42d54 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_Delete.cs @@ -582,7 +582,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,7 +606,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentity.cs index 795d92c00a73..a120687de362 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentity.cs @@ -544,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); } @@ -568,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentityNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentityNamespace.cs index 42dff401fc68..5a4433d08a5f 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentityNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridPermissionBinding_DeleteViaIdentityNamespace.cs @@ -560,7 +560,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -584,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_Delete.cs index c0071085f4f4..0beb4423692c 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_Delete.cs @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -557,7 +557,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_DeleteViaIdentity.cs index 4a7711044278..063b6428dc4e 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSubscription_DeleteViaIdentity.cs @@ -520,7 +520,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -544,7 +544,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_Delete.cs index 23d71b28cbd2..f46272dfa1f0 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_Delete.cs @@ -568,7 +568,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -592,7 +592,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentity.cs index c2f765919a04..e85034b320ea 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentity.cs @@ -531,7 +531,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -555,7 +555,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentitySystemTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentitySystemTopic.cs index 45e937dc5d05..6f3c8e97ace1 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentitySystemTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopicEventSubscription_DeleteViaIdentitySystemTopic.cs @@ -546,7 +546,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -570,7 +570,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_Delete.cs index b910952b7260..6d8d36419cf4 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_DeleteViaIdentity.cs index adeb6b19f789..b67aa8175c8a 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridSystemTopic_DeleteViaIdentity.cs @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -548,7 +548,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_Delete.cs index 054bd2b7e188..3a1aa8053990 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_Delete.cs @@ -568,7 +568,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -592,7 +592,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentity.cs index 08cd0e61b9c7..038011355871 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentity.cs @@ -530,7 +530,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -554,7 +554,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentityTopic.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentityTopic.cs index 1d561c1bee45..d796d10588f3 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentityTopic.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicEventSubscription_DeleteViaIdentityTopic.cs @@ -546,7 +546,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -570,7 +570,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_Delete.cs index 1123eaf5aba5..cc613e7f78dc 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_Delete.cs @@ -582,7 +582,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,7 +606,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentity.cs index b0cd8772db89..e85b31ea7eec 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentity.cs @@ -544,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); } @@ -568,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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentityNamespace.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentityNamespace.cs index 603e9e8f80cc..0ce55d60457e 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentityNamespace.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopicSpace_DeleteViaIdentityNamespace.cs @@ -557,7 +557,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -581,7 +581,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_Delete.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_Delete.cs index 7300d9bfa3a2..e0ed25bc1df2 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_Delete.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_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/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_DeleteViaIdentity.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_DeleteViaIdentity.cs index 1f0c92b20918..ed30d7754ce4 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_DeleteViaIdentity.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/RemoveAzEventGridTopic_DeleteViaIdentity.cs @@ -524,7 +524,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -548,7 +548,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/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateExpanded.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateExpanded.cs index fc37f9f4701a..e871ce8bac10 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateExpanded.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateExpanded.cs @@ -614,7 +614,7 @@ public UpdateAzEventGridPartnerNamespace_UpdateExpanded() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaIdentityExpanded.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaIdentityExpanded.cs index 896b97645770..fb638cd96229 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaIdentityExpanded.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaIdentityExpanded.cs @@ -589,7 +589,7 @@ public UpdateAzEventGridPartnerNamespace_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonFilePath.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonFilePath.cs index 4bf1f82a59ec..c7ff658212c8 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonFilePath.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonFilePath.cs @@ -558,7 +558,7 @@ public UpdateAzEventGridPartnerNamespace_UpdateViaJsonFilePath() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonString.cs b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonString.cs index 12c2a4ae4dce..3719d8bc1515 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonString.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/cmdlets/UpdateAzEventGridPartnerNamespace_UpdateViaJsonString.cs @@ -556,7 +556,7 @@ public UpdateAzEventGridPartnerNamespace_UpdateViaJsonString() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index a264a4df09ff..3c424d606139 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/EventGrid/EventGrid.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/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 6eb286064509..37691894988a 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/EventGrid/EventGrid.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/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index f5d7d0a4c92a..625a3241bc95 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/EventGrid/EventGrid.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/EventGrid/EventGrid.Autorest/generated/runtime/Context.cs b/generated/EventGrid/EventGrid.Autorest/generated/runtime/Context.cs index aa1c2e677316..c84297ca4ecc 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/runtime/Context.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EventGrid.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/EventGrid/EventGrid.Autorest/generated/runtime/MessageAttribute.cs b/generated/EventGrid/EventGrid.Autorest/generated/runtime/MessageAttribute.cs index 458203e27ddc..070778873358 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/EventGrid/EventGrid.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EventGrid.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.EventGrid" : @""; + //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/EventGrid/EventGrid.Autorest/generated/runtime/Properties/Resources.resx b/generated/EventGrid/EventGrid.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/EventGrid/EventGrid.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/EventGrid/EventGrid.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/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs b/generated/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs index fa54d7338d48..174ed0c005fa 100644 --- a/generated/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs +++ b/generated/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs @@ -23,4 +23,4 @@ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file +[assembly: System.CLSCompliantAttribute(false)] diff --git a/generated/EventHub/EventHub.Autorest/exports/Approve-AzEventHubPrivateEndpointConnection.ps1 b/generated/EventHub/EventHub.Autorest/exports/Approve-AzEventHubPrivateEndpointConnection.ps1 index a261c39aacc2..ee0a805ad46b 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Approve-AzEventHubPrivateEndpointConnection.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Approve-AzEventHubPrivateEndpointConnection.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Deny-AzEventHubPrivateEndpointConnection.ps1 b/generated/EventHub/EventHub.Autorest/exports/Deny-AzEventHubPrivateEndpointConnection.ps1 index 8e436ded721e..dc304a984e43 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Deny-AzEventHubPrivateEndpointConnection.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Deny-AzEventHubPrivateEndpointConnection.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHub.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHub.ps1 index 6ad0d1adec31..d12e35a4b57f 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHub.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHub.ps1 @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubApplicationGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubApplicationGroup.ps1 index 5344e44031ba..03e8c1ab0c15 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubApplicationGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubApplicationGroup.ps1 @@ -174,8 +174,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubAuthorizationRule.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubAuthorizationRule.ps1 index a2dedbde26ac..b868f122a71a 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubAuthorizationRule.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubAuthorizationRule.ps1 @@ -169,8 +169,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubCluster.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubCluster.ps1 index 538e7960a18f..f22e85fb7010 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubCluster.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubCluster.ps1 @@ -144,8 +144,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubClusterNamespace.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubClusterNamespace.ps1 index 462cdc136403..1597f0ee36b4 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubClusterNamespace.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubClusterNamespace.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubClustersAvailableRegion.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubClustersAvailableRegion.ps1 index f8c44a0648d0..79f52cfa1ffb 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubClustersAvailableRegion.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubClustersAvailableRegion.ps1 @@ -101,8 +101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubConsumerGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubConsumerGroup.ps1 index 4384db59712a..4e0f23a212de 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubConsumerGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubConsumerGroup.ps1 @@ -217,8 +217,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubGeoDRConfiguration.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubGeoDRConfiguration.ps1 index cc08ba542c5d..d85fcebc0228 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubGeoDRConfiguration.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubGeoDRConfiguration.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubKey.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubKey.ps1 index 62b4bd984a4e..91b8e97748e1 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubKey.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubKey.ps1 @@ -145,8 +145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubNamespace.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNamespace.ps1 index 14031f28641d..ddbd2f0c1d07 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNamespace.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNamespace.ps1 @@ -149,8 +149,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkRuleSet.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkRuleSet.ps1 index be9a7ee75f8b..ed1e11face3f 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkRuleSet.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkRuleSet.ps1 @@ -145,8 +145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfiguration.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfiguration.ps1 index a80a1cb6c3b7..cccc38ce1410 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfiguration.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfiguration.ps1 @@ -113,8 +113,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation.ps1 index f5cb117c8761..2d71346359b3 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateEndpointConnection.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateEndpointConnection.ps1 index b884c9116e82..add40adb629f 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateEndpointConnection.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateEndpointConnection.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateLink.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateLink.ps1 index d21267d65a1a..bd8d58a60f63 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateLink.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubPrivateLink.ps1 @@ -115,8 +115,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Get-AzEventHubSchemaGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubSchemaGroup.ps1 index 09374af93192..841a5808327c 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubSchemaGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Get-AzEventHubSchemaGroup.ps1 @@ -187,8 +187,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHub.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHub.ps1 index 37cbd312553a..a2f3d9927c45 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHub.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHub.ps1 @@ -338,8 +338,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/New-AzEventHubApplicationGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubApplicationGroup.ps1 index def281fee84d..2003a4bccad4 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubApplicationGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubApplicationGroup.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubAuthorizationRule.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubAuthorizationRule.ps1 index d9a3bc2f59a2..2cf640803cd5 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubAuthorizationRule.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubAuthorizationRule.ps1 @@ -145,8 +145,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/New-AzEventHubCluster.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubCluster.ps1 index bd15536da8bd..952424624bbf 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubCluster.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubCluster.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/EventHub/EventHub.Autorest/exports/New-AzEventHubConsumerGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubConsumerGroup.ps1 index 747c12809f25..1a4aadbddd77 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubConsumerGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubConsumerGroup.ps1 @@ -200,8 +200,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubGeoDRConfiguration.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubGeoDRConfiguration.ps1 index f7eedae11337..674662ba25f3 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubGeoDRConfiguration.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubGeoDRConfiguration.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubIPRuleConfig.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubIPRuleConfig.ps1 index b4ba0bcabfc2..4a9e6c6b190f 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubIPRuleConfig.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubIPRuleConfig.ps1 @@ -57,8 +57,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/New-AzEventHubKey.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubKey.ps1 index 1e0698ca10a6..19f0585693c2 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubKey.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubKey.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubNamespace.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubNamespace.ps1 index 6b38243b9ad5..cfcb6ca5eabe 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubNamespace.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubNamespace.ps1 @@ -262,8 +262,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubSchemaGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubSchemaGroup.ps1 index f6826ca9c431..9967565591de 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubSchemaGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubSchemaGroup.ps1 @@ -186,8 +186,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/New-AzEventHubThrottlingPolicyConfig.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubThrottlingPolicyConfig.ps1 index 39c90e7ecb5f..7becba34c4ac 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubThrottlingPolicyConfig.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubThrottlingPolicyConfig.ps1 @@ -63,8 +63,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/New-AzEventHubVirtualNetworkRuleConfig.ps1 b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubVirtualNetworkRuleConfig.ps1 index f41f1ef7759d..0c3386b56cac 100644 --- a/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubVirtualNetworkRuleConfig.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/New-AzEventHubVirtualNetworkRuleConfig.ps1 @@ -57,8 +57,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/EventHub/EventHub.Autorest/exports/ProxyCmdletDefinitions.ps1 index 1f55897379ad..a2b3af325cda 100644 --- a/generated/EventHub/EventHub.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -174,8 +174,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -360,8 +359,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -531,8 +529,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -745,8 +742,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1035,8 +1031,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1280,8 +1275,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1502,8 +1496,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1720,8 +1713,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1960,8 +1952,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2145,8 +2136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2393,8 +2383,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2581,8 +2570,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2838,8 +2826,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3098,8 +3085,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3362,8 +3348,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3588,8 +3573,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3861,8 +3845,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4108,8 +4091,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4366,8 +4348,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -4776,8 +4757,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5023,8 +5003,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5256,8 +5235,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5531,8 +5509,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -5778,8 +5755,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6015,8 +5991,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6277,8 +6252,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6524,8 +6498,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -6771,8 +6744,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7010,8 +6982,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7248,8 +7219,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7488,8 +7458,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7706,8 +7675,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7923,8 +7891,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8051,8 +8018,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8266,8 +8232,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8847,8 +8812,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8980,8 +8944,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9100,8 +9063,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9334,8 +9296,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9685,8 +9646,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -9950,8 +9910,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10198,8 +10157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10441,8 +10399,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10688,8 +10645,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -10917,8 +10873,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11146,8 +11101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11497,8 +11451,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -11769,8 +11722,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12006,8 +11958,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -12208,8 +12159,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Remove-AzEventHub.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHub.ps1 index 3965beb3ea92..3a25b1175e0a 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHub.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHub.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubApplicationGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubApplicationGroup.ps1 index 512ece0cb7b6..b83f5886aecb 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubApplicationGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubApplicationGroup.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubAuthorizationRule.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubAuthorizationRule.ps1 index 4832558a3fa4..da95453b623b 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubAuthorizationRule.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubAuthorizationRule.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubCluster.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubCluster.ps1 index b015d2444e12..7118140f60ae 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubCluster.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubCluster.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/EventHub/EventHub.Autorest/exports/Remove-AzEventHubConsumerGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubConsumerGroup.ps1 index 80c146d6fd17..8bdd9e783279 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubConsumerGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubConsumerGroup.ps1 @@ -204,8 +204,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Remove-AzEventHubGeoDRConfiguration.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubGeoDRConfiguration.ps1 index c7f7f4547233..d913be4efb3f 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubGeoDRConfiguration.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubGeoDRConfiguration.ps1 @@ -174,8 +174,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubNamespace.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubNamespace.ps1 index e9a35f734273..b32d9313a1bc 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubNamespace.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubNamespace.ps1 @@ -165,8 +165,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Remove-AzEventHubPrivateEndpointConnection.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubPrivateEndpointConnection.ps1 index a434031b3001..902cb7ce4fa7 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubPrivateEndpointConnection.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubPrivateEndpointConnection.ps1 @@ -191,8 +191,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubSchemaGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubSchemaGroup.ps1 index 79f38c94e38f..b724b41947b8 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubSchemaGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Remove-AzEventHubSchemaGroup.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHub.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHub.ps1 index 843495a87474..1fccf9ac6785 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHub.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHub.ps1 @@ -279,8 +279,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubApplicationGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubApplicationGroup.ps1 index c95221838a03..4b62184c12e9 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubApplicationGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubApplicationGroup.ps1 @@ -194,8 +194,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Set-AzEventHubAuthorizationRule.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubAuthorizationRule.ps1 index 48cd07761edc..51cf317a0a92 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubAuthorizationRule.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubAuthorizationRule.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubCluster.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubCluster.ps1 index 3dbc00485d4e..e7b7b9851849 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubCluster.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubCluster.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubConsumerGroup.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubConsumerGroup.ps1 index 357ebbc18128..c47eabee8f56 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubConsumerGroup.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubConsumerGroup.ps1 @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationBreakPair.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationBreakPair.ps1 index c86edd28dbd3..a5185b3b29d2 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationBreakPair.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationBreakPair.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/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationFailOver.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationFailOver.ps1 index effe195d52f6..fdec0a45ea0d 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationFailOver.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubGeoDRConfigurationFailOver.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/EventHub/EventHub.Autorest/exports/Set-AzEventHubNamespace.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubNamespace.ps1 index 7d82896bbf4c..4c4836260841 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubNamespace.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubNamespace.ps1 @@ -280,8 +280,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Set-AzEventHubNetworkRuleSet.ps1 b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubNetworkRuleSet.ps1 index ee7480c1715b..18b84e9bba83 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubNetworkRuleSet.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Set-AzEventHubNetworkRuleSet.ps1 @@ -201,8 +201,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/EventHub/EventHub.Autorest/exports/Start-AzEventHubNamespaceFailOver.ps1 b/generated/EventHub/EventHub.Autorest/exports/Start-AzEventHubNamespaceFailOver.ps1 index d7c8633b2a01..efff212a71c6 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Start-AzEventHubNamespaceFailOver.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Start-AzEventHubNamespaceFailOver.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/EventHub/EventHub.Autorest/exports/Test-AzEventHubName.ps1 b/generated/EventHub/EventHub.Autorest/exports/Test-AzEventHubName.ps1 index 5e5324e8eaef..03d3875ffee8 100644 --- a/generated/EventHub/EventHub.Autorest/exports/Test-AzEventHubName.ps1 +++ b/generated/EventHub/EventHub.Autorest/exports/Test-AzEventHubName.ps1 @@ -131,8 +131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_Break.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_Break.cs index 6c8cba76e1b3..3cc19c77e68a 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_Break.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_Break.cs @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentity.cs index 9d4a05523389..4dc68725fe57 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentity.cs @@ -473,7 +473,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/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.cs index a5b2b29e281a..07348dd17802 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace.cs @@ -484,7 +484,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/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_Fail.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_Fail.cs index e19858e069e5..f9458e3b4f82 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_Fail.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_Fail.cs @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentity.cs index ec3a69fdd0c0..585c17b8bc27 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentity.cs @@ -473,7 +473,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/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs index 845f42de7ceb..eadf6f67898d 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/InvokeAzEventHubFailDisasterRecoveryConfigOver_FailViaIdentityNamespace.cs @@ -484,7 +484,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/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentity.cs index 94a528ac6cb4..216e8f03a729 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentity.cs @@ -538,7 +538,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/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentityNamespace.cs index 777662228e66..2f3681ecfd31 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHubNetworkSecurityPerimeterConfiguration_CreateViaIdentityNamespace.cs @@ -550,7 +550,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_Delete.cs index 8810702f2d49..dd9b859a0c52 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_Delete.cs @@ -512,7 +512,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -536,7 +536,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_DeleteViaIdentity.cs index b169464365a6..12bdda7b951a 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_DeleteViaIdentityNamespace.cs index 8eb635ab8af4..28643ecea455 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubApplicationGroup_DeleteViaIdentityNamespace.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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_Delete.cs index bc12792dbe6d..dc38d9ef66d1 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_Delete.cs @@ -526,7 +526,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -550,7 +550,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentity.cs index 2415d9f53b7c..f9a013b2dfae 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentity.cs @@ -484,7 +484,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -508,7 +508,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityEventhub.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityEventhub.cs index 367db6f4e553..6055f6b087c9 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityEventhub.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityEventhub.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityNamespace.cs index 5b2e2b153441..02cb19163580 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubAuthorizationRule_DeleteViaIdentityNamespace.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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_Delete.cs index 6326753db91f..7026985a2e38 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_Delete.cs @@ -566,7 +566,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -590,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_DeleteViaIdentity.cs index f7de8e652969..d7d3beeb5ec0 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubCluster_DeleteViaIdentity.cs @@ -540,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); } @@ -564,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_Delete.cs index 4cf4b64ddad3..fe48f551dab6 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_Delete.cs @@ -526,7 +526,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -550,7 +550,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentity.cs index 07fbe792f3e0..86857b2c192c 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityEventhub.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityEventhub.cs index 6924cd03f0a8..25a81a8b74e8 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityEventhub.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityEventhub.cs @@ -495,7 +495,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +519,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityNamespace.cs index a57d36a37d7a..33007d36af75 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubConsumerGroup_DeleteViaIdentityNamespace.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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_Delete.cs index 8a2da88fde29..2250e8fb7244 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_Delete.cs @@ -511,7 +511,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -535,7 +535,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_DeleteViaIdentity.cs index fe91fcecc1eb..748bdc78a3d2 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_DeleteViaIdentityNamespace.cs index 28dd11c95c27..6e20948b21c7 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubGeoDRConfiguration_DeleteViaIdentityNamespace.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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_Delete.cs index c288c8f8a87c..752a1fd3161c 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_Delete.cs @@ -512,7 +512,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -536,7 +536,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentity.cs index 4a2e78c2056d..1e765446b45d 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentity.cs @@ -480,7 +480,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentityNamespace.cs index ab88450cf955..5b6a2436e74a 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespaceAuthorizationRule_DeleteViaIdentityNamespace.cs @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -516,7 +516,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_Delete.cs index bba7f57f44e1..f24de39df953 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_Delete.cs @@ -569,7 +569,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -593,7 +593,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_DeleteViaIdentity.cs index 0c7891d89f91..f2d6d5c38d8d 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubNamespace_DeleteViaIdentity.cs @@ -543,7 +543,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -567,7 +567,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_Delete.cs index a2c65b4149aa..4d2c8eb4d3cd 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_Delete.cs @@ -584,7 +584,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -608,7 +608,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentity.cs index b9832cb5b07b..4a1d85b0d9e2 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentity.cs @@ -549,7 +549,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -573,7 +573,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentityNamespace.cs index f1d28ca2f638..fc72579da44e 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubPrivateEndpointConnection_DeleteViaIdentityNamespace.cs @@ -563,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); } @@ -587,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_Delete.cs index 72091341b135..c2f0195e1fc0 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_Delete.cs @@ -512,7 +512,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -536,7 +536,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_DeleteViaIdentity.cs index 17a732734459..9850756a3c64 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_DeleteViaIdentityNamespace.cs index 58094bf3a214..d1a34755fb98 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHubSchemaGroup_DeleteViaIdentityNamespace.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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_Delete.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_Delete.cs index 6f0f068ab3e8..9894413ef3c7 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_Delete.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_Delete.cs @@ -512,7 +512,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -536,7 +536,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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_DeleteViaIdentity.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_DeleteViaIdentity.cs index 3cf8b45f4908..1f17a4e4df19 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_DeleteViaIdentity.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_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/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_DeleteViaIdentityNamespace.cs b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_DeleteViaIdentityNamespace.cs index 354fb65038bc..f36cc5bc631b 100644 --- a/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_DeleteViaIdentityNamespace.cs +++ b/generated/EventHub/EventHub.Autorest/generated/cmdlets/RemoveAzEventHub_DeleteViaIdentityNamespace.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/EventHub/EventHub.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/EventHub/EventHub.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 11507019ceb8..c61d8d86518b 100644 --- a/generated/EventHub/EventHub.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/EventHub/EventHub.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/EventHub/EventHub.Autorest/generated/runtime/Context.cs b/generated/EventHub/EventHub.Autorest/generated/runtime/Context.cs index 5e796e931ea4..ee6b010db25a 100644 --- a/generated/EventHub/EventHub.Autorest/generated/runtime/Context.cs +++ b/generated/EventHub/EventHub.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EventHub.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/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacity.ps1 b/generated/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacity.ps1 index 4dd613ac17f1..1df5ca5e9dbc 100644 --- a/generated/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacity.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacity.ps1 @@ -136,6 +136,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -160,8 +168,6 @@ begin { List1 = 'Az.Fabric.private\Get-AzFabricCapacity_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.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -175,6 +181,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacitySku.ps1 b/generated/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacitySku.ps1 index 8f9a09c9fca3..15b98a35dbba 100644 --- a/generated/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacitySku.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/Get-AzFabricCapacitySku.ps1 @@ -113,6 +113,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -135,8 +143,6 @@ begin { List1 = 'Az.Fabric.private\Get-AzFabricCapacitySku_List1'; } if (('List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -150,6 +156,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fabric/Fabric.Autorest/exports/New-AzFabricCapacity.ps1 b/generated/Fabric/Fabric.Autorest/exports/New-AzFabricCapacity.ps1 index 9877c9c65c80..3b186d98b457 100644 --- a/generated/Fabric/Fabric.Autorest/exports/New-AzFabricCapacity.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/New-AzFabricCapacity.ps1 @@ -166,6 +166,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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 { CreateViaJsonString = 'Az.Fabric.private\New-AzFabricCapacity_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.Fabric.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/Fabric/Fabric.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Fabric/Fabric.Autorest/exports/ProxyCmdletDefinitions.ps1 index 91a3d47060ee..38b0af4d311b 100644 --- a/generated/Fabric/Fabric.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -113,6 +113,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -135,8 +143,6 @@ begin { List1 = 'Az.Fabric.private\Get-AzFabricCapacitySku_List1'; } if (('List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -150,6 +156,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -315,6 +324,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -339,8 +356,6 @@ begin { List1 = 'Az.Fabric.private\Get-AzFabricCapacity_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.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -354,6 +369,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -549,6 +567,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -572,8 +598,6 @@ begin { CreateViaJsonString = 'Az.Fabric.private\New-AzFabricCapacity_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.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -587,6 +611,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -763,6 +790,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -785,8 +820,6 @@ begin { DeleteViaIdentity = 'Az.Fabric.private\Remove-AzFabricCapacity_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -800,6 +833,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -976,6 +1012,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -998,8 +1042,6 @@ begin { ResumeViaIdentity = 'Az.Fabric.private\Resume-AzFabricCapacity_ResumeViaIdentity'; } if (('Resume') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1013,6 +1055,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1189,6 +1234,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1211,8 +1264,6 @@ begin { SuspendViaIdentity = 'Az.Fabric.private\Suspend-AzFabricCapacity_SuspendViaIdentity'; } if (('Suspend') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1226,6 +1277,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1422,6 +1476,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1448,8 +1510,6 @@ begin { CheckViaJsonString = 'Az.Fabric.private\Test-AzFabricCapacityNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1463,6 +1523,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1674,6 +1737,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1698,8 +1769,6 @@ begin { UpdateViaJsonString = 'Az.Fabric.private\Update-AzFabricCapacity_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.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1713,6 +1782,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/Fabric/Fabric.Autorest/exports/Remove-AzFabricCapacity.ps1 b/generated/Fabric/Fabric.Autorest/exports/Remove-AzFabricCapacity.ps1 index cf229f9fbe32..943171dbc80e 100644 --- a/generated/Fabric/Fabric.Autorest/exports/Remove-AzFabricCapacity.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/Remove-AzFabricCapacity.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -169,8 +177,6 @@ begin { DeleteViaIdentity = 'Az.Fabric.private\Remove-AzFabricCapacity_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -184,6 +190,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fabric/Fabric.Autorest/exports/Resume-AzFabricCapacity.ps1 b/generated/Fabric/Fabric.Autorest/exports/Resume-AzFabricCapacity.ps1 index 4c515d3b2fb4..6462be5f88c5 100644 --- a/generated/Fabric/Fabric.Autorest/exports/Resume-AzFabricCapacity.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/Resume-AzFabricCapacity.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -169,8 +177,6 @@ begin { ResumeViaIdentity = 'Az.Fabric.private\Resume-AzFabricCapacity_ResumeViaIdentity'; } if (('Resume') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -184,6 +190,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fabric/Fabric.Autorest/exports/Suspend-AzFabricCapacity.ps1 b/generated/Fabric/Fabric.Autorest/exports/Suspend-AzFabricCapacity.ps1 index ab489c32a4b7..620e2ab58dfc 100644 --- a/generated/Fabric/Fabric.Autorest/exports/Suspend-AzFabricCapacity.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/Suspend-AzFabricCapacity.ps1 @@ -147,6 +147,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -169,8 +177,6 @@ begin { SuspendViaIdentity = 'Az.Fabric.private\Suspend-AzFabricCapacity_SuspendViaIdentity'; } if (('Suspend') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -184,6 +190,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fabric/Fabric.Autorest/exports/Test-AzFabricCapacityNameAvailability.ps1 b/generated/Fabric/Fabric.Autorest/exports/Test-AzFabricCapacityNameAvailability.ps1 index 6d0bc9a275a8..51495e6d13ea 100644 --- a/generated/Fabric/Fabric.Autorest/exports/Test-AzFabricCapacityNameAvailability.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/Test-AzFabricCapacityNameAvailability.ps1 @@ -167,6 +167,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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 { CheckViaJsonString = 'Az.Fabric.private\Test-AzFabricCapacityNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.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/Fabric/Fabric.Autorest/exports/Update-AzFabricCapacity.ps1 b/generated/Fabric/Fabric.Autorest/exports/Update-AzFabricCapacity.ps1 index 134c99db4872..27d2d3451960 100644 --- a/generated/Fabric/Fabric.Autorest/exports/Update-AzFabricCapacity.ps1 +++ b/generated/Fabric/Fabric.Autorest/exports/Update-AzFabricCapacity.ps1 @@ -182,6 +182,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -206,8 +214,6 @@ begin { UpdateViaJsonString = 'Az.Fabric.private\Update-AzFabricCapacity_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.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -221,6 +227,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Fabric.cs b/generated/Fabric/Fabric.Autorest/generated/api/Fabric.cs index 2c94bf8ab663..1806383c15c0 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Fabric.cs +++ b/generated/Fabric/Fabric.Autorest/generated/api/Fabric.cs @@ -446,7 +446,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -496,7 +496,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). @@ -555,7 +555,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// /// Resource create parameters. /// an instance that will receive events. @@ -612,7 +612,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -661,7 +661,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -708,7 +708,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -773,13 +773,13 @@ public partial class Fabric 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.Fabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.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"); @@ -927,13 +927,13 @@ public partial class Fabric 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.Fabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.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"); @@ -1200,13 +1200,13 @@ public partial class Fabric 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.Fabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.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"); @@ -3047,13 +3047,13 @@ public partial class Fabric 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.Fabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.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"); @@ -3317,13 +3317,13 @@ public partial class Fabric 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.Fabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.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"); @@ -3471,7 +3471,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -3521,7 +3521,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). @@ -3580,7 +3580,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// /// The resource properties to be updated. /// an instance that will receive events. @@ -3637,7 +3637,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -3686,7 +3686,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -3733,7 +3733,7 @@ public partial class Fabric } } - /// Update a FabricCapacity + /// update a FabricCapacity /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum @@ -3796,13 +3796,13 @@ public partial class Fabric 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.Fabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.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"); @@ -3951,13 +3951,13 @@ public partial class Fabric 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.Fabric.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Fabric/Fabric.Autorest/generated/api/Models/ErrorResponse.cs index 9c6656065b2f..bdb2fdfce9ba 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Fabric/Fabric.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inlined)] diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacity.cs b/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacity.cs index 33d6c309c2c0..65856b33d108 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacity.cs +++ b/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacity.cs @@ -30,37 +30,55 @@ public partial class FabricCapacity : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for Administration - Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ICapacityAdministration Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.Administration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).Administration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).Administration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ICapacityAdministration Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.Administration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).Administration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).Administration = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityProperties Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.FabricCapacityProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSku Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.RpSku()); set { {_sku = value;} } } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier = value ; } /// Internal Acessors for State - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityPropertiesInternal)Property).State = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] @@ -108,31 +126,31 @@ public partial class FabricCapacity : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacityUpdate.cs b/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacityUpdate.cs index dc6b6a7342c6..70ac27b7a031 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacityUpdate.cs +++ b/generated/Fabric/Fabric.Autorest/generated/api/Models/FabricCapacityUpdate.cs @@ -18,7 +18,7 @@ public partial class FabricCapacityUpdate : public System.Collections.Generic.List AdministrationMember { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdatePropertiesInternal)Property).AdministrationMember; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdatePropertiesInternal)Property).AdministrationMember = value ?? null /* arrayOf */; } /// Internal Acessors for Administration - Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ICapacityAdministration Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateInternal.Administration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdatePropertiesInternal)Property).Administration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdatePropertiesInternal)Property).Administration = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ICapacityAdministration Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateInternal.Administration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdatePropertiesInternal)Property).Administration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdatePropertiesInternal)Property).Administration = value ?? null /* model class */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.FabricCapacityUpdateProperties()); set { {_property = value;} } } @@ -27,7 +27,7 @@ public partial class FabricCapacityUpdate : Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSku Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.RpSku()); set { {_sku = value;} } } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdateProperties _property; diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Models/Operation.cs b/generated/Fabric/Fabric.Autorest/generated/api/Models/Operation.cs index 4b96b64365fa..1f3fee102a08 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Models/Operation.cs +++ b/generated/Fabric/Fabric.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Models/Resource.cs b/generated/Fabric/Fabric.Autorest/generated/api/Models/Resource.cs index 1311f039db1c..212479826c3b 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Models/Resource.cs +++ b/generated/Fabric/Fabric.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Fabric.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.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Models/RpSkuDetailsForExistingResource.cs b/generated/Fabric/Fabric.Autorest/generated/api/Models/RpSkuDetailsForExistingResource.cs index 5ca848baa507..e20e27c74785 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Models/RpSkuDetailsForExistingResource.cs +++ b/generated/Fabric/Fabric.Autorest/generated/api/Models/RpSkuDetailsForExistingResource.cs @@ -17,7 +17,7 @@ public partial class RpSkuDetailsForExistingResource : Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSku Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuDetailsForExistingResourceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.RpSku()); set { {_sku = value;} } } /// Internal Acessors for SkuTier - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuDetailsForExistingResourceInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuDetailsForExistingResourceInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IRpSkuInternal)Sku).Tier = value ; } /// Backing field for property. private string _resourceType; diff --git a/generated/Fabric/Fabric.Autorest/generated/api/Models/TrackedResource.cs b/generated/Fabric/Fabric.Autorest/generated/api/Models/TrackedResource.cs index f4ee1535004f..94aecebbaa0e 100644 --- a/generated/Fabric/Fabric.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Fabric/Fabric.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.Fabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fabric.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateExpanded.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateExpanded.cs index a0fbbde1f1f9..dc289baf7114 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateExpanded.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Cmdlets; using System; - /// Create a FabricCapacity + /// create a FabricCapacity /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFabricCapacity_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"Create a FabricCapacity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"create a FabricCapacity")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}", ApiVersion = "2023-11-01")] public partial class NewAzFabricCapacity_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzFabricCapacity_CreateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// Fabric Capacity resource private Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.FabricCapacity(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// An array of administrator user identities. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "An array of administrator user identities.")] @@ -297,11 +288,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.NewAzFabricCapacity_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.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -617,24 +603,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonFilePath.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonFilePath.cs index c28f2e04142e..cd03834c8e90 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonFilePath.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Cmdlets; using System; - /// Create a FabricCapacity + /// create a FabricCapacity /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFabricCapacity_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"Create a FabricCapacity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"create a FabricCapacity")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}", ApiVersion = "2023-11-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzFabricCapacity_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.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.NewAzFabricCapacity_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.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonString.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonString.cs index ed5b9fc2c884..5b9efa4f3dfd 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonString.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/NewAzFabricCapacity_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Cmdlets; using System; - /// Create a FabricCapacity + /// create a FabricCapacity /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFabricCapacity_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"Create a FabricCapacity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"create a FabricCapacity")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}", ApiVersion = "2023-11-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzFabricCapacity_CreateViaJsonString : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.NewAzFabricCapacity_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.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_Delete.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_Delete.cs index e3601ee73b79..1556af447ad6 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_Delete.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFabricCapacity_Delete : global::System.Management.A /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.RemoveAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -578,7 +564,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -602,7 +588,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_DeleteViaIdentity.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_DeleteViaIdentity.cs index db702bfa8d56..555ad1faa4e6 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_DeleteViaIdentity.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/RemoveAzFabricCapacity_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFabricCapacity_DeleteViaIdentity : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.RemoveAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.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/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_Resume.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_Resume.cs index c61430fdcbfd..959caf834088 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_Resume.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_Resume.cs @@ -40,15 +40,6 @@ public partial class ResumeAzFabricCapacity_Resume : global::System.Management.A /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -252,11 +243,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.ResumeAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -568,7 +554,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/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_ResumeViaIdentity.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_ResumeViaIdentity.cs index 2fffb4d3afd7..ac94be5af206 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_ResumeViaIdentity.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/ResumeAzFabricCapacity_ResumeViaIdentity.cs @@ -40,15 +40,6 @@ public partial class ResumeAzFabricCapacity_ResumeViaIdentity : 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.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -208,11 +199,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.ResumeAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.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/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_Suspend.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_Suspend.cs index b9fd2ea0e405..77e6a491c28a 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_Suspend.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_Suspend.cs @@ -40,15 +40,6 @@ public partial class SuspendAzFabricCapacity_Suspend : 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.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -252,11 +243,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.SuspendAzFabricCapacity /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -568,7 +554,7 @@ public SuspendAzFabricCapacity_Suspend() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_SuspendViaIdentity.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_SuspendViaIdentity.cs index 066ea0ecdc65..319eb924cff8 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_SuspendViaIdentity.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/SuspendAzFabricCapacity_SuspendViaIdentity.cs @@ -40,15 +40,6 @@ public partial class SuspendAzFabricCapacity_SuspendViaIdentity : 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.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -208,11 +199,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.SuspendAzFabricCapacity /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -544,7 +530,7 @@ public SuspendAzFabricCapacity_SuspendViaIdentity() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateExpanded.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateExpanded.cs index 438004053a3f..40021c82339b 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateExpanded.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Cmdlets; using System; - /// Update a FabricCapacity + /// update a FabricCapacity /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFabricCapacity_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"Update a FabricCapacity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"update a FabricCapacity")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}", ApiVersion = "2023-11-01")] public partial class UpdateAzFabricCapacity_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class UpdateAzFabricCapacity_UpdateExpanded : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for update operations of the FabricCapacity. private Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.FabricCapacityUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// An array of administrator user identities. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An array of administrator user identities.")] @@ -286,11 +277,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.UpdateAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,24 +592,7 @@ public UpdateAzFabricCapacity_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaIdentityExpanded.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaIdentityExpanded.cs index 64f57408b74e..dd2fc5e7b8e6 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaIdentityExpanded.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Cmdlets; using System; - /// Update a FabricCapacity + /// update a FabricCapacity /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFabricCapacity_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"Update a FabricCapacity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"update a FabricCapacity")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}", ApiVersion = "2023-11-01")] public partial class UpdateAzFabricCapacity_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class UpdateAzFabricCapacity_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; - /// The type used for update operations of the FabricCapacity. private Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacityUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.FabricCapacityUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// An array of administrator user identities. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An array of administrator user identities.")] @@ -242,11 +233,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.UpdateAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzFabricCapacity_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonFilePath.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonFilePath.cs index f0d08ca428d8..d5e54ee97ef2 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonFilePath.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Cmdlets; using System; - /// Update a FabricCapacity + /// update a FabricCapacity /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFabricCapacity_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"Update a FabricCapacity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"update a FabricCapacity")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}", ApiVersion = "2023-11-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class UpdateAzFabricCapacity_UpdateViaJsonFilePath : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -264,11 +255,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.UpdateAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -584,24 +570,7 @@ public UpdateAzFabricCapacity_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonString.cs b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonString.cs index 180088f6ed81..7b212e674405 100644 --- a/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonString.cs +++ b/generated/Fabric/Fabric.Autorest/generated/cmdlets/UpdateAzFabricCapacity_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.Cmdlets; using System; - /// Update a FabricCapacity + /// update a FabricCapacity /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFabricCapacity_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"Update a FabricCapacity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Description(@"update a FabricCapacity")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric/capacities/{capacityName}", ApiVersion = "2023-11-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class UpdateAzFabricCapacity_UpdateViaJsonString : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fabric.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fabric.Cmdlets.UpdateAzFabricCapacity_ /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fabric.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ public UpdateAzFabricCapacity_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fabric.Models.IFabricCapacity var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index ebdbe2596dc7..d3d8efcffc25 100644 --- a/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Fabric/Fabric.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/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 4ad05d291568..624387e34753 100644 --- a/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Fabric.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.Fabric.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.Fabric.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/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 87e84d33798a..696d697d47f7 100644 --- a/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Fabric/Fabric.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/Fabric/Fabric.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 636178be2f57..a0a768ee9e51 100644 --- a/generated/Fabric/Fabric.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Fabric/Fabric.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/Fabric/Fabric.Autorest/generated/runtime/Context.cs b/generated/Fabric/Fabric.Autorest/generated/runtime/Context.cs index cf95ed0db3a7..31d4cbc55b42 100644 --- a/generated/Fabric/Fabric.Autorest/generated/runtime/Context.cs +++ b/generated/Fabric/Fabric.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.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/Fabric/Fabric.Autorest/generated/runtime/MessageAttribute.cs b/generated/Fabric/Fabric.Autorest/generated/runtime/MessageAttribute.cs index d81693fb9d72..b1b42d28da48 100644 --- a/generated/Fabric/Fabric.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Fabric/Fabric.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fabric.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.Fabric" : @""; + //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/Fabric/Fabric.Autorest/generated/runtime/Properties/Resources.resx b/generated/Fabric/Fabric.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Fabric/Fabric.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Fabric/Fabric.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/Fabric/Fabric.Autorest/internal/Get-AzFabricOperation.ps1 b/generated/Fabric/Fabric.Autorest/internal/Get-AzFabricOperation.ps1 index 89819970d4d2..6e8b93fcfe1a 100644 --- a/generated/Fabric/Fabric.Autorest/internal/Get-AzFabricOperation.ps1 +++ b/generated/Fabric/Fabric.Autorest/internal/Get-AzFabricOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Fabric.private\Get-AzFabricOperation_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/Fabric/Fabric.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Fabric/Fabric.Autorest/internal/ProxyCmdletDefinitions.ps1 index 89819970d4d2..6e8b93fcfe1a 100644 --- a/generated/Fabric/Fabric.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Fabric/Fabric.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.Fabric.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Fabric.private\Get-AzFabricOperation_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/DeviceUpdate/DeviceUpdate.Autorest/resources/README.md b/generated/Fabric/Fabric.Autorest/resources/README.md similarity index 100% rename from src/DeviceUpdate/DeviceUpdate.Autorest/resources/README.md rename to generated/Fabric/Fabric.Autorest/resources/README.md diff --git a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisBinaryHardening.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisBinaryHardening.ps1 index c924e20cb2e7..e5c3b66b918c 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisBinaryHardening.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisBinaryHardening.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoCertificate.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoCertificate.ps1 index abf3f822adc6..fce5639ec46f 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoCertificate.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoCertificate.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoKey.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoKey.ps1 index b65994b3a6e6..18b1b313d03c 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoKey.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCryptoKey.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCve.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCve.ps1 index c2c51c8ca43d..4fbcd239f5ac 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCve.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisCve.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisFirmware.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisFirmware.ps1 index 80b94fcdd809..18ed24ea5c2f 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisFirmware.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisFirmware.ps1 @@ -163,8 +163,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisPasswordHash.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisPasswordHash.ps1 index 573bbacf60af..f65097e700a6 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisPasswordHash.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisPasswordHash.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSbomComponent.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSbomComponent.ps1 index 30640013287c..bf82d3374bdc 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSbomComponent.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSbomComponent.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSummary.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSummary.ps1 index 0db965c31a07..6bde3304c73f 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSummary.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisSummary.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisUsageMetric.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisUsageMetric.ps1 index c12c78bc3038..a1af86fdef90 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisUsageMetric.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisUsageMetric.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisWorkspace.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisWorkspace.ps1 index 92da0af51c2e..962f0a4ffb4f 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisWorkspace.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Get-AzFirmwareAnalysisWorkspace.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisFirmware.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisFirmware.ps1 index 9bcb3b0df603..5f38ca89ced8 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisFirmware.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisFirmware.ps1 @@ -182,8 +182,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspace.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspace.ps1 index 297932357d84..d4abcd1e8ae3 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspace.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspace.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspaceUploadUrl.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspaceUploadUrl.ps1 index 53291a2d9147..5c587f9c6854 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspaceUploadUrl.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/New-AzFirmwareAnalysisWorkspaceUploadUrl.ps1 @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/ProxyCmdletDefinitions.ps1 index 538c960d8604..fcf2d331f103 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -120,8 +120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -310,8 +309,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -500,8 +498,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -690,8 +687,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -923,8 +919,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1116,8 +1111,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1306,8 +1300,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1560,8 +1553,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1793,8 +1785,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2007,8 +1998,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2262,8 +2252,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2511,8 +2500,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2750,8 +2738,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2984,8 +2971,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3210,8 +3196,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3493,8 +3478,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3743,8 +3727,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisFirmware.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisFirmware.ps1 index fe446d1aeed0..da60340970c8 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisFirmware.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisFirmware.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisWorkspace.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisWorkspace.ps1 index dfaaa776deff..df59f3df57ae 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisWorkspace.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Remove-AzFirmwareAnalysisWorkspace.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/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisFirmware.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisFirmware.ps1 index 09cbcf9278cd..87b55e1c4ccb 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisFirmware.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisFirmware.ps1 @@ -212,8 +212,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisWorkspace.ps1 b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisWorkspace.ps1 index 629cc40dde43..195e70f6add2 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisWorkspace.ps1 +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/exports/Update-AzFirmwareAnalysisWorkspace.ps1 @@ -178,8 +178,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FirmwareAnalysis/FirmwareAnalysis.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 239480e85511..12cdeb26b71d 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.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/FirmwareAnalysis/FirmwareAnalysis.Autorest/generated/runtime/Context.cs b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/generated/runtime/Context.cs index 00b36d5e1c8d..5f42609208da 100644 --- a/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/generated/runtime/Context.cs +++ b/generated/FirmwareAnalysis/FirmwareAnalysis.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.FirmwareAnalysis.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/Fleet/Fleet.Autorest/Properties/AssemblyInfo.cs b/generated/Fleet/Fleet.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index 37e0c6f4d5a4..000000000000 --- a/generated/Fleet/Fleet.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 - Fleet")] -[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("fc1a6210-351b-4bec-ae6b-c5b848b5620c")] -[assembly: AssemblyVersion("0.2.2")] -[assembly: AssemblyFileVersion("0.2.2")] diff --git a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleet.ps1 b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleet.ps1 index 204e20a38d41..0f21c38eaf03 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleet.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleet.ps1 @@ -135,6 +135,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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.Fleet.private\Get-AzFleet_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.Fleet.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/Fleet/Fleet.Autorest/exports/Get-AzFleetCredentials.ps1 b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetCredentials.ps1 index ae9a19e0fe94..e9d13da61645 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetCredentials.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetCredentials.ps1 @@ -108,6 +108,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -129,8 +137,6 @@ begin { List = 'Az.Fleet.private\Get-AzFleetCredentials_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -144,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetMember.ps1 b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetMember.ps1 index 4fb71e2c7321..88d270db5deb 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetMember.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetMember.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List = 'Az.Fleet.private\Get-AzFleetMember_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateRun.ps1 b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateRun.ps1 index bf313b92fefc..053e1d7095f0 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateRun.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateRun.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -181,8 +189,6 @@ begin { List = 'Az.Fleet.private\Get-AzFleetUpdateRun_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -196,6 +202,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateStrategy.ps1 b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateStrategy.ps1 index 98be64de50d5..234cf095fa86 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateStrategy.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Get-AzFleetUpdateStrategy.ps1 @@ -156,6 +156,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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.Fleet.private\Get-AzFleetUpdateStrategy_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.Fleet.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/Fleet/Fleet.Autorest/exports/New-AzFleet.ps1 b/generated/Fleet/Fleet.Autorest/exports/New-AzFleet.ps1 index a210dda05ae0..e689552b314b 100644 --- a/generated/Fleet/Fleet.Autorest/exports/New-AzFleet.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/New-AzFleet.ps1 @@ -107,7 +107,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category('Body')] [System.Management.Automation.SwitchParameter] - # Decides if enable a system assigned identity for the resource. + # Determines whether to enable a system-assigned identity for the resource. ${EnableSystemAssignedIdentity}, [Parameter(ParameterSetName='CreateExpanded')] @@ -208,6 +208,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -232,8 +240,6 @@ begin { CreateViaJsonString = 'Az.Fleet.private\New-AzFleet_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -247,6 +253,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/New-AzFleetMember.ps1 b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetMember.ps1 index 206a9ca30666..82d12a659193 100644 --- a/generated/Fleet/Fleet.Autorest/exports/New-AzFleetMember.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetMember.ps1 @@ -214,6 +214,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -239,8 +247,6 @@ begin { CreateViaJsonString = 'Az.Fleet.private\New-AzFleetMember_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -254,6 +260,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateGroupObject.ps1 b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateGroupObject.ps1 index 5cebfe4e266e..007493480061 100644 --- a/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateGroupObject.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateGroupObject.ps1 @@ -48,6 +48,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.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() } @@ -75,6 +78,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateRun.ps1 b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateRun.ps1 index d37b00896002..6b44b1ce45fe 100644 --- a/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateRun.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateRun.ps1 @@ -253,6 +253,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -278,8 +286,6 @@ begin { CreateViaJsonString = 'Az.Fleet.private\New-AzFleetUpdateRun_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -293,6 +299,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStageObject.ps1 b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStageObject.ps1 index 861aa7fa3214..19a92005e90e 100644 --- a/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStageObject.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStageObject.ps1 @@ -74,6 +74,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.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() } @@ -101,6 +104,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStrategy.ps1 b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStrategy.ps1 index d12fff30fa4d..88f6f0ab50f3 100644 --- a/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStrategy.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/New-AzFleetUpdateStrategy.ps1 @@ -216,6 +216,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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.Fleet.private\New-AzFleetUpdateStrategy_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -256,6 +262,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/Fleet/Fleet.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Fleet/Fleet.Autorest/exports/ProxyCmdletDefinitions.ps1 index c62d74d6fcb5..54a623cfe877 100644 --- a/generated/Fleet/Fleet.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -108,6 +108,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -129,8 +137,6 @@ begin { List = 'Az.Fleet.private\Get-AzFleetCredentials_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -144,6 +150,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -330,6 +339,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -354,8 +371,6 @@ begin { List = 'Az.Fleet.private\Get-AzFleetMember_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -369,6 +384,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -555,6 +573,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -579,8 +605,6 @@ begin { List = 'Az.Fleet.private\Get-AzFleetUpdateRun_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -594,6 +618,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -779,6 +806,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -803,8 +838,6 @@ begin { List = 'Az.Fleet.private\Get-AzFleetUpdateStrategy_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -818,6 +851,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -982,6 +1018,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1006,8 +1050,6 @@ begin { List1 = 'Az.Fleet.private\Get-AzFleet_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1021,6 +1063,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1264,6 +1309,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1289,8 +1342,6 @@ begin { CreateViaJsonString = 'Az.Fleet.private\New-AzFleetMember_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1304,6 +1355,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1586,6 +1640,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1611,8 +1673,6 @@ begin { CreateViaJsonString = 'Az.Fleet.private\New-AzFleetUpdateRun_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1626,6 +1686,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -1871,6 +1934,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -1896,8 +1967,6 @@ begin { CreateViaJsonString = 'Az.Fleet.private\New-AzFleetUpdateStrategy_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -1911,6 +1980,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2047,7 +2119,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category('Body')] [System.Management.Automation.SwitchParameter] - # Decides if enable a system assigned identity for the resource. + # Determines whether to enable a system-assigned identity for the resource. ${EnableSystemAssignedIdentity}, [Parameter(ParameterSetName='CreateExpanded')] @@ -2148,6 +2220,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2172,8 +2252,6 @@ begin { CreateViaJsonString = 'Az.Fleet.private\New-AzFleet_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2187,6 +2265,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2395,6 +2476,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2418,8 +2507,6 @@ begin { DeleteViaIdentityFleet = 'Az.Fleet.private\Remove-AzFleetMember_DeleteViaIdentityFleet'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2433,6 +2520,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2638,6 +2728,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2661,8 +2759,6 @@ begin { DeleteViaIdentityFleet = 'Az.Fleet.private\Remove-AzFleetUpdateRun_DeleteViaIdentityFleet'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2676,6 +2772,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -2883,6 +2982,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -2906,8 +3013,6 @@ begin { DeleteViaIdentityFleet = 'Az.Fleet.private\Remove-AzFleetUpdateStrategy_DeleteViaIdentityFleet'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -2921,6 +3026,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3107,6 +3215,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3129,8 +3245,6 @@ begin { DeleteViaIdentity = 'Az.Fleet.private\Remove-AzFleet_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3144,6 +3258,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3343,6 +3460,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3366,8 +3491,6 @@ begin { StartViaIdentityFleet = 'Az.Fleet.private\Start-AzFleetUpdateRun_StartViaIdentityFleet'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3381,6 +3504,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3580,6 +3706,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3603,8 +3737,6 @@ begin { StopViaIdentityFleet = 'Az.Fleet.private\Stop-AzFleetUpdateRun_StopViaIdentityFleet'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3618,6 +3750,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -3848,6 +3983,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -3873,8 +4016,6 @@ begin { UpdateViaJsonString = 'Az.Fleet.private\Update-AzFleetMember_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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -3888,6 +4029,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4140,6 +4284,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4163,8 +4315,6 @@ begin { UpdateViaIdentityFleetExpanded = 'Az.Fleet.private\Update-AzFleetUpdateRun_UpdateViaIdentityFleetExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4178,6 +4328,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4401,6 +4554,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4424,8 +4585,6 @@ begin { UpdateViaIdentityFleetExpanded = 'Az.Fleet.private\Update-AzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4439,6 +4598,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4558,7 +4720,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Fleet.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()] @@ -4645,6 +4807,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -4667,8 +4837,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Fleet.private\Update-AzFleet_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -4682,6 +4850,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4759,6 +4930,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.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() } @@ -4786,6 +4960,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) @@ -4889,6 +5066,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.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() } @@ -4916,6 +5096,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/Fleet/Fleet.Autorest/exports/Remove-AzFleet.ps1 b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleet.ps1 index 5f91cda1c533..e5d619afdbf3 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleet.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleet.ps1 @@ -157,6 +157,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -179,8 +187,6 @@ begin { DeleteViaIdentity = 'Az.Fleet.private\Remove-AzFleet_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -194,6 +200,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetMember.ps1 b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetMember.ps1 index 6fa74c987c4a..9e5ad83733ef 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetMember.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetMember.ps1 @@ -179,6 +179,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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 { DeleteViaIdentityFleet = 'Az.Fleet.private\Remove-AzFleetMember_DeleteViaIdentityFleet'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.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/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateRun.ps1 b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateRun.ps1 index 0ff8978c12d8..e5087dfdf256 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateRun.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateRun.ps1 @@ -176,6 +176,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -199,8 +207,6 @@ begin { DeleteViaIdentityFleet = 'Az.Fleet.private\Remove-AzFleetUpdateRun_DeleteViaIdentityFleet'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -214,6 +220,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateStrategy.ps1 b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateStrategy.ps1 index 72d81904ba0e..1e3bb0ddda13 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateStrategy.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Remove-AzFleetUpdateStrategy.ps1 @@ -178,6 +178,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -201,8 +209,6 @@ begin { DeleteViaIdentityFleet = 'Az.Fleet.private\Remove-AzFleetUpdateStrategy_DeleteViaIdentityFleet'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -216,6 +222,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -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/Fleet/Fleet.Autorest/exports/Start-AzFleetUpdateRun.ps1 b/generated/Fleet/Fleet.Autorest/exports/Start-AzFleetUpdateRun.ps1 index 866394544404..95942dea42ea 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Start-AzFleetUpdateRun.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Start-AzFleetUpdateRun.ps1 @@ -170,6 +170,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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 { StartViaIdentityFleet = 'Az.Fleet.private\Start-AzFleetUpdateRun_StartViaIdentityFleet'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.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/Fleet/Fleet.Autorest/exports/Stop-AzFleetUpdateRun.ps1 b/generated/Fleet/Fleet.Autorest/exports/Stop-AzFleetUpdateRun.ps1 index 1b82ab956a0b..c9e3224d0ec6 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Stop-AzFleetUpdateRun.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Stop-AzFleetUpdateRun.ps1 @@ -170,6 +170,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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 { StopViaIdentityFleet = 'Az.Fleet.private\Stop-AzFleetUpdateRun_StopViaIdentityFleet'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.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/Fleet/Fleet.Autorest/exports/Update-AzFleet.ps1 b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleet.ps1 index 9433d0e77799..4421bdba3d9c 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Update-AzFleet.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleet.ps1 @@ -90,7 +90,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Fleet.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()] @@ -177,6 +177,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -199,8 +207,6 @@ begin { UpdateViaIdentityExpanded = 'Az.Fleet.private\Update-AzFleet_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -214,6 +220,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetMember.ps1 b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetMember.ps1 index 6fd4ff47c7a1..d25fd5d09cf7 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetMember.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetMember.ps1 @@ -201,6 +201,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-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 { UpdateViaJsonString = 'Az.Fleet.private\Update-AzFleetMember_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.Fleet.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/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateRun.ps1 b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateRun.ps1 index 75433d105a5c..e2d6b5ac2a00 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateRun.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateRun.ps1 @@ -223,6 +223,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -246,8 +254,6 @@ begin { UpdateViaIdentityFleetExpanded = 'Az.Fleet.private\Update-AzFleetUpdateRun_UpdateViaIdentityFleetExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -261,6 +267,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateStrategy.ps1 b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateStrategy.ps1 index f1d5d86661d1..ae2c53cba38e 100644 --- a/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateStrategy.ps1 +++ b/generated/Fleet/Fleet.Autorest/exports/Update-AzFleetUpdateStrategy.ps1 @@ -194,6 +194,14 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + + $context = Get-AzContext + if (-not $context -and -not $testPlayback) { + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." + } + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } @@ -217,8 +225,6 @@ begin { UpdateViaIdentityFleetExpanded = 'Az.Fleet.private\Update-AzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $testPlayback = $false - $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { @@ -232,6 +238,9 @@ begin { [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Fleet.cs b/generated/Fleet/Fleet.Autorest/generated/api/Fleet.cs index fb58c9ca4723..1ad8e5293f92 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Fleet.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Fleet.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet public partial class Fleet { - /// Create a FleetMember + /// create a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -78,7 +78,7 @@ public partial class Fleet } } - /// Create a FleetMember + /// create a FleetMember /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -152,7 +152,7 @@ public partial class Fleet } } - /// Create a FleetMember + /// create a FleetMember /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -224,7 +224,7 @@ public partial class Fleet } } - /// Create a FleetMember + /// create a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -287,7 +287,7 @@ public partial class Fleet } } - /// Create a FleetMember + /// create a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -348,7 +348,7 @@ public partial class Fleet } } - /// Create a FleetMember + /// create a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -425,16 +425,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -447,7 +448,10 @@ public partial class Fleet 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.Fleet.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 @@ -575,16 +579,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -597,7 +602,10 @@ public partial class Fleet 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.Fleet.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 @@ -871,17 +879,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -894,7 +903,10 @@ public partial class Fleet 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.Fleet.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 @@ -1704,7 +1716,7 @@ public partial class Fleet } } - /// Update a FleetMember + /// update a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -1763,7 +1775,7 @@ public partial class Fleet } } - /// Update a FleetMember + /// update a FleetMember /// /// The request should only proceed if an entity matches this string. /// The resource properties to be updated. @@ -1832,7 +1844,7 @@ public partial class Fleet } } - /// Update a FleetMember + /// update a FleetMember /// /// The request should only proceed if an entity matches this string. /// The resource properties to be updated. @@ -1899,7 +1911,7 @@ public partial class Fleet } } - /// Update a FleetMember + /// update a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -1957,7 +1969,7 @@ public partial class Fleet } } - /// Update a FleetMember + /// update a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -2013,7 +2025,7 @@ public partial class Fleet } } - /// Update a FleetMember + /// update a FleetMember /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -2085,17 +2097,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -2108,7 +2121,10 @@ public partial class Fleet 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.Fleet.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 @@ -2236,17 +2252,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -2259,7 +2276,10 @@ public partial class Fleet 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.Fleet.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 @@ -2395,7 +2415,7 @@ public partial class Fleet } } - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -2459,7 +2479,7 @@ public partial class Fleet } } - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -2533,7 +2553,7 @@ public partial class Fleet } } - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -2605,7 +2625,7 @@ public partial class Fleet } } - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -2668,7 +2688,7 @@ public partial class Fleet } } - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -2729,7 +2749,7 @@ public partial class Fleet } } - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -2808,16 +2828,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -2830,7 +2851,10 @@ public partial class Fleet 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.Fleet.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 @@ -2960,16 +2984,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -2982,7 +3007,10 @@ public partial class Fleet 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.Fleet.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 @@ -3256,17 +3284,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -3279,7 +3308,10 @@ public partial class Fleet 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.Fleet.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 @@ -4091,7 +4123,7 @@ public partial class Fleet } } - /// Update a Fleet. + /// update a Fleet. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -4152,7 +4184,7 @@ public partial class Fleet } } - /// Update a Fleet. + /// update a Fleet. /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -4223,7 +4255,7 @@ public partial class Fleet } } - /// Update a Fleet. + /// update a Fleet. /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -4292,7 +4324,7 @@ public partial class Fleet } } - /// Update a Fleet. + /// update a Fleet. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -4352,7 +4384,7 @@ public partial class Fleet } } - /// Update a Fleet. + /// update a Fleet. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -4410,7 +4442,7 @@ public partial class Fleet } } - /// Update a Fleet. + /// update a Fleet. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -4484,16 +4516,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -4506,7 +4539,10 @@ public partial class Fleet 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.Fleet.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 @@ -4634,16 +4670,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -4656,7 +4693,10 @@ public partial class Fleet 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.Fleet.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 @@ -4919,17 +4959,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -4942,7 +4983,10 @@ public partial class Fleet 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.Fleet.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 @@ -6703,17 +6747,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -6726,7 +6771,10 @@ public partial class Fleet 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.Fleet.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 @@ -6854,17 +6902,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -6877,7 +6926,10 @@ public partial class Fleet 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.Fleet.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 @@ -7290,7 +7342,7 @@ public partial class Fleet } } - /// Update a UpdateRun + /// update a UpdateRun /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -7354,7 +7406,7 @@ public partial class Fleet } } - /// Update a UpdateRun + /// update a UpdateRun /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -7428,7 +7480,7 @@ public partial class Fleet } } - /// Update a UpdateRun + /// update a UpdateRun /// /// The request should only proceed if an entity matches this string. /// The request should only proceed if no entity matches this string. @@ -7500,7 +7552,7 @@ public partial class Fleet } } - /// Update a UpdateRun + /// update a UpdateRun /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -7563,7 +7615,7 @@ public partial class Fleet } } - /// Update a UpdateRun + /// update a UpdateRun /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -7624,7 +7676,7 @@ public partial class Fleet } } - /// Update a UpdateRun + /// update a UpdateRun /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the Fleet resource. @@ -7701,16 +7753,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -7723,7 +7776,10 @@ public partial class Fleet 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.Fleet.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 @@ -7851,16 +7907,17 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -7873,7 +7930,10 @@ public partial class Fleet 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.Fleet.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 @@ -8147,17 +8207,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -8170,7 +8231,10 @@ public partial class Fleet 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.Fleet.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 @@ -9227,17 +9291,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -9250,7 +9315,10 @@ public partial class Fleet 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.Fleet.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 @@ -9378,17 +9446,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 @@ -9401,7 +9470,10 @@ public partial class Fleet 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.Fleet.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 @@ -9781,17 +9853,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -9804,7 +9877,10 @@ public partial class Fleet 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.Fleet.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener @@ -9932,17 +10008,18 @@ public partial class Fleet 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.Fleet.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request @@ -9955,7 +10032,10 @@ public partial class Fleet 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.Fleet.Runtime.Method.Get); // and let's look at the current response body and see if we have some information we can give back to the listener diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/ErrorResponse.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/ErrorResponse.cs index 0026d0adaca8..5dbc9f61219f 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/Fleet.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/Fleet.cs index f7dd813207d1..caf5b722beb9 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/Fleet.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/Fleet.cs @@ -70,7 +70,7 @@ public partial class Fleet : /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for ETag string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.ETag { get => this._eTag; set { {_eTag = value;} } } @@ -79,28 +79,46 @@ public partial class Fleet : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetProperties Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] @@ -125,31 +143,31 @@ public partial class Fleet : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMember.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMember.cs index 05bf2001cf73..75aca239733d 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMember.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMember.cs @@ -24,7 +24,7 @@ public partial class FleetMember : /// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] - public string ClusterResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ClusterResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ClusterResourceId = value ; } + public string ClusterResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ClusterResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ClusterResourceId = value ?? null; } /// Backing field for property. private string _eTag; @@ -54,19 +54,37 @@ public partial class FleetMember : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberProperties Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetMemberProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] @@ -91,31 +109,31 @@ public partial class FleetMember : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -150,7 +168,7 @@ public partial interface IFleetMember : /// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMemberProperties.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMemberProperties.cs index bed0e8ced2c4..482d33bfb6d2 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMemberProperties.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetMemberProperties.cs @@ -55,7 +55,7 @@ public partial interface IFleetMemberProperties : /// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetPatch.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetPatch.cs index 3d7822a3a81e..c84ec7d57906 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetPatch.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetPatch.cs @@ -50,10 +50,10 @@ public partial class FleetPatch : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPatchInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPatchInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPatchInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPatchInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPatchInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedServiceIdentityInternal)Identity).TenantId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetPatchTags _tag; diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetUpdateStrategy.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetUpdateStrategy.cs index 85f11820cd87..362465cf0fec 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetUpdateStrategy.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/FleetUpdateStrategy.cs @@ -44,22 +44,40 @@ public partial class FleetUpdateStrategy : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyProperties Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetUpdateStrategyProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Strategy - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStrategy Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyInternal.Strategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).Strategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).Strategy = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStrategy Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyInternal.Strategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).Strategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategyPropertiesInternal)Property).Strategy = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] @@ -88,31 +106,31 @@ public partial class FleetUpdateStrategy : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/MemberUpdateStatus.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/MemberUpdateStatus.cs index a15749781332..30d37140c4d1 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/MemberUpdateStatus.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/MemberUpdateStatus.cs @@ -40,16 +40,16 @@ public partial class MemberUpdateStatus : public string Message { get => this._message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for ClusterResourceId string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.ClusterResourceId { get => this._clusterResourceId; set { {_clusterResourceId = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Message string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Message { get => this._message; set { {_message = value;} } } @@ -64,22 +64,22 @@ public partial class MemberUpdateStatus : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value ?? null /* model class */; } /// Internal Acessors for StatusErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for StatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IMemberUpdateStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/Operation.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/Operation.cs index 79fd8a5b4ca6..828cb44a8fa9 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/Operation.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/ProxyResource.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/ProxyResource.cs index ef806e214e1f..89a71cd39430 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/ProxyResource.cs @@ -27,16 +27,34 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] @@ -46,31 +64,31 @@ public partial class ProxyResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/Resource.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/Resource.cs index a888e6e009b1..0a7bb01f6276 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/Resource.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/Resource.cs @@ -33,6 +33,24 @@ public partial class Resource : /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.Fleet.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.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemDataInternal)SystemData).LastModifiedByType; } /// Backing field for property. private string _type; diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/TrackedResource.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/TrackedResource.cs index ea922a2005f8..14eb87758e65 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/Fleet/Fleet.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.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] @@ -53,31 +71,31 @@ public partial class TrackedResource : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ITrackedResourceTags _tag; @@ -117,7 +135,7 @@ public partial interface ITrackedResource : { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Info( - Required = true, + Required = false, ReadOnly = false, Read = true, Create = true, diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateGroupStatus.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateGroupStatus.cs index 4e6bb32e0550..418978d94984 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateGroupStatus.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateGroupStatus.cs @@ -37,19 +37,19 @@ public partial class UpdateGroupStatus : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Member System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Member { get => this._member; set { {_member = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Name { get => this._name; set { {_name = value;} } } @@ -58,19 +58,19 @@ public partial class UpdateGroupStatus : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value ?? null /* model class */; } /// Internal Acessors for StatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateGroupStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRun.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRun.cs index c8aa89090e70..d7286a568864 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRun.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRun.cs @@ -52,79 +52,97 @@ public partial class UpdateRun : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Message; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } + + /// Internal Acessors for SystemDataCreatedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataCreatedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// Internal Acessors for SystemDataCreatedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// Internal Acessors for SystemDataLastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// Internal Acessors for SystemDataLastModifiedByType + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for ETag string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ETag { get => this._eTag; set { {_eTag = value;} } } /// Internal Acessors for ManagedClusterUpdate - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdate Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ManagedClusterUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdate = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdate Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ManagedClusterUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdate = value ?? null /* model class */; } /// Internal Acessors for ManagedClusterUpdateNodeImageSelection - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelection Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ManagedClusterUpdateNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateNodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateNodeImageSelection = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelection Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ManagedClusterUpdateNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateNodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateNodeImageSelection = value ?? null /* model class */; } /// Internal Acessors for ManagedClusterUpdateUpgrade - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpgradeSpec Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ManagedClusterUpdateUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateUpgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpgradeSpec Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ManagedClusterUpdateUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ManagedClusterUpdateUpgrade = value ?? null /* model class */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Message = value ?? null; } /// Internal Acessors for NodeImageSelectionSelectedNodeImageVersion - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.NodeImageSelectionSelectedNodeImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).NodeImageSelectionSelectedNodeImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).NodeImageSelectionSelectedNodeImageVersion = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.NodeImageSelectionSelectedNodeImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).NodeImageSelectionSelectedNodeImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).NodeImageSelectionSelectedNodeImageVersion = value ?? null /* arrayOf */; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunProperties Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRunProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Status = value ?? null /* model class */; } /// Internal Acessors for StatusCompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusCompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusCompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusCompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusCompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusError = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusError = value ?? null /* model class */; } /// Internal Acessors for StatusNodeImageSelection - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusNodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusNodeImageSelection = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusNodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusNodeImageSelection = value ?? null /* model class */; } /// Internal Acessors for StatusStage - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStage = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStage = value ?? null /* arrayOf */; } /// Internal Acessors for StatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).StatusState = value ?? null; } /// Internal Acessors for Strategy - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStrategy Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Strategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Strategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Strategy = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStrategy Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Strategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Strategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Strategy = value ?? null /* model class */; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).Target = value ?? null; } /// Internal Acessors for UpdateStatus - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.UpdateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).UpdateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).UpdateStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunInternal.UpdateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).UpdateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal)Property).UpdateStatus = value ?? null /* model class */; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] @@ -179,31 +197,31 @@ public partial class UpdateRun : /// Azure Resource Manager metadata containing createdBy and modifiedBy information. /// [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; } + internal Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemData = value ?? null /* model class */; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunProperties.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunProperties.cs index 1ef5bf5e7a4a..021f70a409c5 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunProperties.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunProperties.cs @@ -39,28 +39,28 @@ public partial class UpdateRunProperties : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for ManagedClusterUpdate Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdate Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.ManagedClusterUpdate { get => (this._managedClusterUpdate = this._managedClusterUpdate ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ManagedClusterUpdate()); set { {_managedClusterUpdate = value;} } } /// Internal Acessors for ManagedClusterUpdateNodeImageSelection - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelection Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.ManagedClusterUpdateNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).NodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).NodeImageSelection = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelection Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.ManagedClusterUpdateNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).NodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).NodeImageSelection = value ?? null /* model class */; } /// Internal Acessors for ManagedClusterUpdateUpgrade - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpgradeSpec Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.ManagedClusterUpdateUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).Upgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).Upgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpgradeSpec Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.ManagedClusterUpdateUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).Upgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IManagedClusterUpdateInternal)ManagedClusterUpdate).Upgrade = value ?? null /* model class */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for NodeImageSelectionSelectedNodeImageVersion - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.NodeImageSelectionSelectedNodeImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelectionSelectedNodeImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelectionSelectedNodeImageVersion = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.NodeImageSelectionSelectedNodeImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelectionSelectedNodeImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelectionSelectedNodeImageVersion = value ?? null /* arrayOf */; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } @@ -69,31 +69,31 @@ public partial class UpdateRunProperties : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRunStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusCompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusCompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusCompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusCompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusError = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusError = value ?? null /* model class */; } /// Internal Acessors for StatusNodeImageSelection - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelection = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusNodeImageSelection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).NodeImageSelection = value ?? null /* model class */; } /// Internal Acessors for StatusStage - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Stage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Stage = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Stage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Stage = value ?? null /* arrayOf */; } /// Internal Acessors for StatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).StatusState = value ?? null; } /// Internal Acessors for Strategy Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStrategy Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Strategy { get => (this._strategy = this._strategy ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRunStrategy()); set { {_strategy = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Target = value ?? null; } /// Internal Acessors for UpdateStatus - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.UpdateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunPropertiesInternal.UpdateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal)Status).Status = value ?? null /* model class */; } /// The image versions to upgrade the nodes to. [Microsoft.Azure.PowerShell.Cmdlets.Fleet.Origin(Microsoft.Azure.PowerShell.Cmdlets.Fleet.PropertyOrigin.Inlined)] diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunStatus.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunStatus.cs index c2ffe8ef7763..719d24f4977d 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunStatus.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateRunStatus.cs @@ -30,22 +30,22 @@ public partial class UpdateRunStatus : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for NodeImageSelection Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.NodeImageSelection { get => (this._nodeImageSelection = this._nodeImageSelection ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.NodeImageSelectionStatus()); set { {_nodeImageSelection = value;} } } /// Internal Acessors for NodeImageSelectionSelectedNodeImageVersion - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.NodeImageSelectionSelectedNodeImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatusInternal)NodeImageSelection).SelectedNodeImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatusInternal)NodeImageSelection).SelectedNodeImageVersion = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.NodeImageSelectionSelectedNodeImageVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatusInternal)NodeImageSelection).SelectedNodeImageVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatusInternal)NodeImageSelection).SelectedNodeImageVersion = value ?? null /* arrayOf */; } /// Internal Acessors for Stage System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Stage { get => this._stage; set { {_stage = value;} } } @@ -54,19 +54,19 @@ public partial class UpdateRunStatus : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value ?? null /* model class */; } /// Internal Acessors for StatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRunStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.INodeImageSelectionStatus _nodeImageSelection; diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStageStatus.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStageStatus.cs index 7e9772178bfb..37a9c3fc93a7 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStageStatus.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStageStatus.cs @@ -71,43 +71,43 @@ public partial class UpdateStageStatus : Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatus { get => (this._afterStageWaitStatus = this._afterStageWaitStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.WaitStatus()); set { {_afterStageWaitStatus = value;} } } /// Internal Acessors for AfterStageWaitStatusCompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusCompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusCompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusCompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusCompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for AfterStageWaitStatusError - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusError = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusError = value ?? null /* model class */; } /// Internal Acessors for AfterStageWaitStatusErrorAdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for AfterStageWaitStatusErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Code = value ?? null; } /// Internal Acessors for AfterStageWaitStatusErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for AfterStageWaitStatusErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Message = value ?? null; } /// Internal Acessors for AfterStageWaitStatusErrorTarget - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Target = value ?? null; } /// Internal Acessors for AfterStageWaitStatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for AfterStageWaitStatusState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).StatusState = value ?? null; } /// Internal Acessors for AfterStageWaitStatusStatus - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).Status = value ?? null /* model class */; } /// Internal Acessors for AfterStageWaitStatusWaitDurationInSecond - int? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusWaitDurationInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).WaitDurationInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).WaitDurationInSecond = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.AfterStageWaitStatusWaitDurationInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).WaitDurationInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal)AfterStageWaitStatus).WaitDurationInSecond = value ?? default(int); } /// Internal Acessors for CompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.CompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.CompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value ?? null /* model class */; } /// Internal Acessors for Group System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.Group { get => this._group; set { {_group = value;} } } @@ -116,28 +116,28 @@ public partial class UpdateStageStatus : string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for State - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value ?? null; } /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateStatus()); set { {_status = value;} } } /// Internal Acessors for StatusErrorAdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorAdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for StatusErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for StatusErrorDetail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for StatusErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for StatusErrorTarget - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStageStatusInternal.StatusErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStatus.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStatus.cs index 1e2724a23bb7..a340ba1c8393 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStatus.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/UpdateStatus.cs @@ -44,22 +44,22 @@ public partial class UpdateStatus : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for CompletedTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.CompletedTime { get => this._completedTime; set { {_completedTime = value;} } } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for StartTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } @@ -68,7 +68,7 @@ public partial class UpdateStatus : string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.State { get => this._state; set { {_state = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// Backing field for property. private global::System.DateTime? _startTime; diff --git a/generated/Fleet/Fleet.Autorest/generated/api/Models/WaitStatus.cs b/generated/Fleet/Fleet.Autorest/generated/api/Models/WaitStatus.cs index febe3ec448e6..a5e14d5875e2 100644 --- a/generated/Fleet/Fleet.Autorest/generated/api/Models/WaitStatus.cs +++ b/generated/Fleet/Fleet.Autorest/generated/api/Models/WaitStatus.cs @@ -30,34 +30,34 @@ public partial class WaitStatus : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Message = value ?? null; } /// Internal Acessors for Status Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatus Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Status { get => (this._status = this._status ?? new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateStatus()); set { {_status = value;} } } /// Internal Acessors for StatusCompletedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusCompletedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).CompletedTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusError - Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Error = value ?? null /* model class */; } /// Internal Acessors for StatusStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for StatusState - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.StatusState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).State = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateStatusInternal)Status).Target = value ?? null; } /// Internal Acessors for WaitDurationInSecond int? Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IWaitStatusInternal.WaitDurationInSecond { get => this._waitDurationInSecond; set { {_waitDurationInSecond = value;} } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateExpanded.cs index 00a5e0c09a42..bdc17c1f5050 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetMember + /// create a FleetMember /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetMember_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetMember_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzFleetMember_CreateExpanded : global::System.Management /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetMember(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -321,11 +312,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityExpanded.cs index d5bbfd5aa9e8..17172d540349 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetMember + /// create a FleetMember /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetMember_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetMember_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzFleetMember_CreateViaIdentityExpanded : 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 member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetMember(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetMember_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,24 +593,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityFleetExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityFleetExpanded.cs index 781556278e42..f98ae4541d41 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityFleetExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaIdentityFleetExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetMember + /// create a FleetMember /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetMember_CreateViaIdentityFleetExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetMember_CreateViaIdentityFleetExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzFleetMember_CreateViaIdentityFleetExpanded : global::S /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// A member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetMember(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -279,11 +270,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetMember_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -620,24 +606,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonFilePath.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonFilePath.cs index ff54004e4f70..a8b651872fb9 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonFilePath.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetMember + /// create a FleetMember /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetMember_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzFleetMember_CreateViaJsonFilePath : global::System.Man /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetMember_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonString.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonString.cs index b6a78f8e8a04..f0630d3bb3a2 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonString.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetMember_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetMember + /// create a FleetMember /// /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetMember_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzFleetMember_CreateViaJsonString : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -306,11 +297,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetMember_CreateV /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateExpanded.cs index cce1a8582dc6..0b668d56c58c 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a UpdateRun + /// create a UpdateRun /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateRun_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetUpdateRun_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzFleetUpdateRun_CreateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A multi-stage process to perform update operations across members of a Fleet. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRun(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -364,11 +355,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateRun_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -684,24 +670,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityExpanded.cs index 51d0c3e8c8f9..ed26db74c92c 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a UpdateRun + /// create a UpdateRun /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateRun_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetUpdateRun_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzFleetUpdateRun_CreateViaIdentityExpanded : 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 multi-stage process to perform update operations across members of a Fleet. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRun(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -306,11 +297,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateRun_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -650,24 +636,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityFleetExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityFleetExpanded.cs index 2fa6bed59953..f12c0cfe2894 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityFleetExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaIdentityFleetExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a UpdateRun + /// create a UpdateRun /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateRun_CreateViaIdentityFleetExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetUpdateRun_CreateViaIdentityFleetExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzFleetUpdateRun_CreateViaIdentityFleetExpanded : 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 multi-stage process to perform update operations across members of a Fleet. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRun(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -322,11 +313,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateRun_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -663,24 +649,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonFilePath.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonFilePath.cs index f1341cebd5e1..ec65074f36e0 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonFilePath.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a UpdateRun + /// create a UpdateRun /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateRun_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzFleetUpdateRun_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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateRun_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonString.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonString.cs index eb7866b613fd..2cca86b3cf79 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonString.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateRun_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a UpdateRun + /// create a UpdateRun /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateRun_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzFleetUpdateRun_CreateViaJsonString : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -306,11 +297,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateRun_Crea /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -626,24 +612,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateExpanded.cs index 22649d0707c4..fee2bed4d7ba 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetUpdateStrategy + /// create a FleetUpdateStrategy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateStrategy_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetUpdateStrategy_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzFleetUpdateStrategy_CreateExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Defines a multi-stage process to perform update operations across members of a Fleet. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetUpdateStrategy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateStrategy /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -628,24 +614,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityExpanded.cs index a8aa979a063c..3bfaa7c09c62 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetUpdateStrategy + /// create a FleetUpdateStrategy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateStrategy_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetUpdateStrategy_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzFleetUpdateStrategy_CreateViaIdentityExpanded : 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; - /// /// Defines a multi-stage process to perform update operations across members of a Fleet. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetUpdateStrategy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateStrategy /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -595,24 +581,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityFleetExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityFleetExpanded.cs index ecb18317eff6..5c626e496025 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityFleetExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaIdentityFleetExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetUpdateStrategy + /// create a FleetUpdateStrategy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateStrategy_CreateViaIdentityFleetExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}", ApiVersion = "2023-10-15")] public partial class NewAzFleetUpdateStrategy_CreateViaIdentityFleetExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,20 +40,11 @@ public partial class NewAzFleetUpdateStrategy_CreateViaIdentityFleetExpanded : 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; - /// /// Defines a multi-stage process to perform update operations across members of a Fleet. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetUpdateStrategy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateStrategy /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,24 +593,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonFilePath.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonFilePath.cs index a35747ea8381..1313a55dca05 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonFilePath.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetUpdateStrategy + /// create a FleetUpdateStrategy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateStrategy_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzFleetUpdateStrategy_CreateViaJsonFilePath : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - public global::System.String _jsonString; - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -307,11 +298,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateStrategy /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -627,24 +613,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonString.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonString.cs index 773483be991a..064262f1009e 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonString.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleetUpdateStrategy_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a FleetUpdateStrategy + /// create a FleetUpdateStrategy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleetUpdateStrategy_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzFleetUpdateStrategy_CreateViaJsonString : global::Syst /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -305,11 +296,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleetUpdateStrategy /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -625,24 +611,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateExpanded.cs index ba049ad42d74..4b661272a6b1 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a Fleet. + /// create a Fleet. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleet_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a Fleet.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a Fleet.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}", ApiVersion = "2023-10-15")] public partial class NewAzFleet_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzFleet_CreateExpanded : global::System.Management.Autom /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Fleet resource. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.Fleet(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -78,8 +69,8 @@ public partial class NewAzFleet_CreateExpanded : global::System.Management.Autom [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _resourceBody.IdentityType = value.IsPresent ? "SystemAssigned": null ; } /// Accessor for extensibleParameters. @@ -315,11 +306,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleet_CreateExpande /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -661,24 +647,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaIdentityExpanded.cs index e004efa6105e..746f7ede2778 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a Fleet. + /// create a Fleet. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleet_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a Fleet.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a Fleet.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}", ApiVersion = "2023-10-15")] public partial class NewAzFleet_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class NewAzFleet_CreateViaIdentityExpanded : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Fleet resource. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.Fleet(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -78,8 +69,8 @@ public partial class NewAzFleet_CreateViaIdentityExpanded : global::System.Manag [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.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 global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _resourceBody.IdentityType = value.IsPresent ? "SystemAssigned": null ; } /// Accessor for extensibleParameters. @@ -272,11 +263,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleet_CreateViaIden /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.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.Fleet.Models.IFleet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonFilePath.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonFilePath.cs index 794238dc0a4a..fb55769dbbae 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonFilePath.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a Fleet. + /// create a Fleet. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleet_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a Fleet.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a Fleet.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class NewAzFleet_CreateViaJsonFilePath : 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; - 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleet_CreateViaJson /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonString.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonString.cs index 2410cb93f907..9b81da62ae5b 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonString.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/NewAzFleet_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Create a Fleet. + /// create a Fleet. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzFleet_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Create a Fleet.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"create a Fleet.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class NewAzFleet_CreateViaJsonString : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.NewAzFleet_CreateViaJson /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_Delete.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_Delete.cs index 72fb88ed4209..017ccb466054 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_Delete.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetMember_Delete : global::System.Management.Auto /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,7 +593,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -631,7 +617,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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentity.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentity.cs index 841f67e29dbe..f0ad1ba5ce92 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentity.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetMember_DeleteViaIdentity : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetMember_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.Fleet.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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentityFleet.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentityFleet.cs index fb8d561c94a4..68dec6a417f1 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentityFleet.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetMember_DeleteViaIdentityFleet.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetMember_DeleteViaIdentityFleet : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -249,11 +240,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,7 +572,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -610,7 +596,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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_Delete.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_Delete.cs index 83aa9db95178..fb3987323a99 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_Delete.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetUpdateRun_Delete : global::System.Management.A /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetUpdateRun_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,7 +593,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -631,7 +617,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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentity.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentity.cs index 9ecc2e3d1869..365a1f6591c7 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentity.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetUpdateRun_DeleteViaIdentity : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetUpdateRun_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentityFleet.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentityFleet.cs index 3e36f31c63e0..b8921f9e46a8 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentityFleet.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateRun_DeleteViaIdentityFleet.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetUpdateRun_DeleteViaIdentityFleet : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -249,11 +240,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetUpdateRun_D /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,7 +572,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -610,7 +596,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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_Delete.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_Delete.cs index 3975ca6679d1..fba74ab2a4bd 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_Delete.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetUpdateStrategy_Delete : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -290,11 +281,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetUpdateStrat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -606,7 +592,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -630,7 +616,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentity.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentity.cs index 232326e36723..233840550b8e 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentity.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetUpdateStrategy_DeleteViaIdentity : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetUpdateStrat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentityFleet.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentityFleet.cs index 9caa3be9c61f..c8de0ece0222 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentityFleet.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleetUpdateStrategy_DeleteViaIdentityFleet.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleetUpdateStrategy_DeleteViaIdentityFleet : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -248,11 +239,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleetUpdateStrat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -585,7 +571,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -609,7 +595,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_Delete.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_Delete.cs index a806a5f00809..545b36e0f9ba 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_Delete.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleet_Delete : global::System.Management.Automation /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleet_Delete Clo /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.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/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_DeleteViaIdentity.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_DeleteViaIdentity.cs index c68149d13ecf..3458ed5e3983 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_DeleteViaIdentity.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/RemoveAzFleet_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFleet_DeleteViaIdentity : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.RemoveAzFleet_DeleteViaI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -569,7 +555,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -593,7 +579,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/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_Start.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_Start.cs index 00eac153f3ee..d37b1d4e5827 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_Start.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_Start.cs @@ -40,15 +40,6 @@ public partial class StartAzFleetUpdateRun_Start : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.StartAzFleetUpdateRun_St /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentity.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentity.cs index 16d134cdee64..e21fb9e8c85e 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentity.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentity.cs @@ -40,15 +40,6 @@ public partial class StartAzFleetUpdateRun_StartViaIdentity : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.StartAzFleetUpdateRun_St /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentityFleet.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentityFleet.cs index 5efeeae6ef2a..06f63021dab9 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentityFleet.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StartAzFleetUpdateRun_StartViaIdentityFleet.cs @@ -40,15 +40,6 @@ public partial class StartAzFleetUpdateRun_StartViaIdentityFleet : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.StartAzFleetUpdateRun_St /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,24 +561,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_Stop.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_Stop.cs index d992decdde6c..0fe6572f8eba 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_Stop.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_Stop.cs @@ -40,15 +40,6 @@ public partial class StopAzFleetUpdateRun_Stop : global::System.Management.Autom /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -276,11 +267,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.StopAzFleetUpdateRun_Sto /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -596,24 +582,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentity.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentity.cs index ef55eef63bf5..783a3789ea5e 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentity.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentity.cs @@ -40,15 +40,6 @@ public partial class StopAzFleetUpdateRun_StopViaIdentity : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.StopAzFleetUpdateRun_Sto /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -562,24 +548,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentityFleet.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentityFleet.cs index e5412639d233..d7ee0e3351bf 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentityFleet.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/StopAzFleetUpdateRun_StopViaIdentityFleet.cs @@ -40,15 +40,6 @@ public partial class StopAzFleetUpdateRun_StopViaIdentityFleet : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.StopAzFleetUpdateRun_Sto /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -575,24 +561,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateExpanded.cs index 224528508bee..3bebeab8efe9 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetMember + /// update a FleetMember /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetMember_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] public partial class UpdateAzFleetMember_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class UpdateAzFleetMember_UpdateExpanded : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for update operations of the FleetMember. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetMemberUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ public UpdateAzFleetMember_UpdateExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityExpanded.cs index 86049df99a2e..61bd2e49b756 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetMember + /// update a FleetMember /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetMember_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] public partial class UpdateAzFleetMember_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class UpdateAzFleetMember_UpdateViaIdentityExpanded : global::Sys /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for update operations of the FleetMember. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetMemberUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -233,11 +224,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -577,24 +563,7 @@ public UpdateAzFleetMember_UpdateViaIdentityExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityFleetExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityFleetExpanded.cs index 93f2735a665e..2fd6a3160737 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityFleetExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaIdentityFleetExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetMember + /// update a FleetMember /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetMember_UpdateViaIdentityFleetExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] public partial class UpdateAzFleetMember_UpdateViaIdentityFleetExpanded : global::System.Management.Automation.PSCmdlet, @@ -40,18 +40,9 @@ public partial class UpdateAzFleetMember_UpdateViaIdentityFleetExpanded : global /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The type used for update operations of the FleetMember. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMemberUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetMemberUpdate(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -249,11 +240,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -590,24 +576,7 @@ public UpdateAzFleetMember_UpdateViaIdentityFleetExpanded() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonFilePath.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonFilePath.cs index 5deff76b9243..1b523fe8b60b 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonFilePath.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetMember + /// update a FleetMember /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetMember_UpdateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,17 +41,8 @@ public partial class UpdateAzFleetMember_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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -293,11 +284,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -613,24 +599,7 @@ public UpdateAzFleetMember_UpdateViaJsonFilePath() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonString.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonString.cs index dc46bc8a8b6b..ce19d8a37563 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonString.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetMember_UpdateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetMember + /// update a FleetMember /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetMember_UpdateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetMember")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetMember")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}", ApiVersion = "2023-10-15")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.NotSuggestDefaultParameterSet] @@ -41,15 +41,6 @@ public partial class UpdateAzFleetMember_UpdateViaJsonString : 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.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -291,11 +282,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetMember_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.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -611,24 +597,7 @@ public UpdateAzFleetMember_UpdateViaJsonString() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetMember var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateExpanded.cs index 46794377841a..4796ee38b9f4 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a UpdateRun + /// update a UpdateRun /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetUpdateRun_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleetUpdateRun_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,18 +40,9 @@ public partial class UpdateAzFleetUpdateRun_UpdateExpanded : global::System.Mana /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A multi-stage process to perform update operations across members of a Fleet. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRun(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -364,11 +355,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetUpdateRun_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -710,24 +696,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityExpanded.cs index 8eab9485520c..7ba08db0d338 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a UpdateRun + /// update a UpdateRun /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetUpdateRun_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleetUpdateRun_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,18 +40,9 @@ public partial class UpdateAzFleetUpdateRun_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 multi-stage process to perform update operations across members of a Fleet. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRun(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -306,11 +297,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetUpdateRun_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -678,24 +664,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityFleetExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityFleetExpanded.cs index b733d7b14675..db46d96e70d4 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityFleetExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateRun_UpdateViaIdentityFleetExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a UpdateRun + /// update a UpdateRun /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetUpdateRun_UpdateViaIdentityFleetExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a UpdateRun")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a UpdateRun")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleetUpdateRun_UpdateViaIdentityFleetExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,18 +40,9 @@ public partial class UpdateAzFleetUpdateRun_UpdateViaIdentityFleetExpanded : 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 multi-stage process to perform update operations across members of a Fleet. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateRun(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -322,11 +313,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetUpdateRun_U /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -691,24 +677,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IUpdateRun var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateExpanded.cs index 13bd3abc61f8..c6cf0990d092 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetUpdateStrategy_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleetUpdateStrategy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,20 +40,11 @@ public partial class UpdateAzFleetUpdateStrategy_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; - /// /// Defines a multi-stage process to perform update operations across members of a Fleet. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetUpdateStrategy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -308,11 +299,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetUpdateStrat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -638,24 +624,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityExpanded.cs index 47a5be9416b2..4a1cb780c733 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetUpdateStrategy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleetUpdateStrategy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,20 +40,11 @@ public partial class UpdateAzFleetUpdateStrategy_UpdateViaIdentityExpanded : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Defines a multi-stage process to perform update operations across members of a Fleet. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetUpdateStrategy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -251,11 +242,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetUpdateStrat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -607,24 +593,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded.cs index 0fc0ab96139c..e7c085032d21 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a FleetUpdateStrategy + /// update a FleetUpdateStrategy /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a FleetUpdateStrategy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a FleetUpdateStrategy")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,20 +40,11 @@ public partial class UpdateAzFleetUpdateStrategy_UpdateViaIdentityFleetExpanded /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// /// Defines a multi-stage process to perform update operations across members of a Fleet. /// private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.FleetUpdateStrategy(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleetUpdateStrat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -621,24 +607,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleetUpdateStrategy var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateExpanded.cs index f4125b65b1c4..986c6202aea2 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a Fleet. + /// update a Fleet. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleet_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a Fleet.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a Fleet.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleet_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,18 +40,9 @@ public partial class UpdateAzFleet_UpdateExpanded : 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; - /// The Fleet resource. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.Fleet(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -78,8 +69,8 @@ public partial class UpdateAzFleet_UpdateExpanded : global::System.Management.Au [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.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. @@ -304,11 +295,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleet_UpdateExpa /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -673,24 +659,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateViaIdentityExpanded.cs b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateViaIdentityExpanded.cs index b6724f417bbb..58106739e3f9 100644 --- a/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateViaIdentityExpanded.cs +++ b/generated/Fleet/Fleet.Autorest/generated/cmdlets/UpdateAzFleet_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.Cmdlets; using System; - /// Update a Fleet. + /// update a Fleet. /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzFleet_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"Update a Fleet.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Description(@"update a Fleet.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Generated] public partial class UpdateAzFleet_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.IEventListener, @@ -40,18 +40,9 @@ public partial class UpdateAzFleet_UpdateViaIdentityExpanded : global::System.Ma /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// The Fleet resource. private Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.Fleet(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.ParameterCategory.Runtime)] @@ -78,8 +69,8 @@ public partial class UpdateAzFleet_UpdateViaIdentityExpanded : global::System.Ma [global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Fleet.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. @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Fleet.Cmdlets.UpdateAzFleet_UpdateViaI /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Fleet.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -653,24 +639,7 @@ private void Update_resourceBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.IFleet var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index f94a7efa6c93..51f75fbed270 100644 --- a/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/Fleet/Fleet.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/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 2768ae378565..3df0b97fefac 100644 --- a/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -216,6 +216,20 @@ public string GetProcessCustomAttributesAtRuntime() {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Fleet.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.Fleet.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.Fleet.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/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index d7822ddbe450..b098051f7c27 100644 --- a/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/Fleet/Fleet.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/Fleet/Fleet.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 8864680880e4..6dfd4fed9404 100644 --- a/generated/Fleet/Fleet.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/generated/Fleet/Fleet.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/Fleet/Fleet.Autorest/generated/runtime/Context.cs b/generated/Fleet/Fleet.Autorest/generated/runtime/Context.cs index d7f575bfb9a3..27deecf4f4b7 100644 --- a/generated/Fleet/Fleet.Autorest/generated/runtime/Context.cs +++ b/generated/Fleet/Fleet.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.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/Fleet/Fleet.Autorest/generated/runtime/MessageAttribute.cs b/generated/Fleet/Fleet.Autorest/generated/runtime/MessageAttribute.cs index f263e9600d8e..3b4040b3d566 100644 --- a/generated/Fleet/Fleet.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/Fleet/Fleet.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Fleet.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.Fleet" : @""; + //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/Fleet/Fleet.Autorest/generated/runtime/Properties/Resources.resx b/generated/Fleet/Fleet.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/Fleet/Fleet.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/Fleet/Fleet.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/Fleet/Fleet.Autorest/internal/Get-AzFleetOperation.ps1 b/generated/Fleet/Fleet.Autorest/internal/Get-AzFleetOperation.ps1 index 327fb9f63751..b300b2dee653 100644 --- a/generated/Fleet/Fleet.Autorest/internal/Get-AzFleetOperation.ps1 +++ b/generated/Fleet/Fleet.Autorest/internal/Get-AzFleetOperation.ps1 @@ -90,11 +90,17 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Fleet.private\Get-AzFleetOperation_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/Fleet/Fleet.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/Fleet/Fleet.Autorest/internal/ProxyCmdletDefinitions.ps1 index 327fb9f63751..b300b2dee653 100644 --- a/generated/Fleet/Fleet.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/Fleet/Fleet.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.Fleet.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + $mapping = @{ List = 'Az.Fleet.private\Get-AzFleetOperation_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/DigitalTwins/DigitalTwins.Autorest/resources/README.md b/generated/Fleet/Fleet.Autorest/resources/README.md similarity index 100% rename from src/DigitalTwins/DigitalTwins.Autorest/resources/README.md rename to generated/Fleet/Fleet.Autorest/resources/README.md diff --git a/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayContainer.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayContainer.ps1 index f58b23dd0f53..750a456f9dc0 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayContainer.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayContainer.ps1 @@ -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/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServer.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServer.ps1 index 1f5bff9a7703..be90d0fb3003 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServer.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServer.ps1 @@ -153,8 +153,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServerKey.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServerKey.ps1 index 40fa45a1d22c..94822c8bc1db 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServerKey.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/Get-AzFluidRelayServerKey.ps1 @@ -112,8 +112,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServer.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServer.ps1 index 78ab19572470..701f32365da2 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServer.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServer.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a Fluid Relay server. +Create a Fluid Relay server. .Description -create a Fluid Relay server. +Create a Fluid Relay server. .Example New-AzFluidRelayServer -Name azps-fluidrelay -ResourceGroup azpstest-gp -Location westus2 -Storagesku 'basic' -ProvisioningState 'Succeeded' -UserAssignedIdentity "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azpstest-gp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azpstest-uami" -EnableSystemAssignedIdentity:$true -KeyEncryptionKeyIdentityUserAssignedIdentityResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azpstest-gp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azpstest-uami" -KeyEncryptionKeyIdentityType 'SystemAssigned' @@ -223,8 +223,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServerKey.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServerKey.ps1 index f638a2255298..aa23d320d321 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServerKey.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/New-AzFluidRelayServerKey.ps1 @@ -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/FluidRelay/FluidRelay.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/ProxyCmdletDefinitions.ps1 index 94245aa5675c..44861aee11f7 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -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) { @@ -358,8 +357,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -581,8 +579,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -827,8 +824,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -917,9 +913,9 @@ end { <# .Synopsis -create a Fluid Relay server. +Create a Fluid Relay server. .Description -create a Fluid Relay server. +Create a Fluid Relay server. .Example New-AzFluidRelayServer -Name azps-fluidrelay -ResourceGroup azpstest-gp -Location westus2 -Storagesku 'basic' -ProvisioningState 'Succeeded' -UserAssignedIdentity "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azpstest-gp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azpstest-uami" -EnableSystemAssignedIdentity:$true -KeyEncryptionKeyIdentityUserAssignedIdentityResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azpstest-gp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azpstest-uami" -KeyEncryptionKeyIdentityType 'SystemAssigned' @@ -1124,8 +1120,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1370,8 +1365,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1607,8 +1601,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1695,9 +1688,9 @@ end { <# .Synopsis -update a Fluid Relay server. +Update a Fluid Relay server. .Description -update a Fluid Relay server. +Update a Fluid Relay server. .Example Update-AzFluidRelayServer -Name azps-fluidrelay -ResourceGroup azpstest-gp -UserAssignedIdentity "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azpstest-gp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azpstest-uami" -EnableSystemAssignedIdentity $true @@ -1846,8 +1839,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayContainer.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayContainer.ps1 index a80e889d37af..d1c36faf2fdf 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayContainer.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayContainer.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayServer.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayServer.ps1 index 79fecfabf513..66a3f7fba568 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayServer.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/Remove-AzFluidRelayServer.ps1 @@ -164,8 +164,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FluidRelay/FluidRelay.Autorest/exports/Update-AzFluidRelayServer.ps1 b/generated/FluidRelay/FluidRelay.Autorest/exports/Update-AzFluidRelayServer.ps1 index 2f07fda6ec9e..0c0807a39a0d 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/exports/Update-AzFluidRelayServer.ps1 +++ b/generated/FluidRelay/FluidRelay.Autorest/exports/Update-AzFluidRelayServer.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a Fluid Relay server. +Update a Fluid Relay server. .Description -update a Fluid Relay server. +Update a Fluid Relay server. .Example Update-AzFluidRelayServer -Name azps-fluidrelay -ResourceGroup azpstest-gp -UserAssignedIdentity "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azpstest-gp/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azpstest-uami" -EnableSystemAssignedIdentity $true @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/EncryptionProperties.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/EncryptionProperties.cs index 4682e7655e30..6c5475a9ca43 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/EncryptionProperties.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/EncryptionProperties.cs @@ -44,7 +44,7 @@ public partial class EncryptionProperties : Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal.CustomerManagedKeyEncryption { get => (this._customerManagedKeyEncryption = this._customerManagedKeyEncryption ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.CustomerManagedKeyEncryptionProperties()); set { {_customerManagedKeyEncryption = value;} } } /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentity = value ?? null /* model class */; } /// Creates an new instance. public EncryptionProperties() diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ErrorResponse.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ErrorResponse.cs index ec2a0cfa456e..20cee40533b6 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Origin(Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.PropertyOrigin.Inlined)] diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayContainer.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayContainer.cs index 8861e37b671c..094c88ce6ade 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayContainer.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayContainer.cs @@ -46,52 +46,52 @@ public partial class FluidRelayContainer : public global::System.DateTime? LastAccessTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).LastAccessTime; } /// Internal Acessors for CreationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.CreationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).CreationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).CreationTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.CreationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).CreationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).CreationTime = value ?? default(global::System.DateTime); } /// Internal Acessors for FrsContainerId - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.FrsContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsContainerId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.FrsContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsContainerId = value ?? null; } /// Internal Acessors for FrsTenantId - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.FrsTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.FrsTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).FrsTenantId = value ?? null; } /// Internal Acessors for LastAccessTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.LastAccessTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).LastAccessTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).LastAccessTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.LastAccessTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).LastAccessTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).LastAccessTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.FluidRelayContainerProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainerInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Origin(Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.PropertyOrigin.Inherited)] diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServer.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServer.cs index e37679d0528e..5822fb9cf08c 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServer.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServer.cs @@ -88,37 +88,37 @@ public partial class FluidRelayServer : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity = value ?? null /* model class */; } /// Internal Acessors for Encryption - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).Encryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).Encryption = value ?? null /* model class */; } /// Internal Acessors for EncryptionCustomerManagedKeyEncryption - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption = value ?? null /* model class */; } /// Internal Acessors for FluidRelayEndpoint - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpoints Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpoints Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpoint = value ?? null /* model class */; } /// Internal Acessors for FluidRelayEndpointOrdererEndpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpointOrdererEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointOrdererEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointOrdererEndpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpointOrdererEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointOrdererEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointOrdererEndpoint = value ?? null /* arrayOf */; } /// Internal Acessors for FluidRelayEndpointServiceEndpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpointServiceEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointServiceEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointServiceEndpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpointServiceEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointServiceEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointServiceEndpoint = value ?? null /* arrayOf */; } /// Internal Acessors for FluidRelayEndpointStorageEndpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpointStorageEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointStorageEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointStorageEndpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FluidRelayEndpointStorageEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointStorageEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FluidRelayEndpointStorageEndpoint = value ?? null /* arrayOf */; } /// Internal Acessors for FrsTenantId - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FrsTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FrsTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FrsTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.FrsTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FrsTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal)Property).FrsTenantId = value ?? null; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.FluidRelayServerProperties()); set { {_property = value;} } } @@ -127,31 +127,31 @@ public partial class FluidRelayServer : Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Origin(Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.PropertyOrigin.Inherited)] diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerProperties.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerProperties.cs index 8a8baec4844d..0dc4f7480121 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerProperties.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerProperties.cs @@ -67,25 +67,25 @@ public partial class FluidRelayServerProperties : public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value ?? null; } /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity = value ?? null /* model class */; } /// Internal Acessors for Encryption Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.Encryption { get => (this._encryption = this._encryption ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.EncryptionProperties()); set { {_encryption = value;} } } /// Internal Acessors for EncryptionCustomerManagedKeyEncryption - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption = value ?? null /* model class */; } /// Internal Acessors for FluidRelayEndpoint Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpoints Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FluidRelayEndpoint { get => (this._fluidRelayEndpoint = this._fluidRelayEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.FluidRelayEndpoints()); set { {_fluidRelayEndpoint = value;} } } /// Internal Acessors for FluidRelayEndpointOrdererEndpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FluidRelayEndpointOrdererEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).OrdererEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).OrdererEndpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FluidRelayEndpointOrdererEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).OrdererEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).OrdererEndpoint = value ?? null /* arrayOf */; } /// Internal Acessors for FluidRelayEndpointServiceEndpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FluidRelayEndpointServiceEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).ServiceEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).ServiceEndpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FluidRelayEndpointServiceEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).ServiceEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).ServiceEndpoint = value ?? null /* arrayOf */; } /// Internal Acessors for FluidRelayEndpointStorageEndpoint - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FluidRelayEndpointStorageEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).StorageEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).StorageEndpoint = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FluidRelayEndpointStorageEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).StorageEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayEndpointsInternal)FluidRelayEndpoint).StorageEndpoint = value ?? null /* arrayOf */; } /// Internal Acessors for FrsTenantId string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerPropertiesInternal.FrsTenantId { get => this._frsTenantId; set { {_frsTenantId = value;} } } diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdate.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdate.cs index c63691c4ddc8..0a6f8374a5c2 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdate.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdate.cs @@ -64,22 +64,22 @@ public partial class FluidRelayServerUpdate : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity = value ?? null /* model class */; } /// Internal Acessors for Encryption - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).Encryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).Encryption = value ?? null /* model class */; } /// Internal Acessors for EncryptionCustomerManagedKeyEncryption - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption = value ?? null /* model class */; } /// Internal Acessors for Identity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.Identity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).PrincipalId = value ?? null; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IIdentityInternal)Identity).TenantId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.FluidRelayServerUpdateProperties()); set { {_property = value;} } } diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdateProperties.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdateProperties.cs index d075990c845d..2ae8ffd44625 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdateProperties.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/FluidRelayServerUpdateProperties.cs @@ -41,13 +41,13 @@ public partial class FluidRelayServerUpdateProperties : public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value ?? null; } /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity = value ?? null /* model class */; } /// Internal Acessors for Encryption Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal.Encryption { get => (this._encryption = this._encryption ?? new Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.EncryptionProperties()); set { {_encryption = value;} } } /// Internal Acessors for EncryptionCustomerManagedKeyEncryption - Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.ICustomerManagedKeyEncryptionProperties Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayServerUpdatePropertiesInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IEncryptionPropertiesInternal)Encryption).CustomerManagedKeyEncryption = value ?? null /* model class */; } /// Creates an new instance. public FluidRelayServerUpdateProperties() diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ProxyResource.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ProxyResource.cs index 7ac577098ff6..ef339634d8ee 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/ProxyResource.cs @@ -27,13 +27,13 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Origin(Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.PropertyOrigin.Inherited)] diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/TrackedResource.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/TrackedResource.cs index 826103327ad3..ca795212a4ac 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/FluidRelay/FluidRelay.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.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Origin(Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.PropertyOrigin.Inherited)] diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_Delete.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_Delete.cs index 25a74b25ab22..38765b87b9b0 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_Delete.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_Delete.cs @@ -509,7 +509,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -533,7 +533,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentity.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentity.cs index 08e1523860db..2c3007b21f3b 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentity.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_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/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityFluidRelayServer.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityFluidRelayServer.cs index 2a4b4274ac76..b8067b219c64 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityFluidRelayServer.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityFluidRelayServer.cs @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -516,7 +516,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/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityResourceGroup.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityResourceGroup.cs index 875f2d6f56b9..c95ac29ea006 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityResourceGroup.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayContainer_DeleteViaIdentityResourceGroup.cs @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -525,7 +525,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/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_Delete.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_Delete.cs index cc0672245c16..8c5b865448bf 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_Delete.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFluidRelayServer_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.FluidRelay.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Cmdlets.RemoveAzFluidRelayS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.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/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentity.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentity.cs index 56924df202fa..0e29b8bfa4f9 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentity.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFluidRelayServer_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.FluidRelay.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Cmdlets.RemoveAzFluidRelayS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.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/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentityResourceGroup.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentityResourceGroup.cs index dd42379f8a61..06cfb6763686 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentityResourceGroup.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/cmdlets/RemoveAzFluidRelayServer_DeleteViaIdentityResourceGroup.cs @@ -40,15 +40,6 @@ public partial class RemoveAzFluidRelayServer_DeleteViaIdentityResourceGroup : 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.FluidRelay.Category(global::Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.ParameterCategory.Runtime)] @@ -234,11 +225,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Cmdlets.RemoveAzFluidRelayS /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -567,7 +553,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -591,7 +577,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 948a06210715..19ad48d4c70e 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/FluidRelay/FluidRelay.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/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 5e09664e4b25..f975d76e4b1d 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/FluidRelay/FluidRelay.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/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 7ff3de43b750..c48393084f4e 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/FluidRelay/FluidRelay.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/FluidRelay/FluidRelay.Autorest/generated/runtime/Context.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/Context.cs index df70d47bcd36..7ee0643925b5 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/Context.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.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/FluidRelay/FluidRelay.Autorest/generated/runtime/MessageAttribute.cs b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/MessageAttribute.cs index 1d6a23a8db5d..dc367f93264e 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.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.FluidRelay" : @""; + //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/FluidRelay/FluidRelay.Autorest/generated/runtime/Properties/Resources.resx b/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/FluidRelay/FluidRelay.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/FluidRelay/FluidRelay.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/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 index cb2dd3de4811..6b745f4f6fc1 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Disable-AzFrontDoorCustomDomainHttps.ps1 @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 index 14969057d9ce..70e4570c6255 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Enable-AzFrontDoorCustomDomainHttps.ps1 @@ -230,8 +230,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 index 9cf14242e146..8ccbbca8c9ba 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoor.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/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 index b592ec3d738b..29328cb2437d 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorFrontendEndpoint.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/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 index 7ebdd576a5fc..74e68bda6490 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorRulesEngine.ps1 @@ -162,8 +162,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 index 6e2c20afd3f9..fc2e47a1f669 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafManagedRuleSetDefinition.ps1 @@ -101,8 +101,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 index 05d695c8f499..e4884ed016d0 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Get-AzFrontDoorWafPolicy.ps1 @@ -140,8 +140,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 index b7069d238b20..3cd0dc48175b 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoor.ps1 @@ -274,8 +274,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 index f345c9eab92a..5e15bc7acd68 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorRulesEngine.ps1 @@ -175,8 +175,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 index 61bc8ea85194..efa43da8f114 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/New-AzFrontDoorWafPolicy.ps1 @@ -285,8 +285,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 index 8014c34f8a46..b3384ee54d03 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -176,8 +176,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -410,8 +409,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -584,8 +582,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -794,8 +791,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1009,8 +1005,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1257,8 +1252,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1524,8 +1518,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1776,8 +1769,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2003,8 +1995,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2233,8 +2224,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2476,8 +2466,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -2776,8 +2765,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3021,8 +3009,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -3370,8 +3357,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7334,8 +7320,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -7845,8 +7830,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -8218,8 +8202,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 index 78857110afac..6ae1722e4c3d 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoor.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/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 index efad9ee27548..98946ed107bf 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorContent.ps1 @@ -195,8 +195,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 index 5fddcee4cb2a..72f67ef3811f 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorRulesEngine.ps1 @@ -177,8 +177,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 index b1775ed5bf18..2b1ccdd2c491 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Remove-AzFrontDoorWafPolicy.ps1 @@ -155,8 +155,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 index 04efa0371910..3b515178b327 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoor.ps1 @@ -296,8 +296,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 index 893deab0fdea..2441939b4674 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Set-AzFrontDoorRulesEngine.ps1 @@ -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/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 b/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 index 27de76166ac4..6b8ad4832450 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 +++ b/generated/FrontDoor/FrontDoor.Autorest/exports/Update-AzFrontDoorWafPolicy.ps1 @@ -298,8 +298,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index ce29fcfc887a..7c728cec0469 100644 --- a/generated/FrontDoor/FrontDoor.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/FrontDoor/FrontDoor.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/GraphServices/GraphServices.Autorest/exports/Get-AzGraphServicesAccount.ps1 b/generated/GraphServices/GraphServices.Autorest/exports/Get-AzGraphServicesAccount.ps1 index d3555dcfefd4..51ab47bf8d2f 100644 --- a/generated/GraphServices/GraphServices.Autorest/exports/Get-AzGraphServicesAccount.ps1 +++ b/generated/GraphServices/GraphServices.Autorest/exports/Get-AzGraphServicesAccount.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/GraphServices/GraphServices.Autorest/exports/New-AzGraphServicesAccount.ps1 b/generated/GraphServices/GraphServices.Autorest/exports/New-AzGraphServicesAccount.ps1 index 2471436adf58..301c4b7766a1 100644 --- a/generated/GraphServices/GraphServices.Autorest/exports/New-AzGraphServicesAccount.ps1 +++ b/generated/GraphServices/GraphServices.Autorest/exports/New-AzGraphServicesAccount.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create account resource. +Create account resource. .Description -create account resource. +Create account resource. .Example New-AzGraphServicesAccount -ResourceGroupName myRG -Name myGraphAppBilling -AppId myAppGUID -SubscriptionId mySubscriptionGUID -Location Global @@ -156,8 +156,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/GraphServices/GraphServices.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/GraphServices/GraphServices.Autorest/exports/ProxyCmdletDefinitions.ps1 index 28f9c9182c70..ab662c92916f 100644 --- a/generated/GraphServices/GraphServices.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/GraphServices/GraphServices.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -136,8 +136,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -225,9 +224,9 @@ end { <# .Synopsis -create account resource. +Create account resource. .Description -create account resource. +Create account resource. .Example New-AzGraphServicesAccount -ResourceGroupName myRG -Name myGraphAppBilling -AppId myAppGUID -SubscriptionId mySubscriptionGUID -Location Global @@ -365,8 +364,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -574,8 +572,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -661,9 +658,9 @@ end { <# .Synopsis -update account details. +Update account details. .Description -update account details. +Update account details. .Example Update-AzGraphServicesAccount -ResourceGroupName myRG -Name myGraphAppBilling @@ -803,8 +800,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/GraphServices/GraphServices.Autorest/exports/Remove-AzGraphServicesAccount.ps1 b/generated/GraphServices/GraphServices.Autorest/exports/Remove-AzGraphServicesAccount.ps1 index 18631ecf593a..7930ffa0b930 100644 --- a/generated/GraphServices/GraphServices.Autorest/exports/Remove-AzGraphServicesAccount.ps1 +++ b/generated/GraphServices/GraphServices.Autorest/exports/Remove-AzGraphServicesAccount.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/GraphServices/GraphServices.Autorest/exports/Update-AzGraphServicesAccount.ps1 b/generated/GraphServices/GraphServices.Autorest/exports/Update-AzGraphServicesAccount.ps1 index dd33fde1e694..7cc8972adac6 100644 --- a/generated/GraphServices/GraphServices.Autorest/exports/Update-AzGraphServicesAccount.ps1 +++ b/generated/GraphServices/GraphServices.Autorest/exports/Update-AzGraphServicesAccount.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update account details. +Update account details. .Description -update account details. +Update account details. .Example Update-AzGraphServicesAccount -ResourceGroupName myRG -Name myGraphAppBilling @@ -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/GraphServices/GraphServices.Autorest/generated/api/Models/AccountResource.cs b/generated/GraphServices/GraphServices.Autorest/generated/api/Models/AccountResource.cs index 8b17999ef350..cf5aec8d410b 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/api/Models/AccountResource.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/api/Models/AccountResource.cs @@ -35,37 +35,37 @@ public partial class AccountResource : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Location = value ?? null; } /// Internal Acessors for BillingPlanId - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.BillingPlanId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).BillingPlanId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).BillingPlanId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.BillingPlanId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).BillingPlanId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).BillingPlanId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceProperties Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.AccountResourceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourcePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemData Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.AccountResourceSystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResourceSystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IResourceInternal)__resource).Type = value ?? null; } /// Azure resource name. [Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.GraphServices.PropertyOrigin.Inherited)] diff --git a/generated/GraphServices/GraphServices.Autorest/generated/api/Models/ErrorResponse.cs b/generated/GraphServices/GraphServices.Autorest/generated/api/Models/ErrorResponse.cs index b75199cfe735..6df4c462b99a 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/api/Models/ErrorResponse.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/api/Models/ErrorResponse.cs @@ -40,22 +40,22 @@ public partial class ErrorResponse : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IErrorDetailInternal)Error).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.GraphServices.PropertyOrigin.Inlined)] diff --git a/generated/GraphServices/GraphServices.Autorest/generated/api/Models/Operation.cs b/generated/GraphServices/GraphServices.Autorest/generated/api/Models/Operation.cs index 77bcaa8f6eab..49724b69a068 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/api/Models/Operation.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/api/Models/Operation.cs @@ -73,16 +73,16 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for IsDataAction bool? Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } diff --git a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateExpanded.cs b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateExpanded.cs index 0f59a6f2bdc2..505b1bf4eec4 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateExpanded.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateExpanded.cs @@ -43,15 +43,6 @@ public partial class NewAzGraphServicesAccount_CreateExpanded : global::System.M /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// Customer owned application ID [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Customer owned application ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.GraphServices.ParameterCategory.Body)] @@ -283,11 +274,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Cmdlets.NewAzGraphServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.GraphServices.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.GraphServices.Models.IAccountResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonFilePath.cs b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonFilePath.cs index a61a3dd68461..6272d5f0cc4b 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonFilePath.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzGraphServicesAccount_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.GraphServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.GraphServices.ParameterCategory.Runtime)] @@ -262,11 +253,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Cmdlets.NewAzGraphServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,24 +568,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonString.cs b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonString.cs index aaea5b6c151d..96b1127a057d 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonString.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/NewAzGraphServicesAccount_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzGraphServicesAccount_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.GraphServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.GraphServices.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Cmdlets.NewAzGraphServic /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -580,24 +566,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.GraphServices.Models.IAccountResource var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_Delete.cs b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_Delete.cs index 5199945ce43d..f4b50a003063 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_Delete.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_Delete.cs @@ -494,7 +494,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -518,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_DeleteViaIdentity.cs b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_DeleteViaIdentity.cs index c9a2196a4b19..c58fd6b7eeb3 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_DeleteViaIdentity.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/cmdlets/RemoveAzGraphServicesAccount_DeleteViaIdentity.cs @@ -475,7 +475,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -499,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index d8856d3e0f37..f1aa4b2ff3c1 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/GraphServices/GraphServices.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/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index ed0894ca639e..df3a360d124c 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/GraphServices/GraphServices.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/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 1e87ca193711..1a6af6e1d664 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/GraphServices/GraphServices.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/GraphServices/GraphServices.Autorest/generated/runtime/Context.cs b/generated/GraphServices/GraphServices.Autorest/generated/runtime/Context.cs index 8437f1bd3de8..e68baa3ca544 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/runtime/Context.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.GraphServices.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/GraphServices/GraphServices.Autorest/generated/runtime/MessageAttribute.cs b/generated/GraphServices/GraphServices.Autorest/generated/runtime/MessageAttribute.cs index 4621998edc52..99b9eff4e9ca 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/GraphServices/GraphServices.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.GraphServices.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.GraphServices" : @""; + //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/GraphServices/GraphServices.Autorest/generated/runtime/Properties/Resources.resx b/generated/GraphServices/GraphServices.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/GraphServices/GraphServices.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/GraphServices/GraphServices.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/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignment.ps1 b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignment.ps1 index ef0926670259..8b985a0ec45a 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignment.ps1 +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignment.ps1 @@ -160,8 +160,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignmentReport.ps1 b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignmentReport.ps1 index 79d37816b383..e49d20d3990e 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignmentReport.ps1 +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignmentReport.ps1 @@ -156,8 +156,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/GuestConfiguration/GuestConfiguration.Autorest/exports/New-AzGuestConfigurationAssignment.ps1 b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/New-AzGuestConfigurationAssignment.ps1 index d36eca5f990b..96d5f3d7c6ee 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/New-AzGuestConfigurationAssignment.ps1 +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/New-AzGuestConfigurationAssignment.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create an association between a VM and guest configuration +Create an association between a VM and guest configuration .Description -create an association between a VM and guest configuration +Create an association between a VM and guest configuration .Example New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName test-assignment -ResourceGroupName test-rg -VMName test-vm -GuestConfigurationName test-config -GuestConfigurationVersion "1.0.0.3" -GuestConfigurationContentUri "https://thisisfake/package" -GuestConfigurationContentHash "123contenthash" .Example @@ -244,8 +244,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 index eb70665cd24a..87b005836b90 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -156,8 +156,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -391,8 +390,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -484,9 +482,9 @@ end { <# .Synopsis -create an association between a VM and guest configuration +Create an association between a VM and guest configuration .Description -create an association between a VM and guest configuration +Create an association between a VM and guest configuration .Example New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName test-assignment -ResourceGroupName test-rg -VMName test-vm -GuestConfigurationName test-config -GuestConfigurationVersion "1.0.0.3" -GuestConfigurationContentUri "https://thisisfake/package" -GuestConfigurationContentHash "123contenthash" .Example @@ -712,8 +710,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -803,9 +800,9 @@ end { <# .Synopsis -update an association between a ARC machine and guest configuration +Update an association between a ARC machine and guest configuration .Description -update an association between a ARC machine and guest configuration +Update an association between a ARC machine and guest configuration .Example Update-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName test-assignment -ResourceGroupName test-rg -MachineName test-machine -GuestConfigurationName test-config -GuestConfigurationVersion "1.0.0.3" -GuestConfigurationContentUri "https://thisisfake/package" -GuestConfigurationContentHash "123contenthash" @@ -1013,8 +1010,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1255,8 +1251,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/GuestConfiguration/GuestConfiguration.Autorest/exports/Remove-AzGuestConfigurationAssignment.ps1 b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Remove-AzGuestConfigurationAssignment.ps1 index cf37110b83e6..f9979ffbdcdc 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Remove-AzGuestConfigurationAssignment.ps1 +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Remove-AzGuestConfigurationAssignment.ps1 @@ -171,8 +171,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Update-AzGuestConfigurationAssignment.ps1 b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Update-AzGuestConfigurationAssignment.ps1 index cbf9c643cd4a..3ec9233e3783 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Update-AzGuestConfigurationAssignment.ps1 +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Update-AzGuestConfigurationAssignment.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an association between a ARC machine and guest configuration +Update an association between a ARC machine and guest configuration .Description -update an association between a ARC machine and guest configuration +Update an association between a ARC machine and guest configuration .Example Update-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName test-assignment -ResourceGroupName test-rg -MachineName test-machine -GuestConfigurationName test-config -GuestConfigurationVersion "1.0.0.3" -GuestConfigurationContentUri "https://thisisfake/package" -GuestConfigurationContentHash "123contenthash" @@ -226,8 +226,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentInfo.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentInfo.cs index 54076a8da262..a0b0a93a3462 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentInfo.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentInfo.cs @@ -32,10 +32,10 @@ public partial class AssignmentInfo : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal.Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ConfigurationInfo()); set { {_configuration = value;} } } /// Internal Acessors for ConfigurationName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Name = value ?? null; } /// Internal Acessors for ConfigurationVersion - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfoInternal)Configuration).Version = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal.Name { get => this._name; set { {_name = value;} } } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentReport.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentReport.cs index ea3921c4548a..c03b7720686c 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentReport.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/AssignmentReport.cs @@ -60,19 +60,19 @@ public partial class AssignmentReport : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.Assignment { get => (this._assignment = this._assignment ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.AssignmentInfo()); set { {_assignment = value;} } } /// Internal Acessors for AssignmentConfiguration - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration = value ?? null /* model class */; } /// Internal Acessors for AssignmentName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name = value ?? null; } /// Internal Acessors for ComplianceStatus string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.ComplianceStatus { get => this._complianceStatus; set { {_complianceStatus = value;} } } /// Internal Acessors for ConfigurationName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName = value ?? null; } /// Internal Acessors for ConfigurationVersion - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion = value ?? null; } /// Internal Acessors for EndTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } @@ -93,10 +93,10 @@ public partial class AssignmentReport : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.VM { get => (this._vM = this._vM ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.VMInfo()); set { {_vM = value;} } } /// Internal Acessors for VMId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id = value ?? null; } /// Internal Acessors for VMUuid - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid = value ?? null; } /// Backing field for property. private string _operationType; diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignment.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignment.cs index 011de0c11b60..0ba3b50b7ccc 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignment.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignment.cs @@ -183,133 +183,133 @@ public partial class GuestConfigurationAssignment : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Location = value ?? null; } /// Internal Acessors for AssignmentConfiguration - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentConfiguration = value ?? null /* model class */; } /// Internal Acessors for AssignmentHash - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.AssignmentHash { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentHash; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentHash = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.AssignmentHash { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentHash; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentHash = value ?? null; } /// Internal Acessors for AssignmentName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).AssignmentName = value ?? null; } /// Internal Acessors for ComplianceStatus - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ComplianceStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ComplianceStatus = value ?? null; } /// Internal Acessors for ConfigurationName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationName = value ?? null; } /// Internal Acessors for ConfigurationSettingActionAfterReboot - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingActionAfterReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingActionAfterReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingActionAfterReboot = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingActionAfterReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingActionAfterReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingActionAfterReboot = value ?? null; } /// Internal Acessors for ConfigurationSettingAllowModuleOverwrite - bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingAllowModuleOverwrite { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingAllowModuleOverwrite; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingAllowModuleOverwrite = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingAllowModuleOverwrite { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingAllowModuleOverwrite; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingAllowModuleOverwrite = value ?? default(bool); } /// Internal Acessors for ConfigurationSettingConfigurationMode - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingConfigurationMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationMode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingConfigurationMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationMode = value ?? null; } /// Internal Acessors for ConfigurationSettingConfigurationModeFrequencyMin - float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingConfigurationModeFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationModeFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationModeFrequencyMin = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingConfigurationModeFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationModeFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingConfigurationModeFrequencyMin = value ?? default(float); } /// Internal Acessors for ConfigurationSettingRebootIfNeeded - bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingRebootIfNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRebootIfNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRebootIfNeeded = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingRebootIfNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRebootIfNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRebootIfNeeded = value ?? default(bool); } /// Internal Acessors for ConfigurationSettingRefreshFrequencyMin - float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingRefreshFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRefreshFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRefreshFrequencyMin = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationSettingRefreshFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRefreshFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationSettingRefreshFrequencyMin = value ?? default(float); } /// Internal Acessors for ConfigurationVersion - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ConfigurationVersion = value ?? null; } /// Internal Acessors for GuestConfiguration - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigation Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.GuestConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigation Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.GuestConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfiguration = value ?? null /* model class */; } /// Internal Acessors for GuestConfigurationContentType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.GuestConfigurationContentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationContentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationContentType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.GuestConfigurationContentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationContentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationContentType = value ?? null; } /// Internal Acessors for GuestConfigurationSetting - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSetting Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.GuestConfigurationSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSetting Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.GuestConfigurationSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationSetting = value ?? null /* model class */; } /// Internal Acessors for LastComplianceStatusChecked - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LastComplianceStatusChecked { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LastComplianceStatusChecked; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LastComplianceStatusChecked = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LastComplianceStatusChecked { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LastComplianceStatusChecked; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LastComplianceStatusChecked = value ?? default(global::System.DateTime); } /// Internal Acessors for LatestAssignmentReport - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReport Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReport { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReport; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReport = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReport Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReport { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReport; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReport = value ?? null /* model class */; } /// Internal Acessors for LatestAssignmentReportAssignment - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportAssignment = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportAssignment = value ?? null /* model class */; } /// Internal Acessors for LatestAssignmentReportComplianceStatus - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportComplianceStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportComplianceStatus = value ?? null; } /// Internal Acessors for LatestAssignmentReportEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for LatestAssignmentReportId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportId = value ?? null; } /// Internal Acessors for LatestAssignmentReportOperationType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportOperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportOperationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportOperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportOperationType = value ?? null; } /// Internal Acessors for LatestAssignmentReportStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for LatestAssignmentReportVM - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportVM { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportVM; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportVM = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestAssignmentReportVM { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportVM; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestAssignmentReportVM = value ?? null /* model class */; } /// Internal Acessors for LatestReportId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestReportId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.LatestReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).LatestReportId = value ?? null; } /// Internal Acessors for ParameterHash - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ParameterHash { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ParameterHash; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ParameterHash = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ParameterHash { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ParameterHash; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ParameterHash = value ?? null; } /// Internal Acessors for PropertiesLatestAssignmentReportId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.PropertiesLatestAssignmentReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.PropertiesLatestAssignmentReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).Id = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentProperties Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.GuestConfigurationAssignmentProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for ResourceType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ResourceType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).ResourceType = value ?? null; } /// Internal Acessors for Source - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.Source { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationAssignmentSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationAssignmentSource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.Source { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationAssignmentSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).GuestConfigurationAssignmentSource = value ?? null; } /// Internal Acessors for SystemData Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).TargetResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).TargetResourceId = value ?? null; } /// Internal Acessors for VMId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMId = value ?? null; } /// Internal Acessors for VMUuid - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMUuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal)Property).VMUuid = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Name of the guest configuration assignment. [Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.PropertyOrigin.Inherited)] diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentProperties.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentProperties.cs index 73e09cb118c8..646a62cd0932 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentProperties.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentProperties.cs @@ -204,55 +204,55 @@ public partial class GuestConfigurationAssignmentProperties : public string LatestReportId { get => this._latestReportId; } /// Internal Acessors for AssignmentConfiguration - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentConfiguration = value ?? null /* model class */; } /// Internal Acessors for AssignmentHash string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.AssignmentHash { get => this._assignmentHash; set { {_assignmentHash = value;} } } /// Internal Acessors for AssignmentName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).AssignmentName = value ?? null; } /// Internal Acessors for ComplianceStatus string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ComplianceStatus { get => this._complianceStatus; set { {_complianceStatus = value;} } } /// Internal Acessors for ConfigurationName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationName = value ?? null; } /// Internal Acessors for ConfigurationSettingActionAfterReboot - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingActionAfterReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingActionAfterReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingActionAfterReboot = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingActionAfterReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingActionAfterReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingActionAfterReboot = value ?? null; } /// Internal Acessors for ConfigurationSettingAllowModuleOverwrite - bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingAllowModuleOverwrite { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingAllowModuleOverwrite; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingAllowModuleOverwrite = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingAllowModuleOverwrite { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingAllowModuleOverwrite; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingAllowModuleOverwrite = value ?? default(bool); } /// Internal Acessors for ConfigurationSettingConfigurationMode - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingConfigurationMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationMode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingConfigurationMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationMode = value ?? null; } /// Internal Acessors for ConfigurationSettingConfigurationModeFrequencyMin - float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingConfigurationModeFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationModeFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationModeFrequencyMin = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingConfigurationModeFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationModeFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingConfigurationModeFrequencyMin = value ?? default(float); } /// Internal Acessors for ConfigurationSettingRebootIfNeeded - bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingRebootIfNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRebootIfNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRebootIfNeeded = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingRebootIfNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRebootIfNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRebootIfNeeded = value ?? default(bool); } /// Internal Acessors for ConfigurationSettingRefreshFrequencyMin - float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingRefreshFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRefreshFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRefreshFrequencyMin = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationSettingRefreshFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRefreshFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSettingRefreshFrequencyMin = value ?? default(float); } /// Internal Acessors for ConfigurationVersion - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ConfigurationVersion = value ?? null; } /// Internal Acessors for GuestConfiguration Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigation Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.GuestConfiguration { get => (this._guestConfiguration = this._guestConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.GuestConfigurationNavigation()); set { {_guestConfiguration = value;} } } /// Internal Acessors for GuestConfigurationAssignmentSource - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.GuestConfigurationAssignmentSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).AssignmentSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).AssignmentSource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.GuestConfigurationAssignmentSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).AssignmentSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).AssignmentSource = value ?? null; } /// Internal Acessors for GuestConfigurationContentType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.GuestConfigurationContentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ContentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ContentType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.GuestConfigurationContentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ContentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ContentType = value ?? null; } /// Internal Acessors for GuestConfigurationSetting - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSetting Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.GuestConfigurationSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSetting Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.GuestConfigurationSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal)GuestConfiguration).ConfigurationSetting = value ?? null /* model class */; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Id = value ?? null; } /// Internal Acessors for LastComplianceStatusChecked global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LastComplianceStatusChecked { get => this._lastComplianceStatusChecked; set { {_lastComplianceStatusChecked = value;} } } @@ -261,25 +261,25 @@ public partial class GuestConfigurationAssignmentProperties : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReport Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReport { get => (this._latestAssignmentReport = this._latestAssignmentReport ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.AssignmentReport()); set { {_latestAssignmentReport = value;} } } /// Internal Acessors for LatestAssignmentReportAssignment - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Assignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Assignment = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Assignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).Assignment = value ?? null /* model class */; } /// Internal Acessors for LatestAssignmentReportComplianceStatus - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ComplianceStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ComplianceStatus = value ?? null; } /// Internal Acessors for LatestAssignmentReportEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).EndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).EndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for LatestAssignmentReportId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ReportId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).ReportId = value ?? null; } /// Internal Acessors for LatestAssignmentReportOperationType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).OperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).OperationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).OperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).OperationType = value ?? null; } /// Internal Acessors for LatestAssignmentReportStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for LatestAssignmentReportVM - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportVM { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VM; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VM = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestAssignmentReportVM { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VM; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VM = value ?? null /* model class */; } /// Internal Acessors for LatestReportId string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.LatestReportId { get => this._latestReportId; set { {_latestReportId = value;} } } @@ -297,10 +297,10 @@ public partial class GuestConfigurationAssignmentProperties : string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } /// Internal Acessors for VMId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMId = value ?? null; } /// Internal Acessors for VMUuid - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMUuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentPropertiesInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportInternal)LatestAssignmentReport).VMUuid = value ?? null; } /// Backing field for property. private string _parameterHash; diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReport.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReport.cs index 56e727b03b37..8c305f236cf6 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReport.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReport.cs @@ -79,43 +79,43 @@ public partial class GuestConfigurationAssignmentReport : public string Id { get => this._id; } /// Internal Acessors for Assignment - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.Assignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Assignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Assignment = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.Assignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Assignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Assignment = value ?? null /* model class */; } /// Internal Acessors for AssignmentConfiguration - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentConfiguration = value ?? null /* model class */; } /// Internal Acessors for AssignmentName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).AssignmentName = value ?? null; } /// Internal Acessors for ComplianceStatus - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ComplianceStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ComplianceStatus = value ?? null; } /// Internal Acessors for ConfigurationName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationName = value ?? null; } /// Internal Acessors for ConfigurationVersion - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ConfigurationVersion = value ?? null; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetails Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetails Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).Detail = value ?? null /* model class */; } /// Internal Acessors for DetailComplianceStatus - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailComplianceStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailComplianceStatus = value ?? null; } /// Internal Acessors for DetailEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailEndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for DetailJobId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailJobId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailJobId = value ?? null; } /// Internal Acessors for DetailOperationType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailOperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailOperationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailOperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailOperationType = value ?? null; } /// Internal Acessors for DetailStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.DetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).DetailStartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for EndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).EndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).EndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.Id { get => this._id; set { {_id = value;} } } @@ -127,22 +127,22 @@ public partial class GuestConfigurationAssignmentReport : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportProperties Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.GuestConfigurationAssignmentReportProperties()); set { {_property = value;} } } /// Internal Acessors for ReportId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ReportId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.ReportId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ReportId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).ReportId = value ?? null; } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for VM - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VM { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VM; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VM = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VM { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VM; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VM = value ?? null /* model class */; } /// Internal Acessors for VMId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMId = value ?? null; } /// Internal Acessors for VMUuid - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMUuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VMUuid = value ?? null; } /// Internal Acessors for VmssResourceId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VmssResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VmssResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VmssResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportInternal.VmssResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VmssResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal)Property).VmssResourceId = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReportProperties.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReportProperties.cs index e7a5d58004d6..876d13619320 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReportProperties.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationAssignmentReportProperties.cs @@ -95,37 +95,37 @@ public partial class GuestConfigurationAssignmentReportProperties : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.Assignment { get => (this._assignment = this._assignment ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.AssignmentInfo()); set { {_assignment = value;} } } /// Internal Acessors for AssignmentConfiguration - Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration = value; } + Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.AssignmentConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Configuration = value ?? null /* model class */; } /// Internal Acessors for AssignmentName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.AssignmentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).Name = value ?? null; } /// Internal Acessors for ComplianceStatus string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.ComplianceStatus { get => this._complianceStatus; set { {_complianceStatus = value;} } } /// Internal Acessors for ConfigurationName - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.ConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationName = value ?? null; } /// Internal Acessors for ConfigurationVersion - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.ConfigurationVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentInfoInternal)Assignment).ConfigurationVersion = value ?? null; } /// Internal Acessors for Detail Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetails Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.AssignmentReportDetails()); set { {_detail = value;} } } /// Internal Acessors for DetailComplianceStatus - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).ComplianceStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailComplianceStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).ComplianceStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).ComplianceStatus = value ?? null; } /// Internal Acessors for DetailEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).EndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).EndTime = value ?? default(global::System.DateTime); } /// Internal Acessors for DetailJobId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).JobId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).JobId = value ?? null; } /// Internal Acessors for DetailOperationType - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).OperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).OperationType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailOperationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).OperationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).OperationType = value ?? null; } /// Internal Acessors for DetailStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.DetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IAssignmentReportDetailsInternal)Detail).StartTime = value ?? default(global::System.DateTime); } /// Internal Acessors for EndTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } @@ -140,10 +140,10 @@ public partial class GuestConfigurationAssignmentReportProperties : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfo Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.VM { get => (this._vM = this._vM ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.VMInfo()); set { {_vM = value;} } } /// Internal Acessors for VMId - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.VMId { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Id = value ?? null; } /// Internal Acessors for VMUuid - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.VMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IVMInfoInternal)VM).Uuid = value ?? null; } /// Internal Acessors for VmssResourceId string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportPropertiesInternal.VmssResourceId { get => this._vmssResourceId; set { {_vmssResourceId = value;} } } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationNavigation.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationNavigation.cs index d1a58a9c7554..1dd1ee7fc837 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationNavigation.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/GuestConfigurationNavigation.cs @@ -135,22 +135,22 @@ public partial class GuestConfigurationNavigation : Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSetting Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSetting { get => (this._configurationSetting = this._configurationSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.ConfigurationSetting()); set { {_configurationSetting = value;} } } /// Internal Acessors for ConfigurationSettingActionAfterReboot - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingActionAfterReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ActionAfterReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ActionAfterReboot = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingActionAfterReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ActionAfterReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ActionAfterReboot = value ?? null; } /// Internal Acessors for ConfigurationSettingAllowModuleOverwrite - bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingAllowModuleOverwrite { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).AllowModuleOverwrite; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).AllowModuleOverwrite = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingAllowModuleOverwrite { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).AllowModuleOverwrite; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).AllowModuleOverwrite = value ?? default(bool); } /// Internal Acessors for ConfigurationSettingConfigurationMode - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingConfigurationMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationMode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingConfigurationMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationMode = value ?? null; } /// Internal Acessors for ConfigurationSettingConfigurationModeFrequencyMin - float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingConfigurationModeFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationModeFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationModeFrequencyMin = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingConfigurationModeFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationModeFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).ConfigurationModeFrequencyMin = value ?? default(float); } /// Internal Acessors for ConfigurationSettingRebootIfNeeded - bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingRebootIfNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RebootIfNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RebootIfNeeded = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingRebootIfNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RebootIfNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RebootIfNeeded = value ?? default(bool); } /// Internal Acessors for ConfigurationSettingRefreshFrequencyMin - float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingRefreshFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RefreshFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RefreshFrequencyMin = value; } + float? Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ConfigurationSettingRefreshFrequencyMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RefreshFrequencyMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IConfigurationSettingInternal)ConfigurationSetting).RefreshFrequencyMin = value ?? default(float); } /// Internal Acessors for ContentType string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationNavigationInternal.ContentType { get => this._contentType; set { {_contentType = value;} } } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/ProxyResource.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/ProxyResource.cs index abb6355a6e83..7271bc03c4ba 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/api/Models/ProxyResource.cs @@ -28,10 +28,10 @@ public partial class ProxyResource : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IResourceInternal)__resource).Type = value ?? null; } /// Name of the guest configuration assignment. [Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Origin(Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.PropertyOrigin.Inherited)] diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List.cs index 4dc6084ecb16..4f073029c52d 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List.cs @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List1.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List1.cs index 5ccb03832352..1554faf30b8a 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List1.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/GetAzGuestConfigurationAssignment_List1.cs @@ -485,7 +485,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete.cs index 63bec996c73a..2d03b98755b3 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete.cs @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete1.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete1.cs index 636cd69ecb23..6716d13f29cd 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete1.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete1.cs @@ -503,7 +503,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete2.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete2.cs index 4a1f56726775..4197333af350 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete2.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/cmdlets/RemoveAzGuestConfigurationAssignment_Delete2.cs @@ -514,7 +514,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 93965a79d583..75a8a3c641d8 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/GuestConfiguration/GuestConfiguration.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/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 398bf8016c25..566f9c439831 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/GuestConfiguration/GuestConfiguration.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/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index c22067bf8f43..b2c272d435ff 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/GuestConfiguration/GuestConfiguration.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/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/Context.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/Context.cs index 76fe3e06039e..78b0318c6cd7 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/Context.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.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/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/MessageAttribute.cs b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/MessageAttribute.cs index 1bb67bd88bf6..308f6fd32207 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.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.GuestConfiguration" : @""; + //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/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/Properties/Resources.resx b/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/GuestConfiguration/GuestConfiguration.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/GuestConfiguration/GuestConfiguration.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/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitor.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitor.ps1 index 50bc7c817867..8935d1cf9a64 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitor.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitor.ps1 @@ -146,8 +146,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitorProviderInstance.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitorProviderInstance.ps1 index b9ec3448f604..5e46314515b6 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitorProviderInstance.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Get-AzSapMonitorProviderInstance.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitor.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitor.ps1 index 26dfa5a77bbc..2c0bcd780895 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitor.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitor.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a SAP monitor for the specified subscription, resource group, and resource name. +Create a SAP monitor for the specified subscription, resource group, and resource name. .Description -create a SAP monitor for the specified subscription, resource group, and resource name. +Create a SAP monitor for the specified subscription, resource group, and resource name. .Example $Workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name sapmonitor-test -Location westus2 -Sku "Standard" $WorkspaceKey = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name sapmonitor-test @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitorProviderInstance.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitorProviderInstance.ps1 index 6296d6350971..b508f9c8782d 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitorProviderInstance.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/New-AzSapMonitorProviderInstance.ps1 @@ -214,8 +214,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/HanaOnAzure/HanaOnAzure.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/ProxyCmdletDefinitions.ps1 index 1a4a960ba561..419ce1a9ecd5 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -173,8 +173,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -392,8 +391,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -480,9 +478,9 @@ end { <# .Synopsis -create a SAP monitor for the specified subscription, resource group, and resource name. +Create a SAP monitor for the specified subscription, resource group, and resource name. .Description -create a SAP monitor for the specified subscription, resource group, and resource name. +Create a SAP monitor for the specified subscription, resource group, and resource name. .Example $Workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name sapmonitor-test -Location westus2 -Sku "Standard" $WorkspaceKey = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name sapmonitor-test @@ -648,8 +646,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -904,8 +901,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1135,8 +1131,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1222,9 +1217,9 @@ end { <# .Synopsis -update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Description -update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Example $jsonString = '{ "HanaHostname": "hdb1-0", @@ -1437,8 +1432,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1676,8 +1670,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -1963,8 +1956,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitor.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitor.ps1 index b8613380577d..1ede12ab4cad 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitor.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitor.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/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitorProviderInstance.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitorProviderInstance.ps1 index cd193d15c2d4..854550a20b24 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitorProviderInstance.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Remove-AzSapMonitorProviderInstance.ps1 @@ -184,8 +184,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitor.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitor.ps1 index 78a04a8c7a28..d3017d56824d 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitor.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitor.ps1 @@ -167,8 +167,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitorProviderInstance.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitorProviderInstance.ps1 index aba83e47c72f..3297859fff8e 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitorProviderInstance.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/exports/Update-AzSapMonitorProviderInstance.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Description -update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Example $jsonString = '{ "HanaHostname": "hdb1-0", @@ -231,8 +231,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/DeletedVault.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/DeletedVault.cs index 9e6550f7f7c4..10df08b38dc1 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/DeletedVault.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/DeletedVault.cs @@ -29,13 +29,13 @@ public partial class DeletedVault : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Location; } /// Internal Acessors for DeletionDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.DeletionDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).DeletionDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).DeletionDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.DeletionDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).DeletionDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).DeletionDate = value ?? default(global::System.DateTime); } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Location = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Location = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Name { get => this._name; set { {_name = value;} } } @@ -44,16 +44,16 @@ public partial class DeletedVault : Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.DeletedVaultProperties()); set { {_property = value;} } } /// Internal Acessors for ScheduledPurgeDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.ScheduledPurgeDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).ScheduledPurgeDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).ScheduledPurgeDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.ScheduledPurgeDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).ScheduledPurgeDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).ScheduledPurgeDate = value ?? default(global::System.DateTime); } /// Internal Acessors for Tag - Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesTags Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Tag = value; } + Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesTags Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).Tag = value ?? null /* model class */; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.Type { get => this._type; set { {_type = value;} } } /// Internal Acessors for VaultId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).VaultId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultInternal.VaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).VaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDeletedVaultPropertiesInternal)Property).VaultId = value ?? null; } /// Backing field for property. private string _name; diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Identity.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Identity.cs index fff3b6f40a7f..0c5583df8b97 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Identity.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Identity.cs @@ -36,25 +36,25 @@ public partial class Identity : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId = value ?? null; } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.UserAssignedIdentityProperties()); set { {_property = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inherited)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/IdentityUpdate.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/IdentityUpdate.cs index 346aef662e58..5d6f942323f2 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/IdentityUpdate.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/IdentityUpdate.cs @@ -38,25 +38,25 @@ public partial class IdentityUpdate : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityUpdateInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityUpdateInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).ClientId = value ?? null; } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityUpdateInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityUpdateInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).PrincipalId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.UserAssignedIdentityProperties()); set { {_property = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityUpdateInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IIdentityUpdateInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IUserAssignedIdentityPropertiesInternal)Property).TenantId = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inherited)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Operation.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Operation.cs index 2cbabf3dc1cc..16a3716cadb7 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Operation.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Operation.cs @@ -59,19 +59,19 @@ public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplay Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Display()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Description = value ?? null; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Operation = value ?? null; } /// Internal Acessors for DisplayOrigin - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayOrigin { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Origin; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Origin = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayOrigin { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Origin; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Origin = value ?? null; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Provider = value ?? null; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProviderInstance.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProviderInstance.cs index 92eb838bbc5d..5b0b0b3c3bb3 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProviderInstance.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProviderInstance.cs @@ -34,16 +34,16 @@ public partial class ProviderInstance : Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ProviderInstanceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstancePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstancePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstancePropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inherited)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProxyResource.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProxyResource.cs index 1e25b152c55b..0364060fe71b 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProxyResource.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/ProxyResource.cs @@ -27,13 +27,13 @@ public partial class ProxyResource : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inherited)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SapMonitor.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SapMonitor.cs index 99be4e7e7a27..ada2702fbf35 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SapMonitor.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SapMonitor.cs @@ -62,25 +62,25 @@ public partial class SapMonitor : public string ManagedResourceGroupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ManagedResourceGroupName; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// Internal Acessors for CollectorVersion - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorInternal.CollectorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).SapMonitorCollectorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).SapMonitorCollectorVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorInternal.CollectorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).SapMonitorCollectorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).SapMonitorCollectorVersion = value ?? null; } /// Internal Acessors for ManagedResourceGroupName - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorInternal.ManagedResourceGroupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ManagedResourceGroupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ManagedResourceGroupName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorInternal.ManagedResourceGroupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ManagedResourceGroupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ManagedResourceGroupName = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.SapMonitorProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitorPropertiesInternal)Property).ProvisioningState = value ?? null; } /// The subnet which the SAP monitor will be deployed in [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inlined)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SystemAssignedIdentity.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SystemAssignedIdentity.cs index 93cc6ddbfcac..b3aecc5bcaeb 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SystemAssignedIdentity.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/SystemAssignedIdentity.cs @@ -44,28 +44,28 @@ public partial class SystemAssignedIdentity : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__proxyResource).Type = value ?? null; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.ClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientId = value ?? null; } /// Internal Acessors for ClientSecretUrl - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.ClientSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientSecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientSecretUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.ClientSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientSecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).ClientSecretUrl = value ?? null; } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.PrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).PrincipalId = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.SystemAssignedIdentityProperties()); set { {_property = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityInternal.TenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISystemAssignedIdentityPropertiesInternal)Property).TenantId = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inherited)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/TrackedResource.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/TrackedResource.cs index 4e96cb2401b2..67ff0c746195 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/HanaOnAzure/HanaOnAzure.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.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inherited)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Vault.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Vault.cs index 50d5b61a6960..67c778c6f653 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Vault.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/Vault.cs @@ -78,22 +78,22 @@ public partial class Vault : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Location = value ; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.VaultProperties()); set { {_property = value;} } } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku = value; } + Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku = value ?? null /* model class */; } /// Internal Acessors for SkuFamily - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily = value ; } /// The name of the key vault. [Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Origin(Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.PropertyOrigin.Inherited)] diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultCreateOrUpdateParameters.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultCreateOrUpdateParameters.cs index ac9b2d0b241a..1ebb02d1d6fd 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultCreateOrUpdateParameters.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultCreateOrUpdateParameters.cs @@ -74,10 +74,10 @@ public partial class VaultCreateOrUpdateParameters : Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultCreateOrUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.VaultProperties()); set { {_property = value;} } } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultCreateOrUpdateParametersInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku = value; } + Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultCreateOrUpdateParametersInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).Sku = value ?? null /* model class */; } /// Internal Acessors for SkuFamily - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultCreateOrUpdateParametersInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultCreateOrUpdateParametersInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal)Property).SkuFamily = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultProperties _property; diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchParameters.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchParameters.cs index df9d999e6612..f1b4a31a54c3 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchParameters.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchParameters.cs @@ -63,10 +63,10 @@ public partial class VaultPatchParameters : Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchProperties Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.VaultPatchProperties()); set { {_property = value;} } } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchParametersInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).Sku = value; } + Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchParametersInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).Sku = value ?? null /* model class */; } /// Internal Acessors for SkuFamily - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchParametersInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).SkuFamily = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchParametersInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal)Property).SkuFamily = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchProperties _property; diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchProperties.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchProperties.cs index 485676815a00..78889a2731f0 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchProperties.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultPatchProperties.cs @@ -84,7 +84,7 @@ public partial class VaultPatchProperties : Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Sku()); set { {_sku = value;} } } /// Internal Acessors for SkuFamily - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPatchPropertiesInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku _sku; diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultProperties.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultProperties.cs index 4ede5f148643..cb7e9a02ce0a 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultProperties.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/api/Models/VaultProperties.cs @@ -88,7 +88,7 @@ public partial class VaultProperties : Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.Sku()); set { {_sku = value;} } } /// Internal Acessors for SkuFamily - string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IVaultPropertiesInternal.SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISkuInternal)Sku).Family = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISku _sku; diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateExpanded.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateExpanded.cs index 2d34d76f6d6b..9b3d705491af 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateExpanded.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateExpanded.cs @@ -43,18 +43,9 @@ public partial class NewAzSapMonitorProviderInstance_CreateExpanded : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A provider instance associated with a SAP monitor. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance _providerInstanceParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ProviderInstance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -304,11 +295,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.NewAzSapMonitorPro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -624,24 +610,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateViaIdentitySapMonitorExpanded.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateViaIdentitySapMonitorExpanded.cs index fbedd9c53744..836537515e10 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateViaIdentitySapMonitorExpanded.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitorProviderInstance_CreateViaIdentitySapMonitorExpanded.cs @@ -43,18 +43,9 @@ public partial class NewAzSapMonitorProviderInstance_CreateViaIdentitySapMonitor /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A provider instance associated with a SAP monitor. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance _providerInstanceParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ProviderInstance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.NewAzSapMonitorPro /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.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.HanaOnAzure.Models.IProviderInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateExpanded.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateExpanded.cs index 131b83ee014c..94f2694faf74 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateExpanded.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateExpanded.cs @@ -42,15 +42,6 @@ public partial class NewAzSapMonitor_CreateExpanded : global::System.Management. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// SAP monitor info on Azure (ARM properties and SAP monitor properties) private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitor _sapMonitorParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.SapMonitor(); @@ -335,11 +326,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.NewAzSapMonitor_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -655,24 +641,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitor var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonFilePath.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonFilePath.cs index eb994b08321f..8d3892825ac1 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonFilePath.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonFilePath.cs @@ -43,17 +43,8 @@ public partial class NewAzSapMonitor_CreateViaJsonFilePath : 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; - 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.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -268,11 +259,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.NewAzSapMonitor_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -588,24 +574,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitor var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonString.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonString.cs index c79697ae5839..32781ec94665 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonString.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/NewAzSapMonitor_CreateViaJsonString.cs @@ -43,15 +43,6 @@ public partial class NewAzSapMonitor_CreateViaJsonString : 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.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.NewAzSapMonitor_Cr /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -586,24 +572,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ISapMonitor var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_Delete.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_Delete.cs index 4f4d9b7a8016..f6e8473ff648 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_Delete.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_Delete.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSapMonitorProviderInstance_Delete : global::System. /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -281,11 +272,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.RemoveAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -597,7 +583,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -621,7 +607,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentity.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentity.cs index 371449c251b1..a3169f2e8d88 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentity.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentity.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSapMonitorProviderInstance_DeleteViaIdentity : glob /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.RemoveAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -560,7 +546,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -584,7 +570,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentitySapMonitor.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentitySapMonitor.cs index 7bb6a1225060..e5c8fbcb56b7 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentitySapMonitor.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitorProviderInstance_DeleteViaIdentitySapMonitor.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSapMonitorProviderInstance_DeleteViaIdentitySapMoni /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -238,11 +229,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.RemoveAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -576,7 +562,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -600,7 +586,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/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_Delete.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_Delete.cs index ecd636c2b596..11d457d85f45 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_Delete.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_Delete.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSapMonitor_Delete : global::System.Management.Autom /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -266,11 +257,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.RemoveAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -582,7 +568,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -606,7 +592,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/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_DeleteViaIdentity.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_DeleteViaIdentity.cs index 3084ef266203..afb80328d40b 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_DeleteViaIdentity.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzSapMonitor_DeleteViaIdentity.cs @@ -42,15 +42,6 @@ public partial class RemoveAzSapMonitor_DeleteViaIdentity : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -220,11 +211,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.RemoveAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -556,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -580,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs index 0d3be9709129..131956d6d7a6 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_Delete.cs @@ -498,7 +498,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -522,7 +522,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/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs index 505b09e3e984..671080216819 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/RemoveAzUserAssignedIdentity_DeleteViaIdentity.cs @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -500,7 +500,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateExpanded.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateExpanded.cs index b8fbe80fb0f5..0a7e09741023 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateExpanded.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateExpanded.cs @@ -42,18 +42,9 @@ public partial class UpdateAzSapMonitorProviderInstance_UpdateExpanded : global: /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A provider instance associated with a SAP monitor. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance _providerInstanceParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ProviderInstance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -303,11 +294,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.UpdateAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -641,24 +627,7 @@ private void Update_providerInstanceParameterBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentityExpanded.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentityExpanded.cs index 4f49aab8466c..1dc05a6fe99f 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentityExpanded.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentityExpanded.cs @@ -42,18 +42,9 @@ public partial class UpdateAzSapMonitorProviderInstance_UpdateViaIdentityExpande /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A provider instance associated with a SAP monitor. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance _providerInstanceParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ProviderInstance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -244,11 +235,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.UpdateAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -608,24 +594,7 @@ private void Update_providerInstanceParameterBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentitySapMonitorExpanded.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentitySapMonitorExpanded.cs index 7fc46bf9fdc6..4bbab9cb73be 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentitySapMonitorExpanded.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/cmdlets/UpdateAzSapMonitorProviderInstance_UpdateViaIdentitySapMonitorExpanded.cs @@ -42,18 +42,9 @@ public partial class UpdateAzSapMonitorProviderInstance_UpdateViaIdentitySapMoni /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// A provider instance associated with a SAP monitor. private Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance _providerInstanceParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.ProviderInstance(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.ParameterCategory.Runtime)] @@ -260,11 +251,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Cmdlets.UpdateAzSapMonitor /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -622,24 +608,7 @@ private void Update_providerInstanceParameterBody() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.Models.IProviderInstance var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index eb4f78f371ca..2fcf2d166be2 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/HanaOnAzure/HanaOnAzure.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/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 66547984e8db..642e15f9a998 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/HanaOnAzure/HanaOnAzure.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/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index b89cb97f2934..347dcb1af85c 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/HanaOnAzure/HanaOnAzure.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/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/Context.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/Context.cs index 3892b164e0fc..fd8553d60f15 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/Context.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.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/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/MessageAttribute.cs b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/MessageAttribute.cs index e2808a5700fc..9569ee43ee16 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.HanaOnAzure.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.HanaOnAzure" : @""; + //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/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/Properties/Resources.resx b/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/HanaOnAzure/HanaOnAzure.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/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzSapMonitorProviderInstance.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzSapMonitorProviderInstance.ps1 index fb88a1ca2f97..d93a9061658b 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzSapMonitorProviderInstance.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzSapMonitorProviderInstance.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Description -create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Example $pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t01 -SapMonitorName yemingmonitor -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword $pwd diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzUserAssignedIdentity.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzUserAssignedIdentity.ps1 index 6db5733ed35d..17f59ffae551 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzUserAssignedIdentity.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/New-AzUserAssignedIdentity.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create an identity in the specified subscription and resource group. +Create an identity in the specified subscription and resource group. .Description -create an identity in the specified subscription and resource group. +Create an identity in the specified subscription and resource group. .Example {{ Add code here }} .Example diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/ProxyCmdletDefinitions.ps1 index 597bce065a45..2931c4359cee 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -189,9 +189,9 @@ end { <# .Synopsis -create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Description -create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Create a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. .Example $pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t01 -SapMonitorName yemingmonitor -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword $pwd @@ -403,9 +403,9 @@ end { <# .Synopsis -create an identity in the specified subscription and resource group. +Create an identity in the specified subscription and resource group. .Description -create an identity in the specified subscription and resource group. +Create an identity in the specified subscription and resource group. .Example {{ Add code here }} .Example @@ -747,9 +747,9 @@ end { <# .Synopsis -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Description -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Example {{ Add code here }} .Example @@ -917,9 +917,9 @@ end { <# .Synopsis -update access policies in a key vault in the specified subscription. +Update access policies in a key vault in the specified subscription. .Description -update access policies in a key vault in the specified subscription. +Update access policies in a key vault in the specified subscription. .Example {{ Add code here }} .Example @@ -1102,9 +1102,9 @@ end { <# .Synopsis -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Description -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Example {{ Add code here }} .Example diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzUserAssignedIdentity.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzUserAssignedIdentity.ps1 index 8c5891399c74..267876de9083 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzUserAssignedIdentity.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzUserAssignedIdentity.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Description -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Example {{ Add code here }} .Example diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzVaultAccessPolicy.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzVaultAccessPolicy.ps1 index c5028a75c108..086db1b89c94 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzVaultAccessPolicy.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Set-AzVaultAccessPolicy.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update access policies in a key vault in the specified subscription. +Update access policies in a key vault in the specified subscription. .Description -update access policies in a key vault in the specified subscription. +Update access policies in a key vault in the specified subscription. .Example {{ Add code here }} .Example diff --git a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Update-AzUserAssignedIdentity.ps1 b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Update-AzUserAssignedIdentity.ps1 index 3c60cad86d71..3813373f0d07 100644 --- a/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Update-AzUserAssignedIdentity.ps1 +++ b/generated/HanaOnAzure/HanaOnAzure.Autorest/internal/Update-AzUserAssignedIdentity.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Description -update an identity in the specified subscription and resource group. +Update an identity in the specified subscription and resource group. .Example {{ Add code here }} .Example diff --git a/generated/HealthBot/HealthBot.Autorest/exports/Get-AzHealthBot.ps1 b/generated/HealthBot/HealthBot.Autorest/exports/Get-AzHealthBot.ps1 index 3201c9c530fb..1f68e37a666b 100644 --- a/generated/HealthBot/HealthBot.Autorest/exports/Get-AzHealthBot.ps1 +++ b/generated/HealthBot/HealthBot.Autorest/exports/Get-AzHealthBot.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthBot/HealthBot.Autorest/exports/New-AzHealthBot.ps1 b/generated/HealthBot/HealthBot.Autorest/exports/New-AzHealthBot.ps1 index 749f356aaf88..844619f527eb 100644 --- a/generated/HealthBot/HealthBot.Autorest/exports/New-AzHealthBot.ps1 +++ b/generated/HealthBot/HealthBot.Autorest/exports/New-AzHealthBot.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -create a new HealthBot. +Create a new HealthBot. .Description -create a new HealthBot. +Create a new HealthBot. .Example New-AzHealthBot -Name yourihealthbot1 -ResourceGroupName youriTest -Location eastus -Sku F0 @@ -157,8 +157,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthBot/HealthBot.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/HealthBot/HealthBot.Autorest/exports/ProxyCmdletDefinitions.ps1 index a977d2d72a1c..985c1ace1160 100644 --- a/generated/HealthBot/HealthBot.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/HealthBot/HealthBot.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -141,8 +141,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -230,9 +229,9 @@ end { <# .Synopsis -create a new HealthBot. +Create a new HealthBot. .Description -create a new HealthBot. +Create a new HealthBot. .Example New-AzHealthBot -Name yourihealthbot1 -ResourceGroupName youriTest -Location eastus -Sku F0 @@ -371,8 +370,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -595,8 +593,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { @@ -834,8 +831,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/HealthBot/HealthBot.Autorest/exports/Remove-AzHealthBot.ps1 b/generated/HealthBot/HealthBot.Autorest/exports/Remove-AzHealthBot.ps1 index 445e56b9aabd..017dab3f336c 100644 --- a/generated/HealthBot/HealthBot.Autorest/exports/Remove-AzHealthBot.ps1 +++ b/generated/HealthBot/HealthBot.Autorest/exports/Remove-AzHealthBot.ps1 @@ -152,8 +152,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in." - exit + throw "No Azure login detected. Please run 'Connect-AzAccount' to log in." } if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { diff --git a/generated/HealthBot/HealthBot.Autorest/exports/Update-AzHealthBot.ps1 b/generated/HealthBot/HealthBot.Autorest/exports/Update-AzHealthBot.ps1 index 619039fd0a1e..e103470e877b 100644 --- a/generated/HealthBot/HealthBot.Autorest/exports/Update-AzHealthBot.ps1 +++ b/generated/HealthBot/HealthBot.Autorest/exports/Update-AzHealthBot.ps1 @@ -168,8 +168,7 @@ begin { $context = Get-AzContext if (-not $context -and -not $testPlayback) { - Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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/HealthBot/HealthBot.Autorest/generated/api/Models/Error.cs b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/Error.cs index ef6975b2c6fa..349ad96deb41 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/api/Models/Error.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/Error.cs @@ -37,22 +37,22 @@ public partial class Error : public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Message; } /// Internal Acessors for AdditionalInfo - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).AdditionalInfo = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).AdditionalInfo = value ?? null /* arrayOf */; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Code = value ?? null; } /// Internal Acessors for Detail - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Detail = value; } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Detail = value ?? null /* arrayOf */; } /// Internal Acessors for Error1 Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1 Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Error1 { get => (this._error1 = this._error1 ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Error1()); set { {_error1 = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Message = value ?? null; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IError1Internal)Error1).Target = value ?? null; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthBot.PropertyOrigin.Inlined)] diff --git a/generated/HealthBot/HealthBot.Autorest/generated/api/Models/HealthBot.cs b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/HealthBot.cs index 0e4fabcc1480..4d34a67ddafb 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/api/Models/HealthBot.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/HealthBot.cs @@ -31,46 +31,46 @@ public partial class HealthBot : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } /// Internal Acessors for BotManagementPortalLink - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotInternal.BotManagementPortalLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).BotManagementPortalLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).BotManagementPortalLink = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotInternal.BotManagementPortalLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).BotManagementPortalLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).BotManagementPortalLink = value ?? null; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotProperties Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotPropertiesInternal)Property).ProvisioningState = value ?? null; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Sku()); set { {_sku = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__trackedResource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthBot.PropertyOrigin.Inherited)] diff --git a/generated/HealthBot/HealthBot.Autorest/generated/api/Models/Resource.cs b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/Resource.cs index d8c0266d5685..d501b3f3d904 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/api/Models/Resource.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/Resource.cs @@ -30,22 +30,22 @@ public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } diff --git a/generated/HealthBot/HealthBot.Autorest/generated/api/Models/TrackedResource.cs b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/TrackedResource.cs index 91a6be4a2f97..c3b4e07277e3 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/api/Models/TrackedResource.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/api/Models/TrackedResource.cs @@ -30,34 +30,34 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Id = value ?? null; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Name = value ?? null; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IResourceInternal)__resource).Type = value ?? null; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Origin(Microsoft.Azure.PowerShell.Cmdlets.HealthBot.PropertyOrigin.Inherited)] diff --git a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateExpanded.cs b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateExpanded.cs index 8a274ca0fb0b..3621fba591ce 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateExpanded.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateExpanded.cs @@ -40,18 +40,9 @@ public partial class NewAzHealthBot_CreateExpanded : global::System.Management.A /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - /// HealthBot resource definition private Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBot _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBot(); - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.ParameterCategory.Runtime)] @@ -285,11 +276,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Cmdlets.NewAzHealthBot_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -605,24 +591,7 @@ protected override void StopProcessing() // onOk - response for 200 / application/json // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBot var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonFilePath.cs b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonFilePath.cs index 9d19eda45368..9734bd20cc30 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonFilePath.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonFilePath.cs @@ -41,17 +41,8 @@ public partial class NewAzHealthBot_CreateViaJsonFilePath : global::System.Manag /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - 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.HealthBot.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.ParameterCategory.Runtime)] @@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Cmdlets.NewAzHealthBot_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthBot.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.HealthBot.Models.IHealthBot var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonString.cs b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonString.cs index 2a102cc63e56..6b2e80b5bb6a 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonString.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/NewAzHealthBot_CreateViaJsonString.cs @@ -41,15 +41,6 @@ public partial class NewAzHealthBot_CreateViaJsonString : global::System.Managem /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Cmdlets.NewAzHealthBot_Creat /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthBot.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.HealthBot.Models.IHealthBot var result = (await response); - if (null != result) - { - if (0 == _responseSize) - { - _firstResponse = result; - _responseSize = 1; - } - else - { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); - } - WriteObject(result.AddMultipleTypeNameIntoPSObject()); - _responseSize = 2; - } - } + WriteObject(result, false); } } } diff --git a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_Delete.cs b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_Delete.cs index 0647fc5a447c..7a48778c57d5 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_Delete.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_Delete.cs @@ -40,15 +40,6 @@ public partial class RemoveAzHealthBot_Delete : global::System.Management.Automa /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.ParameterCategory.Runtime)] @@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Cmdlets.RemoveAzHealthBot_De /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthBot.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/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_DeleteViaIdentity.cs b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_DeleteViaIdentity.cs index 906d4f6b9aea..0ea4ae826b44 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_DeleteViaIdentity.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/cmdlets/RemoveAzHealthBot_DeleteViaIdentity.cs @@ -40,15 +40,6 @@ public partial class RemoveAzHealthBot_DeleteViaIdentity : 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.HealthBot.Category(global::Microsoft.Azure.PowerShell.Cmdlets.HealthBot.ParameterCategory.Runtime)] @@ -218,11 +209,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Cmdlets.RemoveAzHealthBot_De /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.HealthBot.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/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/generated/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index d22d50eb6459..7fadcfd74ff8 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/generated/HealthBot/HealthBot.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/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index acd3a176539a..ffbe76cccf3d 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/generated/HealthBot/HealthBot.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/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/generated/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index fbc5b08e8716..defb95232284 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/generated/HealthBot/HealthBot.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/HealthBot/HealthBot.Autorest/generated/runtime/Context.cs b/generated/HealthBot/HealthBot.Autorest/generated/runtime/Context.cs index 023e2d775bc0..c9c9d7887b71 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/runtime/Context.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.HealthBot.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/HealthBot/HealthBot.Autorest/generated/runtime/MessageAttribute.cs b/generated/HealthBot/HealthBot.Autorest/generated/runtime/MessageAttribute.cs index 07fd52faaf4e..25c71abd72be 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/runtime/MessageAttribute.cs +++ b/generated/HealthBot/HealthBot.Autorest/generated/runtime/MessageAttribute.cs @@ -16,9 +16,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.HealthBot.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.HealthBot" : @""; + //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/HealthBot/HealthBot.Autorest/generated/runtime/Properties/Resources.resx b/generated/HealthBot/HealthBot.Autorest/generated/runtime/Properties/Resources.resx index a08a2e50172b..4ef90b70573d 100644 --- a/generated/HealthBot/HealthBot.Autorest/generated/runtime/Properties/Resources.resx +++ b/generated/HealthBot/HealthBot.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/src/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs b/src/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs index d4e4fc189b47..a6f4b222c89f 100644 --- a/src/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs +++ b/src/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs @@ -20,9 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DeviceRegistry")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Az.DeviceRegistry.md b/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Az.DeviceRegistry.md index d556624a5631..c8f0b3b7d23d 100644 --- a/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Az.DeviceRegistry.md +++ b/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Az.DeviceRegistry.md @@ -1,6 +1,6 @@ --- Module Name: Az.DeviceRegistry -Module Guid: 1a0fe4cd-b9c8-4154-b8ec-e5d780d358a0 +Module Guid: 6591123e-a428-4f84-ac5e-d1183b4fec06 Download Help Link: https://learn.microsoft.com/powershell/module/az.deviceregistry Help Version: 1.0.0.0 Locale: en-US diff --git a/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistryNamespace.md b/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistryNamespace.md index 4365a81016fd..6df34404d6c3 100644 --- a/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistryNamespace.md +++ b/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistryNamespace.md @@ -152,7 +152,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistrySchemaRegistry.md b/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistrySchemaRegistry.md index 6592741f458f..912e49e54c64 100644 --- a/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistrySchemaRegistry.md +++ b/src/DeviceRegistry/DeviceRegistry.Autorest/docs/Update-AzDeviceRegistrySchemaRegistry.md @@ -167,7 +167,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/DeviceRegistry/DeviceRegistry/AutorestUpgradeLog.md b/src/DeviceRegistry/DeviceRegistry/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/DeviceRegistry/DeviceRegistry/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/DeviceRegistry/DeviceRegistry/ChangeLog.md b/src/DeviceRegistry/DeviceRegistry/ChangeLog.md index 97d7eb35fa52..b27b2c40ca0b 100644 --- a/src/DeviceRegistry/DeviceRegistry/ChangeLog.md +++ b/src/DeviceRegistry/DeviceRegistry/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.0.0 * General availability for module Az.DeviceRegistry diff --git a/src/DeviceUpdate/DeviceUpdate.Autorest/Properties/AssemblyInfo.cs b/src/DeviceUpdate/DeviceUpdate.Autorest/Properties/AssemblyInfo.cs index 220192a9d517..82f9b0ffe108 100644 --- a/src/DeviceUpdate/DeviceUpdate.Autorest/Properties/AssemblyInfo.cs +++ b/src/DeviceUpdate/DeviceUpdate.Autorest/Properties/AssemblyInfo.cs @@ -20,9 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DeviceUpdate")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Az.DeviceUpdate.md b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Az.DeviceUpdate.md index d4342ca99842..d5768b7285a7 100644 --- a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Az.DeviceUpdate.md +++ b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Az.DeviceUpdate.md @@ -1,6 +1,6 @@ --- Module Name: Az.DeviceUpdate -Module Guid: 7ccf1a98-2bbc-4c3f-8f8f-ad4c17fc1625 +Module Guid: 6cec19c2-a991-4626-8cdc-87bf77be77ea Download Help Link: https://learn.microsoft.com/powershell/module/az.deviceupdate Help Version: 1.0.0.0 Locale: en-US @@ -18,7 +18,7 @@ Returns account details for the given account name. Returns instance details for the given instance and account name. ### [New-AzDeviceUpdateAccount](New-AzDeviceUpdateAccount.md) -create Account. +Create Account. ### [New-AzDeviceUpdateCheckNameAvailabilityRequestObject](New-AzDeviceUpdateCheckNameAvailabilityRequestObject.md) Create an in-memory object for CheckNameAvailabilityRequest. @@ -36,8 +36,8 @@ Deletes instance. Checks ADU resource name availability. ### [Update-AzDeviceUpdateAccount](Update-AzDeviceUpdateAccount.md) -update Account. +Update Account. ### [Update-AzDeviceUpdateInstance](Update-AzDeviceUpdateInstance.md) -update instance's tags. +Update instance's tags. diff --git a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/New-AzDeviceUpdateAccount.md b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/New-AzDeviceUpdateAccount.md index a9e4fe845234..0afade96b01a 100644 --- a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/New-AzDeviceUpdateAccount.md +++ b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/New-AzDeviceUpdateAccount.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzDeviceUpdateAccount ## SYNOPSIS -create Account. +Create Account. ## SYNTAX @@ -36,7 +36,7 @@ New-AzDeviceUpdateAccount -Name -ResourceGroupName -JsonString ``` ## DESCRIPTION -create Account. +Create Account. ## EXAMPLES diff --git a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateAccount.md b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateAccount.md index 5a657f5784f4..48a910772c79 100644 --- a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateAccount.md +++ b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateAccount.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzDeviceUpdateAccount ## SYNOPSIS -update Account. +Update Account. ## SYNTAX @@ -29,7 +29,7 @@ Update-AzDeviceUpdateAccount -InputObject [-EnableSystem ``` ## DESCRIPTION -update Account. +Update Account. ## EXAMPLES diff --git a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateInstance.md b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateInstance.md index f9ec9ecf60a1..800705416eee 100644 --- a/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateInstance.md +++ b/src/DeviceUpdate/DeviceUpdate.Autorest/docs/Update-AzDeviceUpdateInstance.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzDeviceUpdateInstance ## SYNOPSIS -update instance's tags. +Update instance's tags. ## SYNTAX @@ -46,7 +46,7 @@ Update-AzDeviceUpdateInstance -AccountName -Name -ResourceGrou ``` ## DESCRIPTION -update instance's tags. +Update instance's tags. ## EXAMPLES diff --git a/src/DeviceUpdate/DeviceUpdate/AutorestUpgradeLog.md b/src/DeviceUpdate/DeviceUpdate/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/DeviceUpdate/DeviceUpdate/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/DeviceUpdate/DeviceUpdate/ChangeLog.md b/src/DeviceUpdate/DeviceUpdate/ChangeLog.md index d89854f4ab9c..5a6f5313135f 100644 --- a/src/DeviceUpdate/DeviceUpdate/ChangeLog.md +++ b/src/DeviceUpdate/DeviceUpdate/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs b/src/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs index 01149b18451f..4238b8fdbeb7 100644 --- a/src/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs +++ b/src/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs @@ -20,8 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DigitalTwins")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/DigitalTwins/DigitalTwins.Autorest/docs/Az.DigitalTwins.md b/src/DigitalTwins/DigitalTwins.Autorest/docs/Az.DigitalTwins.md index b67810452326..0f52fe099a77 100644 --- a/src/DigitalTwins/DigitalTwins.Autorest/docs/Az.DigitalTwins.md +++ b/src/DigitalTwins/DigitalTwins.Autorest/docs/Az.DigitalTwins.md @@ -1,6 +1,6 @@ --- Module Name: Az.DigitalTwins -Module Guid: 6bc64f2a-9bda-4094-b122-8af6079f81ba +Module Guid: f42d4144-0e32-475f-9b5a-8595b7fc8b67 Download Help Link: https://learn.microsoft.com/powershell/module/az.digitaltwins Help Version: 1.0.0.0 Locale: en-US diff --git a/src/DigitalTwins/DigitalTwins.Autorest/docs/Update-AzDigitalTwinsInstance.md b/src/DigitalTwins/DigitalTwins.Autorest/docs/Update-AzDigitalTwinsInstance.md index bbde74016106..6330e6c56012 100644 --- a/src/DigitalTwins/DigitalTwins.Autorest/docs/Update-AzDigitalTwinsInstance.md +++ b/src/DigitalTwins/DigitalTwins.Autorest/docs/Update-AzDigitalTwinsInstance.md @@ -137,7 +137,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/DigitalTwins/DigitalTwins/AutorestUpgradeLog.md b/src/DigitalTwins/DigitalTwins/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/DigitalTwins/DigitalTwins/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/DigitalTwins/DigitalTwins/ChangeLog.md b/src/DigitalTwins/DigitalTwins/ChangeLog.md index 652444f8f3ec..afaa241a05d9 100644 --- a/src/DigitalTwins/DigitalTwins/ChangeLog.md +++ b/src/DigitalTwins/DigitalTwins/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.3.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/DiskPool/DiskPool.Autorest/Properties/AssemblyInfo.cs b/src/DiskPool/DiskPool.Autorest/Properties/AssemblyInfo.cs index 9c1a7a0455c1..ca4a0baa6bff 100644 --- a/src/DiskPool/DiskPool.Autorest/Properties/AssemblyInfo.cs +++ b/src/DiskPool/DiskPool.Autorest/Properties/AssemblyInfo.cs @@ -20,9 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DiskPool")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.3.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/DiskPool/DiskPool.Autorest/docs/Az.DiskPool.md b/src/DiskPool/DiskPool.Autorest/docs/Az.DiskPool.md index af8b85367bb5..512696e17d6c 100644 --- a/src/DiskPool/DiskPool.Autorest/docs/Az.DiskPool.md +++ b/src/DiskPool/DiskPool.Autorest/docs/Az.DiskPool.md @@ -1,6 +1,6 @@ --- Module Name: Az.DiskPool -Module Guid: d17fff57-d1f7-4a28-b0e2-c25afdc3877a +Module Guid: e79de1f8-979b-4d16-96a1-bce122fb51a5 Download Help Link: https://learn.microsoft.com/powershell/module/az.diskpool Help Version: 1.0.0.0 Locale: en-US @@ -43,7 +43,7 @@ Create an in-memory object for Acl. Create an in-memory object for IscsiLun. ### [New-AzDiskPoolIscsiTarget](New-AzDiskPoolIscsiTarget.md) -create an iSCSI Target. +Create an iSCSI Target. ### [Remove-AzDiskPool](Remove-AzDiskPool.md) Delete a Disk pool; attached disks are not affected. @@ -68,5 +68,5 @@ This is expected service behavior. Update a Disk pool. ### [Update-AzDiskPoolIscsiTarget](Update-AzDiskPoolIscsiTarget.md) -update an iSCSI Target. +Update an iSCSI Target. diff --git a/src/DiskPool/DiskPool.Autorest/docs/New-AzDiskPoolIscsiTarget.md b/src/DiskPool/DiskPool.Autorest/docs/New-AzDiskPoolIscsiTarget.md index ff294732bd61..c3738ebc1c48 100644 --- a/src/DiskPool/DiskPool.Autorest/docs/New-AzDiskPoolIscsiTarget.md +++ b/src/DiskPool/DiskPool.Autorest/docs/New-AzDiskPoolIscsiTarget.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzDiskPoolIscsiTarget ## SYNOPSIS -create an iSCSI Target. +Create an iSCSI Target. ## SYNTAX @@ -43,7 +43,7 @@ New-AzDiskPoolIscsiTarget -DiskPoolName -Name -ResourceGroupNa ``` ## DESCRIPTION -create an iSCSI Target. +Create an iSCSI Target. ## EXAMPLES diff --git a/src/DiskPool/DiskPool.Autorest/docs/Update-AzDiskPoolIscsiTarget.md b/src/DiskPool/DiskPool.Autorest/docs/Update-AzDiskPoolIscsiTarget.md index cff3a81c1944..3a83685c72c0 100644 --- a/src/DiskPool/DiskPool.Autorest/docs/Update-AzDiskPoolIscsiTarget.md +++ b/src/DiskPool/DiskPool.Autorest/docs/Update-AzDiskPoolIscsiTarget.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzDiskPoolIscsiTarget ## SYNOPSIS -update an iSCSI Target. +Update an iSCSI Target. ## SYNTAX @@ -49,7 +49,7 @@ Update-AzDiskPoolIscsiTarget -DiskPoolName -Name -ResourceGrou ``` ## DESCRIPTION -update an iSCSI Target. +Update an iSCSI Target. ## EXAMPLES diff --git a/src/DiskPool/DiskPool.Autorest/resources/README.md b/src/DiskPool/DiskPool.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/DiskPool/DiskPool.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/DiskPool/DiskPool/AutorestUpgradeLog.md b/src/DiskPool/DiskPool/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/DiskPool/DiskPool/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/DiskPool/DiskPool/ChangeLog.md b/src/DiskPool/DiskPool/ChangeLog.md index f2828f98b4bc..80b08d90cdad 100644 --- a/src/DiskPool/DiskPool/ChangeLog.md +++ b/src/DiskPool/DiskPool/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.4.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/Dns/Dns.Autorest/Properties/AssemblyInfo.cs b/src/Dns/Dns.Autorest/Properties/AssemblyInfo.cs index 847416170dc8..f6ea6cb7fd76 100644 --- a/src/Dns/Dns.Autorest/Properties/AssemblyInfo.cs +++ b/src/Dns/Dns.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Dns")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.3.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Dns/Dns.Autorest/docs/Az.Dns.md b/src/Dns/Dns.Autorest/docs/Az.Dns.md index bd49bbd76809..9c1ea620ca66 100644 --- a/src/Dns/Dns.Autorest/docs/Az.Dns.md +++ b/src/Dns/Dns.Autorest/docs/Az.Dns.md @@ -1,6 +1,6 @@ --- Module Name: Az.Dns -Module Guid: 25235a2c-ea6a-4c3e-b299-2aff6b849a06 +Module Guid: ab40d50c-58ea-4b4e-b12c-895015dc9c4e Download Help Link: https://learn.microsoft.com/powershell/module/az.dns Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Dns/Dns.Autorest/resources/README.md b/src/Dns/Dns.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Dns/Dns.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/Dns/Dns/AutorestUpgradeLog.md b/src/Dns/Dns/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Dns/Dns/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Dns/Dns/ChangeLog.md b/src/Dns/Dns/ChangeLog.md index c6182f6e0a01..796099e084ae 100644 --- a/src/Dns/Dns/ChangeLog.md +++ b/src/Dns/Dns/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.0.0 * Improved user experience and consistency. This may introduce breaking changes. Please refer to [here](https://go.microsoft.com/fwlink/?linkid=2340249). diff --git a/src/DurableTask/DurableTask.Autorest/Properties/AssemblyInfo.cs b/src/DurableTask/DurableTask.Autorest/Properties/AssemblyInfo.cs index e9e6606eafbb..96f10cbcd9a8 100644 --- a/src/DurableTask/DurableTask.Autorest/Properties/AssemblyInfo.cs +++ b/src/DurableTask/DurableTask.Autorest/Properties/AssemblyInfo.cs @@ -20,8 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DurableTask")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/DurableTask/DurableTask.Autorest/custom/Az.DurableTask.custom.psm1 b/src/DurableTask/DurableTask.Autorest/custom/Az.DurableTask.custom.psm1 index ca5a63974409..66c36d007200 100644 --- a/src/DurableTask/DurableTask.Autorest/custom/Az.DurableTask.custom.psm1 +++ b/src/DurableTask/DurableTask.Autorest/custom/Az.DurableTask.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.DurableTask.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DurableTask.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.DurableTask.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DurableTask.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/DurableTask/DurableTask.Autorest/custom/README.md b/src/DurableTask/DurableTask.Autorest/custom/README.md index b08d73c733e7..e4426503bf37 100644 --- a/src/DurableTask/DurableTask.Autorest/custom/README.md +++ b/src/DurableTask/DurableTask.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.DurableTask` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.DurableTask.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.DurableTask` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.DurableTask.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.DurableTask.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.DurableTask.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.DurableTask`. - `Microsoft.Azure.PowerShell.Cmdlets.DurableTask.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.DurableTask`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.DurableTask`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.DurableTask.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/DurableTask/DurableTask.Autorest/docs/Az.DurableTask.md b/src/DurableTask/DurableTask.Autorest/docs/Az.DurableTask.md index 86389388b912..3ecd159cb185 100644 --- a/src/DurableTask/DurableTask.Autorest/docs/Az.DurableTask.md +++ b/src/DurableTask/DurableTask.Autorest/docs/Az.DurableTask.md @@ -1,6 +1,6 @@ --- Module Name: Az.DurableTask -Module Guid: c49fc661-832c-47ee-9e91-711bc24911c5 +Module Guid: 391cc75b-65d4-492c-9bde-181ca1d0f21b Download Help Link: https://learn.microsoft.com/powershell/module/az.durabletask Help Version: 1.0.0.0 Locale: en-US diff --git a/src/DurableTask/DurableTask.Autorest/docs/Az.DurableTaskCmdlet.Design.md b/src/DurableTask/DurableTask.Autorest/docs/Az.DurableTaskCmdlet.Design.md deleted file mode 100644 index 0a4a6329badb..000000000000 --- a/src/DurableTask/DurableTask.Autorest/docs/Az.DurableTaskCmdlet.Design.md +++ /dev/null @@ -1,751 +0,0 @@ -#### New-AzDurableTaskScheduler - -#### SYNOPSIS -Create a Scheduler - -#### SYNTAX - -+ CreateExpanded (Default) -```powershell -New-AzDurableTaskScheduler -Name -ResourceGroupName -Location - [-SubscriptionId ] [-IPAllowlist ] [-SkuCapacity ] [-SkuName ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -+ CreateViaJsonFilePath -```powershell -New-AzDurableTaskScheduler -Name -ResourceGroupName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -+ CreateViaJsonString -```powershell -New-AzDurableTaskScheduler -Name -ResourceGroupName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -#### EXAMPLES - -+ Example 1: Create a new Durable Task scheduler with basic settings -```powershell -New-AzDurableTaskScheduler -Name "testscheduler" -ResourceGroupName "rgopenapi" -Location "northcentralus" -SkuCapacity 3 -SkuName "Dedicated" -IPAllowlist @("10.0.0.0/8") -Tag @{department="research"; development="true"} -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "department": "research", - "development": "true" - } -Type : Microsoft.DurableTask/schedulers -``` - -Creates a new Durable Task scheduler with Dedicated SKU, IP allowlist, and tags. -Output shows all returned properties. - -+ Example 2: Create a scheduler with JSON file -```powershell -New-AzDurableTaskScheduler -Name "testscheduler" -ResourceGroupName "rgopenapi" -JsonFilePath "./scheduler.json" -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "department": "research", - "development": "true" - } -Type : Microsoft.DurableTask/schedulers -``` - -Creates a Durable Task scheduler using a JSON configuration file. -Output shows full resource details. - -+ Example 3: Create a scheduler with capacity configuration -```powershell -New-AzDurableTaskScheduler -Name "testscheduler" -ResourceGroupName "rgopenapi" -Location "northcentralus" -SkuName "Dedicated" -SkuCapacity 1 -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {0.0.0.0/0} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 1 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - } -Type : Microsoft.DurableTask/schedulers -``` - -Creates a Durable Task scheduler with a specific SKU capacity and shows the full returned object. - - -#### Get-AzDurableTaskScheduler - -#### SYNOPSIS -Get a Scheduler - -#### SYNTAX - -+ List (Default) -```powershell -Get-AzDurableTaskScheduler [-SubscriptionId ] [-DefaultProfile ] [] -``` - -+ Get -```powershell -Get-AzDurableTaskScheduler -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -+ GetViaIdentity -```powershell -Get-AzDurableTaskScheduler -InputObject [-DefaultProfile ] - [] -``` - -+ List1 -```powershell -Get-AzDurableTaskScheduler -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -#### EXAMPLES - -+ Example 1: List all schedulers in a subscription -```powershell -Get-AzDurableTaskScheduler -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "department": "research", - "development": "true" - } -Type : Microsoft.DurableTask/schedulers -``` - -Lists all Durable Task schedulers in the current subscription. - -+ Example 2: Get a specific scheduler by name -```powershell -Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -Name "testscheduler" -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "department": "research", - "development": "true" - } -Type : Microsoft.DurableTask/schedulers -``` - -Gets the details of a specific Durable Task scheduler by name and resource group. - -+ Example 3: List schedulers in a resource group -```powershell -Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "department": "research", - "development": "true" - } -Type : Microsoft.DurableTask/schedulers -``` - -Lists all Durable Task schedulers in a specific resource group. - -+ Example 4: Get a scheduler using pipeline input -```powershell -$scheduler = Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -Name "testscheduler" -$scheduler | Get-AzDurableTaskScheduler -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "department": "research", - "development": "true" - } -Type : Microsoft.DurableTask/schedulers -``` - -Gets a scheduler using an input object via pipeline (GetViaIdentity parameter set). - - -#### Remove-AzDurableTaskScheduler - -#### SYNOPSIS -Delete a Scheduler - -#### SYNTAX - -+ Delete (Default) -```powershell -Remove-AzDurableTaskScheduler -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -+ DeleteViaIdentity -```powershell -Remove-AzDurableTaskScheduler -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -#### EXAMPLES - -+ Example 1: Remove a scheduler by name -```powershell -Remove-AzDurableTaskScheduler -Name "testscheduler" -ResourceGroupName "rgopenapi" -``` - -Removes a Durable Task scheduler by name and resource group. - -+ Example 2: Remove a scheduler using pipeline input -```powershell -$scheduler = Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -Name "testscheduler" -$scheduler | Remove-AzDurableTaskScheduler -``` - -Removes a Durable Task scheduler using pipeline input (DeleteViaIdentity parameter set). - -+ Example 3: Remove a scheduler with PassThru parameter -```powershell -Remove-AzDurableTaskScheduler -Name "testscheduler" -ResourceGroupName "rgopenapi" -PassThru -``` - -```output -True -``` - -Removes a scheduler and returns a boolean value indicating success. - - -#### Update-AzDurableTaskScheduler - -#### SYNOPSIS -Update a Scheduler - -#### SYNTAX - -+ UpdateExpanded (Default) -```powershell -Update-AzDurableTaskScheduler -Name -ResourceGroupName [-SubscriptionId ] - [-IPAllowlist ] [-SkuCapacity ] [-SkuName ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -+ UpdateViaIdentityExpanded -```powershell -Update-AzDurableTaskScheduler -InputObject [-IPAllowlist ] - [-SkuCapacity ] [-SkuName ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -+ UpdateViaJsonFilePath -```powershell -Update-AzDurableTaskScheduler -Name -ResourceGroupName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -+ UpdateViaJsonString -```powershell -Update-AzDurableTaskScheduler -Name -ResourceGroupName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -#### EXAMPLES - -+ Example 1: Update scheduler tags and IP allowlist -```powershell -Update-AzDurableTaskScheduler -Name "testscheduler" -ResourceGroupName "rgopenapi" -Tag @{hello="world"} -IPAllowlist @("10.0.0.0/8") -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "hello": "world" - } -Type : Microsoft.DurableTask/schedulers -``` - -Updates the tags and IP allowlist for an existing Durable Task scheduler. -Output shows all returned properties, with Tag reflecting the update. - -+ Example 2: Update scheduler SKU capacity -```powershell -Update-AzDurableTaskScheduler -Name "testscheduler" -ResourceGroupName "rgopenapi" -SkuName "Dedicated" -SkuCapacity 3 -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - } -Type : Microsoft.DurableTask/schedulers -``` - -Updates the SKU capacity of an existing scheduler. -Output shows all returned properties, with SkuName and SkuCapacity reflecting the update. - -+ Example 3: Update scheduler using pipeline input -```powershell -$scheduler = Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -Name "testscheduler" -$scheduler | Update-AzDurableTaskScheduler -Tag @{hello="world"} -``` - -```output -Endpoint : https://test.northcentralus.1.durabletask.io -IPAllowlist : {10.0.0.0/8} -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler -Location : North Central US -Name : testscheduler -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SkuCapacity : 3 -SkuName : Dedicated -SkuRedundancyState : Zone -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Tag : { - "hello": "world" - } -Type : Microsoft.DurableTask/schedulers -``` - -Updates a scheduler using pipeline input (UpdateViaIdentityExpanded parameter set). -Output shows all returned properties, with Tag reflecting the update. - - -#### New-AzDurableTaskHub - -#### SYNOPSIS -Create a Task Hub - -#### SYNTAX - -+ CreateExpanded (Default) -```powershell -New-AzDurableTaskHub -Name -ResourceGroupName -SchedulerName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -+ CreateViaIdentitySchedulerExpanded -```powershell -New-AzDurableTaskHub -Name -SchedulerInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -+ CreateViaJsonFilePath -```powershell -New-AzDurableTaskHub -Name -ResourceGroupName -SchedulerName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -+ CreateViaJsonString -```powershell -New-AzDurableTaskHub -Name -ResourceGroupName -SchedulerName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -#### EXAMPLES - -+ Example 1: Create a new task hub -```powershell -New-AzDurableTaskHub -Name "testtaskhub" -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -``` - -```output -DashboardUrl : https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub -Name : testtaskhub -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Type : Microsoft.DurableTask/schedulers/taskHubs -``` - -Creates a new task hub in a Durable Task scheduler. - -+ Example 2: Create a task hub with scheduler input object -```powershell -$scheduler = Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -Name "testscheduler" -New-AzDurableTaskHub -Name "testtaskhub" -SchedulerInputObject $scheduler -``` - -```output -DashboardUrl : https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub -Name : testtaskhub -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Type : Microsoft.DurableTask/schedulers/taskHubs -``` - -Creates a new task hub using a scheduler input object (CreateViaIdentitySchedulerExpanded parameter set). - -+ Example 3: Create a task hub from JSON file -```powershell -New-AzDurableTaskHub -Name "testtaskhub" -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -JsonFilePath "./taskhub.json" -``` - -```output -DashboardUrl : https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub -Name : testtaskhub -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Type : Microsoft.DurableTask/schedulers/taskHubs -``` - -Creates a new task hub using a JSON configuration file. - - -#### Get-AzDurableTaskHub - -#### SYNOPSIS -Get a Task Hub - -#### SYNTAX - -+ List (Default) -```powershell -Get-AzDurableTaskHub -ResourceGroupName -SchedulerName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -+ Get -```powershell -Get-AzDurableTaskHub -Name -ResourceGroupName -SchedulerName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -+ GetViaIdentity -```powershell -Get-AzDurableTaskHub -InputObject [-DefaultProfile ] [] -``` - -+ GetViaIdentityScheduler -```powershell -Get-AzDurableTaskHub -Name -SchedulerInputObject [-DefaultProfile ] - [] -``` - -#### EXAMPLES - -+ Example 1: List all task hubs for a scheduler -```powershell -Get-AzDurableTaskHub -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -``` - -```output -DashboardUrl : https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub -Name : testtaskhub -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Type : Microsoft.DurableTask/schedulers/taskHubs -``` - -Lists all task hubs for a specific Durable Task scheduler. - -+ Example 2: Get a specific task hub by name -```powershell -Get-AzDurableTaskHub -Name "testtaskhub" -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -``` - -```output -DashboardUrl : https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub -Name : testtaskhub -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Type : Microsoft.DurableTask/schedulers/taskHubs -``` - -Gets the details of a specific task hub by name. - -+ Example 3: Get a task hub using pipeline input -```powershell -$taskHub = Get-AzDurableTaskHub -Name "testtaskhub" -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -$taskHub | Get-AzDurableTaskHub -``` - -```output -DashboardUrl : https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub -Name : testtaskhub -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Type : Microsoft.DurableTask/schedulers/taskHubs -``` - -Gets a task hub using pipeline input (GetViaIdentity parameter set). - -+ Example 4: Get a task hub with scheduler input object -```powershell -$scheduler = Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -Name "testscheduler" -Get-AzDurableTaskHub -Name "testtaskhub" -SchedulerInputObject $scheduler -``` - -```output -DashboardUrl : https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub -Id : /subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub -Name : testtaskhub -ProvisioningState : Succeeded -ResourceGroupName : rgopenapi -SystemDataCreatedAt : 4/17/2024 3:34:17 PM -SystemDataCreatedBy : tenmbevaunjzikxowqexrsx -SystemDataCreatedByType : User -SystemDataLastModifiedAt : 4/17/2024 3:34:17 PM -SystemDataLastModifiedBy : xfvdcegtj -SystemDataLastModifiedByType : User -Type : Microsoft.DurableTask/schedulers/taskHubs -``` - -Gets a task hub using a scheduler input object (GetViaIdentityScheduler parameter set). - - -#### Remove-AzDurableTaskHub - -#### SYNOPSIS -Delete a Task Hub - -#### SYNTAX - -+ Delete (Default) -```powershell -Remove-AzDurableTaskHub -Name -ResourceGroupName -SchedulerName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] - [] -``` - -+ DeleteViaIdentity -```powershell -Remove-AzDurableTaskHub -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] -``` - -+ DeleteViaIdentityScheduler -```powershell -Remove-AzDurableTaskHub -Name -SchedulerInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] -``` - -#### EXAMPLES - -+ Example 1: Remove a task hub by name -```powershell -Remove-AzDurableTaskHub -Name "testtaskhub" -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -``` - -Removes a task hub from a Durable Task scheduler. - -+ Example 2: Remove a task hub using pipeline input -```powershell -$taskHub = Get-AzDurableTaskHub -Name "testtaskhub" -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -$taskHub | Remove-AzDurableTaskHub -``` - -Removes a task hub using pipeline input (DeleteViaIdentity parameter set). - -+ Example 3: Remove a task hub with scheduler input object -```powershell -$scheduler = Get-AzDurableTaskScheduler -ResourceGroupName "rgopenapi" -Name "testscheduler" -Remove-AzDurableTaskHub -Name "testtaskhub" -SchedulerInputObject $scheduler -``` - -Removes a task hub using a scheduler input object (DeleteViaIdentityScheduler parameter set). - -+ Example 4: Remove a task hub with PassThru parameter -```powershell -Remove-AzDurableTaskHub -Name "testtaskhub" -ResourceGroupName "rgopenapi" -SchedulerName "testscheduler" -PassThru -``` - -```output -True -``` - -Removes a task hub and returns a boolean value indicating success. - - diff --git a/src/DurableTask/DurableTask.Autorest/docs/README.md b/src/DurableTask/DurableTask.Autorest/docs/README.md index 2d106669c718..12d20283a368 100644 --- a/src/DurableTask/DurableTask.Autorest/docs/README.md +++ b/src/DurableTask/DurableTask.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.DurableTask` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. +This directory contains the documentation of the cmdlets for the `Az.DurableTask` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.DurableTask - Packaged: yes ## Details -The process of documentation generation loads `Az.DurableTask` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder. \ No newline at end of file +The process of documentation generation loads `Az.DurableTask` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/DurableTask/DurableTask.Autorest/resources/README.md b/src/DurableTask/DurableTask.Autorest/resources/README.md deleted file mode 100644 index 736492341e3d..000000000000 --- a/src/DurableTask/DurableTask.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/DurableTask/DurableTask.Autorest/test/README.md b/src/DurableTask/DurableTask.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/DurableTask/DurableTask.Autorest/test/README.md +++ b/src/DurableTask/DurableTask.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/DurableTask/DurableTask/AutorestUpgradeLog.md b/src/DurableTask/DurableTask/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/DurableTask/DurableTask/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/DurableTask/DurableTask/ChangeLog.md b/src/DurableTask/DurableTask/ChangeLog.md index ac14e4993cec..03104f361396 100644 --- a/src/DurableTask/DurableTask/ChangeLog.md +++ b/src/DurableTask/DurableTask/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.0 * First preview release for module Az.DurableTask diff --git a/src/EdgeOrder/EdgeOrder.Autorest/Properties/AssemblyInfo.cs b/src/EdgeOrder/EdgeOrder.Autorest/Properties/AssemblyInfo.cs index 07311253547b..99466f3991cf 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/Properties/AssemblyInfo.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - EdgeOrder")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/docs/Az.EdgeOrder.md b/src/EdgeOrder/EdgeOrder.Autorest/docs/Az.EdgeOrder.md index 5ece1ac6552a..cf836aac9b7d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/docs/Az.EdgeOrder.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/docs/Az.EdgeOrder.md @@ -1,6 +1,6 @@ --- Module Name: Az.EdgeOrder -Module Guid: b62edb67-a8ef-4473-b452-8e344430234a +Module Guid: bcaf901d-7afe-4eb3-b88a-90065e58d33f Download Help Link: https://learn.microsoft.com/powershell/module/az.edgeorder Help Version: 1.0.0.0 Locale: en-US @@ -36,7 +36,7 @@ Cancel order item. Return order item. ### [New-AzEdgeOrderAddress](New-AzEdgeOrderAddress.md) -create a new address with the specified parameters. +Create a new address with the specified parameters. Existing address can be updated with this API ### [New-AzEdgeOrderContactDetailsObject](New-AzEdgeOrderContactDetailsObject.md) @@ -49,7 +49,7 @@ Create an in-memory object for FilterableProperty. Create an in-memory object for HierarchyInformation. ### [New-AzEdgeOrderItem](New-AzEdgeOrderItem.md) -create an order item. +Create an order item. Existing order item cannot be updated with this api and should instead be updated with the create order item API. ### [New-AzEdgeOrderOrderItemDetailsObject](New-AzEdgeOrderOrderItemDetailsObject.md) @@ -68,8 +68,8 @@ Deletes an address. Deletes an order item. ### [Update-AzEdgeOrderAddress](Update-AzEdgeOrderAddress.md) -update the properties of an existing address. +Update the properties of an existing address. ### [Update-AzEdgeOrderItem](Update-AzEdgeOrderItem.md) -update the properties of an existing order item. +Update the properties of an existing order item. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/docs/New-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/docs/New-AzEdgeOrderAddress.md index 28e4baa09823..dbf9bdf422d2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/docs/New-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/docs/New-AzEdgeOrderAddress.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEdgeOrderAddress ## SYNOPSIS -create a new address with the specified parameters. +Create a new address with the specified parameters. Existing address can be updated with this API ## SYNTAX @@ -35,7 +35,7 @@ New-AzEdgeOrderAddress -Name -ResourceGroupName -JsonString -ResourceGroupName -JsonString -ResourceGroupName -JsonString ``` ## DESCRIPTION -update the properties of an existing address. +Update the properties of an existing address. ## EXAMPLES diff --git a/src/EdgeOrder/EdgeOrder.Autorest/docs/Update-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/docs/Update-AzEdgeOrderItem.md index 8b20bc7268c3..688ace088bec 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/docs/Update-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/docs/Update-AzEdgeOrderItem.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzEdgeOrderItem ## SYNOPSIS -update the properties of an existing order item. +Update the properties of an existing order item. ## SYNTAX @@ -43,7 +43,7 @@ Update-AzEdgeOrderItem -Name -ResourceGroupName -JsonString ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/EdgeZones/EdgeZones.Autorest/Properties/AssemblyInfo.cs b/src/EdgeZones/EdgeZones.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..860c30bf13ec --- /dev/null +++ b/src/EdgeZones/EdgeZones.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - EdgeZones")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/EdgeZones/EdgeZones.Autorest/docs/Az.EdgeZones.md b/src/EdgeZones/EdgeZones.Autorest/docs/Az.EdgeZones.md index 5dadd282fe8f..02c1c6fcb42c 100644 --- a/src/EdgeZones/EdgeZones.Autorest/docs/Az.EdgeZones.md +++ b/src/EdgeZones/EdgeZones.Autorest/docs/Az.EdgeZones.md @@ -1,6 +1,6 @@ --- Module Name: Az.EdgeZones -Module Guid: 40bf94d1-ec66-4236-9396-2eac6bd6b1fe +Module Guid: 87cc1edb-0eb9-4f42-8e51-9f1975015ef9 Download Help Link: https://learn.microsoft.com/powershell/module/az.edgezones Help Version: 1.0.0.0 Locale: en-US diff --git a/src/EdgeZones/EdgeZones/AutorestUpgradeLog.md b/src/EdgeZones/EdgeZones/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/EdgeZones/EdgeZones/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/EdgeZones/EdgeZones/ChangeLog.md b/src/EdgeZones/EdgeZones/ChangeLog.md index 9692f2f5fb27..b73dc9dfcb90 100644 --- a/src/EdgeZones/EdgeZones/ChangeLog.md +++ b/src/EdgeZones/EdgeZones/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.1.2 * Upgraded nuget package to signed package. diff --git a/src/Elastic/Elastic.Autorest/Properties/AssemblyInfo.cs b/src/Elastic/Elastic.Autorest/Properties/AssemblyInfo.cs index 48d54ba86f11..c9c452ca87a6 100644 --- a/src/Elastic/Elastic.Autorest/Properties/AssemblyInfo.cs +++ b/src/Elastic/Elastic.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Elastic")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.3.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Elastic/Elastic.Autorest/docs/Az.Elastic.md b/src/Elastic/Elastic.Autorest/docs/Az.Elastic.md index ef43ba9bea51..4a54cfc6ac6e 100644 --- a/src/Elastic/Elastic.Autorest/docs/Az.Elastic.md +++ b/src/Elastic/Elastic.Autorest/docs/Az.Elastic.md @@ -1,6 +1,6 @@ --- Module Name: Az.Elastic -Module Guid: ee6a2974-6069-4011-89e2-32e115786d7e +Module Guid: 9b8bbe75-cedd-40f6-8cae-20e19ebe105d Download Help Link: https://learn.microsoft.com/powershell/module/az.elastic Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Elastic/Elastic.Autorest/docs/Get-AzElasticResubscribeOrganization.md b/src/Elastic/Elastic.Autorest/docs/Get-AzElasticResubscribeOrganization.md index ac220213ba69..92d8902ff810 100644 --- a/src/Elastic/Elastic.Autorest/docs/Get-AzElasticResubscribeOrganization.md +++ b/src/Elastic/Elastic.Autorest/docs/Get-AzElasticResubscribeOrganization.md @@ -16,38 +16,42 @@ Resubscribe the Elasticsearch Organization. ``` Get-AzElasticResubscribeOrganization -MonitorName -ResourceGroupName [-SubscriptionId ] [-OrganizationId ] [-PlanId ] [-ResourceGroup ] - [-TargetSubscriptionId ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [] + [-TargetSubscriptionId ] [-Term ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### Resubscribe ``` Get-AzElasticResubscribeOrganization -MonitorName -ResourceGroupName - -Body [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [] + -Body [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### ResubscribeViaIdentity ``` Get-AzElasticResubscribeOrganization -InputObject -Body - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### ResubscribeViaIdentityExpanded ``` Get-AzElasticResubscribeOrganization -InputObject [-OrganizationId ] [-PlanId ] [-ResourceGroup ] [-TargetSubscriptionId ] [-Term ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### ResubscribeViaJsonFilePath ``` Get-AzElasticResubscribeOrganization -MonitorName -ResourceGroupName -JsonFilePath - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ### ResubscribeViaJsonString ``` Get-AzElasticResubscribeOrganization -MonitorName -ResourceGroupName -JsonString - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION diff --git a/src/Elastic/Elastic.Autorest/docs/Remove-AzElasticMonitoredSubscription.md b/src/Elastic/Elastic.Autorest/docs/Remove-AzElasticMonitoredSubscription.md index 20e9e7d0f7c0..3188da181889 100644 --- a/src/Elastic/Elastic.Autorest/docs/Remove-AzElasticMonitoredSubscription.md +++ b/src/Elastic/Elastic.Autorest/docs/Remove-AzElasticMonitoredSubscription.md @@ -41,7 +41,8 @@ Delete subscriptions being monitored by the Elastic monitor resource, removing t Remove-AzElasticMonitoredSubscription -ResourceGroupName "myResourceGroup" -MonitorName "myElasticMonitor" -ConfigurationName "12345678-1234-1234-1234-123456789012" ``` -This command removes the specified subscription from being monitored by the Elastic monitor. No output is returned upon successful completion. +This command removes the specified subscription from being monitored by the Elastic monitor. +No output is returned upon successful completion. ### Example 2: Remove monitored subscription with confirmation prompt ```powershell @@ -55,6 +56,8 @@ This command removes the monitored subscription but prompts for confirmation bef Get-AzElasticMonitoredSubscription -ResourceGroupName "myResourceGroup" -MonitorName "myElasticMonitor" -ConfigurationName "12345678-1234-1234-1234-123456789012" | Remove-AzElasticMonitoredSubscription ``` +This command gets a specific monitored subscription and pipes it to Remove-AzElasticMonitoredSubscription to remove it from monitoring. + ## PARAMETERS ### -AsJob diff --git a/src/Elastic/Elastic.Autorest/resources/README.md b/src/Elastic/Elastic.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/Elastic/Elastic.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/Elastic/Elastic/AutorestUpgradeLog.md b/src/Elastic/Elastic/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Elastic/Elastic/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Elastic/Elastic/ChangeLog.md b/src/Elastic/Elastic/ChangeLog.md index 7804b2689ea7..315b9198c314 100644 --- a/src/Elastic/Elastic/ChangeLog.md +++ b/src/Elastic/Elastic/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.3.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/ElasticSan/ElasticSan.Autorest/Properties/AssemblyInfo.cs b/src/ElasticSan/ElasticSan.Autorest/Properties/AssemblyInfo.cs index c857cfd0d76f..174f4f378956 100644 --- a/src/ElasticSan/ElasticSan.Autorest/Properties/AssemblyInfo.cs +++ b/src/ElasticSan/ElasticSan.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ElasticSan")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.5.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/ElasticSan/ElasticSan.Autorest/docs/Az.ElasticSan.md b/src/ElasticSan/ElasticSan.Autorest/docs/Az.ElasticSan.md index 43096b10c118..d0768065e0b0 100644 --- a/src/ElasticSan/ElasticSan.Autorest/docs/Az.ElasticSan.md +++ b/src/ElasticSan/ElasticSan.Autorest/docs/Az.ElasticSan.md @@ -1,6 +1,6 @@ --- Module Name: Az.ElasticSan -Module Guid: 456b0445-36ce-4b34-8599-4a4c894f5d1d +Module Guid: 468c7b19-d827-4f21-b0a7-76433b6e4fbf Download Help Link: https://learn.microsoft.com/powershell/module/az.elasticsan Help Version: 1.0.0.0 Locale: en-US diff --git a/src/ElasticSan/ElasticSan.Autorest/resources/README.md b/src/ElasticSan/ElasticSan.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/ElasticSan/ElasticSan.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ElasticSan/ElasticSan/AutorestUpgradeLog.md b/src/ElasticSan/ElasticSan/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/ElasticSan/ElasticSan/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/ElasticSan/ElasticSan/ChangeLog.md b/src/ElasticSan/ElasticSan/ChangeLog.md index 36c45bec2cdf..87a0afebbeee 100644 --- a/src/ElasticSan/ElasticSan/ChangeLog.md +++ b/src/ElasticSan/ElasticSan/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.6.0 * Reverted changes for auto scale, pre-backup, and pre-restore diff --git a/src/EventGrid/EventGrid.Autorest/Properties/AssemblyInfo.cs b/src/EventGrid/EventGrid.Autorest/Properties/AssemblyInfo.cs index 7b79308dbc35..8080990efcb8 100644 --- a/src/EventGrid/EventGrid.Autorest/Properties/AssemblyInfo.cs +++ b/src/EventGrid/EventGrid.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - EventGrid")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.2.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.2.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/EventGrid/EventGrid.Autorest/docs/Az.EventGrid.md b/src/EventGrid/EventGrid.Autorest/docs/Az.EventGrid.md index 9ebc90d3b3a7..45441366e2f4 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Az.EventGrid.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Az.EventGrid.md @@ -1,6 +1,6 @@ --- Module Name: Az.EventGrid -Module Guid: 71259a97-80f1-4768-8d19-86e39e156d96 +Module Guid: 039ca2ea-d67a-4286-8d73-c35e45f75b50 Download Help Link: https://learn.microsoft.com/powershell/module/az.eventgrid Help Version: 1.0.0.0 Locale: en-US @@ -180,16 +180,16 @@ Create an in-memory object for BoolEqualsAdvancedFilter. Create an in-memory object for BoolEqualsFilter. ### [New-AzEventGridCaCertificate](New-AzEventGridCaCertificate.md) -create a CA certificate with the specified parameters. +Create a CA certificate with the specified parameters. ### [New-AzEventGridChannel](New-AzEventGridChannel.md) Synchronously create a new channel with the specified parameters. ### [New-AzEventGridClient](New-AzEventGridClient.md) -create a client with the specified parameters. +Create a client with the specified parameters. ### [New-AzEventGridClientGroup](New-AzEventGridClientGroup.md) -create a client group with the specified parameters. +Create a client group with the specified parameters. ### [New-AzEventGridDomain](New-AzEventGridDomain.md) Asynchronously create a new domain with the specified parameters. @@ -319,7 +319,7 @@ Regenerate a shared access key for a partner namespace. Create an in-memory object for Partner. ### [New-AzEventGridPartnerRegistration](New-AzEventGridPartnerRegistration.md) -create a new partner registration with the specified parameters. +Create a new partner registration with the specified parameters. ### [New-AzEventGridPartnerTopic](New-AzEventGridPartnerTopic.md) Asynchronously create a new partner topic with the specified parameters. @@ -329,7 +329,7 @@ Asynchronously create an event subscription of a partner topic with the specifie Existing event subscriptions will be updated with this API. ### [New-AzEventGridPermissionBinding](New-AzEventGridPermissionBinding.md) -create a permission binding with the specified parameters. +Create a permission binding with the specified parameters. ### [New-AzEventGridPrivateEndpointConnectionObject](New-AzEventGridPrivateEndpointConnectionObject.md) Create an in-memory object for PrivateEndpointConnection. @@ -420,7 +420,7 @@ Asynchronously create a new event subscription or create an existing event subsc Regenerate a shared access key for a topic. ### [New-AzEventGridTopicSpace](New-AzEventGridTopicSpace.md) -create a topic space with the specified parameters. +Create a topic space with the specified parameters. ### [New-AzEventGridWebHookEventSubscriptionDestinationObject](New-AzEventGridWebHookEventSubscriptionDestinationObject.md) Create an in-memory object for WebHookEventSubscriptionDestination. @@ -504,19 +504,19 @@ Unauthorize a single partner either by partner registration immutable Id or by p Synchronously update a channel with the specified parameters. ### [Update-AzEventGridClient](Update-AzEventGridClient.md) -update a client with the specified parameters. +Update a client with the specified parameters. ### [Update-AzEventGridClientGroup](Update-AzEventGridClientGroup.md) -update a client group with the specified parameters. +Update a client group with the specified parameters. ### [Update-AzEventGridDomain](Update-AzEventGridDomain.md) Asynchronously update a new domain with the specified parameters. ### [Update-AzEventGridDomainEventSubscription](Update-AzEventGridDomainEventSubscription.md) -update an existing event subscription for a topic. +Update an existing event subscription for a topic. ### [Update-AzEventGridDomainTopicEventSubscription](Update-AzEventGridDomainTopicEventSubscription.md) -update an existing event subscription for a domain topic. +Update an existing event subscription for a domain topic. ### [Update-AzEventGridNamespace](Update-AzEventGridNamespace.md) Asynchronously update a new namespace with the specified parameters. @@ -525,7 +525,7 @@ Asynchronously update a new namespace with the specified parameters. Asynchronously update a namespace topic with the specified parameters. ### [Update-AzEventGridNamespaceTopicEventSubscription](Update-AzEventGridNamespaceTopicEventSubscription.md) -update an existing event subscription of a namespace topic. +Update an existing event subscription of a namespace topic. ### [Update-AzEventGridPartnerConfiguration](Update-AzEventGridPartnerConfiguration.md) Synchronously update a partner configuration with the specified parameters. @@ -540,10 +540,10 @@ Asynchronously update a partner namespace with the specified parameters. Asynchronously update a new partner topic with the specified parameters. ### [Update-AzEventGridPartnerTopicEventSubscription](Update-AzEventGridPartnerTopicEventSubscription.md) -update an existing event subscription of a partner topic. +Update an existing event subscription of a partner topic. ### [Update-AzEventGridPermissionBinding](Update-AzEventGridPermissionBinding.md) -update a permission binding with the specified parameters. +Update a permission binding with the specified parameters. ### [Update-AzEventGridSubscription](Update-AzEventGridSubscription.md) Asynchronously update an existing event subscription. @@ -552,14 +552,14 @@ Asynchronously update an existing event subscription. Asynchronously update a new system topic with the specified parameters. ### [Update-AzEventGridSystemTopicEventSubscription](Update-AzEventGridSystemTopicEventSubscription.md) -update an existing event subscription of a system topic. +Update an existing event subscription of a system topic. ### [Update-AzEventGridTopic](Update-AzEventGridTopic.md) Asynchronously update a new topic with the specified parameters. ### [Update-AzEventGridTopicEventSubscription](Update-AzEventGridTopicEventSubscription.md) -update an existing event subscription for a topic. +Update an existing event subscription for a topic. ### [Update-AzEventGridTopicSpace](Update-AzEventGridTopicSpace.md) -update a topic space with the specified parameters. +Update a topic space with the specified parameters. diff --git a/src/EventGrid/EventGrid.Autorest/docs/Grant-AzEventGridPartnerConfiguration.md b/src/EventGrid/EventGrid.Autorest/docs/Grant-AzEventGridPartnerConfiguration.md index 9587f0564001..c435b0fb6a8e 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Grant-AzEventGridPartnerConfiguration.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Grant-AzEventGridPartnerConfiguration.md @@ -61,7 +61,7 @@ Authorize a single partner either by partner registration immutable Id or by par ### -AuthorizationExpirationTimeInUtc Expiration time of the partner authorization. -If this timer expires, any request from this partner to create, update or delete resources in subscriber's context will fail. +If this timer expires, any request from this partner to create, update or delete resources in subscriber'scontext will fail. If specified, the allowed values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration.If not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or 7 if this value is not specified. ```yaml diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridCaCertificate.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridCaCertificate.md index 2ddab3b2e060..97d84fbf0782 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridCaCertificate.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridCaCertificate.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEventGridCaCertificate ## SYNOPSIS -create a CA certificate with the specified parameters. +Create a CA certificate with the specified parameters. ## SYNTAX @@ -48,7 +48,7 @@ New-AzEventGridCaCertificate -Name -NamespaceName -ResourceGro ``` ## DESCRIPTION -create a CA certificate with the specified parameters. +Create a CA certificate with the specified parameters. ## EXAMPLES diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridChannel.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridChannel.md index 222c0a3116ad..a2fd11bb14c5 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridChannel.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridChannel.md @@ -247,7 +247,7 @@ Accept wildcard characters: False ### -PartnerDestinationInfoAzureSubscriptionId Azure subscription ID of the subscriber. -The partner destination associated with the channel will be created under this Azure subscription. +The partner destination associated with the channel will becreated under this Azure subscription. ```yaml Type: System.String @@ -293,7 +293,7 @@ Accept wildcard characters: False ### -PartnerDestinationInfoResourceGroupName Azure Resource Group of the subscriber. -The partner destination associated with the channel will be created under this resource group. +The partner destination associated with the channel will becreated under this resource group. ```yaml Type: System.String @@ -354,7 +354,7 @@ Accept wildcard characters: False ### -PartnerTopicInfoAzureSubscriptionId Azure subscription ID of the subscriber. -The partner topic associated with the channel will be created under this Azure subscription. +The partner topic associated with the channel will becreated under this Azure subscription. ```yaml Type: System.String @@ -385,7 +385,7 @@ Accept wildcard characters: False ### -PartnerTopicInfoResourceGroupName Azure Resource Group of the subscriber. -The partner topic associated with the channel will be created under this resource group. +The partner topic associated with the channel will becreated under this resource group. ```yaml Type: System.String @@ -400,8 +400,8 @@ Accept wildcard characters: False ``` ### -PartnerTopicInfoSource -The source information is provided by the publisher to determine the scope or context from which the events are originating. -This information can be used by the subscriber during the approval process of the created partner topic. +The source information is provided by the publisher to determine the scope or context from which the eventsare originating. +This information can be used by the subscriber during the approval process of thecreated partner topic. ```yaml Type: System.String diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClient.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClient.md index 7df228e280da..e5adba345bce 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClient.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClient.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEventGridClient ## SYNOPSIS -create a client with the specified parameters. +Create a client with the specified parameters. ## SYNTAX @@ -61,7 +61,7 @@ New-AzEventGridClient -Name -NamespaceName -ResourceGroupName ``` ## DESCRIPTION -create a client with the specified parameters. +Create a client with the specified parameters. ## EXAMPLES diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClientGroup.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClientGroup.md index ed370ce3535d..72f26ab9a7f4 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClientGroup.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridClientGroup.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEventGridClientGroup ## SYNOPSIS -create a client group with the specified parameters. +Create a client group with the specified parameters. ## SYNTAX @@ -46,7 +46,7 @@ New-AzEventGridClientGroup -Name -NamespaceName -ResourceGroup ``` ## DESCRIPTION -create a client group with the specified parameters. +Create a client group with the specified parameters. ## EXAMPLES diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomain.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomain.md index 01991ca560f3..9528e73273a9 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomain.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomain.md @@ -88,10 +88,10 @@ Accept wildcard characters: False ### -AutoCreateTopicWithFirstSubscription This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource.In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). -The default value for this property is true.When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic when the first event subscription is created at the scope of the domain topic. -If this property is set to false, then creating the first event subscription will require creating a domain topic by the user. -The self-management mode can be used if the user wants full control of when the domain topic is created, while auto-managed mode provides the flexibility to perform less operations and manage fewer resources by the user. -Also, note that in auto-managed creation mode, user is allowed to create the domain topic on demand if needed. +The default value for this property is true.When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic when the first event subscription iscreated at the scope of the domain topic. +If this property is set to false, then creating the first event subscription will require creating a domain topicby the user. +The self-management mode can be used if the user wants full control of when the domain topic is created, while auto-managed mode provides theflexibility to perform less operations and manage fewer resources by the user. +Also, note that in auto-managed creation mode, user is allowed to create thedomain topic on demand if needed. ```yaml Type: System.Management.Automation.SwitchParameter @@ -107,9 +107,9 @@ Accept wildcard characters: False ### -AutoDeleteTopicWithLastSubscription This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource.In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). -The default value for this property is true.When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the last event subscription at the scope of the domain topic is deleted. +The default value for this property is true.When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the last event subscription at the scopeof the domain topic is deleted. If this property is set to false, then the user needs to manually delete the domain topic when it is no longer needed(e.g., when last event subscription is deleted and the resource needs to be cleaned up). -The self-management mode can be used if the user wants fullcontrol of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to perform less operations and manage fewer resources by the user. +The self-management mode can be used if the user wants fullcontrol of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to perform less operations and manage fewerresources by the user. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainEventSubscription.md index 913c25e80ae9..4495323e3872 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainEventSubscription.md @@ -338,7 +338,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainTopicEventSubscription.md index 56c138d31843..930c277644f2 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridDomainTopicEventSubscription.md @@ -354,7 +354,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespace.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespace.md index cb7865e19d05..9f2436ec0014 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespace.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespace.md @@ -418,7 +418,7 @@ Accept wildcard characters: False ### -SkuCapacity Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value is1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace. -Min capacity is 1 and max allowed capacity is 20. +Min capacity is 1 andmax allowed capacity is 20. ```yaml Type: System.Int32 diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespaceTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespaceTopicEventSubscription.md index d5fe09e71d61..85821308f79b 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespaceTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridNamespaceTopicEventSubscription.md @@ -319,7 +319,7 @@ Time span duration in ISO 8601 format that determines how long messages are avai - H is the hour designator, and it follows the value for the number of hours. - M is the minute designator, and it follows the value for the number of minutes. - S is the second designator, and it follows the value for the number of seconds.This duration value cannot be set greater than the topic’s EventRetentionInDays. -It is is an optional field where its minimum value is 1 minute, and its maximum is determined by topic’s EventRetentionInDays value. +It is is an optional field where its minimum value is 1 minute, and its maximum is determinedby topic’s EventRetentionInDays value. The followings are examples of valid values: - \'P0DT23H12M\' or \'PT23H12M\': for duration of 23 hours and 12 minutes. - \'P1D\' or \'P1DT0H0M0S\': for duration of 1 day. diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerConfiguration.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerConfiguration.md index 7fb9e3bda485..65d1ff10d0c9 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerConfiguration.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerConfiguration.md @@ -179,7 +179,7 @@ Accept wildcard characters: False ### -PartnerAuthorizationDefaultMaximumExpirationTimeInDay Time used to validate the authorization expiration time for each authorized partner. -If DefaultMaximumExpirationTimeInDays is not specified, the default is 7 days. +If DefaultMaximumExpirationTimeInDays isnot specified, the default is 7 days. Otherwise, allowed values are between 1 and 365 days. ```yaml diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerNamespace.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerNamespace.md index 0bdcd08cdc8d..ba07601c8d3f 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerNamespace.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerNamespace.md @@ -263,7 +263,7 @@ Accept wildcard characters: False ``` ### -PartnerTopicRoutingMode -This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic. +This determines if events published to this partner namespace should use the source attribute in the event payloador use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic. ```yaml diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerRegistration.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerRegistration.md index 854b361a5bb1..fea133bb6ef3 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerRegistration.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerRegistration.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEventGridPartnerRegistration ## SYNOPSIS -create a new partner registration with the specified parameters. +Create a new partner registration with the specified parameters. ## SYNTAX @@ -41,7 +41,7 @@ New-AzEventGridPartnerRegistration -Name -ResourceGroupName -J ``` ## DESCRIPTION -create a new partner registration with the specified parameters. +Create a new partner registration with the specified parameters. ## EXAMPLES diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerTopicEventSubscription.md index 7a2872082ce4..e4a215b4b78b 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPartnerTopicEventSubscription.md @@ -312,7 +312,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPermissionBinding.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPermissionBinding.md index 5edd6e4a89d1..a9b551b4acb1 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPermissionBinding.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridPermissionBinding.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEventGridPermissionBinding ## SYNOPSIS -create a permission binding with the specified parameters. +Create a permission binding with the specified parameters. ## SYNTAX @@ -49,7 +49,7 @@ New-AzEventGridPermissionBinding -Name -NamespaceName -Resourc ``` ## DESCRIPTION -create a permission binding with the specified parameters. +Create a permission binding with the specified parameters. ## EXAMPLES diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSubscription.md index e15b1f603bd1..e2e5c455670a 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSubscription.md @@ -290,7 +290,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSystemTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSystemTopicEventSubscription.md index c0f3afa51b10..9ea610ebd533 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSystemTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridSystemTopicEventSubscription.md @@ -312,7 +312,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicEventSubscription.md index f38ab1516696..dfa17b6587de 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicEventSubscription.md @@ -309,7 +309,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicSpace.md b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicSpace.md index 117ff6787a50..176525e49f17 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicSpace.md +++ b/src/EventGrid/EventGrid.Autorest/docs/New-AzEventGridTopicSpace.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEventGridTopicSpace ## SYNOPSIS -create a topic space with the specified parameters. +Create a topic space with the specified parameters. ## SYNTAX @@ -48,7 +48,7 @@ New-AzEventGridTopicSpace -Name -NamespaceName -ResourceGroupN ``` ## DESCRIPTION -create a topic space with the specified parameters. +Create a topic space with the specified parameters. ## EXAMPLES diff --git a/src/EventGrid/EventGrid.Autorest/docs/Revoke-AzEventGridPartnerConfiguration.md b/src/EventGrid/EventGrid.Autorest/docs/Revoke-AzEventGridPartnerConfiguration.md index 90373d082f5b..7465a1adf2f1 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Revoke-AzEventGridPartnerConfiguration.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Revoke-AzEventGridPartnerConfiguration.md @@ -61,7 +61,7 @@ Unauthorize a single partner either by partner registration immutable Id or by p ### -AuthorizationExpirationTimeInUtc Expiration time of the partner authorization. -If this timer expires, any request from this partner to create, update or delete resources in subscriber's context will fail. +If this timer expires, any request from this partner to create, update or delete resources in subscriber'scontext will fail. If specified, the allowed values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration.If not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or 7 if this value is not specified. ```yaml diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridClient.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridClient.md index 28f05a514f2d..8257b5a797f5 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridClient.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridClient.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzEventGridClient ## SYNOPSIS -update a client with the specified parameters. +Update a client with the specified parameters. ## SYNTAX @@ -47,7 +47,7 @@ Update-AzEventGridClient -Name -NamespaceInputObject -NamespaceInputObject -EventSubscriptio ``` ## DESCRIPTION -update an existing event subscription for a topic. +Update an existing event subscription for a topic. ## EXAMPLES @@ -338,7 +338,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridDomainTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridDomainTopicEventSubscription.md index 58f2de67a5a8..e64f25e3749b 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridDomainTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridDomainTopicEventSubscription.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzEventGridDomainTopicEventSubscription ## SYNOPSIS -update an existing event subscription for a domain topic. +Update an existing event subscription for a domain topic. ## SYNTAX @@ -86,7 +86,7 @@ Update-AzEventGridDomainTopicEventSubscription -DomainName -EventSubscr ``` ## DESCRIPTION -update an existing event subscription for a domain topic. +Update an existing event subscription for a domain topic. ## EXAMPLES @@ -353,7 +353,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespace.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespace.md index ef21855644a2..9b1af8414514 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespace.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespace.md @@ -130,7 +130,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: @@ -388,7 +388,7 @@ Accept wildcard characters: False ### -SkuCapacity Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value is1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace. -Min capacity is 1 and max allowed capacity is 20. +Min capacity is 1 andmax allowed capacity is 20. ```yaml Type: System.Int32 diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespaceTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespaceTopicEventSubscription.md index a141d48d257a..8950c274dd8b 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespaceTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridNamespaceTopicEventSubscription.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzEventGridNamespaceTopicEventSubscription ## SYNOPSIS -update an existing event subscription of a namespace topic. +Update an existing event subscription of a namespace topic. ## SYNTAX @@ -70,7 +70,7 @@ Update-AzEventGridNamespaceTopicEventSubscription -EventSubscriptionName ``` ## DESCRIPTION -update an existing event subscription of a partner topic. +Update an existing event subscription of a partner topic. ## EXAMPLES @@ -309,7 +309,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridPermissionBinding.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridPermissionBinding.md index f56fcd3d7e23..1224acfbe3d5 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridPermissionBinding.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridPermissionBinding.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzEventGridPermissionBinding ## SYNOPSIS -update a permission binding with the specified parameters. +Update a permission binding with the specified parameters. ## SYNTAX @@ -35,7 +35,7 @@ Update-AzEventGridPermissionBinding -Name -NamespaceInputObject - ``` ## DESCRIPTION -update an existing event subscription of a system topic. +Update an existing event subscription of a system topic. ## EXAMPLES @@ -309,7 +309,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopic.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopic.md index 3f231ce804b1..ee403e8614e2 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopic.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopic.md @@ -138,7 +138,7 @@ Accept wildcard characters: False Determines whether to enable a system-assigned identity for the resource. ```yaml -Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicEventSubscription.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicEventSubscription.md index 5e625c82f937..c98c09d41b78 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicEventSubscription.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicEventSubscription.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzEventGridTopicEventSubscription ## SYNOPSIS -update an existing event subscription for a topic. +Update an existing event subscription for a topic. ## SYNTAX @@ -71,7 +71,7 @@ Update-AzEventGridTopicEventSubscription -EventSubscriptionName -Resour ``` ## DESCRIPTION -update an existing event subscription for a topic. +Update an existing event subscription for a topic. ## EXAMPLES @@ -308,7 +308,7 @@ Accept wildcard characters: False ``` ### -FilterIsSubjectCaseSensitive -Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter should be compared in a case sensitive manner. +Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filtershould be compared in a case sensitive manner. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicSpace.md b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicSpace.md index caa738df5887..57b3b2819626 100644 --- a/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicSpace.md +++ b/src/EventGrid/EventGrid.Autorest/docs/Update-AzEventGridTopicSpace.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzEventGridTopicSpace ## SYNOPSIS -update a topic space with the specified parameters. +Update a topic space with the specified parameters. ## SYNTAX @@ -34,7 +34,7 @@ Update-AzEventGridTopicSpace -Name -NamespaceInputObject ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.2.0 * Upgraded nuget package to signed package. diff --git a/src/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs b/src/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs index 174ed0c005fa..fa54d7338d48 100644 --- a/src/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs +++ b/src/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs @@ -23,4 +23,4 @@ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/EventHub/EventHub.Autorest/custom/Az.EventHub.custom.psm1 b/src/EventHub/EventHub.Autorest/custom/Az.EventHub.custom.psm1 index 67fe9567d280..227b76acd976 100644 --- a/src/EventHub/EventHub.Autorest/custom/Az.EventHub.custom.psm1 +++ b/src/EventHub/EventHub.Autorest/custom/Az.EventHub.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.EventHub.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.EventHub.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.EventHub.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.EventHub.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/EventHub/EventHub.Autorest/custom/README.md b/src/EventHub/EventHub.Autorest/custom/README.md index ca25a2dbbd94..c2ea4e5155da 100644 --- a/src/EventHub/EventHub.Autorest/custom/README.md +++ b/src/EventHub/EventHub.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.EventHub` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.EventHub.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.EventHub` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.EventHub.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.EventHub.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.EventHub.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.EventHub`. - `Microsoft.Azure.PowerShell.Cmdlets.EventHub.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.EventHub`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.EventHub`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.EventHub.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/EventHub/EventHub.Autorest/docs/Az.EventHub.md b/src/EventHub/EventHub.Autorest/docs/Az.EventHub.md index cf09cfe33d5c..77cca2564ab0 100644 --- a/src/EventHub/EventHub.Autorest/docs/Az.EventHub.md +++ b/src/EventHub/EventHub.Autorest/docs/Az.EventHub.md @@ -1,6 +1,6 @@ --- Module Name: Az.EventHub -Module Guid: e218577f-a5ef-4d91-8828-dedf50f00ec9 +Module Guid: ae133633-eff8-4df4-84a7-aa45c3a0e95e Download Help Link: https://learn.microsoft.com/powershell/module/az.eventhub Help Version: 1.0.0.0 Locale: en-US diff --git a/src/EventHub/EventHub.Autorest/docs/README.md b/src/EventHub/EventHub.Autorest/docs/README.md index c017d3e3202f..7e5550e7b2e8 100644 --- a/src/EventHub/EventHub.Autorest/docs/README.md +++ b/src/EventHub/EventHub.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.EventHub` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. +This directory contains the documentation of the cmdlets for the `Az.EventHub` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.EventHub` m - Packaged: yes ## Details -The process of documentation generation loads `Az.EventHub` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder. \ No newline at end of file +The process of documentation generation loads `Az.EventHub` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/EventHub/EventHub.Autorest/resources/README.md b/src/EventHub/EventHub.Autorest/resources/README.md deleted file mode 100644 index 736492341e3d..000000000000 --- a/src/EventHub/EventHub.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/EventHub/EventHub.Autorest/test/README.md b/src/EventHub/EventHub.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/EventHub/EventHub.Autorest/test/README.md +++ b/src/EventHub/EventHub.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/EventHub/EventHub/AutorestUpgradeLog.md b/src/EventHub/EventHub/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/EventHub/EventHub/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/EventHub/EventHub/ChangeLog.md b/src/EventHub/EventHub/ChangeLog.md index 357c6506f63b..476de2b59320 100644 --- a/src/EventHub/EventHub/ChangeLog.md +++ b/src/EventHub/EventHub/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 5.4.0 * Added new cmdlets for Eventhubnetworksecurityperimeterconfiguration - 'Get-AzEventHubNetworkSecurityPerimeterConfigurationsForAssociation', 'Get-AzEventHubNetworkSecurityPerimeterConfiguration' diff --git a/src/Fabric/Fabric.Autorest/Properties/AssemblyInfo.cs b/src/Fabric/Fabric.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..3ae1d03a6eb6 --- /dev/null +++ b/src/Fabric/Fabric.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Fabric")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Fabric/Fabric.Autorest/docs/Az.Fabric.md b/src/Fabric/Fabric.Autorest/docs/Az.Fabric.md index 6379a710024c..3f867380edb2 100644 --- a/src/Fabric/Fabric.Autorest/docs/Az.Fabric.md +++ b/src/Fabric/Fabric.Autorest/docs/Az.Fabric.md @@ -1,6 +1,6 @@ --- Module Name: Az.Fabric -Module Guid: 57d31237-140c-4af8-886b-ced0ac7f5acf +Module Guid: 2363857f-1c02-4666-98f7-bb6e2aa11a65 Download Help Link: https://learn.microsoft.com/powershell/module/az.fabric Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Fabric/Fabric/AutorestUpgradeLog.md b/src/Fabric/Fabric/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Fabric/Fabric/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Fabric/Fabric/ChangeLog.md b/src/Fabric/Fabric/ChangeLog.md index 104dd4e46e05..d530b6232b8a 100644 --- a/src/Fabric/Fabric/ChangeLog.md +++ b/src/Fabric/Fabric/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.0.0 * General availability for module Az.Fabric diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/Properties/AssemblyInfo.cs b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/Properties/AssemblyInfo.cs index 3753964097f2..3bb7cb545a24 100644 --- a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/Properties/AssemblyInfo.cs +++ b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/Properties/AssemblyInfo.cs @@ -20,8 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FirmwareAnalysis")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.4")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.4")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Az.FirmwareAnalysis.md b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Az.FirmwareAnalysis.md index 8d723449a5ac..40b753ad2e89 100644 --- a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Az.FirmwareAnalysis.md +++ b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/docs/Az.FirmwareAnalysis.md @@ -1,6 +1,6 @@ --- Module Name: Az.FirmwareAnalysis -Module Guid: 5b4de3cc-6dec-4f20-9ee5-ebc729b9a384 +Module Guid: 90f927ff-5f79-439d-aa58-64cfbf312c69 Download Help Link: https://learn.microsoft.com/powershell/module/az.firmwareanalysis Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FirmwareAnalysis/FirmwareAnalysis/AutorestUpgradeLog.md b/src/FirmwareAnalysis/FirmwareAnalysis/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/FirmwareAnalysis/FirmwareAnalysis/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md b/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md index 39680318990c..8c6520b55b75 100644 --- a/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md +++ b/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 1.0.0 * General availability for module Az.FirmwareAnalysis diff --git a/src/Fleet/Fleet.Autorest/Properties/AssemblyInfo.cs b/src/Fleet/Fleet.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..95bb0aed8255 --- /dev/null +++ b/src/Fleet/Fleet.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Fleet")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateGroupObject.ps1 b/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateGroupObject.ps1 index 2153ca07c7d5..53cc494665f8 100644 --- a/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateGroupObject.ps1 +++ b/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateGroupObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateGroup https://learn.microsoft.com/powershell/module/Az.Fleet/new-azfleetupdategroupobject #> function New-AzFleetUpdateGroupObject { + [Microsoft.Azure.PowerShell.Cmdlets.Fleet.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateGroup')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateStageObject.ps1 b/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateStageObject.ps1 index 37da5d1dcaf7..779fcd7cc3d5 100644 --- a/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateStageObject.ps1 +++ b/src/Fleet/Fleet.Autorest/custom/autogen-model-cmdlets/New-AzFleetUpdateStageObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateStage https://learn.microsoft.com/powershell/module/Az.Fleet/new-azfleetupdatestageobject #> function New-AzFleetUpdateStageObject { + [Microsoft.Azure.PowerShell.Cmdlets.Fleet.ModelCmdletAttribute()] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Fleet.Models.UpdateStage')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Fleet/Fleet.Autorest/docs/Az.Fleet.md b/src/Fleet/Fleet.Autorest/docs/Az.Fleet.md index 45a11cf58e81..958de69c0f93 100644 --- a/src/Fleet/Fleet.Autorest/docs/Az.Fleet.md +++ b/src/Fleet/Fleet.Autorest/docs/Az.Fleet.md @@ -1,6 +1,6 @@ --- Module Name: Az.Fleet -Module Guid: 8d7b53b3-f39f-4f40-a64f-cb07e29ede3a +Module Guid: 243794a0-0cea-4039-827c-dd625d095d40 Download Help Link: https://learn.microsoft.com/powershell/module/az.fleet Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Fleet/Fleet.Autorest/docs/New-AzFleet.md b/src/Fleet/Fleet.Autorest/docs/New-AzFleet.md index 8b8fc426c918..4c5d072c833f 100644 --- a/src/Fleet/Fleet.Autorest/docs/New-AzFleet.md +++ b/src/Fleet/Fleet.Autorest/docs/New-AzFleet.md @@ -177,7 +177,7 @@ Accept wildcard characters: False ``` ### -EnableSystemAssignedIdentity -Decides if enable a system assigned identity for the resource. +Determines whether to enable a system-assigned identity for the resource. ```yaml Type: System.Management.Automation.SwitchParameter diff --git a/src/Fleet/Fleet.Autorest/docs/Update-AzFleet.md b/src/Fleet/Fleet.Autorest/docs/Update-AzFleet.md index 721ccbed688a..ac2d126b5835 100644 --- a/src/Fleet/Fleet.Autorest/docs/Update-AzFleet.md +++ b/src/Fleet/Fleet.Autorest/docs/Update-AzFleet.md @@ -129,7 +129,7 @@ Accept wildcard characters: False ``` ### -EnableSystemAssignedIdentity -Decides if enable a system assigned identity for the resource. +Determines whether to enable a system-assigned identity for the resource. ```yaml Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] diff --git a/src/Fleet/Fleet/AutorestUpgradeLog.md b/src/Fleet/Fleet/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/Fleet/Fleet/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/Fleet/Fleet/ChangeLog.md b/src/Fleet/Fleet/ChangeLog.md index 18cf2fe67be3..7a2dbed31855 100644 --- a/src/Fleet/Fleet/ChangeLog.md +++ b/src/Fleet/Fleet/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.2 * Upgraded nuget package to signed package. diff --git a/src/FluidRelay/FluidRelay.Autorest/Properties/AssemblyInfo.cs b/src/FluidRelay/FluidRelay.Autorest/Properties/AssemblyInfo.cs index f5715b96b481..93a8b965fecc 100644 --- a/src/FluidRelay/FluidRelay.Autorest/Properties/AssemblyInfo.cs +++ b/src/FluidRelay/FluidRelay.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FluidRelay")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/FluidRelay/FluidRelay.Autorest/docs/Az.FluidRelay.md b/src/FluidRelay/FluidRelay.Autorest/docs/Az.FluidRelay.md index 54f40e3254a1..94811ae53e54 100644 --- a/src/FluidRelay/FluidRelay.Autorest/docs/Az.FluidRelay.md +++ b/src/FluidRelay/FluidRelay.Autorest/docs/Az.FluidRelay.md @@ -1,6 +1,6 @@ --- Module Name: Az.FluidRelay -Module Guid: 952b776b-10b6-4b4a-8200-9bf09045177d +Module Guid: 7be7ffb0-9a83-4954-be00-069302a062f0 Download Help Link: https://learn.microsoft.com/powershell/module/az.fluidrelay Help Version: 1.0.0.0 Locale: en-US @@ -21,7 +21,7 @@ Get a Fluid Relay server. Get primary and secondary key for this server. ### [New-AzFluidRelayServer](New-AzFluidRelayServer.md) -create a Fluid Relay server. +Create a Fluid Relay server. ### [New-AzFluidRelayServerKey](New-AzFluidRelayServerKey.md) Regenerate the primary or secondary key for this server. @@ -33,5 +33,5 @@ Delete a Fluid Relay container. Delete a Fluid Relay server. ### [Update-AzFluidRelayServer](Update-AzFluidRelayServer.md) -update a Fluid Relay server. +Update a Fluid Relay server. diff --git a/src/FluidRelay/FluidRelay.Autorest/docs/New-AzFluidRelayServer.md b/src/FluidRelay/FluidRelay.Autorest/docs/New-AzFluidRelayServer.md index efb87bc180b9..60bfbeaea21e 100644 --- a/src/FluidRelay/FluidRelay.Autorest/docs/New-AzFluidRelayServer.md +++ b/src/FluidRelay/FluidRelay.Autorest/docs/New-AzFluidRelayServer.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzFluidRelayServer ## SYNOPSIS -create a Fluid Relay server. +Create a Fluid Relay server. ## SYNTAX @@ -43,7 +43,7 @@ New-AzFluidRelayServer -Name -ResourceGroup -JsonString -ResourceGroupInputObject ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs index 7ba6756c5c26..277a5539d2e0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs +++ b/src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - FrontDoor")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.0.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md index 8f9526d0415f..822b6114e5c1 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md @@ -1,6 +1,6 @@ --- Module Name: Az.FrontDoor -Module Guid: da373e2c-9a59-49f0-ab41-9d25ef4d1519 +Module Guid: e7a86578-25d0-45f9-bb9d-f2a921782004 Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor Help Version: 1.0.0.0 Locale: en-US diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md index 0713c739d754..c0194fcf7134 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafCustomRuleObject.md @@ -145,7 +145,7 @@ Time window for resetting the rate limit count. Default is 1 minute. ```yaml -Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md index 426940a59e99..56a1dbdf874d 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/New-AzFrontDoorWafPolicy.md @@ -105,7 +105,7 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: CreateExpanded Aliases: @@ -215,7 +215,7 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: CreateExpanded Aliases: diff --git a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md index e6b428b73215..ace98c095ff0 100644 --- a/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md +++ b/src/FrontDoor/FrontDoor.Autorest/docs/Update-AzFrontDoorWafPolicy.md @@ -199,7 +199,7 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: @@ -230,7 +230,7 @@ Accept wildcard characters: False If the action type is block, customer can override the response status code. ```yaml -Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: @@ -324,7 +324,7 @@ This setting is only applicable to Premium_AzureFrontDoor. Value must be an integer between 5 and 1440 with the default value being 30. ```yaml -Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] +Type: System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: diff --git a/src/FrontDoor/FrontDoor.Autorest/resources/README.md b/src/FrontDoor/FrontDoor.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/FrontDoor/FrontDoor.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/FrontDoor/FrontDoor/AutorestUpgradeLog.md b/src/FrontDoor/FrontDoor/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/FrontDoor/FrontDoor/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/FrontDoor/FrontDoor/ChangeLog.md b/src/FrontDoor/FrontDoor/ChangeLog.md index 7fb95739a623..255c40cafcb2 100644 --- a/src/FrontDoor/FrontDoor/ChangeLog.md +++ b/src/FrontDoor/FrontDoor/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 2.1.0 * Fixed New-AzFrontDoorWafManagedRuleOverrideObject issue. diff --git a/src/GraphServices/GraphServices.Autorest/Properties/AssemblyInfo.cs b/src/GraphServices/GraphServices.Autorest/Properties/AssemblyInfo.cs index c101557e75e3..c6e9a7702b0a 100644 --- a/src/GraphServices/GraphServices.Autorest/Properties/AssemblyInfo.cs +++ b/src/GraphServices/GraphServices.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - GraphServices")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/GraphServices/GraphServices.Autorest/docs/Az.GraphServices.md b/src/GraphServices/GraphServices.Autorest/docs/Az.GraphServices.md index 40ec64d1dec7..e75b8429f833 100644 --- a/src/GraphServices/GraphServices.Autorest/docs/Az.GraphServices.md +++ b/src/GraphServices/GraphServices.Autorest/docs/Az.GraphServices.md @@ -1,6 +1,6 @@ --- Module Name: Az.GraphServices -Module Guid: 48f1f0e6-4d7a-456b-8027-82676bc09900 +Module Guid: 7a00ff38-a8cc-454e-af45-37549ff1bb98 Download Help Link: https://learn.microsoft.com/powershell/module/az.graphservices Help Version: 1.0.0.0 Locale: en-US @@ -15,11 +15,11 @@ Microsoft Azure PowerShell: GraphServices cmdlets Returns account resource for a given name. ### [New-AzGraphServicesAccount](New-AzGraphServicesAccount.md) -create account resource. +Create account resource. ### [Remove-AzGraphServicesAccount](Remove-AzGraphServicesAccount.md) Deletes a account resource. ### [Update-AzGraphServicesAccount](Update-AzGraphServicesAccount.md) -update account details. +Update account details. diff --git a/src/GraphServices/GraphServices.Autorest/docs/New-AzGraphServicesAccount.md b/src/GraphServices/GraphServices.Autorest/docs/New-AzGraphServicesAccount.md index 37ef1e932662..22e89e6fb7b3 100644 --- a/src/GraphServices/GraphServices.Autorest/docs/New-AzGraphServicesAccount.md +++ b/src/GraphServices/GraphServices.Autorest/docs/New-AzGraphServicesAccount.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzGraphServicesAccount ## SYNOPSIS -create account resource. +Create account resource. ## SYNTAX @@ -34,7 +34,7 @@ New-AzGraphServicesAccount -Name -ResourceGroupName -JsonStrin ``` ## DESCRIPTION -create account resource. +Create account resource. ## EXAMPLES diff --git a/src/GraphServices/GraphServices.Autorest/docs/Update-AzGraphServicesAccount.md b/src/GraphServices/GraphServices.Autorest/docs/Update-AzGraphServicesAccount.md index 262f4cdfb5de..1d6e4335c8b2 100644 --- a/src/GraphServices/GraphServices.Autorest/docs/Update-AzGraphServicesAccount.md +++ b/src/GraphServices/GraphServices.Autorest/docs/Update-AzGraphServicesAccount.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzGraphServicesAccount ## SYNOPSIS -update account details. +Update account details. ## SYNTAX @@ -37,7 +37,7 @@ Update-AzGraphServicesAccount -Name -ResourceGroupName -JsonSt ``` ## DESCRIPTION -update account details. +Update account details. ## EXAMPLES diff --git a/src/GraphServices/GraphServices.Autorest/resources/README.md b/src/GraphServices/GraphServices.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/GraphServices/GraphServices.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/GraphServices/GraphServices/AutorestUpgradeLog.md b/src/GraphServices/GraphServices/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/GraphServices/GraphServices/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/GraphServices/GraphServices/ChangeLog.md b/src/GraphServices/GraphServices/ChangeLog.md index 454c02e58785..e0da0095b094 100644 --- a/src/GraphServices/GraphServices/ChangeLog.md +++ b/src/GraphServices/GraphServices/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/GuestConfiguration/GuestConfiguration.Autorest/Properties/AssemblyInfo.cs b/src/GuestConfiguration/GuestConfiguration.Autorest/Properties/AssemblyInfo.cs index 6a973478ba7f..f559ec43ee5c 100644 --- a/src/GuestConfiguration/GuestConfiguration.Autorest/Properties/AssemblyInfo.cs +++ b/src/GuestConfiguration/GuestConfiguration.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - GuestConfiguration")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.11.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.11.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Az.GuestConfiguration.md b/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Az.GuestConfiguration.md index 7a85413c7c5f..88a04bee2d96 100644 --- a/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Az.GuestConfiguration.md +++ b/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Az.GuestConfiguration.md @@ -1,6 +1,6 @@ --- Module Name: Az.GuestConfiguration -Module Guid: 4afd08fc-b997-4356-8118-ed62d7ce1ce1 +Module Guid: 05423a1f-08f7-4c85-b5e8-9ec549b51c87 Download Help Link: https://learn.microsoft.com/powershell/module/az.guestconfiguration Help Version: 1.0.0.0 Locale: en-US @@ -18,11 +18,11 @@ Get information about a guest configuration assignment Get a report for the guest configuration assignment, by reportId. ### [New-AzGuestConfigurationAssignment](New-AzGuestConfigurationAssignment.md) -create an association between a VM and guest configuration +Create an association between a VM and guest configuration ### [Remove-AzGuestConfigurationAssignment](Remove-AzGuestConfigurationAssignment.md) Delete a guest configuration assignment ### [Update-AzGuestConfigurationAssignment](Update-AzGuestConfigurationAssignment.md) -update an association between a ARC machine and guest configuration +Update an association between a ARC machine and guest configuration diff --git a/src/GuestConfiguration/GuestConfiguration.Autorest/docs/New-AzGuestConfigurationAssignment.md b/src/GuestConfiguration/GuestConfiguration.Autorest/docs/New-AzGuestConfigurationAssignment.md index ce587d379d2e..1480ce905b88 100644 --- a/src/GuestConfiguration/GuestConfiguration.Autorest/docs/New-AzGuestConfigurationAssignment.md +++ b/src/GuestConfiguration/GuestConfiguration.Autorest/docs/New-AzGuestConfigurationAssignment.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzGuestConfigurationAssignment ## SYNOPSIS -create an association between a VM and guest configuration +Create an association between a VM and guest configuration ## SYNTAX @@ -63,7 +63,7 @@ New-AzGuestConfigurationAssignment -GuestConfigurationAssignmentName -M ``` ## DESCRIPTION -create an association between a VM and guest configuration +Create an association between a VM and guest configuration ## EXAMPLES diff --git a/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Update-AzGuestConfigurationAssignment.md b/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Update-AzGuestConfigurationAssignment.md index e07148c82268..c16eb6cf0d7d 100644 --- a/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Update-AzGuestConfigurationAssignment.md +++ b/src/GuestConfiguration/GuestConfiguration.Autorest/docs/Update-AzGuestConfigurationAssignment.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzGuestConfigurationAssignment ## SYNOPSIS -update an association between a ARC machine and guest configuration +Update an association between a ARC machine and guest configuration ## SYNTAX @@ -34,7 +34,7 @@ Update-AzGuestConfigurationAssignment -InputObject ``` ## DESCRIPTION -update an association between a ARC machine and guest configuration +Update an association between a ARC machine and guest configuration ## EXAMPLES diff --git a/src/GuestConfiguration/GuestConfiguration.Autorest/resources/README.md b/src/GuestConfiguration/GuestConfiguration.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/GuestConfiguration/GuestConfiguration.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/GuestConfiguration/GuestConfiguration/AutorestUpgradeLog.md b/src/GuestConfiguration/GuestConfiguration/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/GuestConfiguration/GuestConfiguration/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/GuestConfiguration/GuestConfiguration/ChangeLog.md b/src/GuestConfiguration/GuestConfiguration/ChangeLog.md index efaf58638dc0..be3bdcc0b5ba 100644 --- a/src/GuestConfiguration/GuestConfiguration/ChangeLog.md +++ b/src/GuestConfiguration/GuestConfiguration/ChangeLog.md @@ -15,6 +15,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.12.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/Properties/AssemblyInfo.cs b/src/HanaOnAzure/HanaOnAzure.Autorest/Properties/AssemblyInfo.cs index 3a104a990336..65dd3a3c5e34 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/Properties/AssemblyInfo.cs +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/Properties/AssemblyInfo.cs @@ -20,11 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - HanaOnAzure")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.3")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.3.3")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] - - - - +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Az.HanaOnAzure.md b/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Az.HanaOnAzure.md index eafa8ba09ee4..e7222f600a09 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Az.HanaOnAzure.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Az.HanaOnAzure.md @@ -1,6 +1,6 @@ --- Module Name: Az.HanaOnAzure -Module Guid: 9567af20-a1e7-4bba-a73a-f1a4aace5ed1 +Module Guid: f284771e-8d8d-496f-a968-fb5ca870a70c Download Help Link: https://learn.microsoft.com/powershell/module/az.hanaonazure Help Version: 1.0.0.0 Locale: en-US @@ -18,7 +18,7 @@ Gets properties of a SAP monitor for the specified subscription, resource group, Gets properties of a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. ### [New-AzSapMonitor](New-AzSapMonitor.md) -create a SAP monitor for the specified subscription, resource group, and resource name. +Create a SAP monitor for the specified subscription, resource group, and resource name. ### [New-AzSapMonitorProviderInstance](New-AzSapMonitorProviderInstance.md) Creates a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. @@ -33,5 +33,5 @@ Deletes a provider instance for the specified subscription, resource group, SapM Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name. ### [Update-AzSapMonitorProviderInstance](Update-AzSapMonitorProviderInstance.md) -update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/docs/New-AzSapMonitor.md b/src/HanaOnAzure/HanaOnAzure.Autorest/docs/New-AzSapMonitor.md index cdebfe6f7ac3..953796d13313 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/docs/New-AzSapMonitor.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/docs/New-AzSapMonitor.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzSapMonitor ## SYNOPSIS -create a SAP monitor for the specified subscription, resource group, and resource name. +Create a SAP monitor for the specified subscription, resource group, and resource name. ## SYNTAX @@ -33,7 +33,7 @@ New-AzSapMonitor -Name -ResourceGroupName -JsonString ``` ## DESCRIPTION -create a SAP monitor for the specified subscription, resource group, and resource name. +Create a SAP monitor for the specified subscription, resource group, and resource name. ## EXAMPLES diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Update-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Update-AzSapMonitorProviderInstance.md index 669f65f518e7..14a2c0a92541 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Update-AzSapMonitorProviderInstance.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/docs/Update-AzSapMonitorProviderInstance.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSapMonitorProviderInstance ## SYNOPSIS -update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. +Update a provider instance for the specified subscription, resource group, SapMonitor name, and resource name. ## SYNTAX @@ -34,7 +34,7 @@ Update-AzSapMonitorProviderInstance -Name -SapMonitorInputObject ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.4.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). diff --git a/src/HealthBot/HealthBot.Autorest/Properties/AssemblyInfo.cs b/src/HealthBot/HealthBot.Autorest/Properties/AssemblyInfo.cs index 9c238698cb40..e8634d338f49 100644 --- a/src/HealthBot/HealthBot.Autorest/Properties/AssemblyInfo.cs +++ b/src/HealthBot/HealthBot.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - HealthBot")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] -[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/HealthBot/HealthBot.Autorest/docs/Az.HealthBot.md b/src/HealthBot/HealthBot.Autorest/docs/Az.HealthBot.md index b3f5d82b38fd..3f46a8816c06 100644 --- a/src/HealthBot/HealthBot.Autorest/docs/Az.HealthBot.md +++ b/src/HealthBot/HealthBot.Autorest/docs/Az.HealthBot.md @@ -1,6 +1,6 @@ --- Module Name: Az.HealthBot -Module Guid: c0515980-2dc4-45bc-b9c4-f1e1d8cc8738 +Module Guid: d6c00490-29b9-447d-877e-17f3c76f4ba9 Download Help Link: https://learn.microsoft.com/powershell/module/az.healthbot Help Version: 1.0.0.0 Locale: en-US @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: HealthBot cmdlets Get a HealthBot. ### [New-AzHealthBot](New-AzHealthBot.md) -create a new HealthBot. +Create a new HealthBot. ### [Remove-AzHealthBot](Remove-AzHealthBot.md) Delete a HealthBot. diff --git a/src/HealthBot/HealthBot.Autorest/docs/New-AzHealthBot.md b/src/HealthBot/HealthBot.Autorest/docs/New-AzHealthBot.md index 9b357ed6fdd3..b3518f535e07 100644 --- a/src/HealthBot/HealthBot.Autorest/docs/New-AzHealthBot.md +++ b/src/HealthBot/HealthBot.Autorest/docs/New-AzHealthBot.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzHealthBot ## SYNOPSIS -create a new HealthBot. +Create a new HealthBot. ## SYNTAX @@ -32,7 +32,7 @@ New-AzHealthBot -Name -ResourceGroupName -JsonString ``` ## DESCRIPTION -create a new HealthBot. +Create a new HealthBot. ## EXAMPLES diff --git a/src/HealthBot/HealthBot.Autorest/resources/README.md b/src/HealthBot/HealthBot.Autorest/resources/README.md deleted file mode 100644 index 937f07f8fec2..000000000000 --- a/src/HealthBot/HealthBot.Autorest/resources/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. - -## Info -- Modifiable: yes -- Generated: no -- Committed: yes -- Packaged: no - -## Purpose -Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/HealthBot/HealthBot/AutorestUpgradeLog.md b/src/HealthBot/HealthBot/AutorestUpgradeLog.md new file mode 100644 index 000000000000..590002b8e77b --- /dev/null +++ b/src/HealthBot/HealthBot/AutorestUpgradeLog.md @@ -0,0 +1,2 @@ +## Autorest upgrade log +* Autorest version: 4.0.752 - 26-01-11 diff --git a/src/HealthBot/HealthBot/ChangeLog.md b/src/HealthBot/HealthBot/ChangeLog.md index 20699d7d5fd3..eca70ade97e0 100644 --- a/src/HealthBot/HealthBot/ChangeLog.md +++ b/src/HealthBot/HealthBot/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fix console close issue by upgrading with autorest v4.0.752 ## Version 0.2.0 * Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md).