diff --git a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitor.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitor.ps1
index 30011a49b215..6bbd14913b44 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitor.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitor.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorAppService.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorAppService.ps1
index 73fe7464aa83..c0df823cd49e 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorAppService.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorAppService.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorHost.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorHost.ps1
index 018022587d7b..389dfb838696 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorHost.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorHost.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorLinkableEnv.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorLinkableEnv.ps1
index 8091b714b647..e2292136a4e0 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorLinkableEnv.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorLinkableEnv.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail.ps1
index 15eb64c5b25c..4fe47bd79a25 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail.ps1
@@ -134,8 +134,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMetricStatus.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMetricStatus.ps1
index 86b567f40689..d0de21269620 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMetricStatus.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorMetricStatus.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSOConfig.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSOConfig.ps1
index fa5cae7c7d20..8cea1765b2ec 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSOConfig.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSOConfig.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSODetail.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSODetail.ps1
index c30c0e619a84..bead013f279e 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSODetail.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorSSODetail.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorTagRule.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorTagRule.ps1
index a1ff942690b7..4e963f5e16d7 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorTagRule.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorTagRule.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorVMHostPayload.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorVMHostPayload.ps1
index f17ed4cd7b8f..2cb3f81f51ea 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorVMHostPayload.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitorVMHostPayload.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredResource.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredResource.ps1
index 6ceb26f99bea..85ddd0831def 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredResource.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredResource.ps1
@@ -148,8 +148,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredSubscription.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredSubscription.ps1
index 045afbaaa032..d47a1231b477 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredSubscription.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Get-AzDynatraceMonitoredSubscription.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Invoke-AzDynatraceManageMonitorAgentInstallation.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Invoke-AzDynatraceManageMonitorAgentInstallation.ps1
index 18dd3e4083d3..b769265e8e56 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Invoke-AzDynatraceManageMonitorAgentInstallation.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Invoke-AzDynatraceManageMonitorAgentInstallation.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/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitor.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitor.ps1
index 20726bb858c1..1ac4529929bf 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitor.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitor.ps1
@@ -318,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) {
diff --git a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorSSOConfig.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorSSOConfig.ps1
index 9632d21ba3f4..13fb444510fe 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorSSOConfig.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorSSOConfig.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/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorTagRule.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorTagRule.ps1
index 29e89d5ad5e9..ccb58d33ec52 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorTagRule.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitorTagRule.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/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitoredSubscription.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitoredSubscription.ps1
index 7dbc58b2eb21..2f7c7a57b9be 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitoredSubscription.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/New-AzDynatraceMonitoredSubscription.ps1
@@ -215,8 +215,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/ProxyCmdletDefinitions.ps1
index 1c3b0f834063..e9cdb3b17efe 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.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) {
@@ -332,8 +331,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -567,8 +565,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -753,8 +750,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -967,8 +963,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1173,8 +1168,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1423,8 +1417,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1650,8 +1643,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1857,8 +1849,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2082,8 +2073,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2271,8 +2261,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2486,8 +2475,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2791,8 +2779,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3081,8 +3068,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3348,8 +3334,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3654,8 +3639,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4048,8 +4032,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4290,8 +4273,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4531,8 +4513,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4762,8 +4743,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5097,8 +5077,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5360,8 +5339,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5656,8 +5634,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5942,8 +5919,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitor.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitor.ps1
index c1b5bdd7fdc1..d672961df50f 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitor.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitor.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitorTagRule.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitorTagRule.ps1
index af62d37039b4..5d06faac6795 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitorTagRule.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitorTagRule.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitoredSubscription.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitoredSubscription.ps1
index 5bbcdfa50305..01c1e4864eb5 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitoredSubscription.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Remove-AzDynatraceMonitoredSubscription.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitor.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitor.ps1
index 72fbca7ed962..083958efba3b 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitor.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitor.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorPlan.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorPlan.ps1
index 15fb59a4c8f1..337058979681 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorPlan.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorPlan.ps1
@@ -264,8 +264,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorSSOConfig.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorSSOConfig.ps1
index 5765c7eddc3c..ba12d5734ed4 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorSSOConfig.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorSSOConfig.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/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorTagRule.ps1 b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorTagRule.ps1
index 6225c066759a..55fd07066656 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorTagRule.ps1
+++ b/generated/DynatraceObservability/DynatraceObservability.Autorest/exports/Update-AzDynatraceMonitorTagRule.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/DynatraceObservability/DynatraceObservability.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/DynatraceObservability/DynatraceObservability.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index dab030d0fd3d..f221d60ab1f6 100644
--- a/generated/DynatraceObservability/DynatraceObservability.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/DynatraceObservability/DynatraceObservability.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/EdgeAction/EdgeAction.Autorest/exports/Add-AzEdgeActionAttachment.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Add-AzEdgeActionAttachment.ps1
index 4fe5fdc2a17b..965e84ca87b5 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Add-AzEdgeActionAttachment.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Add-AzEdgeActionAttachment.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/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.ps1
index 49afeb168186..322f21f94aef 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Deploy-AzEdgeActionVersionCode.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/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.ps1
index 29782cf23b7b..6937ec654848 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeAction.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/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.ps1
index 0fbe78c702e2..472fe1a7a973 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionExecutionFilter.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/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.ps1
index f854cd4f2a6c..d41dfb3c5fb1 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersion.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/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.ps1
index b71832e6c78c..128fe98a59ea 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Get-AzEdgeActionVersionCode.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/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.ps1
index add8fac2b1e0..aaed76ff972f 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeAction.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/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.ps1
index 411bcd003f13..b3e67a7b3e26 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionExecutionFilter.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/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.ps1
index 55c84f8d2f21..a5ed211f777f 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/New-AzEdgeActionVersion.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/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.ps1
index 7eeaa3568bc6..b66965560fd8 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/ProxyCmdletDefinitions.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) {
@@ -424,8 +423,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -678,8 +676,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -911,8 +908,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -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) {
@@ -1420,8 +1415,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1713,8 +1707,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1953,8 +1946,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2220,8 +2212,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -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) {
@@ -2713,8 +2703,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2938,8 +2927,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3182,8 +3170,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3467,8 +3454,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3754,8 +3740,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4016,8 +4001,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4247,8 +4231,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.ps1
index 5b39801164b2..a1c38cc089b3 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeAction.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/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionAttachment.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionAttachment.ps1
index 5402f5d6784e..d4b9da692c9c 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionAttachment.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionAttachment.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/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.ps1
index e601df28e816..42cd5efb5c0e 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionExecutionFilter.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/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.ps1
index 944268605c4c..a13c69e8947e 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Remove-AzEdgeActionVersion.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/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.ps1
index 27f690b579b7..469d3b101b1f 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Switch-AzEdgeActionVersionDefault.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/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.ps1
index d9b2b7e91ee3..7b69f30baf73 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeAction.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/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.ps1
index 6a3f1601968d..d76c5bd10303 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionExecutionFilter.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/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.ps1 b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.ps1
index 622db72d8757..7a17b95fced1 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.ps1
+++ b/generated/EdgeAction/EdgeAction.Autorest/exports/Update-AzEdgeActionVersion.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/EdgeAction/EdgeAction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/EdgeAction/EdgeAction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index acfe32191bea..fcac5d536ad3 100644
--- a/generated/EdgeAction/EdgeAction.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/EdgeAction/EdgeAction.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/Monitor/ActionGroup.Autorest/exports/Enable-AzActionGroupReceiver.ps1 b/generated/Monitor/ActionGroup.Autorest/exports/Enable-AzActionGroupReceiver.ps1
index f12f4e8934bd..f4f7e746cfbd 100644
--- a/generated/Monitor/ActionGroup.Autorest/exports/Enable-AzActionGroupReceiver.ps1
+++ b/generated/Monitor/ActionGroup.Autorest/exports/Enable-AzActionGroupReceiver.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/Monitor/ActionGroup.Autorest/exports/Get-AzActionGroup.ps1 b/generated/Monitor/ActionGroup.Autorest/exports/Get-AzActionGroup.ps1
index c34979870f13..02509a1c9213 100644
--- a/generated/Monitor/ActionGroup.Autorest/exports/Get-AzActionGroup.ps1
+++ b/generated/Monitor/ActionGroup.Autorest/exports/Get-AzActionGroup.ps1
@@ -138,8 +138,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/ActionGroup.Autorest/exports/New-AzActionGroup.ps1 b/generated/Monitor/ActionGroup.Autorest/exports/New-AzActionGroup.ps1
index e0b810d15075..492ba005ba38 100644
--- a/generated/Monitor/ActionGroup.Autorest/exports/New-AzActionGroup.ps1
+++ b/generated/Monitor/ActionGroup.Autorest/exports/New-AzActionGroup.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/Monitor/ActionGroup.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/ActionGroup.Autorest/exports/ProxyCmdletDefinitions.ps1
index 553ccdfdc889..a6e48fe0759b 100644
--- a/generated/Monitor/ActionGroup.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/ActionGroup.Autorest/exports/ProxyCmdletDefinitions.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) {
@@ -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) {
@@ -797,8 +795,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +1006,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1387,8 +1383,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3044,8 +3039,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/ActionGroup.Autorest/exports/Remove-AzActionGroup.ps1 b/generated/Monitor/ActionGroup.Autorest/exports/Remove-AzActionGroup.ps1
index 6e1962b33acc..f05a1367f72f 100644
--- a/generated/Monitor/ActionGroup.Autorest/exports/Remove-AzActionGroup.ps1
+++ b/generated/Monitor/ActionGroup.Autorest/exports/Remove-AzActionGroup.ps1
@@ -139,8 +139,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/ActionGroup.Autorest/exports/Test-AzActionGroup.ps1 b/generated/Monitor/ActionGroup.Autorest/exports/Test-AzActionGroup.ps1
index 54d9efd9811f..3956972a9202 100644
--- a/generated/Monitor/ActionGroup.Autorest/exports/Test-AzActionGroup.ps1
+++ b/generated/Monitor/ActionGroup.Autorest/exports/Test-AzActionGroup.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/Monitor/ActionGroup.Autorest/exports/Update-AzActionGroup.ps1 b/generated/Monitor/ActionGroup.Autorest/exports/Update-AzActionGroup.ps1
index bcdd442cfe86..51f5230b2b21 100644
--- a/generated/Monitor/ActionGroup.Autorest/exports/Update-AzActionGroup.ps1
+++ b/generated/Monitor/ActionGroup.Autorest/exports/Update-AzActionGroup.ps1
@@ -307,8 +307,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/Module.cs b/generated/Monitor/ActionGroup.Autorest/generated/Module.cs
index 75c6f2fb7c99..c68b75ac6418 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/Module.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/Module.cs
@@ -68,7 +68,7 @@ public partial class Module
public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
- public string Name => @"Az.ActionGroup";
+ public string Name => @"Az.Monitor";
/// The delegate to call when this module is loaded (supporting a commmon module).
public ModuleLoadPipelineDelegate OnModuleLoad { get; set; }
@@ -80,7 +80,7 @@ public partial class Module
public global::System.String ProfileName { get; set; }
/// The ResourceID for this module (azure arm).
- public string ResourceId => @"Az.ActionGroup";
+ public string ResourceId => @"Az.Monitor";
/// The delegate to call in WriteObject to sanitize the output object.
public SanitizerDelegate SanitizeOutput { get; set; }
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableExpanded.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableExpanded.cs
index ecf011b3f0f3..22878da65d0a 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableExpanded.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableExpanded.cs
@@ -501,7 +501,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaIdentityExpanded.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaIdentityExpanded.cs
index 92cc41ed24bb..6b894461928a 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaIdentityExpanded.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaIdentityExpanded.cs
@@ -482,7 +482,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonFilePath.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonFilePath.cs
index e1c6a02462fa..63ec228c6d81 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonFilePath.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonFilePath.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/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonString.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonString.cs
index aa214c4e926e..efd906e88382 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonString.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/EnableAzActionGroupReceiver_EnableViaJsonString.cs
@@ -501,7 +501,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_Delete.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_Delete.cs
index ae365b2fff22..26ac5e4c8d25 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_Delete.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_Delete.cs
@@ -495,7 +495,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -519,7 +519,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_DeleteViaIdentity.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_DeleteViaIdentity.cs
index 87381ba6850c..3715b55750a0 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_DeleteViaIdentity.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/RemoveAzActionGroup_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/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateExpanded.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateExpanded.cs
index 6366b5ecbb8f..ebe3575c5c15 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateExpanded.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateExpanded.cs
@@ -41,18 +41,9 @@ public partial class TestAzActionGroup_CreateExpanded : global::System.Managemen
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
/// The request body which contain contact detail metadata
private Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.INotificationRequestBody _notificationRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.NotificationRequestBody();
- ///
- /// A flag to tell whether it is the first returned object 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 _actionGroupName;
@@ -400,11 +391,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets.TestAzActi
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -720,24 +706,7 @@ public TestAzActionGroup_CreateExpanded()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ITestNotificationDetailsResponse
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaIdentityExpanded.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaIdentityExpanded.cs
index 75dd49a0c478..477d1f1d94bb 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaIdentityExpanded.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaIdentityExpanded.cs
@@ -41,18 +41,9 @@ public partial class TestAzActionGroup_CreateViaIdentityExpanded : 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;
-
/// The request body which contain contact detail metadata
private Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.INotificationRequestBody _notificationRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.NotificationRequestBody();
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
///
/// The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold,
/// logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, actualcostbudget,
@@ -358,11 +349,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets.TestAzActi
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -698,24 +684,7 @@ public TestAzActionGroup_CreateViaIdentityExpanded()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ITestNotificationDetailsResponse
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonFilePath.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonFilePath.cs
index 97df505faf98..4e99b9cea773 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonFilePath.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonFilePath.cs
@@ -42,17 +42,8 @@ public partial class TestAzActionGroup_CreateViaJsonFilePath : global::System.Ma
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
public global::System.String _jsonString;
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// Backing field for property.
private string _actionGroupName;
@@ -263,11 +254,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets.TestAzActi
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -583,24 +569,7 @@ public TestAzActionGroup_CreateViaJsonFilePath()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ITestNotificationDetailsResponse
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonString.cs b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonString.cs
index 764b318acb9a..06de57a9666e 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonString.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/cmdlets/TestAzActionGroup_CreateViaJsonString.cs
@@ -42,15 +42,6 @@ public partial class TestAzActionGroup_CreateViaJsonString : global::System.Mana
/// A dictionary to carry over additional data for pipeline.
private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary();
- /// A buffer to record first returned object in response.
- private object _firstResponse = null;
-
- ///
- /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object.
- /// Two means multiple returned objects in response.
- ///
- private int _responseSize = 0;
-
/// Backing field for property.
private string _actionGroupName;
@@ -261,11 +252,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets.TestAzActi
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse);
- }
var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId);
if (telemetryInfo != null)
{
@@ -581,24 +567,7 @@ public TestAzActionGroup_CreateViaJsonString()
// onOk - response for 200 / application/json
// (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ITestNotificationDetailsResponse
var result = (await response);
- if (null != result)
- {
- if (0 == _responseSize)
- {
- _firstResponse = result;
- _responseSize = 1;
- }
- else
- {
- if (1 ==_responseSize)
- {
- // Flush buffer
- WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject());
- }
- WriteObject(result.AddMultipleTypeNameIntoPSObject());
- _responseSize = 2;
- }
- }
+ WriteObject(result, false);
}
}
}
diff --git a/generated/Monitor/ActionGroup.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Monitor/ActionGroup.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index ddfbd85214f7..e7df1778e4d6 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Monitor/ActionGroup.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/Monitor/ActionGroup.Autorest/generated/runtime/Context.cs b/generated/Monitor/ActionGroup.Autorest/generated/runtime/Context.cs
index 4ad4b0ef09c7..407e5205d481 100644
--- a/generated/Monitor/ActionGroup.Autorest/generated/runtime/Context.cs
+++ b/generated/Monitor/ActionGroup.Autorest/generated/runtime/Context.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.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/Monitor/ActivityLogAlert.Autorest/exports/Get-AzActivityLogAlert.ps1 b/generated/Monitor/ActivityLogAlert.Autorest/exports/Get-AzActivityLogAlert.ps1
index eaf378a45897..1a3db524b02c 100644
--- a/generated/Monitor/ActivityLogAlert.Autorest/exports/Get-AzActivityLogAlert.ps1
+++ b/generated/Monitor/ActivityLogAlert.Autorest/exports/Get-AzActivityLogAlert.ps1
@@ -139,8 +139,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlert.ps1 b/generated/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlert.ps1
index 289bb75a27b3..7117e0786e30 100644
--- a/generated/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlert.ps1
+++ b/generated/Monitor/ActivityLogAlert.Autorest/exports/New-AzActivityLogAlert.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/Monitor/ActivityLogAlert.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/ActivityLogAlert.Autorest/exports/ProxyCmdletDefinitions.ps1
index cccc27603ef3..fcd70f5e849e 100644
--- a/generated/Monitor/ActivityLogAlert.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/ActivityLogAlert.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -139,8 +139,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -353,8 +352,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -627,8 +625,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1253,8 +1250,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/ActivityLogAlert.Autorest/exports/Remove-AzActivityLogAlert.ps1 b/generated/Monitor/ActivityLogAlert.Autorest/exports/Remove-AzActivityLogAlert.ps1
index de7b1bc0f9e5..ca6e57739081 100644
--- a/generated/Monitor/ActivityLogAlert.Autorest/exports/Remove-AzActivityLogAlert.ps1
+++ b/generated/Monitor/ActivityLogAlert.Autorest/exports/Remove-AzActivityLogAlert.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/Monitor/ActivityLogAlert.Autorest/exports/Update-AzActivityLogAlert.ps1 b/generated/Monitor/ActivityLogAlert.Autorest/exports/Update-AzActivityLogAlert.ps1
index a6f0457401c7..ed8228c6ae60 100644
--- a/generated/Monitor/ActivityLogAlert.Autorest/exports/Update-AzActivityLogAlert.ps1
+++ b/generated/Monitor/ActivityLogAlert.Autorest/exports/Update-AzActivityLogAlert.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/Monitor/ActivityLogAlert.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Monitor/ActivityLogAlert.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index 2ecc57b4d607..17ff50837a26 100644
--- a/generated/Monitor/ActivityLogAlert.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Monitor/ActivityLogAlert.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/Monitor/Autoscale.Autorest/exports/Get-AzAutoscalePredictiveMetric.ps1 b/generated/Monitor/Autoscale.Autorest/exports/Get-AzAutoscalePredictiveMetric.ps1
index d1651977b103..e0ea31aaf6bc 100644
--- a/generated/Monitor/Autoscale.Autorest/exports/Get-AzAutoscalePredictiveMetric.ps1
+++ b/generated/Monitor/Autoscale.Autorest/exports/Get-AzAutoscalePredictiveMetric.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/Monitor/Autoscale.Autorest/exports/Get-AzAutoscaleSetting.ps1 b/generated/Monitor/Autoscale.Autorest/exports/Get-AzAutoscaleSetting.ps1
index 984d33f5063a..7d21538f5455 100644
--- a/generated/Monitor/Autoscale.Autorest/exports/Get-AzAutoscaleSetting.ps1
+++ b/generated/Monitor/Autoscale.Autorest/exports/Get-AzAutoscaleSetting.ps1
@@ -139,8 +139,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/Autoscale.Autorest/exports/New-AzAutoscaleSetting.ps1 b/generated/Monitor/Autoscale.Autorest/exports/New-AzAutoscaleSetting.ps1
index bcd67535f487..f5d377826655 100644
--- a/generated/Monitor/Autoscale.Autorest/exports/New-AzAutoscaleSetting.ps1
+++ b/generated/Monitor/Autoscale.Autorest/exports/New-AzAutoscaleSetting.ps1
@@ -249,8 +249,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/Autoscale.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/Autoscale.Autorest/exports/ProxyCmdletDefinitions.ps1
index f6b987f50b94..24c529ad1657 100644
--- a/generated/Monitor/Autoscale.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/Autoscale.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) {
@@ -375,8 +374,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -697,8 +695,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -907,8 +904,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2059,8 +2055,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/Autoscale.Autorest/exports/Remove-AzAutoscaleSetting.ps1 b/generated/Monitor/Autoscale.Autorest/exports/Remove-AzAutoscaleSetting.ps1
index 9905f5bd8f38..04889cc6fe42 100644
--- a/generated/Monitor/Autoscale.Autorest/exports/Remove-AzAutoscaleSetting.ps1
+++ b/generated/Monitor/Autoscale.Autorest/exports/Remove-AzAutoscaleSetting.ps1
@@ -138,8 +138,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/Autoscale.Autorest/exports/Update-AzAutoscaleSetting.ps1 b/generated/Monitor/Autoscale.Autorest/exports/Update-AzAutoscaleSetting.ps1
index ae9ddbcae8e7..c4321239a4d4 100644
--- a/generated/Monitor/Autoscale.Autorest/exports/Update-AzAutoscaleSetting.ps1
+++ b/generated/Monitor/Autoscale.Autorest/exports/Update-AzAutoscaleSetting.ps1
@@ -235,8 +235,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/Autoscale.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Monitor/Autoscale.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index 7b7f12f17799..0fe2eb91213a 100644
--- a/generated/Monitor/Autoscale.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Monitor/Autoscale.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/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionEndpoint.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionEndpoint.ps1
index e30eb76b14b2..003740ca7795 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionEndpoint.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionEndpoint.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/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRule.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRule.ps1
index 9c8882b99c95..c0c7d4257b8a 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRule.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRule.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/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRuleAssociation.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRuleAssociation.ps1
index 38648bc009ab..0cbbe8b13a54 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRuleAssociation.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Get-AzDataCollectionRuleAssociation.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/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.ps1
index 455e779fcbcb..6b1c5a5ab2a1 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionEndpoint.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/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1
index 92011717e3da..f47d4954f495 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRule.ps1
@@ -482,8 +482,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.ps1
index 03b25f5e6da0..3d62499e20d4 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/New-AzDataCollectionRuleAssociation.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/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.ps1
index 6d17206086d5..d86a0291bc90 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/ProxyCmdletDefinitions.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) {
@@ -384,8 +383,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -601,8 +599,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -866,8 +863,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1079,8 +1075,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1626,8 +1621,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1840,8 +1834,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2046,8 +2039,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2252,8 +2244,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2507,8 +2498,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2728,8 +2718,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log 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 +3199,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionEndpoint.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionEndpoint.ps1
index 6243b7e1bd6e..975de42a631c 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionEndpoint.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionEndpoint.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/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRule.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRule.ps1
index 7c0a847564ea..186d64c644d7 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRule.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRule.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/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRuleAssociation.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRuleAssociation.ps1
index 0fe9812c2f9c..9fa2834d32d0 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRuleAssociation.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Remove-AzDataCollectionRuleAssociation.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/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.ps1
index 87460f0a1277..81586bff698f 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionEndpoint.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/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1
index 2a0700ba214d..b2714163223d 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRule.ps1
@@ -418,8 +418,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1 b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1
index 4bb18e001cbf..00345b91172c 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1
+++ b/generated/Monitor/DataCollectionRule.Autorest/exports/Update-AzDataCollectionRuleAssociation.ps1
@@ -150,8 +150,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/Module.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/Module.cs
index d6a515e71231..826e3f0e6720 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/Module.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/Module.cs
@@ -68,7 +68,7 @@ public partial class Module
public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
- public string Name => @"Az.DataCollectionRule";
+ public string Name => @"Az.Monitor";
/// The delegate to call when this module is loaded (supporting a commmon module).
public ModuleLoadPipelineDelegate OnModuleLoad { get; set; }
@@ -80,7 +80,7 @@ public partial class Module
public global::System.String ProfileName { get; set; }
/// The ResourceID for this module (azure arm).
- public string ResourceId => @"Az.DataCollectionRule";
+ public string ResourceId => @"Az.Monitor";
/// The delegate to call in WriteObject to sanitize the output object.
public SanitizerDelegate SanitizeOutput { get; set; }
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_Delete.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_Delete.cs
index 658257c10a9c..58de4ff0b9eb 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_Delete.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_Delete.cs
@@ -495,7 +495,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -519,7 +519,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_DeleteViaIdentity.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_DeleteViaIdentity.cs
index 300c025b006c..aa8e3b14f32c 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_DeleteViaIdentity.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionEndpoint_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/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_Delete.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_Delete.cs
index 6f1e4e14dba6..378a63b17b0d 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_Delete.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_Delete.cs
@@ -477,7 +477,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -501,7 +501,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_DeleteViaIdentity.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_DeleteViaIdentity.cs
index c025af216896..33139c2d3cb9 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_DeleteViaIdentity.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRuleAssociation_DeleteViaIdentity.cs
@@ -471,7 +471,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -495,7 +495,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_Delete.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_Delete.cs
index ae2d91ebb8c6..e23eaa255e86 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_Delete.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_Delete.cs
@@ -495,7 +495,7 @@ protected override void StopProcessing()
return ;
}
// onNoContent - response for 204 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
@@ -519,7 +519,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 /
- if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru"))
+ if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru"))
{
WriteObject(true);
}
diff --git a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_DeleteViaIdentity.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_DeleteViaIdentity.cs
index a6340bbdf74c..7fa836e60b46 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_DeleteViaIdentity.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/cmdlets/RemoveAzDataCollectionRule_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/Monitor/DataCollectionRule.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index 188fe1d33c98..5af3fcf0cd8e 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Monitor/DataCollectionRule.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/Monitor/DataCollectionRule.Autorest/generated/runtime/Context.cs b/generated/Monitor/DataCollectionRule.Autorest/generated/runtime/Context.cs
index a4f5f45eadd3..4098fd1a9ddb 100644
--- a/generated/Monitor/DataCollectionRule.Autorest/generated/runtime/Context.cs
+++ b/generated/Monitor/DataCollectionRule.Autorest/generated/runtime/Context.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.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/Monitor/DiagnosticSetting.Autorest/Properties/AssemblyInfo.cs b/generated/Monitor/DiagnosticSetting.Autorest/Properties/AssemblyInfo.cs
index fe75862408b6..ea1dd81fa6a1 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/Monitor/DiagnosticSetting.Autorest/Properties/AssemblyInfo.cs
@@ -23,4 +23,4 @@
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
-[assembly: System.CLSCompliantAttribute(false)]
\ No newline at end of file
+[assembly: System.CLSCompliantAttribute(false)]
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSetting.ps1
index 894a1b3e8379..1b66ee36dd7e 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSetting.ps1
@@ -128,8 +128,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSettingCategory.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSettingCategory.ps1
index 20c1b040c7af..415d0a395337 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSettingCategory.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzDiagnosticSettingCategory.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/Monitor/DiagnosticSetting.Autorest/exports/Get-AzEventCategory.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzEventCategory.ps1
index bbf2f21534b8..22dc26f298eb 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzEventCategory.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzEventCategory.ps1
@@ -95,8 +95,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzSubscriptionDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzSubscriptionDiagnosticSetting.ps1
index 0b1f917cebea..c6bb815f3171 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzSubscriptionDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Get-AzSubscriptionDiagnosticSetting.ps1
@@ -127,8 +127,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzDiagnosticSetting.ps1
index ff59d3db481a..d501020ca7a0 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzDiagnosticSetting.ps1
@@ -208,8 +208,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzSubscriptionDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzSubscriptionDiagnosticSetting.ps1
index 51e423926b73..c3753e1cbb40 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzSubscriptionDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/New-AzSubscriptionDiagnosticSetting.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/Monitor/DiagnosticSetting.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/ProxyCmdletDefinitions.ps1
index 8bca398ab92f..1bc17a9240e3 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/DiagnosticSetting.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) {
@@ -318,8 +317,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -478,8 +476,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -668,8 +665,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -948,8 +944,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1189,8 +1184,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1391,8 +1385,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1585,8 +1578,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1856,8 +1848,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2096,8 +2087,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzDiagnosticSetting.ps1
index d1fb99a116bb..50bed1adfb5a 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzDiagnosticSetting.ps1
@@ -130,8 +130,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzSubscriptionDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzSubscriptionDiagnosticSetting.ps1
index d8c6dc3ab622..2f8ab90e390f 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzSubscriptionDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Remove-AzSubscriptionDiagnosticSetting.ps1
@@ -130,8 +130,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/Monitor/DiagnosticSetting.Autorest/exports/Update-AzDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Update-AzDiagnosticSetting.ps1
index b228034e193a..db4dc7e0c45a 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Update-AzDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Update-AzDiagnosticSetting.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/Monitor/DiagnosticSetting.Autorest/exports/Update-AzSubscriptionDiagnosticSetting.ps1 b/generated/Monitor/DiagnosticSetting.Autorest/exports/Update-AzSubscriptionDiagnosticSetting.ps1
index d1ef3665f3bc..da8b1e5a1591 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/exports/Update-AzSubscriptionDiagnosticSetting.ps1
+++ b/generated/Monitor/DiagnosticSetting.Autorest/exports/Update-AzSubscriptionDiagnosticSetting.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/Monitor/DiagnosticSetting.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Monitor/DiagnosticSetting.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index 426eab1372bc..52783ccdff79 100644
--- a/generated/Monitor/DiagnosticSetting.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Monitor/DiagnosticSetting.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/Monitor/Metricdata.Autorest/Properties/AssemblyInfo.cs b/generated/Monitor/Metricdata.Autorest/Properties/AssemblyInfo.cs
index d3991ca7839a..2e1ec8d7606e 100644
--- a/generated/Monitor/Metricdata.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/Monitor/Metricdata.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 - Metricdata")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")]
-[assembly: System.Reflection.AssemblyVersionAttribute("6.0.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)]
diff --git a/generated/Monitor/Metricdata.Autorest/exports/Get-AzMetricsBatch.ps1 b/generated/Monitor/Metricdata.Autorest/exports/Get-AzMetricsBatch.ps1
index 54239c509490..231e2f7b9050 100644
--- a/generated/Monitor/Metricdata.Autorest/exports/Get-AzMetricsBatch.ps1
+++ b/generated/Monitor/Metricdata.Autorest/exports/Get-AzMetricsBatch.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/Monitor/Metricdata.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/Metricdata.Autorest/exports/ProxyCmdletDefinitions.ps1
index 54239c509490..231e2f7b9050 100644
--- a/generated/Monitor/Metricdata.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/Metricdata.Autorest/exports/ProxyCmdletDefinitions.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/Monitor/Metricdata.Autorest/generated/Module.cs b/generated/Monitor/Metricdata.Autorest/generated/Module.cs
index 7192a377e054..75378f811d6a 100644
--- a/generated/Monitor/Metricdata.Autorest/generated/Module.cs
+++ b/generated/Monitor/Metricdata.Autorest/generated/Module.cs
@@ -68,7 +68,7 @@ public partial class Module
public static Microsoft.Azure.PowerShell.Cmdlets.Metric.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
- public string Name => @"Az.Metricdata";
+ public string Name => @"Az.Monitor";
/// The delegate to call when this module is loaded (supporting a commmon module).
public ModuleLoadPipelineDelegate OnModuleLoad { get; set; }
@@ -80,7 +80,7 @@ public partial class Module
public global::System.String ProfileName { get; set; }
/// The ResourceID for this module (azure arm).
- public string ResourceId => @"Az.Metricdata";
+ public string ResourceId => @"Az.Monitor";
/// The delegate to call in WriteObject to sanitize the output object.
public SanitizerDelegate SanitizeOutput { get; set; }
diff --git a/generated/Monitor/Metricdata.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/Monitor/Metricdata.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index 6141b372b047..86f123e43bd0 100644
--- a/generated/Monitor/Metricdata.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/Monitor/Metricdata.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/Monitor/Metricdata.Autorest/generated/runtime/Context.cs b/generated/Monitor/Metricdata.Autorest/generated/runtime/Context.cs
index 0fbaf5c3ad44..bbef033ad647 100644
--- a/generated/Monitor/Metricdata.Autorest/generated/runtime/Context.cs
+++ b/generated/Monitor/Metricdata.Autorest/generated/runtime/Context.cs
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Metric.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/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.format.ps1xml b/generated/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.format.ps1xml
index 2c34e4da0215..26066104f189 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.format.ps1xml
+++ b/generated/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.format.ps1xml
@@ -2,33 +2,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.MonitorWorkspaceIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspace
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.MonitorWorkspaceIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspace#Multiple
-
+
-
+
-
+
- AzureMonitorWorkspaceName
+ AccountId
- ResourceGroupName
+ ProvisioningState
- SubscriptionId
+ PublicNetworkAccess
@@ -36,32 +36,82 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnection
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettings
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnection
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettings#Multiple
-
+
-
+
+
+
+
+
+
+ DataCollectionEndpointResourceId
+
+
+ DataCollectionRuleResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetrics
+
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetrics#Multiple
+
+
+
-
+
-
+
+
+
+
+
+
+ InternalId
+
+
+ PrometheusQueryEndpoint
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResource#Multiple
+
+
+
-
+
-
+
-
+
+
+
+
+
+
+
@@ -71,22 +121,16 @@
Name
- SystemDataCreatedAt
-
-
- SystemDataCreatedBy
-
-
- SystemDataCreatedByType
+ Location
- SystemDataLastModifiedAt
+ ProvisioningState
- SystemDataLastModifiedBy
+ PublicNetworkAccess
- SystemDataLastModifiedByType
+ ResourceGroupName
@@ -94,27 +138,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceForUpdateTags
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceForUpdateTags#Multiple
-
-
-
-
+
- GroupId
-
-
- ProvisioningState
+ Item
@@ -122,33 +160,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionState
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceListResult
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionState
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceListResult#Multiple
-
-
-
-
-
-
-
+
- ActionsRequired
-
-
- Description
-
-
- Status
+ NextLink
@@ -156,21 +182,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceProperties#Multiple
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Name
+ AccountId
+
+
+ DefaultIngestionSettingDataCollectionEndpointResourceId
+
+
+ DefaultIngestionSettingDataCollectionRuleResourceId
+
+
+ MetricInternalId
+
+
+ MetricPrometheusQueryEndpoint
+
+
+ ProvisioningState
+
+
+ PublicNetworkAccess
@@ -178,9 +240,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetail
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetail
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetail
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetail#Multiple
@@ -212,39 +274,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IngestionSettings
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IngestionSettings#Multiple
-
-
-
-
-
-
-
+
-
+
- ActionType
-
-
- IsDataAction
-
-
- Name
+ DataCollectionEndpointResourceId
- Origin
+ DataCollectionRuleResourceId
@@ -252,39 +302,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Metrics
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Metrics#Multiple
-
-
-
-
-
-
-
+
-
+
- Description
-
-
- Operation
-
-
- Provider
+ InternalId
- Resource
+ PrometheusQueryEndpoint
@@ -292,21 +330,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.MonitorWorkspaceIdentity
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.MonitorWorkspaceIdentity#Multiple
-
+
+
+
+
+
+
+
- NextLink
+ AzureMonitorWorkspaceName
+
+
+ ResourceGroupName
+
+
+ SubscriptionId
@@ -314,73 +364,101 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ResourceAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Operation
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ResourceAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Operation#Multiple
+
+
+
+
+
+
+
+
+
+
+ ActionType
+
+
+ IsDataAction
+
Name
+
+ Origin
+
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationDisplay
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationDisplay#Multiple
-
-
-
-
-
-
-
+
-
+
-
+
-
+
- CreatedAt
-
-
- CreatedBy
+ Description
- CreatedByType
+ Operation
- LastModifiedAt
+ Provider
- LastModifiedBy
+ Resource
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationListResult#Multiple
+
+
+
+
+
+
+
+
+
+
- LastModifiedByType
+ NextLink
@@ -388,9 +466,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnection
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnection#Multiple
@@ -415,9 +493,6 @@
-
-
-
@@ -443,30 +518,27 @@
SystemDataLastModifiedByType
-
- Location
-
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionProperties
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionProperties#Multiple
-
+
- Item
+ ProvisioningState
@@ -474,33 +546,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspace
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspace
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionState#Multiple
-
+
-
+
-
+
- AccountId
+ ActionsRequired
- ProvisioningState
+ Description
- PublicNetworkAccess
+ Status
@@ -508,27 +580,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceDefaultIngestionSettings
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Resource
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceDefaultIngestionSettings
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Resource#Multiple
-
-
-
-
+
- DataCollectionEndpointResourceId
-
-
- DataCollectionRuleResourceId
+ Name
@@ -536,27 +602,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceMetrics
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ResourceAutoGenerated
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceMetrics
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ResourceAutoGenerated#Multiple
-
-
-
-
+
- InternalId
-
-
- PrometheusQueryEndpoint
+ Name
@@ -564,67 +624,51 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData#Multiple
-
+
-
+
-
+
-
+
-
+
+
+
+
- Name
+ CreatedAt
- Location
+ CreatedBy
- ProvisioningState
+ CreatedByType
- PublicNetworkAccess
+ LastModifiedAt
- ResourceGroupName
+ LastModifiedBy
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceForUpdateTags
-
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceForUpdateTags
-
-
-
-
-
-
-
-
-
-
- Item
+ LastModifiedByType
@@ -632,107 +676,63 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResource#Multiple
-
+
-
-
-
-
-
- NextLink
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceProperties
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- AccountId
-
-
- DefaultIngestionSettingDataCollectionEndpointResourceId
+ Name
- DefaultIngestionSettingDataCollectionRuleResourceId
+ SystemDataCreatedAt
- MetricInternalId
+ SystemDataCreatedBy
- MetricPrometheusQueryEndpoint
+ SystemDataCreatedByType
- ProvisioningState
+ SystemDataLastModifiedAt
- PublicNetworkAccess
+ SystemDataLastModifiedBy
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettings
-
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettings
-
-
-
-
-
-
-
-
-
-
-
-
-
- DataCollectionEndpointResourceId
+ SystemDataLastModifiedByType
- DataCollectionRuleResourceId
+ Location
@@ -740,27 +740,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.Metrics
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.Metrics
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTags#Multiple
-
-
-
-
+
- InternalId
-
-
- PrometheusQueryEndpoint
+ Item
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.psd1 b/generated/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.psd1
index 5b5a9413621a..e2782fd57fc2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.psd1
+++ b/generated/Monitor/MonitorWorkspace.Autorest/Az.MonitorWorkspace.psd1
@@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.MonitorWorkspace.private.dll'
FormatsToProcess = './Az.MonitorWorkspace.format.ps1xml'
- FunctionsToExport = 'Get-AzMonitorWorkspace', 'New-AzMonitorWorkspace', 'Remove-AzMonitorWorkspace', 'Update-AzMonitorWorkspace', '*'
- AliasesToExport = '*'
+ FunctionsToExport = 'Get-AzMonitorWorkspace', 'New-AzMonitorWorkspace', 'Remove-AzMonitorWorkspace', 'Update-AzMonitorWorkspace'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'MonitorWorkspace'
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/check-dependencies.ps1 b/generated/Monitor/MonitorWorkspace.Autorest/check-dependencies.ps1
index c29591c7bfe1..90ca9867ae40 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/check-dependencies.ps1
+++ b/generated/Monitor/MonitorWorkspace.Autorest/check-dependencies.ps1
@@ -12,13 +12,13 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
$ErrorActionPreference = 'Stop'
-if(-not $Isolated) {
+if(-not $NotIsolated) {
Write-Host -ForegroundColor Green 'Creating isolated process...'
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
- & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
return
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/exports/Get-AzMonitorWorkspace.ps1 b/generated/Monitor/MonitorWorkspace.Autorest/exports/Get-AzMonitorWorkspace.ps1
index 36da837e3dd3..7feba2cd2eff 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/exports/Get-AzMonitorWorkspace.ps1
+++ b/generated/Monitor/MonitorWorkspace.Autorest/exports/Get-AzMonitorWorkspace.ps1
@@ -29,7 +29,7 @@ Get-AzMonitorWorkspace -ResourceGroupName azps_test_group -Name azps-monitor-wor
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
+Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.monitor/get-azmonitorworkspace
#>
function Get-AzMonitorWorkspace {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -76,7 +76,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -136,6 +135,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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,9 +166,7 @@ begin {
List = 'Az.MonitorWorkspace.private\Get-AzMonitorWorkspace_List';
List1 = 'Az.MonitorWorkspace.private\Get-AzMonitorWorkspace_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.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -175,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/Monitor/MonitorWorkspace.Autorest/exports/New-AzMonitorWorkspace.ps1 b/generated/Monitor/MonitorWorkspace.Autorest/exports/New-AzMonitorWorkspace.ps1
index e0edb1cd10a2..5760949b7886 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/exports/New-AzMonitorWorkspace.ps1
+++ b/generated/Monitor/MonitorWorkspace.Autorest/exports/New-AzMonitorWorkspace.ps1
@@ -16,16 +16,16 @@
<#
.Synopsis
-Create or update a workspace
+Create a workspace
.Description
-Create or update a workspace
+Create a workspace
.Example
New-AzMonitorWorkspace -Name azps-monitor-workspace -ResourceGroupName azps_test_group -Location eastus
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
+Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -40,10 +40,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.monitor/new-azmonitorworkspace
#>
function New-AzMonitorWorkspace {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('AzureMonitorWorkspaceName')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
@@ -52,6 +54,8 @@ param(
${Name},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
# The name of the resource group.
@@ -59,6 +63,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -69,22 +75,35 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
[System.String]
# The geo-location where the resource lives
${Location},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -142,6 +161,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -162,10 +189,10 @@ begin {
$mapping = @{
CreateExpanded = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateExpanded';
CreateViaIdentityExpanded = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -179,6 +206,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Monitor/MonitorWorkspace.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Monitor/MonitorWorkspace.Autorest/exports/ProxyCmdletDefinitions.ps1
index d3f259acdb9d..c90511123cf9 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Monitor/MonitorWorkspace.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -29,7 +29,7 @@ Get-AzMonitorWorkspace -ResourceGroupName azps_test_group -Name azps-monitor-wor
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
+Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.monitor/get-azmonitorworkspace
#>
function Get-AzMonitorWorkspace {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -76,7 +76,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -136,6 +135,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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,9 +166,7 @@ begin {
List = 'Az.MonitorWorkspace.private\Get-AzMonitorWorkspace_List';
List1 = 'Az.MonitorWorkspace.private\Get-AzMonitorWorkspace_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.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -175,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)
@@ -220,16 +228,16 @@ end {
<#
.Synopsis
-Create or update a workspace
+Create a workspace
.Description
-Create or update a workspace
+Create a workspace
.Example
New-AzMonitorWorkspace -Name azps-monitor-workspace -ResourceGroupName azps_test_group -Location eastus
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
+Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -244,10 +252,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.monitor/new-azmonitorworkspace
#>
function New-AzMonitorWorkspace {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('AzureMonitorWorkspaceName')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
@@ -256,6 +266,8 @@ param(
${Name},
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
# The name of the resource group.
@@ -263,6 +275,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -273,22 +287,35 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
[System.String]
# The geo-location where the resource lives
${Location},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -346,6 +373,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -366,10 +401,10 @@ begin {
$mapping = @{
CreateExpanded = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateExpanded';
CreateViaIdentityExpanded = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.MonitorWorkspace.private\New-AzMonitorWorkspace_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -383,6 +418,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -483,7 +521,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -561,6 +598,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -582,9 +627,7 @@ begin {
Delete = 'Az.MonitorWorkspace.private\Remove-AzMonitorWorkspace_Delete';
DeleteViaIdentity = 'Az.MonitorWorkspace.private\Remove-AzMonitorWorkspace_DeleteViaIdentity';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -598,6 +641,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -643,9 +689,9 @@ end {
<#
.Synopsis
-Updates part of a workspace
+Update part of a workspace
.Description
-Updates part of a workspace
+Update part of a workspace
.Example
Update-AzMonitorWorkspace -Name azps-monitor-workspace -ResourceGroupName azps_test_group -Tag @{"123"="abc"}
.Example
@@ -654,7 +700,7 @@ Get-AzMonitorWorkspace -Name azps-monitor-workspace -ResourceGroupName azps_test
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
+Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -669,10 +715,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.monitor/update-azmonitorworkspace
#>
function Update-AzMonitorWorkspace {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('AzureMonitorWorkspaceName')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
@@ -681,6 +729,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
# The name of the resource group.
@@ -688,6 +738,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -698,16 +750,28 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -765,6 +829,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-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,10 +857,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -802,6 +874,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/Monitor/MonitorWorkspace.Autorest/exports/Remove-AzMonitorWorkspace.ps1 b/generated/Monitor/MonitorWorkspace.Autorest/exports/Remove-AzMonitorWorkspace.ps1
index 8bdd5ecd289d..145c1dd1df8d 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/exports/Remove-AzMonitorWorkspace.ps1
+++ b/generated/Monitor/MonitorWorkspace.Autorest/exports/Remove-AzMonitorWorkspace.ps1
@@ -71,7 +71,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -149,6 +148,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -170,9 +177,7 @@ begin {
Delete = 'Az.MonitorWorkspace.private\Remove-AzMonitorWorkspace_Delete';
DeleteViaIdentity = 'Az.MonitorWorkspace.private\Remove-AzMonitorWorkspace_DeleteViaIdentity';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -186,6 +191,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/exports/Update-AzMonitorWorkspace.ps1 b/generated/Monitor/MonitorWorkspace.Autorest/exports/Update-AzMonitorWorkspace.ps1
index 82451dec4043..ad2142b8dba0 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/exports/Update-AzMonitorWorkspace.ps1
+++ b/generated/Monitor/MonitorWorkspace.Autorest/exports/Update-AzMonitorWorkspace.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Updates part of a workspace
+Update part of a workspace
.Description
-Updates part of a workspace
+Update part of a workspace
.Example
Update-AzMonitorWorkspace -Name azps-monitor-workspace -ResourceGroupName azps_test_group -Tag @{"123"="abc"}
.Example
@@ -27,7 +27,7 @@ Get-AzMonitorWorkspace -Name azps-monitor-workspace -ResourceGroupName azps_test
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource
+Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -42,10 +42,12 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.monitor/update-azmonitorworkspace
#>
function Update-AzMonitorWorkspace {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('AzureMonitorWorkspaceName')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
@@ -54,6 +56,8 @@ param(
${Name},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[System.String]
# The name of the resource group.
@@ -61,6 +65,8 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath')]
+ [Parameter(ParameterSetName='UpdateViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -71,16 +77,28 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMonitorWorkspaceIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -138,6 +156,14 @@ begin {
}
$parameterSet = $PSCmdlet.ParameterSetName
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ }
+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
@@ -158,10 +184,10 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.MonitorWorkspace.private\Update-AzMonitorWorkspace_UpdateViaJsonString';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded', 'UpdateViaJsonFilePath', 'UpdateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -175,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/Monitor/MonitorWorkspace.Autorest/generated/Module.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/Module.cs
index c4b61ac1d22d..a9e1ca1afbed 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/Module.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/Module.cs
@@ -28,12 +28,20 @@ public partial class Module
public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler();
+ private static bool _init = false;
+
+ private static readonly global::System.Object _initLock = new global::System.Object();
+
+ private static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Module _instance;
+
/// the ISendAsync pipeline instance
private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.HttpPipeline _pipeline;
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.HttpPipeline _pipelineWithProxy;
+ private static readonly global::System.Object _singletonLock = new global::System.Object();
+
public bool _useProxy = false;
public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy();
@@ -56,14 +64,11 @@ public partial class Module
/// The delegate to get the telemetry info.
public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; }
- /// Backing field for property.
- private static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Module _instance;
-
/// the singleton of this module class
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Module());
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }
/// The Name of this module
- public string Name => @"Az.MonitorWorkspace";
+ public string Name => @"Az.Monitor";
/// The delegate to call when this module is loaded (supporting a commmon module).
public ModuleLoadPipelineDelegate OnModuleLoad { get; set; }
@@ -75,7 +80,7 @@ public partial class Module
public global::System.String ProfileName { get; set; }
/// The ResourceID for this module (azure arm).
- public string ResourceId => @"Az.MonitorWorkspace";
+ public string ResourceId => @"Az.Monitor";
/// The delegate to call in WriteObject to sanitize the output object.
public SanitizerDelegate SanitizeOutput { get; set; }
@@ -125,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.HttpP
/// Initialization steps performed after the module is loaded.
public void Init()
{
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
- OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
- CustomInit();
+ if (_init == false)
+ {
+ lock (_initLock) {
+ if (_init == false) {
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
+ OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
+ CustomInit();
+ _init = true;
+ }
+ }
+ }
}
/// Creates the module instance.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.PowerShell.cs
index c87bb1ffb20b..952f31de4382 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.PowerShell.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
- /// Any object
+ /// Anything
[System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))]
public partial class Any
{
@@ -146,7 +146,7 @@ public override string ToString()
return ToJsonString();
}
}
- /// Any object
+ /// Anything
[System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))]
public partial interface IAny
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.cs
index 243e4b039f6d..82186ad636ce 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
- /// Any object
+ /// Anything
public partial class Any :
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAnyInternal
@@ -19,13 +19,13 @@ public Any()
}
}
- /// Any object
+ /// Anything
public partial interface IAny :
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable
{
}
- /// Any object
+ /// Anything
internal partial interface IAnyInternal
{
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.json.cs
index b35b985adb72..1e6e2035afd8 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Any.json.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
- /// Any object
+ /// Anything
public partial class Any
{
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.PowerShell.cs
deleted file mode 100644
index cdbe2b50be35..000000000000
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.PowerShell.cs
+++ /dev/null
@@ -1,350 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
-
- /// An Azure Monitor Workspace definition
- [System.ComponentModel.TypeConverter(typeof(AzureMonitorWorkspaceResourceTypeConverter))]
- public partial class AzureMonitorWorkspaceResource
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
- ///
- /// /// instance serialized to a string, normally it is a Json
- /// /// set returnNow to true if you provide a customized OverrideToString function
-
- partial void OverrideToString(ref string stringResult, ref bool returnNow);
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal AzureMonitorWorkspaceResource(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("Property"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceTypeConverter.ConvertFrom);
- }
- if (content.Contains("Etag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Etag, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("Metric"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.MetricsTypeConverter.ConvertFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState.CreateFrom);
- }
- if (content.Contains("DefaultIngestionSetting"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettingsTypeConverter.ConvertFrom);
- }
- if (content.Contains("AccountId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).AccountId, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateEndpointConnection"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionTypeConverter.ConvertFrom));
- }
- if (content.Contains("PublicNetworkAccess"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess.CreateFrom);
- }
- if (content.Contains("MetricInternalId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId, global::System.Convert.ToString);
- }
- if (content.Contains("MetricPrometheusQueryEndpoint"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
- }
- if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
- }
- if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal AzureMonitorWorkspaceResource(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("Property"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceTypeConverter.ConvertFrom);
- }
- if (content.Contains("Etag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Etag, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("Metric"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.MetricsTypeConverter.ConvertFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState.CreateFrom);
- }
- if (content.Contains("DefaultIngestionSetting"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettingsTypeConverter.ConvertFrom);
- }
- if (content.Contains("AccountId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).AccountId, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateEndpointConnection"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionTypeConverter.ConvertFrom));
- }
- if (content.Contains("PublicNetworkAccess"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess.CreateFrom);
- }
- if (content.Contains("MetricInternalId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId, global::System.Convert.ToString);
- }
- if (content.Contains("MetricPrometheusQueryEndpoint"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
- }
- if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
- }
- if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
- }
- AfterDeserializePSObject(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new AzureMonitorWorkspaceResource(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new AzureMonitorWorkspaceResource(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeAll)?.ToString();
-
- public override string ToString()
- {
- var returnNow = false;
- var result = global::System.String.Empty;
- OverrideToString(ref result, ref returnNow);
- if (returnNow)
- {
- return result;
- }
- return ToJsonString();
- }
- }
- /// An Azure Monitor Workspace definition
- [System.ComponentModel.TypeConverter(typeof(AzureMonitorWorkspaceResourceTypeConverter))]
- public partial interface IAzureMonitorWorkspaceResource
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.cs
deleted file mode 100644
index 8d895b0cb0ec..000000000000
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
-
- /// Resource properties
- public partial class AzureMonitorWorkspaceResourceProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourcePropertiesInternal,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IValidates
- {
- ///
- /// Backing field for Inherited model
- ///
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace __azureMonitorWorkspace = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspace();
-
- /// The immutable ID of the Azure Monitor workspace. This property is read-only.
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).AccountId; }
-
- /// The Data Collection Rule and Endpoint used for ingestion by default.
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings DefaultIngestionSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSetting; }
-
- ///
- /// The Azure resource Id of the default data collection endpoint for this workspace.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionEndpointResourceId; }
-
- /// The Azure resource Id of the default data collection rule for this workspace.
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionRuleResourceId; }
-
- /// Information about metrics for the Azure Monitor workspace
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics Metric { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).Metric; }
-
- /// An internal identifier for the metrics container. Only to be used by the system
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricInternalId; }
-
- /// The Prometheus query endpoint for the workspace
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricPrometheusQueryEndpoint; }
-
- /// Internal Acessors for AccountId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).AccountId = value; }
-
- /// Internal Acessors for DefaultIngestionSetting
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.DefaultIngestionSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSetting = value; }
-
- /// Internal Acessors for DefaultIngestionSettingDataCollectionEndpointResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionEndpointResourceId = value; }
-
- /// Internal Acessors for DefaultIngestionSettingDataCollectionRuleResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionRuleResourceId = value; }
-
- /// Internal Acessors for Metric
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.Metric { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).Metric = value; }
-
- /// Internal Acessors for MetricInternalId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricInternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricInternalId = value; }
-
- /// Internal Acessors for MetricPrometheusQueryEndpoint
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricPrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricPrometheusQueryEndpoint = value; }
-
- /// Internal Acessors for PrivateEndpointConnection
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PrivateEndpointConnection = value; }
-
- /// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).ProvisioningState = value; }
-
- /// Internal Acessors for PublicNetworkAccess
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PublicNetworkAccess = value; }
-
- /// List of private endpoint connections
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PrivateEndpointConnection; }
-
- ///
- /// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).ProvisioningState; }
-
- /// Gets or sets allow or disallow public network access to workspace
- [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PublicNetworkAccess; }
-
- /// Creates an new instance.
- public AzureMonitorWorkspaceResourceProperties()
- {
-
- }
-
- /// Validates that this object meets the validation criteria.
- /// an instance that will receive validation
- /// events.
- ///
- /// A that will be complete when validation is completed.
- ///
- public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IEventListener eventListener)
- {
- await eventListener.AssertNotNull(nameof(__azureMonitorWorkspace), __azureMonitorWorkspace);
- await eventListener.AssertObjectIsValid(nameof(__azureMonitorWorkspace), __azureMonitorWorkspace);
- }
- }
- /// Resource properties
- public partial interface IAzureMonitorWorkspaceResourceProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace
- {
-
- }
- /// Resource properties
- internal partial interface IAzureMonitorWorkspaceResourcePropertiesInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.PowerShell.cs
deleted file mode 100644
index c30314977340..000000000000
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.PowerShell.cs
+++ /dev/null
@@ -1,310 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
-
- /// The private endpoint connection resource.
- [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionTypeConverter))]
- public partial class PrivateEndpointConnection
- {
-
- ///
- /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
- /// object before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Collections.IDictionary content that should be used.
-
- partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
-
- ///
- /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
- /// before it is returned. Implement this method in a partial class to enable this behavior
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
-
- partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
-
- ///
- /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
-
- ///
- /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
- /// of the object before it is deserialized.
- /// If you wish to disable the default deserialization entirely, return true in the output
- /// parameter.
- /// Implement this method in a partial class to enable this behavior.
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- /// Determines if the rest of the serialization should be processed, or if the method should return
- /// instantly.
-
- partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
-
- ///
- /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
- ///
- /// /// instance serialized to a string, normally it is a Json
- /// /// set returnNow to true if you provide a customized OverrideToString function
-
- partial void OverrideToString(ref string stringResult, ref bool returnNow);
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new PrivateEndpointConnection(content);
- }
-
- ///
- /// Deserializes a into an instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- ///
- /// an instance of .
- ///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new PrivateEndpointConnection(content);
- }
-
- ///
- /// Creates a new instance of , deserializing the content from a json string.
- ///
- /// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal PrivateEndpointConnection(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("Property"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateEndpoint"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointTypeConverter.ConvertFrom);
- }
- if (content.Contains("PrivateLinkServiceConnectionState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
- }
- if (content.Contains("GroupId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).GroupId = (string[]) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState.CreateFrom);
- }
- if (content.Contains("PrivateEndpointId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpointId, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateLinkServiceConnectionStateDescription"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateLinkServiceConnectionStateStatus"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus?) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal PrivateEndpointConnection(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("Property"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemDataCreatedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
- }
- if (content.Contains("SystemData"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateEndpoint"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointTypeConverter.ConvertFrom);
- }
- if (content.Contains("PrivateLinkServiceConnectionState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
- }
- if (content.Contains("GroupId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).GroupId = (string[]) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState.CreateFrom);
- }
- if (content.Contains("PrivateEndpointId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateEndpointId, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateLinkServiceConnectionStateDescription"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
- }
- if (content.Contains("PrivateLinkServiceConnectionStateStatus"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus?) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus.CreateFrom);
- }
- AfterDeserializePSObject(content);
- }
-
- /// Serializes this instance to a json string.
-
- /// a containing this model serialized to JSON text.
- public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeAll)?.ToString();
-
- public override string ToString()
- {
- var returnNow = false;
- var result = global::System.String.Empty;
- OverrideToString(ref result, ref returnNow);
- if (returnNow)
- {
- return result;
- }
- return ToJsonString();
- }
- }
- /// The private endpoint connection resource.
- [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionTypeConverter))]
- public partial interface IPrivateEndpointConnection
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.PowerShell.cs
similarity index 53%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.PowerShell.cs
index fc9b10de2388..83cee43b5cf5 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureMonitorWorkspace
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,49 +78,49 @@ internal AzureMonitorWorkspace(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Metric"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.MetricsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetricsTypeConverter.ConvertFrom);
}
if (content.Contains("DefaultIngestionSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("AccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointConnection"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom));
}
if (content.Contains("PublicNetworkAccess"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, global::System.Convert.ToString);
}
if (content.Contains("MetricInternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
}
if (content.Contains("MetricPrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -135,71 +135,69 @@ internal AzureMonitorWorkspace(global::System.Management.Automation.PSObject con
// actually deserialize
if (content.Contains("Metric"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.MetricsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetricsTypeConverter.ConvertFrom);
}
if (content.Contains("DefaultIngestionSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("AccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointConnection"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom));
}
if (content.Contains("PublicNetworkAccess"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, global::System.Convert.ToString);
}
if (content.Contains("MetricInternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
}
if (content.Contains("MetricPrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureMonitorWorkspace(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureMonitorWorkspace(content);
}
@@ -209,7 +207,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.TypeConverter.cs
index e339424e6efc..1a229fb7c69b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.cs
similarity index 63%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.cs
index ca3c3b4da3d6..5c820de26df3 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Properties of an Azure Monitor workspace
public partial class AzureMonitorWorkspace :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal
{
/// Backing field for property.
@@ -21,89 +21,89 @@ public partial class AzureMonitorWorkspace :
public string AccountId { get => this._accountId; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings _defaultIngestionSetting;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings _defaultIngestionSetting;
/// The Data Collection Rule and Endpoint used for ingestion by default.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings DefaultIngestionSetting { get => (this._defaultIngestionSetting = this._defaultIngestionSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettings()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings DefaultIngestionSetting { get => (this._defaultIngestionSetting = this._defaultIngestionSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettings()); }
///
/// The Azure resource Id of the default data collection endpoint for this workspace.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionEndpointResourceId; }
+ public string DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionEndpointResourceId; }
/// The Azure resource Id of the default data collection rule for this workspace.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionRuleResourceId; }
+ public string DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionRuleResourceId; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics _metric;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics _metric;
/// Information about metrics for the Azure Monitor workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics Metric { get => (this._metric = this._metric ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.Metrics()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics Metric { get => (this._metric = this._metric ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetrics()); }
/// An internal identifier for the metrics container. Only to be used by the system
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)Metric).InternalId; }
+ public string MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)Metric).InternalId; }
/// The Prometheus query endpoint for the workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)Metric).PrometheusQueryEndpoint; }
+ public string MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)Metric).PrometheusQueryEndpoint; }
/// Internal Acessors for AccountId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.AccountId { get => this._accountId; set { {_accountId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.AccountId { get => this._accountId; set { {_accountId = value;} } }
/// Internal Acessors for DefaultIngestionSetting
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.DefaultIngestionSetting { get => (this._defaultIngestionSetting = this._defaultIngestionSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettings()); set { {_defaultIngestionSetting = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.DefaultIngestionSetting { get => (this._defaultIngestionSetting = this._defaultIngestionSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettings()); set { {_defaultIngestionSetting = value;} } }
/// Internal Acessors for DefaultIngestionSettingDataCollectionEndpointResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionEndpointResourceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionEndpointResourceId = value ?? null; }
/// Internal Acessors for DefaultIngestionSettingDataCollectionRuleResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionRuleResourceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)DefaultIngestionSetting).DataCollectionRuleResourceId = value ?? null; }
/// Internal Acessors for Metric
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.Metric { get => (this._metric = this._metric ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.Metrics()); set { {_metric = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.Metric { get => (this._metric = this._metric ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetrics()); set { {_metric = value;} } }
/// Internal Acessors for MetricInternalId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)Metric).InternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)Metric).InternalId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)Metric).InternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)Metric).InternalId = value ?? null; }
/// Internal Acessors for MetricPrometheusQueryEndpoint
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)Metric).PrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)Metric).PrometheusQueryEndpoint = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)Metric).PrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)Metric).PrometheusQueryEndpoint = value ?? null; }
/// Internal Acessors for PrivateEndpointConnection
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.PrivateEndpointConnection { get => this._privateEndpointConnection; set { {_privateEndpointConnection = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.PrivateEndpointConnection { get => this._privateEndpointConnection; set { {_privateEndpointConnection = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Internal Acessors for PublicNetworkAccess
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal.PublicNetworkAccess { get => this._publicNetworkAccess; set { {_publicNetworkAccess = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.PublicNetworkAccess { get => this._publicNetworkAccess; set { {_publicNetworkAccess = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] _privateEndpointConnection;
+ private System.Collections.Generic.List _privateEndpointConnection;
/// List of private endpoint connections
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] PrivateEndpointConnection { get => this._privateEndpointConnection; }
+ public System.Collections.Generic.List PrivateEndpointConnection { get => this._privateEndpointConnection; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? _provisioningState;
+ private string _provisioningState;
///
/// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; }
+ public string ProvisioningState { get => this._provisioningState; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? _publicNetworkAccess;
+ private string _publicNetworkAccess;
/// Gets or sets allow or disallow public network access to workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? PublicNetworkAccess { get => this._publicNetworkAccess; }
+ public string PublicNetworkAccess { get => this._publicNetworkAccess; }
/// Creates an new instance.
public AzureMonitorWorkspace()
@@ -119,6 +119,9 @@ public partial interface IAzureMonitorWorkspace :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The immutable ID of the Azure Monitor workspace. This property is read-only.",
SerializedName = @"accountId",
PossibleTypes = new [] { typeof(string) })]
@@ -129,6 +132,9 @@ public partial interface IAzureMonitorWorkspace :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Azure resource Id of the default data collection endpoint for this workspace.",
SerializedName = @"dataCollectionEndpointResourceId",
PossibleTypes = new [] { typeof(string) })]
@@ -137,6 +143,9 @@ public partial interface IAzureMonitorWorkspace :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Azure resource Id of the default data collection rule for this workspace.",
SerializedName = @"dataCollectionRuleResourceId",
PossibleTypes = new [] { typeof(string) })]
@@ -145,6 +154,9 @@ public partial interface IAzureMonitorWorkspace :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"An internal identifier for the metrics container. Only to be used by the system",
SerializedName = @"internalId",
PossibleTypes = new [] { typeof(string) })]
@@ -153,6 +165,9 @@ public partial interface IAzureMonitorWorkspace :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Prometheus query endpoint for the workspace",
SerializedName = @"prometheusQueryEndpoint",
PossibleTypes = new [] { typeof(string) })]
@@ -161,28 +176,39 @@ public partial interface IAzureMonitorWorkspace :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"List of private endpoint connections",
SerializedName = @"privateEndpointConnections",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] PrivateEndpointConnection { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection) })]
+ System.Collections.Generic.List PrivateEndpointConnection { get; }
///
/// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.",
SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? ProvisioningState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Creating", "Succeeded", "Deleting", "Failed", "Canceled")]
+ string ProvisioningState { get; }
/// Gets or sets allow or disallow public network access to workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Gets or sets allow or disallow public network access to workspace",
SerializedName = @"publicNetworkAccess",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? PublicNetworkAccess { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ string PublicNetworkAccess { get; }
}
/// Properties of an Azure Monitor workspace
@@ -192,7 +218,7 @@ internal partial interface IAzureMonitorWorkspaceInternal
/// The immutable ID of the Azure Monitor workspace. This property is read-only.
string AccountId { get; set; }
/// The Data Collection Rule and Endpoint used for ingestion by default.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings DefaultIngestionSetting { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings DefaultIngestionSetting { get; set; }
///
/// The Azure resource Id of the default data collection endpoint for this workspace.
///
@@ -200,19 +226,21 @@ internal partial interface IAzureMonitorWorkspaceInternal
/// The Azure resource Id of the default data collection rule for this workspace.
string DefaultIngestionSettingDataCollectionRuleResourceId { get; set; }
/// Information about metrics for the Azure Monitor workspace
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics Metric { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics Metric { get; set; }
/// An internal identifier for the metrics container. Only to be used by the system
string MetricInternalId { get; set; }
/// The Prometheus query endpoint for the workspace
string MetricPrometheusQueryEndpoint { get; set; }
/// List of private endpoint connections
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] PrivateEndpointConnection { get; set; }
+ System.Collections.Generic.List PrivateEndpointConnection { get; set; }
///
/// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? ProvisioningState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Creating", "Succeeded", "Deleting", "Failed", "Canceled")]
+ string ProvisioningState { get; set; }
/// Gets or sets allow or disallow public network access to workspace
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? PublicNetworkAccess { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ string PublicNetworkAccess { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.json.cs
similarity index 89%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.json.cs
index a7e8840a1baa..5936e578d654 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspace.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspace.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,23 +65,23 @@ internal AzureMonitorWorkspace(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Monito
{
return;
}
- {_metric = If( json?.PropertyT("metrics"), out var __jsonMetrics) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.Metrics.FromJson(__jsonMetrics) : Metric;}
- {_defaultIngestionSetting = If( json?.PropertyT("defaultIngestionSettings"), out var __jsonDefaultIngestionSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettings.FromJson(__jsonDefaultIngestionSettings) : DefaultIngestionSetting;}
- {_accountId = If( json?.PropertyT("accountId"), out var __jsonAccountId) ? (string)__jsonAccountId : (string)AccountId;}
- {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
- {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnection.FromJson(__u) )) ))() : null : PrivateEndpointConnection;}
- {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;}
+ {_metric = If( json?.PropertyT("metrics"), out var __jsonMetrics) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetrics.FromJson(__jsonMetrics) : _metric;}
+ {_defaultIngestionSetting = If( json?.PropertyT("defaultIngestionSettings"), out var __jsonDefaultIngestionSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettings.FromJson(__jsonDefaultIngestionSettings) : _defaultIngestionSetting;}
+ {_accountId = If( json?.PropertyT("accountId"), out var __jsonAccountId) ? (string)__jsonAccountId : (string)_accountId;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
+ {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnection.FromJson(__u) )) ))() : null : _privateEndpointConnection;}
+ {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)_publicNetworkAccess;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspace(json) : null;
}
@@ -105,23 +105,23 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._metric ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._metric.ToJson(null,serializationMode) : null, "metrics" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._defaultIngestionSetting ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._defaultIngestionSetting.ToJson(null,serializationMode) : null, "defaultIngestionSettings" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._accountId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._accountId.ToString()) : null, "accountId" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
if (null != this._privateEndpointConnection)
{
@@ -133,7 +133,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
container.Add("privateEndpointConnections",__w);
}
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._publicNetworkAccess)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._publicNetworkAccess.ToString()) : null, "publicNetworkAccess" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.PowerShell.cs
similarity index 77%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.PowerShell.cs
index 0aa0929f8667..d7dc4cb98fba 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureMonitorWorkspaceDefaultIngestionSettings
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,17 +78,17 @@ internal AzureMonitorWorkspaceDefaultIngestionSettings(global::System.Collection
// actually deserialize
if (content.Contains("DataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -103,39 +103,39 @@ internal AzureMonitorWorkspaceDefaultIngestionSettings(global::System.Management
// actually deserialize
if (content.Contains("DataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureMonitorWorkspaceDefaultIngestionSettings(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureMonitorWorkspaceDefaultIngestionSettings(content);
}
@@ -148,7 +148,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.TypeConverter.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.TypeConverter.cs
index 7eb9308def62..46b4a533b84d 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.cs
similarity index 70%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.cs
index 7f9c1143dc6b..8da88a792aae 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.cs
@@ -3,37 +3,37 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// The Data Collection Rule and Endpoint used for ingestion by default.
public partial class AzureMonitorWorkspaceDefaultIngestionSettings :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettingsInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettingsInternal,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings __ingestionSettings = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettings();
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings __ingestionSettings = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IngestionSettings();
///
/// The Azure resource Id of the default data collection endpoint for this workspace.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string DataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)__ingestionSettings).DataCollectionEndpointResourceId; }
+ public string DataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)__ingestionSettings).DataCollectionEndpointResourceId; }
/// The Azure resource Id of the default data collection rule for this workspace.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string DataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)__ingestionSettings).DataCollectionRuleResourceId; }
+ public string DataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)__ingestionSettings).DataCollectionRuleResourceId; }
/// Internal Acessors for DataCollectionEndpointResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal.DataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)__ingestionSettings).DataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)__ingestionSettings).DataCollectionEndpointResourceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal.DataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)__ingestionSettings).DataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)__ingestionSettings).DataCollectionEndpointResourceId = value ?? null; }
/// Internal Acessors for DataCollectionRuleResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal.DataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)__ingestionSettings).DataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)__ingestionSettings).DataCollectionRuleResourceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal.DataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)__ingestionSettings).DataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)__ingestionSettings).DataCollectionRuleResourceId = value ?? null; }
///
/// Creates an new instance.
@@ -58,13 +58,13 @@ public AzureMonitorWorkspaceDefaultIngestionSettings()
/// The Data Collection Rule and Endpoint used for ingestion by default.
public partial interface IAzureMonitorWorkspaceDefaultIngestionSettings :
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings
{
}
/// The Data Collection Rule and Endpoint used for ingestion by default.
internal partial interface IAzureMonitorWorkspaceDefaultIngestionSettingsInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal
{
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.json.cs
similarity index 94%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.json.cs
index ce5bf1746ed2..dd5a72b40dd6 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceDefaultIngestionSettings.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceDefaultIngestionSettings.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -66,18 +66,18 @@ internal AzureMonitorWorkspaceDefaultIngestionSettings(Microsoft.Azure.PowerShel
{
return;
}
- __ingestionSettings = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettings(json);
+ __ingestionSettings = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IngestionSettings(json);
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceDefaultIngestionSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspaceDefaultIngestionSettings(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.PowerShell.cs
similarity index 79%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.PowerShell.cs
index 346d39bf4caa..c26d818550a4 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureMonitorWorkspaceMetrics
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,17 +78,17 @@ internal AzureMonitorWorkspaceMetrics(global::System.Collections.IDictionary con
// actually deserialize
if (content.Contains("PrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("InternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -103,39 +103,39 @@ internal AzureMonitorWorkspaceMetrics(global::System.Management.Automation.PSObj
// actually deserialize
if (content.Contains("PrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("InternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureMonitorWorkspaceMetrics(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureMonitorWorkspaceMetrics(content);
}
@@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.TypeConverter.cs
index f929875a7fe1..1716aea06fb1 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.cs
similarity index 71%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.cs
index a35231397de4..0d4502a4fbfe 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.cs
@@ -3,35 +3,35 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Information about metrics for the Azure Monitor workspace
public partial class AzureMonitorWorkspaceMetrics :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetricsInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetricsInternal,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics __metrics = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.Metrics();
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics __metrics = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Metrics();
/// An internal identifier for the metrics container. Only to be used by the system
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string InternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)__metrics).InternalId; }
+ public string InternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)__metrics).InternalId; }
/// Internal Acessors for InternalId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal.InternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)__metrics).InternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)__metrics).InternalId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal.InternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)__metrics).InternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)__metrics).InternalId = value ?? null; }
/// Internal Acessors for PrometheusQueryEndpoint
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal.PrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)__metrics).PrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)__metrics).PrometheusQueryEndpoint = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal.PrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)__metrics).PrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)__metrics).PrometheusQueryEndpoint = value ?? null; }
/// The Prometheus query endpoint for the workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string PrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)__metrics).PrometheusQueryEndpoint; }
+ public string PrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)__metrics).PrometheusQueryEndpoint; }
/// Creates an new instance.
public AzureMonitorWorkspaceMetrics()
@@ -54,13 +54,13 @@ public AzureMonitorWorkspaceMetrics()
/// Information about metrics for the Azure Monitor workspace
public partial interface IAzureMonitorWorkspaceMetrics :
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics
{
}
/// Information about metrics for the Azure Monitor workspace
internal partial interface IAzureMonitorWorkspaceMetricsInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal
{
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.json.cs
similarity index 94%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.json.cs
index c7e5bfbd1abe..d1513e01876b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceMetrics.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceMetrics.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,18 +65,18 @@ internal AzureMonitorWorkspaceMetrics(Microsoft.Azure.PowerShell.Cmdlets.Monitor
{
return;
}
- __metrics = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.Metrics(json);
+ __metrics = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Metrics(json);
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceMetrics FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspaceMetrics(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.PowerShell.cs
new file mode 100644
index 000000000000..2fd12611b1a4
--- /dev/null
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.PowerShell.cs
@@ -0,0 +1,350 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
+
+ /// An Azure Monitor Workspace definition
+ [System.ComponentModel.TypeConverter(typeof(AzureMonitorWorkspaceResourceTypeConverter))]
+ public partial class AzureMonitorWorkspaceResource
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
+ ///
+ /// /// instance serialized to a string, normally it is a Json
+ /// /// set returnNow to true if you provide a customized OverrideToString function
+
+ partial void OverrideToString(ref string stringResult, ref bool returnNow);
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal AzureMonitorWorkspaceResource(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Property"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourcePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Etag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Etag, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("Tag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Location"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("MetricInternalId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId, global::System.Convert.ToString);
+ }
+ if (content.Contains("Metric"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetricsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DefaultIngestionSetting"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettingsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("AccountId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).AccountId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateEndpointConnection"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("PublicNetworkAccess"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess, global::System.Convert.ToString);
+ }
+ if (content.Contains("MetricPrometheusQueryEndpoint"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
+ }
+ if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal AzureMonitorWorkspaceResource(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Property"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourcePropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Etag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Etag, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("Tag"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Location"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("MetricInternalId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricInternalId, global::System.Convert.ToString);
+ }
+ if (content.Contains("Metric"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetricsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DefaultIngestionSetting"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettingsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("AccountId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).AccountId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateEndpointConnection"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("PublicNetworkAccess"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).PublicNetworkAccess, global::System.Convert.ToString);
+ }
+ if (content.Contains("MetricPrometheusQueryEndpoint"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
+ }
+ if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
+ }
+ AfterDeserializePSObject(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new AzureMonitorWorkspaceResource(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new AzureMonitorWorkspaceResource(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+
+ /// Serializes this instance to a json string.
+
+ /// a containing this model serialized to JSON text.
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeAll)?.ToString();
+
+ public override string ToString()
+ {
+ var returnNow = false;
+ var result = global::System.String.Empty;
+ OverrideToString(ref result, ref returnNow);
+ if (returnNow)
+ {
+ return result;
+ }
+ return ToJsonString();
+ }
+ }
+ /// An Azure Monitor Workspace definition
+ [System.ComponentModel.TypeConverter(typeof(AzureMonitorWorkspaceResourceTypeConverter))]
+ public partial interface IAzureMonitorWorkspaceResource
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.TypeConverter.cs
index 442e1f7f5526..09b60a20a54d 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.cs
similarity index 56%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.cs
index 3132a16d1d95..3fda93265e07 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.cs
@@ -3,38 +3,38 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// An Azure Monitor Workspace definition
public partial class AzureMonitorWorkspaceResource :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResource();
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResource();
/// The immutable ID of the Azure Monitor workspace. This property is read-only.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).AccountId; }
+ public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).AccountId; }
///
/// The Azure resource Id of the default data collection endpoint for this workspace.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionEndpointResourceId; }
+ public string DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionEndpointResourceId; }
/// The Azure resource Id of the default data collection rule for this workspace.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionRuleResourceId; }
+ public string DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionRuleResourceId; }
/// Backing field for property.
private string _etag;
@@ -49,100 +49,118 @@ public partial class AzureMonitorWorkspaceResource :
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Id; }
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Id; }
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.FormatTable(Index = 1)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; }
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; }
/// An internal identifier for the metrics container. Only to be used by the system
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).MetricInternalId; }
+ public string MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).MetricInternalId; }
/// The Prometheus query endpoint for the workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).MetricPrometheusQueryEndpoint; }
+ public string MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).MetricPrometheusQueryEndpoint; }
/// Internal Acessors for AccountId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).AccountId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).AccountId = value ?? null; }
/// Internal Acessors for DefaultIngestionSetting
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.DefaultIngestionSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSetting = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.DefaultIngestionSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSetting = value ?? null /* model class */; }
/// Internal Acessors for DefaultIngestionSettingDataCollectionEndpointResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionEndpointResourceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionEndpointResourceId = value ?? null; }
/// Internal Acessors for DefaultIngestionSettingDataCollectionRuleResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionRuleResourceId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).DefaultIngestionSettingDataCollectionRuleResourceId = value ?? null; }
/// Internal Acessors for Etag
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.Etag { get => this._etag; set { {_etag = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.Etag { get => this._etag; set { {_etag = value;} } }
/// Internal Acessors for Metric
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.Metric { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).Metric = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.Metric { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).Metric = value ?? null /* model class */; }
/// Internal Acessors for MetricInternalId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).MetricInternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).MetricInternalId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).MetricInternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).MetricInternalId = value ?? null; }
/// Internal Acessors for MetricPrometheusQueryEndpoint
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).MetricPrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).MetricPrometheusQueryEndpoint = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).MetricPrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).MetricPrometheusQueryEndpoint = value ?? null; }
/// Internal Acessors for PrivateEndpointConnection
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).PrivateEndpointConnection = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).PrivateEndpointConnection = value ?? null /* arrayOf */; }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspace()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).ProvisioningState = value ?? null; }
/// Internal Acessors for PublicNetworkAccess
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceInternal.PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).PublicNetworkAccess = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceInternal.PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).PublicNetworkAccess = value ?? null; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.FormatTable(Index = 0)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Name; }
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Name; }
/// List of private endpoint connections
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).PrivateEndpointConnection; }
+ public System.Collections.Generic.List PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).PrivateEndpointConnection; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties _property;
/// Resource properties
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspace()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceProperties()); set => this._property = value; }
///
/// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.FormatTable(Index = 2)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).ProvisioningState; }
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).ProvisioningState; }
/// Gets or sets allow or disallow public network access to workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.FormatTable(Index = 3)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)Property).PublicNetworkAccess; }
+ public string PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)Property).PublicNetworkAccess; }
/// Gets the resource group name
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
@@ -154,49 +172,49 @@ public partial class AzureMonitorWorkspaceResource :
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).SystemDataLastModifiedByType; }
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.DoNotFormat]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__trackedResource).Type; }
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__trackedResource).Type; }
/// Creates an new instance.
public AzureMonitorWorkspaceResource()
@@ -219,12 +237,15 @@ public AzureMonitorWorkspaceResource()
/// An Azure Monitor Workspace definition
public partial interface IAzureMonitorWorkspaceResource :
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource
{
/// The immutable ID of the Azure Monitor workspace. This property is read-only.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The immutable ID of the Azure Monitor workspace. This property is read-only.",
SerializedName = @"accountId",
PossibleTypes = new [] { typeof(string) })]
@@ -235,6 +256,9 @@ public partial interface IAzureMonitorWorkspaceResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Azure resource Id of the default data collection endpoint for this workspace.",
SerializedName = @"dataCollectionEndpointResourceId",
PossibleTypes = new [] { typeof(string) })]
@@ -243,6 +267,9 @@ public partial interface IAzureMonitorWorkspaceResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Azure resource Id of the default data collection rule for this workspace.",
SerializedName = @"dataCollectionRuleResourceId",
PossibleTypes = new [] { typeof(string) })]
@@ -251,6 +278,9 @@ public partial interface IAzureMonitorWorkspaceResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Resource entity tag (ETag)",
SerializedName = @"etag",
PossibleTypes = new [] { typeof(string) })]
@@ -259,6 +289,9 @@ public partial interface IAzureMonitorWorkspaceResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"An internal identifier for the metrics container. Only to be used by the system",
SerializedName = @"internalId",
PossibleTypes = new [] { typeof(string) })]
@@ -267,6 +300,9 @@ public partial interface IAzureMonitorWorkspaceResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Prometheus query endpoint for the workspace",
SerializedName = @"prometheusQueryEndpoint",
PossibleTypes = new [] { typeof(string) })]
@@ -275,38 +311,49 @@ public partial interface IAzureMonitorWorkspaceResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"List of private endpoint connections",
SerializedName = @"privateEndpointConnections",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] PrivateEndpointConnection { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection) })]
+ System.Collections.Generic.List PrivateEndpointConnection { get; }
///
/// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.",
SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? ProvisioningState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Creating", "Succeeded", "Deleting", "Failed", "Canceled")]
+ string ProvisioningState { get; }
/// Gets or sets allow or disallow public network access to workspace
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Gets or sets allow or disallow public network access to workspace",
SerializedName = @"publicNetworkAccess",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? PublicNetworkAccess { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ string PublicNetworkAccess { get; }
}
/// An Azure Monitor Workspace definition
internal partial interface IAzureMonitorWorkspaceResourceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal
{
/// The immutable ID of the Azure Monitor workspace. This property is read-only.
string AccountId { get; set; }
/// The Data Collection Rule and Endpoint used for ingestion by default.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings DefaultIngestionSetting { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings DefaultIngestionSetting { get; set; }
///
/// The Azure resource Id of the default data collection endpoint for this workspace.
///
@@ -316,21 +363,23 @@ internal partial interface IAzureMonitorWorkspaceResourceInternal :
/// Resource entity tag (ETag)
string Etag { get; set; }
/// Information about metrics for the Azure Monitor workspace
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics Metric { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics Metric { get; set; }
/// An internal identifier for the metrics container. Only to be used by the system
string MetricInternalId { get; set; }
/// The Prometheus query endpoint for the workspace
string MetricPrometheusQueryEndpoint { get; set; }
/// List of private endpoint connections
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[] PrivateEndpointConnection { get; set; }
+ System.Collections.Generic.List PrivateEndpointConnection { get; set; }
/// Resource properties
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspace Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties Property { get; set; }
///
/// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState? ProvisioningState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Creating", "Succeeded", "Deleting", "Failed", "Canceled")]
+ string ProvisioningState { get; set; }
/// Gets or sets allow or disallow public network access to workspace
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess? PublicNetworkAccess { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ string PublicNetworkAccess { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.json.cs
similarity index 92%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.json.cs
index fd6045299981..704537155991 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResource.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResource.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal AzureMonitorWorkspaceResource(Microsoft.Azure.PowerShell.Cmdlets.Monito
{
return;
}
- __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResource(json);
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspace.FromJson(__jsonProperties) : Property;}
- {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;}
+ __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceProperties.FromJson(__jsonProperties) : _property;}
+ {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)_etag;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspaceResource(json) : null;
}
@@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
}
__trackedResource?.ToJson(container, serializationMode);
AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.PowerShell.cs
similarity index 78%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.PowerShell.cs
index 765955fc8072..1856bed40cb5 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureMonitorWorkspaceResourceForUpdate
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,13 +78,13 @@ internal AzureMonitorWorkspaceResourceForUpdate(global::System.Collections.IDict
// actually deserialize
if (content.Contains("Tag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceForUpdateTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceForUpdateTagsTypeConverter.ConvertFrom);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -99,35 +99,35 @@ internal AzureMonitorWorkspaceResourceForUpdate(global::System.Management.Automa
// actually deserialize
if (content.Contains("Tag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceForUpdateTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceForUpdateTagsTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureMonitorWorkspaceResourceForUpdate(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureMonitorWorkspaceResourceForUpdate(content);
}
@@ -140,7 +140,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.TypeConverter.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.TypeConverter.cs
index ebcb1bcfc162..3ea3d1c5bf0a 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.cs
similarity index 74%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.cs
index 436facc26b68..d999c50779f7 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.cs
@@ -3,22 +3,22 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Definition of ARM tracked top level resource properties for update operation
public partial class AzureMonitorWorkspaceResourceForUpdate :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags _tag;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags _tag;
/// Resource tags
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceForUpdateTags()); set => this._tag = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceForUpdateTags()); set => this._tag = value; }
/// Creates an new instance.
public AzureMonitorWorkspaceResourceForUpdate()
@@ -34,10 +34,13 @@ public partial interface IAzureMonitorWorkspaceResourceForUpdate :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Resource tags",
SerializedName = @"tags",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags Tag { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags Tag { get; set; }
}
/// Definition of ARM tracked top level resource properties for update operation
@@ -45,7 +48,7 @@ internal partial interface IAzureMonitorWorkspaceResourceForUpdateInternal
{
/// Resource tags
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags Tag { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags Tag { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.json.cs
similarity index 93%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.json.cs
index 8e542dc5f748..e57debcdb9ea 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdate.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdate.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,18 +65,18 @@ internal AzureMonitorWorkspaceResourceForUpdate(Microsoft.Azure.PowerShell.Cmdle
{
return;
}
- {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceForUpdateTags.FromJson(__jsonTags) : Tag;}
+ {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceForUpdateTags.FromJson(__jsonTags) : _tag;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspaceResourceForUpdate(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.PowerShell.cs
similarity index 87%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.PowerShell.cs
index ab4121a9e820..d0279d8de10f 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureMonitorWorkspaceResourceForUpdateTags
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -82,7 +82,7 @@ internal AzureMonitorWorkspaceResourceForUpdateTags(global::System.Collections.I
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -101,29 +101,29 @@ internal AzureMonitorWorkspaceResourceForUpdateTags(global::System.Management.Au
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureMonitorWorkspaceResourceForUpdateTags(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureMonitorWorkspaceResourceForUpdateTags(content);
}
@@ -136,7 +136,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.TypeConverter.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.TypeConverter.cs
index 55a48e6f0844..51b931e4f8e6 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.cs
similarity index 89%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.cs
index 6174e93cb0a6..83c270da49ef 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Resource tags
public partial class AzureMonitorWorkspaceResourceForUpdateTags :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTagsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTagsInternal
{
///
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.dictionary.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.dictionary.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.dictionary.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.dictionary.cs
index f721ceca39ad..2d80d977d1aa 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.dictionary.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.dictionary.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source)
///
- public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceForUpdateTags source) => source.__additionalProperties;
+ public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceForUpdateTags source) => source.__additionalProperties;
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.json.cs
similarity index 95%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.json.cs
index 2516f67f0903..eb988b1bb083 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceForUpdateTags.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceForUpdateTags.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -71,13 +71,13 @@ internal AzureMonitorWorkspaceResourceForUpdateTags(Microsoft.Azure.PowerShell.C
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceForUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceForUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspaceResourceForUpdateTags(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.PowerShell.cs
similarity index 72%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.PowerShell.cs
index 3db373768126..e7bf0f356f1b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureMonitorWorkspaceResourceListResult
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,17 +78,17 @@ internal AzureMonitorWorkspaceResourceListResult(global::System.Collections.IDic
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -103,39 +103,39 @@ internal AzureMonitorWorkspaceResourceListResult(global::System.Management.Autom
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResourceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResourceTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureMonitorWorkspaceResourceListResult(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureMonitorWorkspaceResourceListResult(content);
}
@@ -148,7 +148,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.TypeConverter.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.TypeConverter.cs
index bf57ea795304..cdeb1e3573a8 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.cs
similarity index 74%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.cs
index 6f4195acd14d..1c8ea4217cc2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// A pageable list of resources
public partial class AzureMonitorWorkspaceResourceListResult :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResultInternal
{
/// Backing field for property.
@@ -21,11 +21,11 @@ public partial class AzureMonitorWorkspaceResourceListResult :
public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource[] _value;
+ private System.Collections.Generic.List _value;
/// A list of resources
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource[] Value { get => this._value; set => this._value = value; }
+ public System.Collections.Generic.List Value { get => this._value; set => this._value = value; }
/// Creates an new instance.
public AzureMonitorWorkspaceResourceListResult()
@@ -41,6 +41,9 @@ public partial interface IAzureMonitorWorkspaceResourceListResult :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The URL to use for getting the next set of results",
SerializedName = @"nextLink",
PossibleTypes = new [] { typeof(string) })]
@@ -49,10 +52,13 @@ public partial interface IAzureMonitorWorkspaceResourceListResult :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = true,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"A list of resources",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource[] Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource) })]
+ System.Collections.Generic.List Value { get; set; }
}
/// A pageable list of resources
@@ -62,7 +68,7 @@ internal partial interface IAzureMonitorWorkspaceResourceListResultInternal
/// The URL to use for getting the next set of results
string NextLink { get; set; }
/// A list of resources
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource[] Value { get; set; }
+ System.Collections.Generic.List Value { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.json.cs
similarity index 89%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.json.cs
index 5488a7769724..1324c9289332 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceListResult.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceListResult.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal AzureMonitorWorkspaceResourceListResult(Microsoft.Azure.PowerShell.Cmdl
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspaceResource.FromJson(__u) )) ))() : null : Value;}
- {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceResource.FromJson(__u) )) ))() : null : _value;}
+ {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspaceResourceListResult(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.PowerShell.cs
similarity index 53%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.PowerShell.cs
index 4f9c7cc60fe7..009e120928e3 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class AzureMonitorWorkspaceResourceProperties
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -78,49 +78,49 @@ internal AzureMonitorWorkspaceResourceProperties(global::System.Collections.IDic
// actually deserialize
if (content.Contains("MetricInternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
}
if (content.Contains("MetricPrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
}
if (content.Contains("Metric"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.MetricsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetricsTypeConverter.ConvertFrom);
}
if (content.Contains("DefaultIngestionSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("AccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointConnection"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom));
}
if (content.Contains("PublicNetworkAccess"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -135,71 +135,71 @@ internal AzureMonitorWorkspaceResourceProperties(global::System.Management.Autom
// actually deserialize
if (content.Contains("MetricInternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId = (string) content.GetValueForProperty("MetricInternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricInternalId, global::System.Convert.ToString);
}
if (content.Contains("MetricPrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint = (string) content.GetValueForProperty("MetricPrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).MetricPrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DefaultIngestionSettingDataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId = (string) content.GetValueForProperty("DefaultIngestionSettingDataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSettingDataCollectionEndpointResourceId, global::System.Convert.ToString);
}
if (content.Contains("Metric"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.MetricsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceMetricsTypeConverter.ConvertFrom);
}
if (content.Contains("DefaultIngestionSetting"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IngestionSettingsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings) content.GetValueForProperty("DefaultIngestionSetting",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).DefaultIngestionSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspaceDefaultIngestionSettingsTypeConverter.ConvertFrom);
}
if (content.Contains("AccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).AccountId, global::System.Convert.ToString);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointConnection"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection = (System.Collections.Generic.List) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionTypeConverter.ConvertFrom));
}
if (content.Contains("PublicNetworkAccess"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PublicNetworkAccess.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess = (string) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)this).PublicNetworkAccess, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new AzureMonitorWorkspaceResourceProperties(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new AzureMonitorWorkspaceResourceProperties(content);
}
@@ -212,7 +212,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.TypeConverter.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.TypeConverter.cs
index 66a3733484b1..e3547df8e4e2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.cs
new file mode 100644
index 000000000000..7eee2aa014e1
--- /dev/null
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.cs
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
+
+ /// Resource properties
+ public partial class AzureMonitorWorkspaceResourceProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourcePropertiesInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IValidates
+ {
+ ///
+ /// Backing field for Inherited model
+ ///
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace __azureMonitorWorkspace = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspace();
+
+ /// The immutable ID of the Azure Monitor workspace. This property is read-only.
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).AccountId; }
+
+ /// The Data Collection Rule and Endpoint used for ingestion by default.
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings DefaultIngestionSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSetting = value ?? null /* model class */; }
+
+ ///
+ /// The Azure resource Id of the default data collection endpoint for this workspace.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public string DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionEndpointResourceId; }
+
+ /// The Azure resource Id of the default data collection rule for this workspace.
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public string DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionRuleResourceId; }
+
+ /// Information about metrics for the Azure Monitor workspace
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics Metric { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).Metric = value ?? null /* model class */; }
+
+ /// An internal identifier for the metrics container. Only to be used by the system
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public string MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricInternalId; }
+
+ /// The Prometheus query endpoint for the workspace
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public string MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricPrometheusQueryEndpoint; }
+
+ /// Internal Acessors for AccountId
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).AccountId = value ?? null; }
+
+ /// Internal Acessors for DefaultIngestionSetting
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceDefaultIngestionSettings Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.DefaultIngestionSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSetting = value ?? null /* model class */; }
+
+ /// Internal Acessors for DefaultIngestionSettingDataCollectionEndpointResourceId
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionEndpointResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionEndpointResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionEndpointResourceId = value ?? null; }
+
+ /// Internal Acessors for DefaultIngestionSettingDataCollectionRuleResourceId
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.DefaultIngestionSettingDataCollectionRuleResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionRuleResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).DefaultIngestionSettingDataCollectionRuleResourceId = value ?? null; }
+
+ /// Internal Acessors for Metric
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceMetrics Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.Metric { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).Metric = value ?? null /* model class */; }
+
+ /// Internal Acessors for MetricInternalId
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.MetricInternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricInternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricInternalId = value ?? null; }
+
+ /// Internal Acessors for MetricPrometheusQueryEndpoint
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.MetricPrometheusQueryEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricPrometheusQueryEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).MetricPrometheusQueryEndpoint = value ?? null; }
+
+ /// Internal Acessors for PrivateEndpointConnection
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PrivateEndpointConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PrivateEndpointConnection = value ?? null /* arrayOf */; }
+
+ /// Internal Acessors for ProvisioningState
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).ProvisioningState = value ?? null; }
+
+ /// Internal Acessors for PublicNetworkAccess
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal.PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PublicNetworkAccess = value ?? null; }
+
+ /// List of private endpoint connections
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public System.Collections.Generic.List PrivateEndpointConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PrivateEndpointConnection; }
+
+ ///
+ /// The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).ProvisioningState; }
+
+ /// Gets or sets allow or disallow public network access to workspace
+ [Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
+ public string PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal)__azureMonitorWorkspace).PublicNetworkAccess; }
+
+ /// Creates an new instance.
+ public AzureMonitorWorkspaceResourceProperties()
+ {
+
+ }
+
+ /// Validates that this object meets the validation criteria.
+ /// an instance that will receive validation
+ /// events.
+ ///
+ /// A that will be complete when validation is completed.
+ ///
+ public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IEventListener eventListener)
+ {
+ await eventListener.AssertNotNull(nameof(__azureMonitorWorkspace), __azureMonitorWorkspace);
+ await eventListener.AssertObjectIsValid(nameof(__azureMonitorWorkspace), __azureMonitorWorkspace);
+ }
+ }
+ /// Resource properties
+ public partial interface IAzureMonitorWorkspaceResourceProperties :
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspace
+ {
+
+ }
+ /// Resource properties
+ internal partial interface IAzureMonitorWorkspaceResourcePropertiesInternal :
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceInternal
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.json.cs
similarity index 94%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.json.cs
index 655bcddf4b25..9b1f6429c8eb 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/AzureMonitorWorkspaceResourceProperties.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/AzureMonitorWorkspaceResourceProperties.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,18 +65,18 @@ internal AzureMonitorWorkspaceResourceProperties(Microsoft.Azure.PowerShell.Cmdl
{
return;
}
- __azureMonitorWorkspace = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.AzureMonitorWorkspace(json);
+ __azureMonitorWorkspace = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AzureMonitorWorkspace(json);
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new AzureMonitorWorkspaceResourceProperties(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
similarity index 78%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
index bb476df2ba3d..5b81c771f445 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,35 +63,33 @@ public partial class ErrorAdditionalInfo
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorAdditionalInfo(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorAdditionalInfo(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -106,17 +104,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Info"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -131,11 +129,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("Info"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AnyTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.AnyTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
@@ -145,7 +143,7 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
index b2a938b12747..4740746f4988 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
similarity index 87%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
index 3ace0b1d954d..621b0631e87c 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// The resource management error additional info.
public partial class ErrorAdditionalInfo :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal
{
/// Backing field for property.
@@ -21,10 +21,10 @@ public partial class ErrorAdditionalInfo :
public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Any()); }
/// Internal Acessors for Info
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Any()); set { {_info = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Any()); set { {_info = value;} } }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } }
/// Backing field for property.
private string _type;
@@ -47,6 +47,9 @@ public partial interface IErrorAdditionalInfo :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The additional info.",
SerializedName = @"info",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAny) })]
@@ -55,6 +58,9 @@ public partial interface IErrorAdditionalInfo :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The additional info type.",
SerializedName = @"type",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
similarity index 94%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
index 1635e6b5d6a5..c863d4aeb294 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,19 +65,19 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorW
{
return;
}
- {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
- {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Any.FromJson(__jsonInfo) : Info;}
+ {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;}
+ {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Any.FromJson(__jsonInfo) : _info;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null;
}
@@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
similarity index 66%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
index 796659808881..83c98bf4df84 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,33 +63,33 @@ public partial class ErrorDetail
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorDetail(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorDetail(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,29 +104,29 @@ internal ErrorDetail(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -141,23 +141,23 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -167,7 +167,7 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
index 5efa70156136..d1151599a369 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.cs
similarity index 67%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.cs
index fe72c4d49c53..dea860a7e7d2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.cs
@@ -3,22 +3,22 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// The error detail.
public partial class ErrorDetail :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] _additionalInfo;
+ private System.Collections.Generic.List _additionalInfo;
/// The error additional info.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; }
+ public System.Collections.Generic.List AdditionalInfo { get => this._additionalInfo; }
/// Backing field for property.
private string _code;
@@ -28,11 +28,11 @@ public partial class ErrorDetail :
public string Code { get => this._code; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] _detail;
+ private System.Collections.Generic.List _detail;
/// The error details.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Detail { get => this._detail; }
+ public System.Collections.Generic.List Detail { get => this._detail; }
/// Backing field for property.
private string _message;
@@ -42,19 +42,19 @@ public partial class ErrorDetail :
public string Message { get => this._message; }
/// Internal Acessors for AdditionalInfo
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } }
/// Backing field for property.
private string _target;
@@ -77,14 +77,20 @@ public partial interface IErrorDetail :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error additional info.",
SerializedName = @"additionalInfo",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo) })]
+ System.Collections.Generic.List AdditionalInfo { get; }
/// The error code.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error code.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
@@ -93,14 +99,20 @@ public partial interface IErrorDetail :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail) })]
+ System.Collections.Generic.List Detail { get; }
/// The error message.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error message.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
@@ -109,6 +121,9 @@ public partial interface IErrorDetail :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error target.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
@@ -120,11 +135,11 @@ internal partial interface IErrorDetailInternal
{
/// The error additional info.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; }
+ System.Collections.Generic.List AdditionalInfo { get; set; }
/// The error code.
string Code { get; set; }
/// The error details.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// The error message.
string Message { get; set; }
/// The error target.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.json.cs
similarity index 88%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.json.cs
index d4f10889b372..715a87213121 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorDetail.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorDetail.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -65,22 +65,22 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace
{
return;
}
- {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;}
- {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;}
- {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;}
- {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetail.FromJson(__u) )) ))() : null : Detail;}
- {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;}
+ {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;}
+ {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;}
+ {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)_target;}
+ {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetail.FromJson(__u) )) ))() : null : _detail;}
+ {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : _additionalInfo;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null;
}
@@ -104,19 +104,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
if (null != this._detail)
{
@@ -128,7 +128,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
container.Add("details",__w);
}
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
if (null != this._additionalInfo)
{
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
similarity index 63%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
index fcb126cf8f57..0d26d38326d2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -66,33 +66,33 @@ public partial class ErrorResponse
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorResponse(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorResponse(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -107,33 +107,33 @@ internal ErrorResponse(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetailTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetailTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -148,27 +148,27 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetailTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetailTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Target"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetailTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetailTypeConverter.ConvertFrom));
}
if (content.Contains("AdditionalInfo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -178,7 +178,7 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
index 9837965a86b1..0f0e9bd5b527 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.cs
similarity index 59%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.cs
index 4b17db19fef5..fb01084a3c6d 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -12,54 +12,54 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api
/// the OData error response format.).
///
public partial class ErrorResponse :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal
{
/// The error additional info.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; }
+ public System.Collections.Generic.List AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).AdditionalInfo; }
/// The error code.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Code; }
/// The error details.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Detail; }
+ public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Detail; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail _error;
/// The error object.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetail()); set => this._error = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetail()); set => this._error = value; }
/// The error message.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Message; }
/// Internal Acessors for AdditionalInfo
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).AdditionalInfo = value ?? null /* arrayOf */; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Code = value ?? null; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Detail = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetail()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetail()); set { {_error = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Message = value ?? null; }
/// Internal Acessors for Target
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Target = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Target = value ?? null; }
/// The error target.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetailInternal)Error).Target; }
+ public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetailInternal)Error).Target; }
/// Creates an new instance.
public ErrorResponse()
@@ -76,14 +76,20 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error additional info.",
SerializedName = @"additionalInfo",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorAdditionalInfo) })]
+ System.Collections.Generic.List AdditionalInfo { get; }
/// The error code.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error code.",
SerializedName = @"code",
PossibleTypes = new [] { typeof(string) })]
@@ -92,14 +98,20 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail) })]
+ System.Collections.Generic.List Detail { get; }
/// The error message.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error message.",
SerializedName = @"message",
PossibleTypes = new [] { typeof(string) })]
@@ -108,6 +120,9 @@ public partial interface IErrorResponse :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The error target.",
SerializedName = @"target",
PossibleTypes = new [] { typeof(string) })]
@@ -120,13 +135,13 @@ internal partial interface IErrorResponseInternal
{
/// The error additional info.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; }
+ System.Collections.Generic.List AdditionalInfo { get; set; }
/// The error code.
string Code { get; set; }
/// The error details.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail[] Detail { get; set; }
+ System.Collections.Generic.List Detail { get; set; }
/// The error object.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorDetail Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorDetail Error { get; set; }
/// The error message.
string Message { get; set; }
/// The error target.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.json.cs
similarity index 95%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.json.cs
index 2b4f284c29eb..08f3c87d8c90 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ErrorResponse.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ErrorResponse.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -68,18 +68,18 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspa
{
return;
}
- {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ErrorDetail.FromJson(__jsonError) : Error;}
+ {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ErrorDetail.FromJson(__jsonError) : _error;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.PowerShell.cs
similarity index 77%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.PowerShell.cs
index 72299836836b..3dbbaee1387a 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,29 +63,27 @@ public partial class IngestionSettings
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new IngestionSettings(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new IngestionSettings(content);
}
@@ -95,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -113,17 +111,17 @@ internal IngestionSettings(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("DataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -138,11 +136,11 @@ internal IngestionSettings(global::System.Management.Automation.PSObject content
// actually deserialize
if (content.Contains("DataCollectionRuleResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId = (string) content.GetValueForProperty("DataCollectionRuleResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionRuleResourceId, global::System.Convert.ToString);
}
if (content.Contains("DataCollectionEndpointResourceId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId = (string) content.GetValueForProperty("DataCollectionEndpointResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal)this).DataCollectionEndpointResourceId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.TypeConverter.cs
index a6a4027044e7..fa5b03ec01f3 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.cs
similarity index 87%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.cs
index 4e06db6785ad..6ab5378a75be 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Settings for data ingestion
public partial class IngestionSettings :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal
{
/// Backing field for property.
@@ -30,10 +30,10 @@ public partial class IngestionSettings :
public string DataCollectionRuleResourceId { get => this._dataCollectionRuleResourceId; }
/// Internal Acessors for DataCollectionEndpointResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal.DataCollectionEndpointResourceId { get => this._dataCollectionEndpointResourceId; set { {_dataCollectionEndpointResourceId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal.DataCollectionEndpointResourceId { get => this._dataCollectionEndpointResourceId; set { {_dataCollectionEndpointResourceId = value;} } }
/// Internal Acessors for DataCollectionRuleResourceId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettingsInternal.DataCollectionRuleResourceId { get => this._dataCollectionRuleResourceId; set { {_dataCollectionRuleResourceId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettingsInternal.DataCollectionRuleResourceId { get => this._dataCollectionRuleResourceId; set { {_dataCollectionRuleResourceId = value;} } }
/// Creates an new instance.
public IngestionSettings()
@@ -51,6 +51,9 @@ public partial interface IIngestionSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Azure resource Id of the default data collection endpoint for this workspace.",
SerializedName = @"dataCollectionEndpointResourceId",
PossibleTypes = new [] { typeof(string) })]
@@ -59,6 +62,9 @@ public partial interface IIngestionSettings :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Azure resource Id of the default data collection rule for this workspace.",
SerializedName = @"dataCollectionRuleResourceId",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.json.cs
similarity index 94%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.json.cs
index 3412d9259b1c..ddc8e9b8db5d 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/IngestionSettings.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/IngestionSettings.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class IngestionSettings
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IIngestionSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IIngestionSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new IngestionSettings(json) : null;
}
@@ -77,8 +77,8 @@ internal IngestionSettings(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWor
{
return;
}
- {_dataCollectionRuleResourceId = If( json?.PropertyT("dataCollectionRuleResourceId"), out var __jsonDataCollectionRuleResourceId) ? (string)__jsonDataCollectionRuleResourceId : (string)DataCollectionRuleResourceId;}
- {_dataCollectionEndpointResourceId = If( json?.PropertyT("dataCollectionEndpointResourceId"), out var __jsonDataCollectionEndpointResourceId) ? (string)__jsonDataCollectionEndpointResourceId : (string)DataCollectionEndpointResourceId;}
+ {_dataCollectionRuleResourceId = If( json?.PropertyT("dataCollectionRuleResourceId"), out var __jsonDataCollectionRuleResourceId) ? (string)__jsonDataCollectionRuleResourceId : (string)_dataCollectionRuleResourceId;}
+ {_dataCollectionEndpointResourceId = If( json?.PropertyT("dataCollectionEndpointResourceId"), out var __jsonDataCollectionEndpointResourceId) ? (string)__jsonDataCollectionEndpointResourceId : (string)_dataCollectionEndpointResourceId;}
AfterFromJson(json);
}
@@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._dataCollectionRuleResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._dataCollectionRuleResourceId.ToString()) : null, "dataCollectionRuleResourceId" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._dataCollectionEndpointResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._dataCollectionEndpointResourceId.ToString()) : null, "dataCollectionEndpointResourceId" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.PowerShell.cs
similarity index 79%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.PowerShell.cs
index 7165f8c028d6..f01c785e3e46 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class Metrics
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Metrics(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Metrics(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -111,17 +111,17 @@ internal Metrics(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("PrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("InternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -136,11 +136,11 @@ internal Metrics(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("PrometheusQueryEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint = (string) content.GetValueForProperty("PrometheusQueryEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).PrometheusQueryEndpoint, global::System.Convert.ToString);
}
if (content.Contains("InternalId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal)this).InternalId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.TypeConverter.cs
index 94d4b69ae7d9..f80ae06a0b6b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.cs
similarity index 88%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.cs
index a7774b01859d..134b55e381be 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Information about metrics for the workspace
public partial class Metrics :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal
{
/// Backing field for property.
@@ -21,10 +21,10 @@ public partial class Metrics :
public string InternalId { get => this._internalId; }
/// Internal Acessors for InternalId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal.InternalId { get => this._internalId; set { {_internalId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal.InternalId { get => this._internalId; set { {_internalId = value;} } }
/// Internal Acessors for PrometheusQueryEndpoint
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetricsInternal.PrometheusQueryEndpoint { get => this._prometheusQueryEndpoint; set { {_prometheusQueryEndpoint = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetricsInternal.PrometheusQueryEndpoint { get => this._prometheusQueryEndpoint; set { {_prometheusQueryEndpoint = value;} } }
/// Backing field for property.
private string _prometheusQueryEndpoint;
@@ -47,6 +47,9 @@ public partial interface IMetrics :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"An internal identifier for the metrics container. Only to be used by the system",
SerializedName = @"internalId",
PossibleTypes = new [] { typeof(string) })]
@@ -55,6 +58,9 @@ public partial interface IMetrics :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The Prometheus query endpoint for the workspace",
SerializedName = @"prometheusQueryEndpoint",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.json.cs
similarity index 95%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.json.cs
index 8a381efe5227..4f044351ec1f 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api20230403/Metrics.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Metrics.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class Metrics
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IMetrics FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IMetrics FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new Metrics(json) : null;
}
@@ -77,8 +77,8 @@ internal Metrics(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Run
{
return;
}
- {_prometheusQueryEndpoint = If( json?.PropertyT("prometheusQueryEndpoint"), out var __jsonPrometheusQueryEndpoint) ? (string)__jsonPrometheusQueryEndpoint : (string)PrometheusQueryEndpoint;}
- {_internalId = If( json?.PropertyT("internalId"), out var __jsonInternalId) ? (string)__jsonInternalId : (string)InternalId;}
+ {_prometheusQueryEndpoint = If( json?.PropertyT("prometheusQueryEndpoint"), out var __jsonPrometheusQueryEndpoint) ? (string)__jsonPrometheusQueryEndpoint : (string)_prometheusQueryEndpoint;}
+ {_internalId = If( json?.PropertyT("internalId"), out var __jsonInternalId) ? (string)__jsonInternalId : (string)_internalId;}
AfterFromJson(json);
}
@@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._prometheusQueryEndpoint)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._prometheusQueryEndpoint.ToString()) : null, "prometheusQueryEndpoint" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._internalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._internalId.ToString()) : null, "internalId" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.cs
index 885e0fc87b1c..05d66d3eac5f 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.cs
@@ -53,6 +53,9 @@ public partial interface IMonitorWorkspaceIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The name of the Azure Monitor workspace. The name is case insensitive",
SerializedName = @"azureMonitorWorkspaceName",
PossibleTypes = new [] { typeof(string) })]
@@ -61,6 +64,9 @@ public partial interface IMonitorWorkspaceIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Resource identity path",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
@@ -69,6 +75,9 @@ public partial interface IMonitorWorkspaceIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The name of the resource group. The name is case insensitive.",
SerializedName = @"resourceGroupName",
PossibleTypes = new [] { typeof(string) })]
@@ -77,6 +86,9 @@ public partial interface IMonitorWorkspaceIdentity :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The ID of the target subscription.",
SerializedName = @"subscriptionId",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.json.cs
index 2e01d8d53e11..682d2fe19c4e 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/MonitorWorkspaceIdentity.json.cs
@@ -76,10 +76,10 @@ internal MonitorWorkspaceIdentity(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Mon
{
return;
}
- {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;}
- {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;}
- {_azureMonitorWorkspaceName = If( json?.PropertyT("azureMonitorWorkspaceName"), out var __jsonAzureMonitorWorkspaceName) ? (string)__jsonAzureMonitorWorkspaceName : (string)AzureMonitorWorkspaceName;}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
+ {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;}
+ {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;}
+ {_azureMonitorWorkspaceName = If( json?.PropertyT("azureMonitorWorkspaceName"), out var __jsonAzureMonitorWorkspaceName) ? (string)__jsonAzureMonitorWorkspaceName : (string)_azureMonitorWorkspaceName;}
+ {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
AfterFromJson(json);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.PowerShell.cs
similarity index 61%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.PowerShell.cs
index c2de96e6967b..cb4dcdc9ea8b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -65,27 +65,27 @@ public partial class Operation
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Operation(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Operation(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -113,45 +113,45 @@ internal Operation(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Display"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationDisplayTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationDisplayTypeConverter.ConvertFrom);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("IsDataAction"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("Origin"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
}
if (content.Contains("ActionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
}
if (content.Contains("DisplayProvider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
}
if (content.Contains("DisplayResource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
}
if (content.Contains("DisplayOperation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
}
if (content.Contains("DisplayDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -166,39 +166,39 @@ internal Operation(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Display"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationDisplayTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationDisplayTypeConverter.ConvertFrom);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("IsDataAction"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("Origin"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).Origin, global::System.Convert.ToString);
}
if (content.Contains("ActionType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString);
}
if (content.Contains("DisplayProvider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString);
}
if (content.Contains("DisplayResource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString);
}
if (content.Contains("DisplayOperation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString);
}
if (content.Contains("DisplayDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.TypeConverter.cs
index 9cf89acd27a1..700a2d7277c2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.cs
similarity index 74%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.cs
index 2b9035e515e3..f9ac54ce31ab 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -11,50 +11,50 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api
/// Details of a REST API operation, returned from the Resource Provider Operations API
///
public partial class Operation :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType? _actionType;
+ private string _actionType;
///
/// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType? ActionType { get => this._actionType; }
+ public string ActionType { get => this._actionType; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay _display;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay _display;
/// Localized display information for this particular operation.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationDisplay()); set => this._display = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationDisplay()); set => this._display = value; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Description; }
+ public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Description; }
///
/// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine",
/// "Restart Virtual Machine".
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Operation; }
+ public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Operation; }
///
/// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Provider; }
+ public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Provider; }
///
/// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Resource; }
+ public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Resource; }
/// Backing field for property.
private bool? _isDataAction;
@@ -67,31 +67,31 @@ public partial class Operation :
public bool? IsDataAction { get => this._isDataAction; }
/// Internal Acessors for ActionType
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } }
/// Internal Acessors for Display
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationDisplay()); set { {_display = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationDisplay()); set { {_display = value;} } }
/// Internal Acessors for DisplayDescription
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Description = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Description = value ?? null; }
/// Internal Acessors for DisplayOperation
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Operation = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Operation = value ?? null; }
/// Internal Acessors for DisplayProvider
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Provider = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Provider = value ?? null; }
/// Internal Acessors for DisplayResource
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)Display).Resource = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)Display).Resource = value ?? null; }
/// Internal Acessors for IsDataAction
- bool? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
+ bool? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.Name { get => this._name; set { {_name = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } }
/// Internal Acessors for Origin
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } }
/// Backing field for property.
private string _name;
@@ -104,14 +104,14 @@ public partial class Operation :
public string Name { get => this._name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin? _origin;
+ private string _origin;
///
/// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is
/// "user,system"
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin? Origin { get => this._origin; }
+ public string Origin { get => this._origin; }
/// Creates an new instance.
public Operation()
@@ -129,16 +129,23 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Enum. Indicates the action type. ""Internal"" refers to actions that are for internal only APIs.",
SerializedName = @"actionType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType? ActionType { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Internal")]
+ string ActionType { get; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -150,6 +157,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".",
SerializedName = @"operation",
PossibleTypes = new [] { typeof(string) })]
@@ -160,6 +170,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".",
SerializedName = @"provider",
PossibleTypes = new [] { typeof(string) })]
@@ -170,6 +183,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".",
SerializedName = @"resource",
PossibleTypes = new [] { typeof(string) })]
@@ -181,6 +197,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Whether the operation applies to data-plane. This is ""true"" for data-plane operations and ""false"" for ARM/control-plane operations.",
SerializedName = @"isDataAction",
PossibleTypes = new [] { typeof(bool) })]
@@ -192,6 +211,9 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The name of the operation, as per Resource-Based Access Control (RBAC). Examples: ""Microsoft.Compute/virtualMachines/write"", ""Microsoft.Compute/virtualMachines/capture/action""",
SerializedName = @"name",
PossibleTypes = new [] { typeof(string) })]
@@ -203,10 +225,14 @@ public partial interface IOperation :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is ""user,system""",
SerializedName = @"origin",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin? Origin { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("user", "system", "user,system")]
+ string Origin { get; }
}
/// Details of a REST API operation, returned from the Resource Provider Operations API
@@ -216,9 +242,10 @@ internal partial interface IOperationInternal
///
/// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.ActionType? ActionType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Internal")]
+ string ActionType { get; set; }
/// Localized display information for this particular operation.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay Display { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay Display { get; set; }
///
/// The short, localized friendly description of the operation; suitable for tool tips and detailed views.
///
@@ -250,7 +277,8 @@ internal partial interface IOperationInternal
/// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is
/// "user,system"
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.Origin? Origin { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("user", "system", "user,system")]
+ string Origin { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.json.cs
similarity index 94%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.json.cs
index f9a8bca95c76..fdf5649079a0 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/Operation.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Operation.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class Operation
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new Operation(json) : null;
}
@@ -79,11 +79,11 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.R
{
return;
}
- {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationDisplay.FromJson(__jsonDisplay) : Display;}
- {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;}
- {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;}
- {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;}
- {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;}
+ {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationDisplay.FromJson(__jsonDisplay) : _display;}
+ {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;}
+ {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : _isDataAction;}
+ {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)_origin;}
+ {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)_actionType;}
AfterFromJson(json);
}
@@ -107,19 +107,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
return container;
}
AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs
similarity index 73%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs
index 2b1b2a93dce7..2f41154ef521 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,29 +63,27 @@ public partial class OperationDisplay
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OperationDisplay(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OperationDisplay(content);
}
@@ -95,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -113,25 +111,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -146,19 +144,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Provider"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString);
}
if (content.Contains("Resource"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString);
}
if (content.Contains("Operation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.TypeConverter.cs
index 15ee1f98eca5..1e774ad93041 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.cs
similarity index 89%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.cs
index bad0c984361b..e208a861d07b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Localized display information for this particular operation.
public partial class OperationDisplay :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal
{
/// Backing field for property.
@@ -23,16 +23,16 @@ public partial class OperationDisplay :
public string Description { get => this._description; }
/// Internal Acessors for Description
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } }
/// Internal Acessors for Operation
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } }
/// Internal Acessors for Provider
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } }
/// Internal Acessors for Resource
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } }
/// Backing field for property.
private string _operation;
@@ -78,6 +78,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -89,6 +92,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".",
SerializedName = @"operation",
PossibleTypes = new [] { typeof(string) })]
@@ -99,6 +105,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".",
SerializedName = @"provider",
PossibleTypes = new [] { typeof(string) })]
@@ -109,6 +118,9 @@ public partial interface IOperationDisplay :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".",
SerializedName = @"resource",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.json.cs
similarity index 95%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.json.cs
index c8fd81c1904c..6853b9d3ba99 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationDisplay.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationDisplay.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class OperationDisplay
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null;
}
@@ -77,10 +77,10 @@ internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWork
{
return;
}
- {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider;}
- {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource;}
- {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;}
- {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;}
+ {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)_provider;}
+ {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)_resource;}
+ {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)_operation;}
+ {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;}
AfterFromJson(json);
}
@@ -103,19 +103,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.PowerShell.cs
similarity index 76%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.PowerShell.cs
index 85dd86bdc459..8b0210867717 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -66,29 +66,27 @@ public partial class OperationListResult
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OperationListResult(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OperationListResult(content);
}
@@ -98,10 +96,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -116,17 +114,17 @@ internal OperationListResult(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -141,11 +139,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.OperationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.OperationTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs
index 91d1b7e1b623..e05fe976a0e5 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.cs
similarity index 74%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.cs
index 26ad0c5219e9..c15e925addf1 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -12,15 +12,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api
/// results.
///
public partial class OperationListResult :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal
{
/// Internal Acessors for NextLink
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } }
/// Internal Acessors for Value
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } }
/// Backing field for property.
private string _nextLink;
@@ -30,11 +30,11 @@ public partial class OperationListResult :
public string NextLink { get => this._nextLink; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation[] _value;
+ private System.Collections.Generic.List _value;
/// List of operations supported by the resource provider
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation[] Value { get => this._value; }
+ public System.Collections.Generic.List Value { get => this._value; }
/// Creates an new instance.
public OperationListResult()
@@ -51,6 +51,9 @@ public partial interface IOperationListResult :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"URL to get the next set of operation list results (if there are any).",
SerializedName = @"nextLink",
PossibleTypes = new [] { typeof(string) })]
@@ -59,10 +62,13 @@ public partial interface IOperationListResult :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"List of operations supported by the resource provider",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation[] Value { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation) })]
+ System.Collections.Generic.List Value { get; }
}
/// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
@@ -73,7 +79,7 @@ internal partial interface IOperationListResultInternal
/// URL to get the next set of operation list results (if there are any).
string NextLink { get; set; }
/// List of operations supported by the resource provider
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation[] Value { get; set; }
+ System.Collections.Generic.List Value { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.json.cs
similarity index 91%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.json.cs
index bd4a04e54d07..3d7a64f2e050 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/OperationListResult.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/OperationListResult.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -57,13 +57,13 @@ public partial class OperationListResult
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new OperationListResult(json) : null;
}
@@ -80,8 +80,8 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorW
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.Operation.FromJson(__u) )) ))() : null : Value;}
- {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Operation.FromJson(__u) )) ))() : null : _value;}
+ {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;}
AfterFromJson(json);
}
@@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
if (null != this._value)
{
@@ -116,7 +116,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
container.Add("value",__w);
}
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.PowerShell.cs
similarity index 84%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.PowerShell.cs
index cdc0625d81dd..212ea164cac7 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class PrivateEndpoint
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new PrivateEndpoint(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new PrivateEndpoint(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -111,13 +111,13 @@ internal PrivateEndpoint(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal)this).Id, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -132,7 +132,7 @@ internal PrivateEndpoint(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal)this).Id, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.TypeConverter.cs
index f409700823ec..5af0c1ebb5ef 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.cs
similarity index 90%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.cs
index 8aceaf43bceb..fc44077074b6 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// The private endpoint resource.
public partial class PrivateEndpoint :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal
{
/// Backing field for property.
@@ -21,7 +21,7 @@ public partial class PrivateEndpoint :
public string Id { get => this._id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal.Id { get => this._id; set { {_id = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal.Id { get => this._id; set { {_id = value;} } }
/// Creates an new instance.
public PrivateEndpoint()
@@ -37,6 +37,9 @@ public partial interface IPrivateEndpoint :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The ARM identifier for private endpoint.",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.json.cs
similarity index 95%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.json.cs
index 623aec6880fc..e89a1182e229 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpoint.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpoint.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class PrivateEndpoint
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new PrivateEndpoint(json) : null;
}
@@ -77,7 +77,7 @@ internal PrivateEndpoint(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorks
{
return;
}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
+ {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
AfterFromJson(json);
}
@@ -100,7 +100,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.PowerShell.cs
new file mode 100644
index 000000000000..768cc7138233
--- /dev/null
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.PowerShell.cs
@@ -0,0 +1,310 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
+
+ /// The private endpoint connection resource.
+ [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionTypeConverter))]
+ public partial class PrivateEndpointConnection
+ {
+
+ ///
+ /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the
+ /// object before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+
+ partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);
+
+ ///
+ /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object
+ /// before it is returned. Implement this method in a partial class to enable this behavior
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+
+ partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);
+
+ ///
+ /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);
+
+ ///
+ /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization
+ /// of the object before it is deserialized.
+ /// If you wish to disable the default deserialization entirely, return true in the output
+ /// parameter.
+ /// Implement this method in a partial class to enable this behavior.
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ /// Determines if the rest of the serialization should be processed, or if the method should return
+ /// instantly.
+
+ partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);
+
+ ///
+ /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior
+ ///
+ /// /// instance serialized to a string, normally it is a Json
+ /// /// set returnNow to true if you provide a customized OverrideToString function
+
+ partial void OverrideToString(ref string stringResult, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new PrivateEndpointConnection(content);
+ }
+
+ ///
+ /// Deserializes a into an instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ ///
+ /// an instance of .
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new PrivateEndpointConnection(content);
+ }
+
+ ///
+ /// Creates a new instance of , deserializing the content from a json string.
+ ///
+ /// a string containing a JSON serialized instance of this model.
+ /// an instance of the model class.
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal PrivateEndpointConnection(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Property"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateEndpoint"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("GroupId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString));
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateEndpointId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionStateDescription"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionStateStatus"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal PrivateEndpointConnection(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Property"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionPropertiesTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SystemDataCreatedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataCreatedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemDataCreatedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedBy"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedByType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
+ }
+ if (content.Contains("SystemDataLastModifiedAt"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ }
+ if (content.Contains("SystemData"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
+ }
+ if (content.Contains("Name"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
+ }
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateEndpoint"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("GroupId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString));
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).ProvisioningState, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateEndpointId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateEndpointId, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionStateDescription"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
+ }
+ if (content.Contains("PrivateLinkServiceConnectionStateStatus"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString);
+ }
+ AfterDeserializePSObject(content);
+ }
+
+ /// Serializes this instance to a json string.
+
+ /// a containing this model serialized to JSON text.
+ public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeAll)?.ToString();
+
+ public override string ToString()
+ {
+ var returnNow = false;
+ var result = global::System.String.Empty;
+ OverrideToString(ref result, ref returnNow);
+ if (returnNow)
+ {
+ return result;
+ }
+ return ToJsonString();
+ }
+ }
+ /// The private endpoint connection resource.
+ [System.ComponentModel.TypeConverter(typeof(PrivateEndpointConnectionTypeConverter))]
+ public partial interface IPrivateEndpointConnection
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.TypeConverter.cs
index 88be939ed65e..f141555f1b66 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.cs
similarity index 52%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.cs
index 5ad022f02dde..d9d98e82afe6 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.cs
@@ -3,132 +3,150 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// The private endpoint connection resource.
public partial class PrivateEndpointConnection :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.Resource();
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Resource();
/// The group ids for the private endpoint resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string[] GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; }
+ public System.Collections.Generic.List GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; }
///
/// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Id; }
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Id; }
/// Internal Acessors for GroupId
- string[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId = value; }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal.GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).GroupId = value ?? null /* arrayOf */; }
/// Internal Acessors for PrivateEndpoint
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal.PrivateEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpoint = value ?? null /* model class */; }
/// Internal Acessors for PrivateEndpointId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId = value ?? null; }
/// Internal Acessors for PrivateLinkServiceConnectionState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal.PrivateLinkServiceConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionState = value ?? null /* model class */; }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionProperties()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState = value ?? null; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Name; }
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Name; }
/// The ARM identifier for private endpoint.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; }
+ public string PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateEndpointId; }
///
/// A message indicating if changes on the service provider require any updates on the consumer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired = value ?? null; }
+ public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateActionsRequired = value ?? null; }
/// The reason for approval/rejection of the connection.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription = value ?? null; }
+ public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateDescription = value ?? null; }
///
/// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus)""); }
+ public string PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).PrivateLinkServiceConnectionStateStatus = value ?? null; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties _property;
/// Resource properties.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionProperties()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionProperties()); set => this._property = value; }
/// The provisioning state of the private endpoint connection resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; }
+ public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)Property).ProvisioningState; }
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)__resource).Type; }
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)__resource).Type; }
/// Creates an new instance.
public PrivateEndpointConnection()
@@ -151,20 +169,26 @@ public PrivateEndpointConnection()
/// The private endpoint connection resource.
public partial interface IPrivateEndpointConnection :
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource
{
/// The group ids for the private endpoint resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The group ids for the private endpoint resource.",
SerializedName = @"groupIds",
PossibleTypes = new [] { typeof(string) })]
- string[] GroupId { get; }
+ System.Collections.Generic.List GroupId { get; }
/// The ARM identifier for private endpoint.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The ARM identifier for private endpoint.",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
@@ -175,6 +199,9 @@ public partial interface IPrivateEndpointConnection :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"A message indicating if changes on the service provider require any updates on the consumer.",
SerializedName = @"actionsRequired",
PossibleTypes = new [] { typeof(string) })]
@@ -183,6 +210,9 @@ public partial interface IPrivateEndpointConnection :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The reason for approval/rejection of the connection.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -193,34 +223,42 @@ public partial interface IPrivateEndpointConnection :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.",
SerializedName = @"status",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")]
+ string PrivateLinkServiceConnectionStateStatus { get; set; }
/// The provisioning state of the private endpoint connection resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The provisioning state of the private endpoint connection resource.",
SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? ProvisioningState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Succeeded", "Creating", "Deleting", "Failed")]
+ string ProvisioningState { get; }
}
/// The private endpoint connection resource.
internal partial interface IPrivateEndpointConnectionInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal
{
/// The group ids for the private endpoint resource.
- string[] GroupId { get; set; }
+ System.Collections.Generic.List GroupId { get; set; }
/// The private endpoint resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint PrivateEndpoint { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint PrivateEndpoint { get; set; }
/// The ARM identifier for private endpoint.
string PrivateEndpointId { get; set; }
///
/// A collection of information about the state of the connection between service consumer and provider.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
///
/// A message indicating if changes on the service provider require any updates on the consumer.
///
@@ -230,11 +268,13 @@ internal partial interface IPrivateEndpointConnectionInternal :
///
/// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")]
+ string PrivateLinkServiceConnectionStateStatus { get; set; }
/// Resource properties.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties Property { get; set; }
/// The provisioning state of the private endpoint connection resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? ProvisioningState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Succeeded", "Creating", "Deleting", "Failed")]
+ string ProvisioningState { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.json.cs
similarity index 93%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.json.cs
index 20124e558211..f4d960ab0e0d 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnection.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnection.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class PrivateEndpointConnection
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new PrivateEndpointConnection(json) : null;
}
@@ -77,8 +77,8 @@ internal PrivateEndpointConnection(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Mo
{
return;
}
- __resource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.Resource(json);
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointConnectionProperties.FromJson(__jsonProperties) : Property;}
+ __resource = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Resource(json);
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointConnectionProperties.FromJson(__jsonProperties) : _property;}
AfterFromJson(json);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.PowerShell.cs
similarity index 55%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.PowerShell.cs
index e3f16afa85bc..9bd8af26d41e 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class PrivateEndpointConnectionProperties
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new PrivateEndpointConnectionProperties(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new PrivateEndpointConnectionProperties(content);
}
@@ -97,10 +97,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -115,41 +115,41 @@ internal PrivateEndpointConnectionProperties(global::System.Collections.IDiction
// actually deserialize
if (content.Contains("PrivateEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointTypeConverter.ConvertFrom);
}
if (content.Contains("PrivateLinkServiceConnectionState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
}
if (content.Contains("GroupId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).GroupId = (string[]) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).GroupId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString));
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId, global::System.Convert.ToString);
}
if (content.Contains("PrivateLinkServiceConnectionStateDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
}
if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
}
if (content.Contains("PrivateLinkServiceConnectionStateStatus"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus?) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -164,35 +164,35 @@ internal PrivateEndpointConnectionProperties(global::System.Management.Automatio
// actually deserialize
if (content.Contains("PrivateEndpoint"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpointTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint) content.GetValueForProperty("PrivateEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpointTypeConverter.ConvertFrom);
}
if (content.Contains("PrivateLinkServiceConnectionState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState) content.GetValueForProperty("PrivateLinkServiceConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionStateTypeConverter.ConvertFrom);
}
if (content.Contains("GroupId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).GroupId = (string[]) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).GroupId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).GroupId = (System.Collections.Generic.List) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).GroupId, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString));
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateEndpointId, global::System.Convert.ToString);
}
if (content.Contains("PrivateLinkServiceConnectionStateDescription"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateDescription, global::System.Convert.ToString);
}
if (content.Contains("PrivateLinkServiceConnectionStateActionsRequired"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateActionsRequired, global::System.Convert.ToString);
}
if (content.Contains("PrivateLinkServiceConnectionStateStatus"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus?) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus = (string) content.GetValueForProperty("PrivateLinkServiceConnectionStateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal)this).PrivateLinkServiceConnectionStateStatus, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.TypeConverter.cs
index 15a627daf147..4ac2f5c52df7 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs
similarity index 61%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs
index 6b2293d53423..47c326751b55 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.cs
@@ -3,80 +3,80 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Properties of the private endpoint connection.
public partial class PrivateEndpointConnectionProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal
{
/// Backing field for property.
- private string[] _groupId;
+ private System.Collections.Generic.List _groupId;
/// The group ids for the private endpoint resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public string[] GroupId { get => this._groupId; }
+ public System.Collections.Generic.List GroupId { get => this._groupId; }
/// Internal Acessors for GroupId
- string[] Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal.GroupId { get => this._groupId; set { {_groupId = value;} } }
+ System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal.GroupId { get => this._groupId; set { {_groupId = value;} } }
/// Internal Acessors for PrivateEndpoint
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpoint { get => (this._privateEndpoint = this._privateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpoint()); set { {_privateEndpoint = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpoint { get => (this._privateEndpoint = this._privateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpoint()); set { {_privateEndpoint = value;} } }
/// Internal Acessors for PrivateEndpointId
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal)PrivateEndpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal)PrivateEndpoint).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal)PrivateEndpoint).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal)PrivateEndpoint).Id = value ?? null; }
/// Internal Acessors for PrivateLinkServiceConnectionState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal.PrivateLinkServiceConnectionState { get => (this._privateLinkServiceConnectionState = this._privateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionState()); set { {_privateLinkServiceConnectionState = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal.PrivateLinkServiceConnectionState { get => (this._privateLinkServiceConnectionState = this._privateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionState()); set { {_privateLinkServiceConnectionState = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint _privateEndpoint;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint _privateEndpoint;
/// The private endpoint resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint PrivateEndpoint { get => (this._privateEndpoint = this._privateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpoint()); set => this._privateEndpoint = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint PrivateEndpoint { get => (this._privateEndpoint = this._privateEndpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpoint()); set => this._privateEndpoint = value; }
/// The ARM identifier for private endpoint.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointInternal)PrivateEndpoint).Id; }
+ public string PrivateEndpointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointInternal)PrivateEndpoint).Id; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState _privateLinkServiceConnectionState;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState _privateLinkServiceConnectionState;
///
/// A collection of information about the state of the connection between service consumer and provider.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get => (this._privateLinkServiceConnectionState = this._privateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionState()); set => this._privateLinkServiceConnectionState = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get => (this._privateLinkServiceConnectionState = this._privateLinkServiceConnectionState ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionState()); set => this._privateLinkServiceConnectionState = value; }
///
/// A message indicating if changes on the service provider require any updates on the consumer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired = value ?? null; }
+ public string PrivateLinkServiceConnectionStateActionsRequired { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).ActionsRequired = value ?? null; }
/// The reason for approval/rejection of the connection.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description = value ?? null; }
+ public string PrivateLinkServiceConnectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Description = value ?? null; }
///
/// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus)""); }
+ public string PrivateLinkServiceConnectionStateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)PrivateLinkServiceConnectionState).Status = value ?? null; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? _provisioningState;
+ private string _provisioningState;
/// The provisioning state of the private endpoint connection resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? ProvisioningState { get => this._provisioningState; }
+ public string ProvisioningState { get => this._provisioningState; }
/// Creates an new instance.
public PrivateEndpointConnectionProperties()
@@ -92,14 +92,20 @@ public partial interface IPrivateEndpointConnectionProperties :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The group ids for the private endpoint resource.",
SerializedName = @"groupIds",
PossibleTypes = new [] { typeof(string) })]
- string[] GroupId { get; }
+ System.Collections.Generic.List GroupId { get; }
/// The ARM identifier for private endpoint.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The ARM identifier for private endpoint.",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
@@ -110,6 +116,9 @@ public partial interface IPrivateEndpointConnectionProperties :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"A message indicating if changes on the service provider require any updates on the consumer.",
SerializedName = @"actionsRequired",
PossibleTypes = new [] { typeof(string) })]
@@ -118,6 +127,9 @@ public partial interface IPrivateEndpointConnectionProperties :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The reason for approval/rejection of the connection.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -128,18 +140,26 @@ public partial interface IPrivateEndpointConnectionProperties :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.",
SerializedName = @"status",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")]
+ string PrivateLinkServiceConnectionStateStatus { get; set; }
/// The provisioning state of the private endpoint connection resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The provisioning state of the private endpoint connection resource.",
SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? ProvisioningState { get; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Succeeded", "Creating", "Deleting", "Failed")]
+ string ProvisioningState { get; }
}
/// Properties of the private endpoint connection.
@@ -147,15 +167,15 @@ internal partial interface IPrivateEndpointConnectionPropertiesInternal
{
/// The group ids for the private endpoint resource.
- string[] GroupId { get; set; }
+ System.Collections.Generic.List GroupId { get; set; }
/// The private endpoint resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpoint PrivateEndpoint { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpoint PrivateEndpoint { get; set; }
/// The ARM identifier for private endpoint.
string PrivateEndpointId { get; set; }
///
/// A collection of information about the state of the connection between service consumer and provider.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
///
/// A message indicating if changes on the service provider require any updates on the consumer.
///
@@ -165,9 +185,11 @@ internal partial interface IPrivateEndpointConnectionPropertiesInternal
///
/// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? PrivateLinkServiceConnectionStateStatus { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")]
+ string PrivateLinkServiceConnectionStateStatus { get; set; }
/// The provisioning state of the private endpoint connection resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointConnectionProvisioningState? ProvisioningState { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Succeeded", "Creating", "Deleting", "Failed")]
+ string ProvisioningState { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.json.cs
similarity index 90%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.json.cs
index b615f3c605fa..672365ce4f84 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateEndpointConnectionProperties.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class PrivateEndpointConnectionProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateEndpointConnectionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateEndpointConnectionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new PrivateEndpointConnectionProperties(json) : null;
}
@@ -77,10 +77,10 @@ internal PrivateEndpointConnectionProperties(Microsoft.Azure.PowerShell.Cmdlets.
{
return;
}
- {_privateEndpoint = If( json?.PropertyT("privateEndpoint"), out var __jsonPrivateEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateEndpoint.FromJson(__jsonPrivateEndpoint) : PrivateEndpoint;}
- {_privateLinkServiceConnectionState = If( json?.PropertyT("privateLinkServiceConnectionState"), out var __jsonPrivateLinkServiceConnectionState) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.PrivateLinkServiceConnectionState.FromJson(__jsonPrivateLinkServiceConnectionState) : PrivateLinkServiceConnectionState;}
- {_groupId = If( json?.PropertyT("groupIds"), out var __jsonGroupIds) ? If( __jsonGroupIds as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : GroupId;}
- {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
+ {_privateEndpoint = If( json?.PropertyT("privateEndpoint"), out var __jsonPrivateEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateEndpoint.FromJson(__jsonPrivateEndpoint) : _privateEndpoint;}
+ {_privateLinkServiceConnectionState = If( json?.PropertyT("privateLinkServiceConnectionState"), out var __jsonPrivateLinkServiceConnectionState) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.PrivateLinkServiceConnectionState.FromJson(__jsonPrivateLinkServiceConnectionState) : _privateLinkServiceConnectionState;}
+ {_groupId = If( json?.PropertyT("groupIds"), out var __jsonGroupIds) ? If( __jsonGroupIds as Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _groupId;}
+ {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;}
AfterFromJson(json);
}
@@ -106,7 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
}
AddIf( null != this._privateEndpoint ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._privateEndpoint.ToJson(null,serializationMode) : null, "privateEndpoint" ,container.Add );
AddIf( null != this._privateLinkServiceConnectionState ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._privateLinkServiceConnectionState.ToJson(null,serializationMode) : null, "privateLinkServiceConnectionState" ,container.Add );
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
if (null != this._groupId)
{
@@ -118,7 +118,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
container.Add("groupIds",__w);
}
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.PowerShell.cs
similarity index 72%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.PowerShell.cs
index 7297001db6a5..2aa96965e800 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -65,29 +65,29 @@ public partial class PrivateLinkServiceConnectionState
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new PrivateLinkServiceConnectionState(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new PrivateLinkServiceConnectionState(content);
}
@@ -99,10 +99,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -117,21 +117,21 @@ internal PrivateLinkServiceConnectionState(global::System.Collections.IDictionar
// actually deserialize
if (content.Contains("Status"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Status, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Description, global::System.Convert.ToString);
}
if (content.Contains("ActionsRequired"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired = (string) content.GetValueForProperty("ActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired = (string) content.GetValueForProperty("ActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -146,15 +146,15 @@ internal PrivateLinkServiceConnectionState(global::System.Management.Automation.
// actually deserialize
if (content.Contains("Status"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Status, global::System.Convert.ToString);
}
if (content.Contains("Description"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).Description, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).Description, global::System.Convert.ToString);
}
if (content.Contains("ActionsRequired"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired = (string) content.GetValueForProperty("ActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired = (string) content.GetValueForProperty("ActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal)this).ActionsRequired, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.TypeConverter.cs
index 1562369ce53b..5823bd5f6165 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.cs
similarity index 84%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.cs
index d2c55ff521be..2370c66981cd 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api
/// A collection of information about the state of the connection between service consumer and provider.
///
public partial class PrivateLinkServiceConnectionState :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionStateInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionStateInternal
{
/// Backing field for property.
@@ -32,13 +32,13 @@ public partial class PrivateLinkServiceConnectionState :
public string Description { get => this._description; set => this._description = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? _status;
+ private string _status;
///
/// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? Status { get => this._status; set => this._status = value; }
+ public string Status { get => this._status; set => this._status = value; }
/// Creates an new instance.
public PrivateLinkServiceConnectionState()
@@ -56,6 +56,9 @@ public partial interface IPrivateLinkServiceConnectionState :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"A message indicating if changes on the service provider require any updates on the consumer.",
SerializedName = @"actionsRequired",
PossibleTypes = new [] { typeof(string) })]
@@ -64,6 +67,9 @@ public partial interface IPrivateLinkServiceConnectionState :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The reason for approval/rejection of the connection.",
SerializedName = @"description",
PossibleTypes = new [] { typeof(string) })]
@@ -74,10 +80,14 @@ public partial interface IPrivateLinkServiceConnectionState :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.",
SerializedName = @"status",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? Status { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")]
+ string Status { get; set; }
}
/// A collection of information about the state of the connection between service consumer and provider.
@@ -93,7 +103,8 @@ internal partial interface IPrivateLinkServiceConnectionStateInternal
///
/// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.PrivateEndpointServiceConnectionStatus? Status { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected")]
+ string Status { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.json.cs
similarity index 95%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.json.cs
index 17148acd6066..532236de7532 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/PrivateLinkServiceConnectionState.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class PrivateLinkServiceConnectionState
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IPrivateLinkServiceConnectionState FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IPrivateLinkServiceConnectionState FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new PrivateLinkServiceConnectionState(json) : null;
}
@@ -79,9 +79,9 @@ internal PrivateLinkServiceConnectionState(Microsoft.Azure.PowerShell.Cmdlets.Mo
{
return;
}
- {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;}
- {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;}
- {_actionsRequired = If( json?.PropertyT("actionsRequired"), out var __jsonActionsRequired) ? (string)__jsonActionsRequired : (string)ActionsRequired;}
+ {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;}
+ {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;}
+ {_actionsRequired = If( json?.PropertyT("actionsRequired"), out var __jsonActionsRequired) ? (string)__jsonActionsRequired : (string)_actionsRequired;}
AfterFromJson(json);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.PowerShell.cs
similarity index 57%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.PowerShell.cs
index 3b1644826468..f425a12970bf 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -65,27 +65,27 @@ public partial class Resource
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new Resource(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new Resource(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -113,49 +113,49 @@ internal Resource(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -170,43 +170,43 @@ internal Resource(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.TypeConverter.cs
index e7c4b53fbe64..2dc68082c7f0 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.cs
similarity index 63%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.cs
index 1136c393e2c1..0c5020666241 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api
/// Common fields that are returned in the response for all Azure Resource Manager resources
///
public partial class Resource :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal
{
/// Backing field for property.
@@ -25,16 +25,34 @@ public partial class Resource :
public string Id { get => this._id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.Id { get => this._id; set { {_id = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.Id { get => this._id; set { {_id = value;} } }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.Name { get => this._name; set { {_name = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData()); set { {_systemData = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData()); set { {_systemData = value;} } }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResourceInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } }
/// Backing field for property.
private string _name;
@@ -44,37 +62,37 @@ public partial class Resource :
public string Name { get => this._name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData _systemData;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData _systemData;
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData()); }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// Backing field for property.
private string _type;
@@ -101,6 +119,9 @@ public partial interface IResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Fully qualified resource ID for the resource. E.g. ""/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}""",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
@@ -109,6 +130,9 @@ public partial interface IResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The name of the resource",
SerializedName = @"name",
PossibleTypes = new [] { typeof(string) })]
@@ -116,57 +140,80 @@ public partial interface IResource :
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The timestamp of resource creation (UTC).",
SerializedName = @"createdAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- global::System.DateTime? SystemDataCreatedAt { get; set; }
+ global::System.DateTime? SystemDataCreatedAt { get; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The identity that created the resource.",
SerializedName = @"createdBy",
PossibleTypes = new [] { typeof(string) })]
- string SystemDataCreatedBy { get; set; }
+ string SystemDataCreatedBy { get; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of identity that created the resource.",
SerializedName = @"createdByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataCreatedByType { get; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The timestamp of resource last modification (UTC)",
SerializedName = @"lastModifiedAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- global::System.DateTime? SystemDataLastModifiedAt { get; set; }
+ global::System.DateTime? SystemDataLastModifiedAt { get; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The identity that last modified the resource.",
SerializedName = @"lastModifiedBy",
PossibleTypes = new [] { typeof(string) })]
- string SystemDataLastModifiedBy { get; set; }
+ string SystemDataLastModifiedBy { get; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of identity that last modified the resource.",
SerializedName = @"lastModifiedByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataLastModifiedByType { get; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""",
SerializedName = @"type",
PossibleTypes = new [] { typeof(string) })]
@@ -186,19 +233,21 @@ internal partial interface IResourceInternal
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData SystemData { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData SystemData { get; set; }
/// The timestamp of resource creation (UTC).
global::System.DateTime? SystemDataCreatedAt { get; set; }
/// The identity that created the resource.
string SystemDataCreatedBy { get; set; }
/// The type of identity that created the resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataCreatedByType { get; set; }
/// The timestamp of resource last modification (UTC)
global::System.DateTime? SystemDataLastModifiedAt { get; set; }
/// The identity that last modified the resource.
string SystemDataLastModifiedBy { get; set; }
/// The type of identity that last modified the resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataLastModifiedByType { get; set; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.json.cs
similarity index 93%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.json.cs
index 79b87f0a9fdd..79a89fcb06d4 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api40/Resource.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Resource.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class Resource
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api40.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new Resource(json) : null;
}
@@ -79,10 +79,10 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Ru
{
return;
}
- {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData.FromJson(__jsonSystemData) : SystemData;}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
- {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;}
- {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
+ {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData.FromJson(__jsonSystemData) : _systemData;}
+ {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
+ {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;}
+ {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;}
AfterFromJson(json);
}
@@ -105,19 +105,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.PowerShell.cs
similarity index 55%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.PowerShell.cs
index ff05a9d829dc..b758a3cb908d 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -65,29 +65,27 @@ public partial class ResourceAutoGenerated
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ResourceAutoGenerated(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ResourceAutoGenerated(content);
}
@@ -97,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -115,49 +113,49 @@ internal ResourceAutoGenerated(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -172,43 +170,43 @@ internal ResourceAutoGenerated(global::System.Management.Automation.PSObject con
// actually deserialize
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.TypeConverter.cs
index a546b7d1ff15..20060067a0db 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.cs
similarity index 62%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.cs
index 8f8d90bdfc02..5afc0cdedd6b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api
/// Common fields that are returned in the response for all Azure Resource Manager resources
///
public partial class ResourceAutoGenerated :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal
{
/// Backing field for property.
@@ -25,16 +25,34 @@ public partial class ResourceAutoGenerated :
public string Id { get => this._id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Id { get => this._id; set { {_id = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Id { get => this._id; set { {_id = value;} } }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Name { get => this._name; set { {_name = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Name { get => this._name; set { {_name = value;} } }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData()); set { {_systemData = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData()); set { {_systemData = value;} } }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Type { get => this._type; set { {_type = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Type { get => this._type; set { {_type = value;} } }
/// Backing field for property.
private string _name;
@@ -44,37 +62,37 @@ public partial class ResourceAutoGenerated :
public string Name { get => this._name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData _systemData;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData _systemData;
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData()); }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).CreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)SystemData).LastModifiedByType; }
/// Backing field for property.
private string _type;
@@ -101,6 +119,9 @@ public partial interface IResourceAutoGenerated :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
SerializedName = @"id",
PossibleTypes = new [] { typeof(string) })]
@@ -109,6 +130,9 @@ public partial interface IResourceAutoGenerated :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The name of the resource",
SerializedName = @"name",
PossibleTypes = new [] { typeof(string) })]
@@ -116,57 +140,80 @@ public partial interface IResourceAutoGenerated :
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The timestamp of resource creation (UTC).",
SerializedName = @"createdAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- global::System.DateTime? SystemDataCreatedAt { get; set; }
+ global::System.DateTime? SystemDataCreatedAt { get; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The identity that created the resource.",
SerializedName = @"createdBy",
PossibleTypes = new [] { typeof(string) })]
- string SystemDataCreatedBy { get; set; }
+ string SystemDataCreatedBy { get; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of identity that created the resource.",
SerializedName = @"createdByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataCreatedByType { get; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The timestamp of resource last modification (UTC)",
SerializedName = @"lastModifiedAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
- global::System.DateTime? SystemDataLastModifiedAt { get; set; }
+ global::System.DateTime? SystemDataLastModifiedAt { get; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The identity that last modified the resource.",
SerializedName = @"lastModifiedBy",
PossibleTypes = new [] { typeof(string) })]
- string SystemDataLastModifiedBy { get; set; }
+ string SystemDataLastModifiedBy { get; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
- ReadOnly = false,
+ ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of identity that last modified the resource.",
SerializedName = @"lastModifiedByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataLastModifiedByType { get; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = true,
+ Read = true,
+ Create = false,
+ Update = false,
Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""",
SerializedName = @"type",
PossibleTypes = new [] { typeof(string) })]
@@ -186,19 +233,21 @@ internal partial interface IResourceAutoGeneratedInternal
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData SystemData { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData SystemData { get; set; }
/// The timestamp of resource creation (UTC).
global::System.DateTime? SystemDataCreatedAt { get; set; }
/// The identity that created the resource.
string SystemDataCreatedBy { get; set; }
/// The type of identity that created the resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataCreatedByType { get; set; }
/// The timestamp of resource last modification (UTC)
global::System.DateTime? SystemDataLastModifiedAt { get; set; }
/// The identity that last modified the resource.
string SystemDataLastModifiedBy { get; set; }
/// The type of identity that last modified the resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string SystemDataLastModifiedByType { get; set; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.json.cs
similarity index 93%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.json.cs
index 20b76a014b10..217f7b09d3b7 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/ResourceAutoGenerated.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/ResourceAutoGenerated.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class ResourceAutoGenerated
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new ResourceAutoGenerated(json) : null;
}
@@ -79,10 +79,10 @@ internal ResourceAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Monitor.Monito
{
return;
}
- {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemData.FromJson(__jsonSystemData) : SystemData;}
- {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
- {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;}
- {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
+ {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemData.FromJson(__jsonSystemData) : _systemData;}
+ {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;}
+ {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;}
+ {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;}
AfterFromJson(json);
}
@@ -105,19 +105,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
{
return container;
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add );
}
- if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeReadOnly))
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead))
{
AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.PowerShell.cs
similarity index 64%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.PowerShell.cs
index a9f86c5f7b50..d9a1cac49da2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class SystemData
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new SystemData(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new SystemData(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -111,33 +111,33 @@ internal SystemData(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("CreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
}
if (content.Contains("CreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString);
}
if (content.Contains("CreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("LastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -152,27 +152,27 @@ internal SystemData(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("CreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString);
}
if (content.Contains("CreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString);
}
if (content.Contains("CreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("LastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("LastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.TypeConverter.cs
index a13145dcd5d7..451751294b25 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.cs
similarity index 80%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.cs
index 6ca642a8b3f1..4b2f84756638 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Metadata pertaining to creation and last modification of the resource.
public partial class SystemData :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemDataInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemDataInternal
{
/// Backing field for property.
@@ -28,11 +28,11 @@ public partial class SystemData :
public string CreatedBy { get => this._createdBy; set => this._createdBy = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? _createdByType;
+ private string _createdByType;
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? CreatedByType { get => this._createdByType; set => this._createdByType = value; }
+ public string CreatedByType { get => this._createdByType; set => this._createdByType = value; }
/// Backing field for property.
private global::System.DateTime? _lastModifiedAt;
@@ -49,11 +49,11 @@ public partial class SystemData :
public string LastModifiedBy { get => this._lastModifiedBy; set => this._lastModifiedBy = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? _lastModifiedByType;
+ private string _lastModifiedByType;
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? LastModifiedByType { get => this._lastModifiedByType; set => this._lastModifiedByType = value; }
+ public string LastModifiedByType { get => this._lastModifiedByType; set => this._lastModifiedByType = value; }
/// Creates an new instance.
public SystemData()
@@ -69,6 +69,9 @@ public partial interface ISystemData :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The timestamp of resource creation (UTC).",
SerializedName = @"createdAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
@@ -77,6 +80,9 @@ public partial interface ISystemData :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The identity that created the resource.",
SerializedName = @"createdBy",
PossibleTypes = new [] { typeof(string) })]
@@ -85,14 +91,21 @@ public partial interface ISystemData :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The type of identity that created the resource.",
SerializedName = @"createdByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? CreatedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string CreatedByType { get; set; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The timestamp of resource last modification (UTC)",
SerializedName = @"lastModifiedAt",
PossibleTypes = new [] { typeof(global::System.DateTime) })]
@@ -101,6 +114,9 @@ public partial interface ISystemData :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The identity that last modified the resource.",
SerializedName = @"lastModifiedBy",
PossibleTypes = new [] { typeof(string) })]
@@ -109,10 +125,14 @@ public partial interface ISystemData :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"The type of identity that last modified the resource.",
SerializedName = @"lastModifiedByType",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? LastModifiedByType { get; set; }
+ PossibleTypes = new [] { typeof(string) })]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string LastModifiedByType { get; set; }
}
/// Metadata pertaining to creation and last modification of the resource.
@@ -124,13 +144,15 @@ internal partial interface ISystemDataInternal
/// The identity that created the resource.
string CreatedBy { get; set; }
/// The type of identity that created the resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? CreatedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string CreatedByType { get; set; }
/// The timestamp of resource last modification (UTC)
global::System.DateTime? LastModifiedAt { get; set; }
/// The identity that last modified the resource.
string LastModifiedBy { get; set; }
/// The type of identity that last modified the resource.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? LastModifiedByType { get; set; }
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")]
+ string LastModifiedByType { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.json.cs
similarity index 94%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.json.cs
index 3c3e2d5cf737..ddfada3425b2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/SystemData.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/SystemData.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class SystemData
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new SystemData(json) : null;
}
@@ -77,12 +77,12 @@ internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.
{
return;
}
- {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)CreatedBy;}
- {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)CreatedByType;}
- {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : CreatedAt : CreatedAt;}
- {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy;}
- {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)LastModifiedByType;}
- {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : LastModifiedAt : LastModifiedAt;}
+ {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)_createdBy;}
+ {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)_createdByType;}
+ {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : _createdAt : _createdAt;}
+ {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)_lastModifiedBy;}
+ {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)_lastModifiedByType;}
+ {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : _lastModifiedAt : _lastModifiedAt;}
AfterFromJson(json);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.PowerShell.cs
similarity index 53%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.PowerShell.cs
index 833b102c4f18..aba3088f7253 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -65,27 +65,27 @@ public partial class TrackedResource
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new TrackedResource(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new TrackedResource(content);
}
@@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
@@ -115,7 +115,7 @@ public override string ToString()
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -130,57 +130,57 @@ internal TrackedResource(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Tag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
}
if (content.Contains("Location"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
}
AfterDeserializeDictionary(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -195,51 +195,51 @@ internal TrackedResource(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Tag"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTagsTypeConverter.ConvertFrom);
}
if (content.Contains("Location"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataCreatedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemDataCreatedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataCreatedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedBy"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedByType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString);
}
if (content.Contains("SystemDataLastModifiedAt"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
}
if (content.Contains("SystemData"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.SystemDataTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.SystemDataTypeConverter.ConvertFrom);
}
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString);
}
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.TypeConverter.cs
index fbc11f2d3482..f603a4a389f9 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.cs
similarity index 53%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.cs
index e203527e10e7..fbed89f535c1 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -11,21 +11,21 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api
/// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
///
public partial class TrackedResource :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceInternal,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ResourceAutoGenerated();
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ResourceAutoGenerated();
///
/// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; }
+ public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; }
/// Backing field for property.
private string _location;
@@ -35,63 +35,81 @@ public partial class TrackedResource :
public string Location { get => this._location; set => this._location = value; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Id = value ?? null; }
/// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name = value ?? null; }
/// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value ?? null /* model class */; }
+
+ /// Internal Acessors for SystemDataCreatedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataCreatedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataCreatedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedAt
+ global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+
+ /// Internal Acessors for SystemDataLastModifiedBy
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; }
+
+ /// Internal Acessors for SystemDataLastModifiedByType
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType = value ?? null; }
/// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type = value ?? null; }
/// The name of the resource
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; }
+ public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Name; }
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemData = value ?? null /* model class */; }
/// The timestamp of resource creation (UTC).
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedAt; }
/// The identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy = value ?? null; }
+ public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedBy; }
/// The type of identity that created the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataCreatedByType; }
/// The timestamp of resource last modification (UTC)
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
+ public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedAt; }
/// The identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; }
+ public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedBy; }
/// The type of identity that last modified the resource.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Support.CreatedByType)""); }
+ public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).SystemDataLastModifiedByType; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags _tag;
+ private Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags _tag;
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTags()); set => this._tag = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTags()); set => this._tag = value; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
///
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Origin(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; }
+ public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal)__resourceAutoGenerated).Type; }
/// Creates an new instance.
public TrackedResource()
@@ -114,12 +132,15 @@ public TrackedResource()
/// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
public partial interface ITrackedResource :
Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGenerated
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGenerated
{
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
- Required = true,
+ Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = false,
Description = @"The geo-location where the resource lives",
SerializedName = @"location",
PossibleTypes = new [] { typeof(string) })]
@@ -128,20 +149,23 @@ public partial interface ITrackedResource :
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Info(
Required = false,
ReadOnly = false,
+ Read = true,
+ Create = true,
+ Update = true,
Description = @"Resource tags.",
SerializedName = @"tags",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags) })]
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags Tag { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags Tag { get; set; }
}
/// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
internal partial interface ITrackedResourceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.IResourceAutoGeneratedInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IResourceAutoGeneratedInternal
{
/// The geo-location where the resource lives
string Location { get; set; }
/// Resource tags.
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags Tag { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags Tag { get; set; }
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.json.cs
similarity index 87%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.json.cs
index 9448cf855223..b69484d67dfa 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResource.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResource.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class TrackedResource
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new TrackedResource(json) : null;
}
@@ -88,7 +88,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.
}
__resourceAutoGenerated?.ToJson(container, serializationMode);
AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add );
- AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add );
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeCreate))
+ {
+ AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add );
+ }
AfterToJson(ref container);
return container;
}
@@ -105,9 +108,9 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorks
{
return;
}
- __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ResourceAutoGenerated(json);
- {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTags.FromJson(__jsonTags) : Tag;}
- {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;}
+ __resourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ResourceAutoGenerated(json);
+ {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTags.FromJson(__jsonTags) : _tag;}
+ {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;}
AfterFromJson(json);
}
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs
similarity index 88%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs
index 509cf3fa7e8d..1fc05e27271f 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -63,29 +63,27 @@ public partial class TrackedResourceTags
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new TrackedResourceTags(content);
}
///
- /// Deserializes a into an instance of into an instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
///
- /// an instance of .
+ /// an instance of .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new TrackedResourceTags(content);
}
@@ -95,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
@@ -115,7 +113,7 @@ public override string ToString()
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -134,7 +132,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content)
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs
similarity index 97%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs
index 6941fc8335e0..900d3567dbc2 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.cs
similarity index 92%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.cs
index b36ddf3d309b..f77867868e19 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.cs
@@ -3,14 +3,14 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
/// Resource tags.
public partial class TrackedResourceTags :
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags,
- Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTagsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags,
+ Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTagsInternal
{
/// Creates an new instance.
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs
index 3975c10ded70..4f97beaee7a6 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source)
///
- public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.TrackedResourceTags source) => source.__additionalProperties;
+ public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.TrackedResourceTags source) => source.__additionalProperties;
}
}
\ No newline at end of file
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.json.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.json.cs
similarity index 96%
rename from generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.json.cs
rename to generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.json.cs
index 0310099b54d0..fb53463bafcf 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/Api30/TrackedResourceTags.json.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/Models/TrackedResourceTags.json.cs
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30
+namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class TrackedResourceTags
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api30.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null;
}
diff --git a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/MonitorWorkspace.cs b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/MonitorWorkspace.cs
index ea59d5afd667..2809841a0e5b 100644
--- a/generated/Monitor/MonitorWorkspace.Autorest/generated/api/MonitorWorkspace.cs
+++ b/generated/Monitor/MonitorWorkspace.Autorest/generated/api/MonitorWorkspace.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace
public partial class MonitorWorkspace
{
- /// Create or update a workspace
+ /// create a workspace
/// The ID of the target subscription.
/// The name of the resource group. The name is case insensitive.
/// The name of the Azure Monitor workspace. The name is case insensitive
@@ -25,10 +25,11 @@ public partial class MonitorWorkspace
/// elsewhere).
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureMonitorWorkspacesCreate(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureMonitorWorkspacesCreate(string subscriptionId, string resourceGroupName, string azureMonitorWorkspaceName, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.SerializationMode.IncludeUpdate)
{
var apiVersion = @"2023-04-03";
// Constant Parameters
@@ -55,15 +56,15 @@ public partial class MonitorWorkspace
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
// set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
+ request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8);
request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
// make the call
- await this.AzureMonitorWorkspacesCreate_Call(request,onOk,onCreated,onDefault,eventListener,sender);
+ await this.AzureMonitorWorkspacesCreate_Call (request, onOk,onCreated,onDefault,eventListener,sender);
}
}
- /// Create or update a workspace
+ /// create a workspace
///
/// Properties that need to be specified to create a new workspace
/// a delegate that is called when the remote service returns 200 (OK).
@@ -72,10 +73,11 @@ public partial class MonitorWorkspace
/// elsewhere).
/// an instance that will receive events.
/// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.ISendAsync pipeline to use to make the request.
+ /// Allows the caller to choose the depth of the serialization. See .
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task AzureMonitorWorkspacesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.Api20230403.IAzureMonitorWorkspaceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task AzureMonitorWorkspacesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Monitor.MonitorWorkspace.Models.IAzureMonitorWorkspaceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func