Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
.Description
-Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
+create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
.Example
$insightsToInvoke = [ordered]@{
@@ -27,13 +27,25 @@ $insightsToInvoke = [ordered]@{
}
New-AzSelfHelpDiagnostic -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aravind-test-resources/providers/Microsoft.KeyVault/vaults/ab-tests-kv-an" -SResourceName ab-test-973 -Insight $insightsToInvoke
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+
INSIGHT : SolutionIds that are needed to be invoked.
[AdditionalParameter ]: Additional parameters required to invoke the solutionId.
[(Any) ]: This indicates any property can be added to this object.
@@ -42,37 +54,60 @@ INSIGHT : SolutionIds that are needed to be invoked.
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpdiagnostic
#>
function New-AzSelfHelpDiagnostic {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('DiagnosticsResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Unique resource name for insight resources
${SResourceName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResourcePropertiesGlobalParameters]))]
[System.Collections.Hashtable]
# Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics results
${GlobalParameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticInvocation[]]
# SolutionIds that are needed to be invoked.
- # To construct, see NOTES section for INSIGHT properties and create a hash table.
${Insight},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -141,6 +176,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -161,6 +205,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -169,6 +216,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1
index 4d7fc14a720b..05882d89c11a 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1
+++ b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSimplifiedSolution.ps1
@@ -16,13 +16,13 @@
<#
.Synopsis
-Creates a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.
Note: 1.
‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
.Description
-Creates a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.
Note: 1.
‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
@@ -36,41 +36,81 @@ $parameters = [ordered]@{
}
New-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SResourceName $resourceName -SolutionId $solutionId -Parameter $parameters
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpsimplifiedsolution
#>
function New-AzSelfHelpSimplifiedSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('SimplifiedSolutionsResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Simplified Solutions Resource Name.
${SResourceName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourcePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResourcePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Simplified Solutions
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Solution Id to identify single Simplified Solution.
${SolutionId},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -139,6 +179,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -159,6 +208,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -167,6 +219,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1
index f0bada7812b6..2587289a1f80 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1
+++ b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpSolution.ps1
@@ -16,7 +16,7 @@
<#
.Synopsis
-Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues.
These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions.
All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.
@@ -28,7 +28,7 @@ In the absence of the ‘requiredParameters’ it is likely that some of the sol
‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the request for diagnostics 3.
‘requiredParameters’ from the Solutions response is the same as ‘properties.parameters’ in the request for Troubleshooters
.Description
-Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues.
These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions.
All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.
@@ -51,51 +51,86 @@ $parameters = [ordered]@{
New-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev -Parameter $parameters -TriggerCriterion $criteria
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+
TRIGGERCRITERION : Solution request trigger criteria
- [Name ]: Trigger criterion name.
+ [Name ]: Trigger criterion name.
[Value ]: Trigger criterion value.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpsolution
#>
function New-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('SolutionResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Solution resource Name.
${ResourceName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResourcePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Solution
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITriggerCriterion[]]
# Solution request trigger criteria
- # To construct, see NOTES section for TRIGGERCRITERION properties and create a hash table.
${TriggerCriterion},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -164,6 +199,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -184,6 +228,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -192,6 +239,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1
index 4e283c4ad623..4432e3f0f701 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1
+++ b/generated/SelfHelp/SelfHelp.Autorest/exports/New-AzSelfHelpTroubleshooter.ps1
@@ -16,13 +16,13 @@
<#
.Synopsis
-Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
+create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process.
Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes.
These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers.
Troubleshooters terminate at a well curated solution based off of resource backend signals and customer manual selections.
.Description
-Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
+create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process.
Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes.
These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers.
@@ -35,41 +35,81 @@ $parameters = [ordered]@{
New-AzSelfHelpTroubleshooter -Scope "/subscriptions/6bded6d5-a
6af-43e1-96d3-bf71f6f5f8ba" -Name "12d59989-f8a9-4b69-9919-1ef51df4eff6" -Parameter $parameters -SolutionId "e104dbdf-9e14-4c9f-bc78-21ac90382231"
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelptroubleshooter
#>
function New-AzSelfHelpTroubleshooter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('TroubleshooterName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Troubleshooter resource Name.
${Name},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterInstancePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterInstancePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Troubleshooter Resource
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Solution Id to identify single troubleshooter.
${SolutionId},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -126,6 +166,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -146,6 +195,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -154,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/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1
index 4454294a7ee2..bbdf7e9e3c9b 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/SelfHelp/SelfHelp.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -25,7 +25,7 @@ Get the diagnostics using the 'diagnosticsResourceName' you chose while creating
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpdiagnostic
#>
function Get-AzSelfHelpDiagnostic {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -64,7 +64,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -123,6 +122,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -152,6 +160,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -206,12 +217,12 @@ Lists the relevant Azure diagnostics and solutions using [problemClassification
Get-AzSelfHelpDiscoverySolution -Filter "ProblemClassificationId eq 'a5db90c3-f147-bce6-83b0-ab5e0aeca1f0'"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionMetadataResource
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpdiscoverysolution
#>
function Get-AzSelfHelpDiscoverySolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionMetadataResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
@@ -285,6 +296,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -313,6 +333,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -369,7 +392,7 @@ Get-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -388,7 +411,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsimplifiedsolution
#>
function Get-AzSelfHelpSimplifiedSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -408,7 +431,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -467,6 +489,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -496,6 +527,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -552,7 +586,7 @@ Get-AzSelfHelpSolutionSelfHelp -SolutionId "apollo-48996ff7-002f-47c1-85b2-df138
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceSelfHelp
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResourceSelfHelp
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -571,7 +605,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsolutionselfhelp
#>
function Get-AzSelfHelpSolutionSelfHelp {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceSelfHelp])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResourceSelfHelp])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -585,7 +619,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -644,6 +677,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -673,6 +715,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -727,7 +772,7 @@ Get-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bd
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -746,7 +791,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelpsolution
#>
function Get-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -766,7 +811,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -825,6 +869,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -854,6 +907,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -900,17 +956,17 @@ end {
<#
.Synopsis
Gets troubleshooter instance result which includes the step status/result of the troubleshooter resource name that is being executed. Get API is used to retrieve the result of a Troubleshooter instance, which includes the status and result of each step in the Troubleshooter workflow.
-This API requires the Troubleshooter resource name that was created using the Create API.
+This API requires the Troubleshooter resource name that was created using the get API.
.Description
Gets troubleshooter instance result which includes the step status/result of the troubleshooter resource name that is being executed. Get API is used to retrieve the result of a Troubleshooter instance, which includes the status and result of each step in the Troubleshooter workflow.
-This API requires the Troubleshooter resource name that was created using the Create API.
+This API requires the Troubleshooter resource name that was created using the get API.
.Example
Get-AzSelfHelpTroubleshooter -Scope "/subscriptions/" -Name "02d59989-f8a9-4b69-9919-1ef51df4eff6"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -929,7 +985,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.selfhelp/get-azselfhelptroubleshooter
#>
function Get-AzSelfHelpTroubleshooter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -949,7 +1005,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -1008,6 +1063,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1037,6 +1101,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1094,11 +1161,9 @@ $CHECKNAMEAVAILABILITYREQUEST = [ordered]@{
Invoke-AzSelfHelpCheckNameAvailability -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba" -CheckNameAvailabilityRequest $CHECKNAMEAVAILABILITYREQUEST
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ICheckNameAvailabilityRequest
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ICheckNameAvailabilityRequest
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ICheckNameAvailabilityResponse
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ICheckNameAvailabilityResponse
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1107,60 +1172,49 @@ To create the parameters described below, construct a hash table containing the
CHECKNAMEAVAILABILITYREQUEST : The check availability request body.
[Name ]: The name of the resource for which availability needs to be checked.
[Type ]: The resource type.
-
-INPUTOBJECT : Identity Parameter
- [DiagnosticsResourceName ]: Unique resource name for insight resources
- [Id ]: Resource identity path
- [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
- [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
- [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
- [SolutionResourceName ]: Solution resource Name.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpchecknameavailability
#>
function Invoke-AzSelfHelpCheckNameAvailability {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ICheckNameAvailabilityResponse])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ICheckNameAvailabilityResponse])]
[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Post', Mandatory)]
- [Parameter(ParameterSetName='PostExpanded', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='PostViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
[Parameter(ParameterSetName='Post', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ICheckNameAvailabilityRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ICheckNameAvailabilityRequest]
# The check availability request body.
- # To construct, see NOTES section for CHECKNAMEAVAILABILITYREQUEST properties and create a hash table.
${CheckNameAvailabilityRequest},
[Parameter(ParameterSetName='PostExpanded')]
- [Parameter(ParameterSetName='PostViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# The name of the resource for which availability needs to be checked.
${Name},
[Parameter(ParameterSetName='PostExpanded')]
- [Parameter(ParameterSetName='PostViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# The resource type.
${Type},
+ [Parameter(ParameterSetName='PostViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Post operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='PostViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Post operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1217,6 +1271,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1238,8 +1301,8 @@ begin {
$mapping = @{
Post = 'Az.SelfHelp.private\Invoke-AzSelfHelpCheckNameAvailability_Post';
PostExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpCheckNameAvailability_PostExpanded';
- PostViaIdentity = 'Az.SelfHelp.private\Invoke-AzSelfHelpCheckNameAvailability_PostViaIdentity';
- PostViaIdentityExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpCheckNameAvailability_PostViaIdentityExpanded';
+ PostViaJsonFilePath = 'Az.SelfHelp.private\Invoke-AzSelfHelpCheckNameAvailability_PostViaJsonFilePath';
+ PostViaJsonString = 'Az.SelfHelp.private\Invoke-AzSelfHelpCheckNameAvailability_PostViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -1248,6 +1311,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1295,11 +1361,11 @@ end {
.Synopsis
Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the respective troubleshooter resource name.
Continue API is used to provide inputs that are required for the specific troubleshooter to progress into the next step in the process.
-This API is used after the Troubleshooter has been created using the Create API.
+This API is used after the Troubleshooter has been created using the continue API.
.Description
Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the respective troubleshooter resource name.
Continue API is used to provide inputs that are required for the specific troubleshooter to progress into the next step in the process.
-This API is used after the Troubleshooter has been created using the Create API.
+This API is used after the Troubleshooter has been created using the continue API.
.Example
$continueRequest = [ordered]@{
"StepId" ="15ebac6c-96a1-4a67-ae9d-b06011d232ff"
@@ -1308,7 +1374,7 @@ $continueRequest = [ordered]@{
Invoke-AzSelfHelpContinueTroubleshooter -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba" -TroubleshooterName "02d59989-f8a9-4b69-9919-1ef51df4eff6" -ContinueRequestBody $continueRequest
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IContinueRequestBody
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IContinueRequestBody
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
@@ -1319,9 +1385,9 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
CONTINUEREQUESTBODY : Troubleshooter ContinueRequest body.
- [Response ]:
+ [Response >]:
[QuestionId ]: id of the question.
- [QuestionType ]: Type of Question
+ [QuestionType ]: Type of Question
[Response ]: Response key for SingleInput. For Multi-line test/open ended question it is free form text
[StepId ]: Unique id of the result.
@@ -1337,7 +1403,7 @@ INPUTOBJECT : Identity Parameter
RESPONSE : .
[QuestionId ]: id of the question.
- [QuestionType ]: Type of Question
+ [QuestionType ]: Type of Question
[Response ]: Response key for SingleInput. For Multi-line test/open ended question it is free form text
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpcontinuetroubleshooter
@@ -1348,6 +1414,8 @@ function Invoke-AzSelfHelpContinueTroubleshooter {
param(
[Parameter(ParameterSetName='Continue', Mandatory)]
[Parameter(ParameterSetName='ContinueExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ContinueViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='ContinueViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
@@ -1355,6 +1423,8 @@ param(
[Parameter(ParameterSetName='Continue', Mandatory)]
[Parameter(ParameterSetName='ContinueExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ContinueViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='ContinueViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Troubleshooter resource Name.
@@ -1365,24 +1435,21 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter(ParameterSetName='Continue', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='ContinueViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IContinueRequestBody]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IContinueRequestBody]
# Troubleshooter ContinueRequest body.
- # To construct, see NOTES section for CONTINUEREQUESTBODY properties and create a hash table.
${ContinueRequestBody},
[Parameter(ParameterSetName='ContinueExpanded')]
[Parameter(ParameterSetName='ContinueViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResponse[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterResponse[]]
# .
- # To construct, see NOTES section for RESPONSE properties and create a hash table.
${Response},
[Parameter(ParameterSetName='ContinueExpanded')]
@@ -1392,6 +1459,18 @@ param(
# Unique id of the result.
${StepId},
+ [Parameter(ParameterSetName='ContinueViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Continue operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='ContinueViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Continue operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1454,6 +1533,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1477,6 +1565,8 @@ begin {
ContinueExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpContinueTroubleshooter_ContinueExpanded';
ContinueViaIdentity = 'Az.SelfHelp.private\Invoke-AzSelfHelpContinueTroubleshooter_ContinueViaIdentity';
ContinueViaIdentityExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpContinueTroubleshooter_ContinueViaIdentityExpanded';
+ ContinueViaJsonFilePath = 'Az.SelfHelp.private\Invoke-AzSelfHelpContinueTroubleshooter_ContinueViaJsonFilePath';
+ ContinueViaJsonString = 'Az.SelfHelp.private\Invoke-AzSelfHelpContinueTroubleshooter_ContinueViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -1485,6 +1575,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1537,11 +1630,9 @@ Solution discovery using natural language processing.
Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope -SubscriptionId "6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba" -IssueSummary "Billing Issues"
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpRequest
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpResponse
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1552,25 +1643,14 @@ DISCOVERSOLUTIONREQUEST : Discover NLP request.
[IssueSummary ]: Describe the issue with the affected resource.
[ResourceId ]: Provide resourceId of affected resource
[ServiceId ]: Service Classification id for the resource. You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP Service Id is the GUID which can be found under name field in Services List response
-
-INPUTOBJECT : Identity Parameter
- [DiagnosticsResourceName ]: Unique resource name for insight resources
- [Id ]: Resource identity path
- [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
- [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
- [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
- [SolutionResourceName ]: Solution resource Name.
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpdiscoverysolutionnlpsubscriptionscope
#>
function Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpResponse])]
[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Post')]
- [Parameter(ParameterSetName='PostExpanded')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -1578,51 +1658,49 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='PostViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
[Parameter(ParameterSetName='Post', Mandatory, ValueFromPipeline)]
- [Parameter(ParameterSetName='PostViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpRequest]
# Discover NLP request.
- # To construct, see NOTES section for DISCOVERSOLUTIONREQUEST properties and create a hash table.
${DiscoverSolutionRequest},
[Parameter(ParameterSetName='PostExpanded')]
- [Parameter(ParameterSetName='PostViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Additional information in the form of a string.
${AdditionalContext},
[Parameter(ParameterSetName='PostExpanded')]
- [Parameter(ParameterSetName='PostViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Describe the issue with the affected resource.
${IssueSummary},
[Parameter(ParameterSetName='PostExpanded')]
- [Parameter(ParameterSetName='PostViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Provide resourceId of affected resource
${ResourceId},
[Parameter(ParameterSetName='PostExpanded')]
- [Parameter(ParameterSetName='PostViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Service Classification id for the resource.
- # You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/listtabs=HTTP Service Id is the GUID which can be found under name field in Services List response
+ # You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP Service Id is the GUID which can be found under name field in Services List response
${ServiceId},
+ [Parameter(ParameterSetName='PostViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Post operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='PostViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Post operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1679,6 +1757,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1700,12 +1787,10 @@ begin {
$mapping = @{
Post = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_Post';
PostExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostExpanded';
- PostViaIdentity = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostViaIdentity';
- PostViaIdentityExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostViaIdentityExpanded';
+ PostViaJsonFilePath = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostViaJsonFilePath';
+ PostViaJsonString = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpSubscriptionScope_PostViaJsonString';
}
- if (('Post', 'PostExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Post', 'PostExpanded', 'PostViaJsonFilePath', 'PostViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1719,6 +1804,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1771,9 +1859,9 @@ Solution discovery using natural language processing.
Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope -IssueSummary "Billing Issues"
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpRequest
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpResponse
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1788,14 +1876,13 @@ DISCOVERSOLUTIONREQUEST : Discover NLP request.
https://learn.microsoft.com/powershell/module/az.selfhelp/invoke-azselfhelpdiscoverysolutionnlptenantscope
#>
function Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpResponse])]
[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Post', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiscoveryNlpRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiscoveryNlpRequest]
# Discover NLP request.
- # To construct, see NOTES section for DISCOVERSOLUTIONREQUEST properties and create a hash table.
${DiscoverSolutionRequest},
[Parameter(ParameterSetName='PostExpanded')]
@@ -1820,9 +1907,21 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Service Classification id for the resource.
- # You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/listtabs=HTTP Service Id is the GUID which can be found under name field in Services List response
+ # You can find required serviceId from Services API: https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP Service Id is the GUID which can be found under name field in Services List response
${ServiceId},
+ [Parameter(ParameterSetName='PostViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Post operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='PostViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Post operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1879,6 +1978,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1900,6 +2008,8 @@ begin {
$mapping = @{
Post = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope_Post';
PostExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope_PostExpanded';
+ PostViaJsonFilePath = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope_PostViaJsonFilePath';
+ PostViaJsonString = 'Az.SelfHelp.private\Invoke-AzSelfHelpDiscoverySolutionNlpTenantScope_PostViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -1908,6 +2018,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1963,10 +2076,10 @@ $parameters = [ordered]@{
}
Invoke-AzSelfHelpWarmSolutionUp -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SolutionResourceName $resourceName -Parameter $parameters
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionWarmUpRequestBody
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionWarmUpRequestBody
.Outputs
System.Boolean
.Notes
@@ -1996,6 +2109,8 @@ function Invoke-AzSelfHelpWarmSolutionUp {
param(
[Parameter(ParameterSetName='Warm', Mandatory)]
[Parameter(ParameterSetName='WarmExpanded', Mandatory)]
+ [Parameter(ParameterSetName='WarmViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='WarmViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
@@ -2003,6 +2118,8 @@ param(
[Parameter(ParameterSetName='Warm', Mandatory)]
[Parameter(ParameterSetName='WarmExpanded', Mandatory)]
+ [Parameter(ParameterSetName='WarmViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='WarmViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Solution resource Name.
@@ -2013,25 +2130,35 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter(ParameterSetName='Warm', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='WarmViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionWarmUpRequestBody]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionWarmUpRequestBody]
# Solution WarmUpRequest body
- # To construct, see NOTES section for SOLUTIONWARMUPREQUESTBODY properties and create a hash table.
${SolutionWarmUpRequestBody},
[Parameter(ParameterSetName='WarmExpanded')]
[Parameter(ParameterSetName='WarmViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionWarmUpRequestBodyParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionWarmUpRequestBodyParameters]))]
[System.Collections.Hashtable]
# Dictionary of
${Parameter},
+ [Parameter(ParameterSetName='WarmViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Warm operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='WarmViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Warm operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2094,6 +2221,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2117,6 +2253,8 @@ begin {
WarmExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmExpanded';
WarmViaIdentity = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmViaIdentity';
WarmViaIdentityExpanded = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmViaIdentityExpanded';
+ WarmViaJsonFilePath = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmViaJsonFilePath';
+ WarmViaJsonString = 'Az.SelfHelp.private\Invoke-AzSelfHelpWarmSolutionUp_WarmViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2125,6 +2263,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2170,10 +2311,10 @@ end {
<#
.Synopsis
-Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
+create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
.Description
-Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
+create a diagnostic for the specific resource using solutionId and requiredInputs* from discovery solutions.
Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.
Note: ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics API.
.Example
$insightsToInvoke = [ordered]@{
@@ -2181,13 +2322,25 @@ $insightsToInvoke = [ordered]@{
}
New-AzSelfHelpDiagnostic -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aravind-test-resources/providers/Microsoft.KeyVault/vaults/ab-tests-kv-an" -SResourceName ab-test-973 -Insight $insightsToInvoke
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+
INSIGHT : SolutionIds that are needed to be invoked.
[AdditionalParameter ]: Additional parameters required to invoke the solutionId.
[(Any) ]: This indicates any property can be added to this object.
@@ -2196,37 +2349,60 @@ INSIGHT : SolutionIds that are needed to be invoked.
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpdiagnostic
#>
function New-AzSelfHelpDiagnostic {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('DiagnosticsResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Unique resource name for insight resources
${SResourceName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticResourcePropertiesGlobalParameters]))]
[System.Collections.Hashtable]
# Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics results
${GlobalParameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IDiagnosticInvocation[]]
# SolutionIds that are needed to be invoked.
- # To construct, see NOTES section for INSIGHT properties and create a hash table.
${Insight},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2295,6 +2471,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2315,6 +2500,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpDiagnostic_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2323,6 +2511,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2368,13 +2559,13 @@ end {
<#
.Synopsis
-Creates a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.
Note: 1.
‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
.Description
-Creates a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a simplified Solutions for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
In the absence of the ‘Parameters’ it is likely that some of the simplified Solutions might fail execution, and you might see an empty response.
Note: 1.
‘requiredInputs’ from Discovery solutions response must be passed via ‘parameters’ in the request body of simplified Solutions API.
@@ -2388,41 +2579,81 @@ $parameters = [ordered]@{
}
New-AzSelfHelpSimplifiedSolution -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/aits-data-inestion/providers/Microsoft.KeyVault/vaults/kv-akshayko519290291381" -SResourceName $resourceName -SolutionId $solutionId -Parameter $parameters
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpsimplifiedsolution
#>
function New-AzSelfHelpSimplifiedSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('SimplifiedSolutionsResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Simplified Solutions Resource Name.
${SResourceName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourcePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISimplifiedSolutionsResourcePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Simplified Solutions
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Solution Id to identify single Simplified Solution.
${SolutionId},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2491,6 +2722,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2511,6 +2751,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpSimplifiedSolution_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2519,6 +2762,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2564,7 +2810,7 @@ end {
<#
.Synopsis
-Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues.
These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions.
All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.
@@ -2576,7 +2822,7 @@ In the absence of the ‘requiredParameters’ it is likely that some of the sol
‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the request for diagnostics 3.
‘requiredParameters’ from the Solutions response is the same as ‘properties.parameters’ in the request for Troubleshooters
.Description
-Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
+create a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions.
Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues.
These solutions encompass (1.) dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual troubleshooting instructions.
All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.
@@ -2599,51 +2845,86 @@ $parameters = [ordered]@{
New-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/6bded6d5-a6af-43e1-96d3-bf71f6f5f8ba/resourceGroups/DiagnosticsRp-Ev2AssistId-Public-Dev/providers/Microsoft.KeyVault/vaults/DiagRp-Ev2PublicDev -Parameter $parameters -TriggerCriterion $criteria
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
+
TRIGGERCRITERION : Solution request trigger criteria
- [Name ]: Trigger criterion name.
+ [Name ]: Trigger criterion name.
[Value ]: Trigger criterion value.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelpsolution
#>
function New-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('SolutionResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Solution resource Name.
${ResourceName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResourcePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Solution
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITriggerCriterion[]]
# Solution request trigger criteria
- # To construct, see NOTES section for TRIGGERCRITERION properties and create a hash table.
${TriggerCriterion},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2712,6 +2993,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2732,6 +3022,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpSolution_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2740,6 +3033,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2785,13 +3081,13 @@ end {
<#
.Synopsis
-Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
+create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process.
Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes.
These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers.
Troubleshooters terminate at a well curated solution based off of resource backend signals and customer manual selections.
.Description
-Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
+create the specific troubleshooter action under a resource or subscription using the ‘solutionId’ and ‘properties.parameters’ as the trigger.
Azure Troubleshooters help with hard to classify issues, reducing the gap between customer observed problems and solutions by guiding the user effortlessly through the troubleshooting process.
Each Troubleshooter flow represents a problem area within Azure and has a complex tree-like structure that addresses many root causes.
These flows are prepared with the help of Subject Matter experts and customer support engineers by carefully considering previous support requests raised by customers.
@@ -2804,41 +3100,81 @@ $parameters = [ordered]@{
New-AzSelfHelpTroubleshooter -Scope "/subscriptions/6bded6d5-a
6af-43e1-96d3-bf71f6f5f8ba" -Name "12d59989-f8a9-4b69-9919-1ef51df4eff6" -Parameter $parameters -SolutionId "e104dbdf-9e14-4c9f-bc78-21ac90382231"
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterResource
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [DiagnosticsResourceName ]: Unique resource name for insight resources
+ [Id ]: Resource identity path
+ [Scope ]: scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
+ [SimplifiedSolutionsResourceName ]: Simplified Solutions Resource Name.
+ [SolutionId ]: SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
+ [SolutionResourceName ]: Solution resource Name.
+ [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
+ [TroubleshooterName ]: Troubleshooter resource Name.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/new-azselfhelptroubleshooter
#>
function New-AzSelfHelpTroubleshooter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Alias('TroubleshooterName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# Troubleshooter resource Name.
${Name},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
${Scope},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITroubleshooterInstancePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITroubleshooterInstancePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Troubleshooter Resource
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
[System.String]
# Solution Id to identify single troubleshooter.
${SolutionId},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2895,6 +3231,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2915,6 +3260,9 @@ begin {
$mapping = @{
CreateExpanded = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.SelfHelp.private\New-AzSelfHelpTroubleshooter_CreateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2923,6 +3271,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2979,7 +3330,7 @@ Restart-AzSelfHelpTroubleshooter -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IRestartTroubleshooterResponse
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IRestartTroubleshooterResponse
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2998,7 +3349,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.selfhelp/restart-azselfhelptroubleshooter
#>
function Restart-AzSelfHelpTroubleshooter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IRestartTroubleshooterResponse])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IRestartTroubleshooterResponse])]
[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Restart', Mandatory)]
@@ -3018,7 +3369,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -3077,6 +3427,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3106,6 +3465,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3199,7 +3561,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -3264,6 +3625,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3293,6 +3663,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -3338,9 +3711,9 @@ end {
<#
.Synopsis
-Update the requiredInputs or additional information needed to execute the solution
+update the requiredInputs or additional information needed to execute the solution
.Description
-Update the requiredInputs or additional information needed to execute the solution
+update the requiredInputs or additional information needed to execute the solution
.Example
$parameters = [ordered]@{
"SearchText" = "Can not Search"
@@ -3354,7 +3727,7 @@ Update-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -3371,16 +3744,18 @@ INPUTOBJECT : Identity Parameter
[TroubleshooterName ]: Troubleshooter resource Name.
TRIGGERCRITERION : Solution request trigger criteria
- [Name ]: Trigger criterion name.
+ [Name ]: Trigger criterion name.
[Value ]: Trigger criterion value.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/update-azselfhelpsolution
#>
function Update-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('SolutionResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
@@ -3388,6 +3763,8 @@ param(
${ResourceName},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
@@ -3397,24 +3774,36 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# 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.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResourcePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Solution
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITriggerCriterion[]]
# Solution request trigger criteria
- # To construct, see NOTES section for TRIGGERCRITERION properties and create a hash table.
${TriggerCriterion},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -3483,6 +3872,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -3504,6 +3902,8 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -3512,6 +3912,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1
index 5a37bd0ace08..c1229f1fa0c3 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1
+++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Restart-AzSelfHelpTroubleshooter.ps1
@@ -27,7 +27,7 @@ Restart-AzSelfHelpTroubleshooter -Scope "/subscriptions/6bded6d5-a6af-43e1-96d3-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IRestartTroubleshooterResponse
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IRestartTroubleshooterResponse
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -46,7 +46,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.selfhelp/restart-azselfhelptroubleshooter
#>
function Restart-AzSelfHelpTroubleshooter {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IRestartTroubleshooterResponse])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IRestartTroubleshooterResponse])]
[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Restart', Mandatory)]
@@ -66,7 +66,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -125,6 +124,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -154,6 +162,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1
index 09ce3dcbc22f..265e0661bd51 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1
+++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Stop-AzSelfHelpTroubleshooter.ps1
@@ -64,7 +64,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -129,6 +128,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -158,6 +166,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1 b/generated/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1
index 073bc7ff1b24..71dfec23ddb5 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1
+++ b/generated/SelfHelp/SelfHelp.Autorest/exports/Update-AzSelfHelpSolution.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Update the requiredInputs or additional information needed to execute the solution
+update the requiredInputs or additional information needed to execute the solution
.Description
-Update the requiredInputs or additional information needed to execute the solution
+update the requiredInputs or additional information needed to execute the solution
.Example
$parameters = [ordered]@{
"SearchText" = "Can not Search"
@@ -32,7 +32,7 @@ Update-AzSelfHelpSolution -ResourceName test-resource234 -Scope /subscriptions/
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource
+Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -49,16 +49,18 @@ INPUTOBJECT : Identity Parameter
[TroubleshooterName ]: Troubleshooter resource Name.
TRIGGERCRITERION : Solution request trigger criteria
- [Name ]: Trigger criterion name.
+ [Name ]: Trigger criterion name.
[Value ]: Trigger criterion value.
.Link
https://learn.microsoft.com/powershell/module/az.selfhelp/update-azselfhelpsolution
#>
function Update-AzSelfHelpSolution {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Alias('SolutionResourceName')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
@@ -66,6 +68,8 @@ param(
${ResourceName},
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[System.String]
# scope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
@@ -75,24 +79,36 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISelfHelpIdentity]
# 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.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ISolutionResourcePropertiesParameters]))]
[System.Collections.Hashtable]
# Client input parameters to run Solution
${Parameter},
- [Parameter()]
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.ITriggerCriterion[]]
# Solution request trigger criteria
- # To construct, see NOTES section for TRIGGERCRITERION properties and create a hash table.
${TriggerCriterion},
+ [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Update operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Category('Body')]
+ [System.String]
+ # Json string supplied to the Update operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -161,6 +177,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -182,6 +207,8 @@ begin {
$mapping = @{
UpdateExpanded = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateViaIdentityExpanded';
+ UpdateViaJsonFilePath = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateViaJsonFilePath';
+ UpdateViaJsonString = 'Az.SelfHelp.private\Update-AzSelfHelpSolution_UpdateViaJsonString';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -190,6 +217,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -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/SelfHelp/SelfHelp.Autorest/generate-info.json b/generated/SelfHelp/SelfHelp.Autorest/generate-info.json
index c3115e8be3e7..c8dbd3a63439 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/generate-info.json
+++ b/generated/SelfHelp/SelfHelp.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "673a2be0-2ac0-446e-a557-5cb7bd0bec5c"
+ "generate_Id": "14962a8a-9a35-47c6-8892-dc7a0a2fde6e"
}
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/Module.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/Module.cs
index 6a3fafe9a185..0c423a48290c 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/Module.cs
+++ b/generated/SelfHelp/SelfHelp.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.SelfHelp.Module _instance;
+
/// the ISendAsync pipeline instance
private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.HttpPipeline _pipeline;
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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,11 +64,8 @@ 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.SelfHelp.Module _instance;
-
/// the singleton of this module class
- public static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Module());
+ public static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp";
@@ -125,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.HttpPipeline CreatePi
/// 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/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.PowerShell.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.PowerShell.cs
index 49fcf1357396..da70c78f5586 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.PowerShell.cs
+++ b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.PowerShell.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models
{
using Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.cs
index 03b44e330d57..f5fa913d8010 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.cs
+++ b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Extensions;
- /// Any object
+ /// Anything
public partial class Any :
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IAny,
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.IAnyInternal
@@ -19,13 +19,13 @@ public Any()
}
}
- /// Any object
+ /// Anything
public partial interface IAny :
Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IJsonSerializable
{
}
- /// Any object
+ /// Anything
internal partial interface IAnyInternal
{
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.json.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.json.cs
index b54e0e604045..639ee8f2ad55 100644
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.json.cs
+++ b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Any.json.cs
@@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Extensions;
- /// Any object
+ /// Anything
public partial class Any
{
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/DiagnosticResource.PowerShell.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/DiagnosticResource.PowerShell.cs
deleted file mode 100644
index 047857a104e2..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/DiagnosticResource.PowerShell.cs
+++ /dev/null
@@ -1,284 +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.SelfHelp.Models.Api20240301Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PowerShell;
-
- /// Diagnostic resource
- [System.ComponentModel.TypeConverter(typeof(DiagnosticResourceTypeConverter))]
- public partial class DiagnosticResource
- {
-
- ///
- /// 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.SelfHelp.Models.Api20240301Preview.IDiagnosticResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new DiagnosticResource(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.SelfHelp.Models.Api20240301Preview.IDiagnosticResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new DiagnosticResource(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal DiagnosticResource(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.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("GlobalParameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).GlobalParameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters) content.GetValueForProperty("GlobalParameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).GlobalParameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourcePropertiesGlobalParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("Insight"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Insight = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[]) content.GetValueForProperty("Insight",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Insight, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticInvocationTypeConverter.ConvertFrom));
- }
- if (content.Contains("AcceptedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).AcceptedAt = (string) content.GetValueForProperty("AcceptedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).AcceptedAt, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState.CreateFrom);
- }
- if (content.Contains("Diagnostic"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnostic[]) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Diagnostic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal DiagnosticResource(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.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("GlobalParameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).GlobalParameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters) content.GetValueForProperty("GlobalParameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).GlobalParameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourcePropertiesGlobalParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("Insight"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Insight = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[]) content.GetValueForProperty("Insight",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Insight, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticInvocationTypeConverter.ConvertFrom));
- }
- if (content.Contains("AcceptedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).AcceptedAt = (string) content.GetValueForProperty("AcceptedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).AcceptedAt, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState.CreateFrom);
- }
- if (content.Contains("Diagnostic"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Diagnostic = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnostic[]) content.GetValueForProperty("Diagnostic",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal)this).Diagnostic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticTypeConverter.ConvertFrom));
- }
- AfterDeserializePSObject(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.SelfHelp.Models.Api20240301Preview.IDiagnosticResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.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();
- }
- }
- /// Diagnostic resource
- [System.ComponentModel.TypeConverter(typeof(DiagnosticResourceTypeConverter))]
- public partial interface IDiagnosticResource
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/DiagnosticResource.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/DiagnosticResource.cs
deleted file mode 100644
index 53330d6c19d7..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/DiagnosticResource.cs
+++ /dev/null
@@ -1,214 +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.SelfHelp.Models.Api20240301Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Extensions;
-
- /// Diagnostic resource
- public partial class DiagnosticResource :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResource,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IValidates
- {
- ///
- /// Backing field for Inherited model
- ///
- private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.Resource();
-
- /// Diagnostic Request Accepted time.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public string AcceptedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).AcceptedAt; }
-
- /// Array of Diagnostics.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnostic[] Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).Diagnostic; }
-
- ///
- /// Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics
- /// results
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters GlobalParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).GlobalParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).GlobalParameter = value ?? null /* model class */; }
-
- ///
- /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id; }
-
- /// SolutionIds that are needed to be invoked.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[] Insight { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).Insight; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).Insight = value ?? null /* arrayOf */; }
-
- /// Internal Acessors for AcceptedAt
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal.AcceptedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).AcceptedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).AcceptedAt = value; }
-
- /// Internal Acessors for Diagnostic
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnostic[] Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal.Diagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).Diagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).Diagnostic = value; }
-
- /// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceProperties Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourceProperties()); set { {_property = value;} } }
-
- /// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).ProvisioningState = value; }
-
- /// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id = value; }
-
- /// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name = value; }
-
- /// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData = value; }
-
- /// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type = value; }
-
- /// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceProperties _property;
-
- /// Diagnostic Resource properties.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.DiagnosticResourceProperties()); set => this._property = value; }
-
- /// Status of diagnostic provisioning.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesInternal)Property).ProvisioningState; }
-
- /// Gets the resource group name
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Owned)]
- public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); }
-
- ///
- /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData; }
-
- /// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
-
- /// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType)""); }
-
- /// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
-
- /// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType)""); }
-
- ///
- /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type; }
-
- /// Creates an new instance.
- public DiagnosticResource()
- {
-
- }
-
- /// 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.SelfHelp.Runtime.IEventListener eventListener)
- {
- await eventListener.AssertNotNull(nameof(__resource), __resource);
- await eventListener.AssertObjectIsValid(nameof(__resource), __resource);
- }
- }
- /// Diagnostic resource
- public partial interface IDiagnosticResource :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResource
- {
- /// Diagnostic Request Accepted time.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Diagnostic Request Accepted time.",
- SerializedName = @"acceptedAt",
- PossibleTypes = new [] { typeof(string) })]
- string AcceptedAt { get; }
- /// Array of Diagnostics.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Array of Diagnostics.",
- SerializedName = @"diagnostics",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnostic) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnostic[] Diagnostic { get; }
- ///
- /// Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics
- /// results
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics results",
- SerializedName = @"globalParameters",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters GlobalParameter { get; set; }
- /// SolutionIds that are needed to be invoked.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"SolutionIds that are needed to be invoked.",
- SerializedName = @"insights",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[] Insight { get; set; }
- /// Status of diagnostic provisioning.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Status of diagnostic provisioning.",
- SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState? ProvisioningState { get; }
-
- }
- /// Diagnostic resource
- internal partial interface IDiagnosticResourceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal
- {
- /// Diagnostic Request Accepted time.
- string AcceptedAt { get; set; }
- /// Array of Diagnostics.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnostic[] Diagnostic { get; set; }
- ///
- /// Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics
- /// results
- ///
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourcePropertiesGlobalParameters GlobalParameter { get; set; }
- /// SolutionIds that are needed to be invoked.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticInvocation[] Insight { get; set; }
- /// Diagnostic Resource properties.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IDiagnosticResourceProperties Property { get; set; }
- /// Status of diagnostic provisioning.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.DiagnosticProvisioningState? ProvisioningState { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SimplifiedSolutionsResource.PowerShell.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SimplifiedSolutionsResource.PowerShell.cs
deleted file mode 100644
index d205c91fa535..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SimplifiedSolutionsResource.PowerShell.cs
+++ /dev/null
@@ -1,294 +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.SelfHelp.Models.Api20240301Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PowerShell;
-
- /// Simplified Solutions response.
- [System.ComponentModel.TypeConverter(typeof(SimplifiedSolutionsResourceTypeConverter))]
- public partial class SimplifiedSolutionsResource
- {
-
- ///
- /// 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.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SimplifiedSolutionsResource(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.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SimplifiedSolutionsResource(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.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SimplifiedSolutionsResource(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.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("SolutionId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).SolutionId = (string) content.GetValueForProperty("SolutionId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).SolutionId, global::System.Convert.ToString);
- }
- if (content.Contains("Parameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourcePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("Title"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Title, global::System.Convert.ToString);
- }
- if (content.Contains("Appendix"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Appendix = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourcePropertiesAppendix) content.GetValueForProperty("Appendix",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Appendix, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesAppendixTypeConverter.ConvertFrom);
- }
- if (content.Contains("Content"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Content, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SimplifiedSolutionsResource(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.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("SolutionId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).SolutionId = (string) content.GetValueForProperty("SolutionId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).SolutionId, global::System.Convert.ToString);
- }
- if (content.Contains("Parameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourcePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("Title"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Title, global::System.Convert.ToString);
- }
- if (content.Contains("Appendix"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Appendix = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourcePropertiesAppendix) content.GetValueForProperty("Appendix",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Appendix, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SimplifiedSolutionsResourcePropertiesAppendixTypeConverter.ConvertFrom);
- }
- if (content.Contains("Content"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).Content, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISimplifiedSolutionsResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState.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.SelfHelp.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();
- }
- }
- /// Simplified Solutions response.
- [System.ComponentModel.TypeConverter(typeof(SimplifiedSolutionsResourceTypeConverter))]
- public partial interface ISimplifiedSolutionsResource
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionMetadataResource.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionMetadataResource.cs
deleted file mode 100644
index 740bcb89d2e4..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionMetadataResource.cs
+++ /dev/null
@@ -1,136 +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.SelfHelp.Models.Api20240301Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Extensions;
-
- /// Metadata resource
- public partial class SolutionMetadataResource :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResource,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResourceInternal,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IValidates
- {
- ///
- /// Backing field for Inherited model
- ///
- private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.Resource();
-
- ///
- /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id; }
-
- /// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutions Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Solutions()); set { {_property = value;} } }
-
- /// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id = value; }
-
- /// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name = value; }
-
- /// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData = value; }
-
- /// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type = value; }
-
- /// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutions _property;
-
- /// Solution metadata Resource properties.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutions Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.Solutions()); set => this._property = value; }
-
- /// List of metadata.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataProperties[] Solution { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsInternal)Property).Solution; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsInternal)Property).Solution = value ?? null /* arrayOf */; }
-
- ///
- /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData; }
-
- /// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
-
- /// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType)""); }
-
- /// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
-
- /// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType)""); }
-
- ///
- /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type; }
-
- /// Creates an new instance.
- public SolutionMetadataResource()
- {
-
- }
-
- /// 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.SelfHelp.Runtime.IEventListener eventListener)
- {
- await eventListener.AssertNotNull(nameof(__resource), __resource);
- await eventListener.AssertObjectIsValid(nameof(__resource), __resource);
- }
- }
- /// Metadata resource
- public partial interface ISolutionMetadataResource :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResource
- {
- /// List of metadata.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"List of metadata.",
- SerializedName = @"solutions",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataProperties) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataProperties[] Solution { get; set; }
-
- }
- /// Metadata resource
- internal partial interface ISolutionMetadataResourceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal
- {
- /// Solution metadata Resource properties.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutions Property { get; set; }
- /// List of metadata.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataProperties[] Solution { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionNlpMetadataResource.PowerShell.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionNlpMetadataResource.PowerShell.cs
deleted file mode 100644
index 4b5cb7cdc918..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionNlpMetadataResource.PowerShell.cs
+++ /dev/null
@@ -1,294 +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.SelfHelp.Models.Api20240301Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PowerShell;
-
- /// Nlp Metadata resource
- [System.ComponentModel.TypeConverter(typeof(SolutionNlpMetadataResourceTypeConverter))]
- public partial class SolutionNlpMetadataResource
- {
-
- ///
- /// 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.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SolutionNlpMetadataResource(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.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SolutionNlpMetadataResource(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.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SolutionNlpMetadataResource(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.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.INlpSolutions) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.NlpSolutionsTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("ProblemTitle"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemTitle = (string) content.GetValueForProperty("ProblemTitle",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemTitle, global::System.Convert.ToString);
- }
- if (content.Contains("ProblemDescription"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemDescription = (string) content.GetValueForProperty("ProblemDescription",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemDescription, global::System.Convert.ToString);
- }
- if (content.Contains("ServiceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ServiceId = (string) content.GetValueForProperty("ServiceId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ServiceId, global::System.Convert.ToString);
- }
- if (content.Contains("ProblemClassificationId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemClassificationId = (string) content.GetValueForProperty("ProblemClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemClassificationId, global::System.Convert.ToString);
- }
- if (content.Contains("Solution"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Solution = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataProperties[]) content.GetValueForProperty("Solution",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Solution, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionMetadataPropertiesTypeConverter.ConvertFrom));
- }
- if (content.Contains("RelatedService"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).RelatedService = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IClassificationService[]) content.GetValueForProperty("RelatedService",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).RelatedService, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ClassificationServiceTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SolutionNlpMetadataResource(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.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.INlpSolutions) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.NlpSolutionsTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("ProblemTitle"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemTitle = (string) content.GetValueForProperty("ProblemTitle",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemTitle, global::System.Convert.ToString);
- }
- if (content.Contains("ProblemDescription"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemDescription = (string) content.GetValueForProperty("ProblemDescription",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemDescription, global::System.Convert.ToString);
- }
- if (content.Contains("ServiceId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ServiceId = (string) content.GetValueForProperty("ServiceId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ServiceId, global::System.Convert.ToString);
- }
- if (content.Contains("ProblemClassificationId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemClassificationId = (string) content.GetValueForProperty("ProblemClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).ProblemClassificationId, global::System.Convert.ToString);
- }
- if (content.Contains("Solution"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Solution = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionMetadataProperties[]) content.GetValueForProperty("Solution",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).Solution, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionMetadataPropertiesTypeConverter.ConvertFrom));
- }
- if (content.Contains("RelatedService"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).RelatedService = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IClassificationService[]) content.GetValueForProperty("RelatedService",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionNlpMetadataResourceInternal)this).RelatedService, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ClassificationServiceTypeConverter.ConvertFrom));
- }
- 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.SelfHelp.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();
- }
- }
- /// Nlp Metadata resource
- [System.ComponentModel.TypeConverter(typeof(SolutionNlpMetadataResourceTypeConverter))]
- public partial interface ISolutionNlpMetadataResource
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionPatchRequestBody.PowerShell.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionPatchRequestBody.PowerShell.cs
deleted file mode 100644
index 4aec9d66476a..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionPatchRequestBody.PowerShell.cs
+++ /dev/null
@@ -1,278 +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.SelfHelp.Models.Api20240301Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PowerShell;
-
- /// Solution PatchRequest body
- [System.ComponentModel.TypeConverter(typeof(SolutionPatchRequestBodyTypeConverter))]
- public partial class SolutionPatchRequestBody
- {
-
- ///
- /// 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.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBody DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SolutionPatchRequestBody(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.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SolutionPatchRequestBody(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.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SolutionPatchRequestBody(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.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("ReplacementMap"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMap = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps) content.GetValueForProperty("ReplacementMap",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMap, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ReplacementMapsTypeConverter.ConvertFrom);
- }
- if (content.Contains("TriggerCriterion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).TriggerCriterion = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]) content.GetValueForProperty("TriggerCriterion",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).TriggerCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TriggerCriterionTypeConverter.ConvertFrom));
- }
- if (content.Contains("Parameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("SolutionId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).SolutionId = (string) content.GetValueForProperty("SolutionId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).SolutionId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState.CreateFrom);
- }
- if (content.Contains("Title"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Title, global::System.Convert.ToString);
- }
- if (content.Contains("Content"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Content, global::System.Convert.ToString);
- }
- if (content.Contains("Section"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Section = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[]) content.GetValueForProperty("Section",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Section, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SectionTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapWebResult"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapWebResult = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[]) content.GetValueForProperty("ReplacementMapWebResult",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapWebResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.WebResultTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapDiagnostic"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapDiagnostic = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[]) content.GetValueForProperty("ReplacementMapDiagnostic",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapDiagnostic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsDiagnosticTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapTroubleshooter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapTroubleshooter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[]) content.GetValueForProperty("ReplacementMapTroubleshooter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapTroubleshooter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsTroubleshootersTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideo = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[]) content.GetValueForProperty("ReplacementMapVideo",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideoGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideoGroup = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[]) content.GetValueForProperty("ReplacementMapVideoGroup",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideoGroup, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroupTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapMetricsBasedChart"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapMetricsBasedChart = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[]) content.GetValueForProperty("ReplacementMapMetricsBasedChart",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapMetricsBasedChart, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.MetricsBasedChartTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SolutionPatchRequestBody(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.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("ReplacementMap"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMap = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps) content.GetValueForProperty("ReplacementMap",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMap, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ReplacementMapsTypeConverter.ConvertFrom);
- }
- if (content.Contains("TriggerCriterion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).TriggerCriterion = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]) content.GetValueForProperty("TriggerCriterion",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).TriggerCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TriggerCriterionTypeConverter.ConvertFrom));
- }
- if (content.Contains("Parameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("SolutionId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).SolutionId = (string) content.GetValueForProperty("SolutionId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).SolutionId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState.CreateFrom);
- }
- if (content.Contains("Title"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Title, global::System.Convert.ToString);
- }
- if (content.Contains("Content"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Content, global::System.Convert.ToString);
- }
- if (content.Contains("Section"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Section = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[]) content.GetValueForProperty("Section",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).Section, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SectionTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapWebResult"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapWebResult = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[]) content.GetValueForProperty("ReplacementMapWebResult",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapWebResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.WebResultTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapDiagnostic"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapDiagnostic = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[]) content.GetValueForProperty("ReplacementMapDiagnostic",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapDiagnostic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsDiagnosticTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapTroubleshooter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapTroubleshooter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[]) content.GetValueForProperty("ReplacementMapTroubleshooter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapTroubleshooter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsTroubleshootersTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideo = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[]) content.GetValueForProperty("ReplacementMapVideo",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideoGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideoGroup = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[]) content.GetValueForProperty("ReplacementMapVideoGroup",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapVideoGroup, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroupTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapMetricsBasedChart"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapMetricsBasedChart = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[]) content.GetValueForProperty("ReplacementMapMetricsBasedChart",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal)this).ReplacementMapMetricsBasedChart, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.MetricsBasedChartTypeConverter.ConvertFrom));
- }
- 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.SelfHelp.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();
- }
- }
- /// Solution PatchRequest body
- [System.ComponentModel.TypeConverter(typeof(SolutionPatchRequestBodyTypeConverter))]
- public partial interface ISolutionPatchRequestBody
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionPatchRequestBody.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionPatchRequestBody.cs
deleted file mode 100644
index 3273fcbefff6..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionPatchRequestBody.cs
+++ /dev/null
@@ -1,254 +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.SelfHelp.Models.Api20240301Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Extensions;
-
- /// Solution PatchRequest body
- public partial class SolutionPatchRequestBody :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBody,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal
- {
-
- /// The HTML content that needs to be rendered and shown to customer.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public string Content { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Content; }
-
- /// Internal Acessors for Content
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal.Content { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Content = value; }
-
- /// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceProperties()); set { {_property = value;} } }
-
- /// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ProvisioningState = value; }
-
- /// Internal Acessors for ReplacementMap
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal.ReplacementMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMap; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMap = value; }
-
- /// Internal Acessors for Section
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal.Section { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Section; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Section = value; }
-
- /// Internal Acessors for SolutionId
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal.SolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).SolutionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).SolutionId = value; }
-
- /// Internal Acessors for Title
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionPatchRequestBodyInternal.Title { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Title; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Title = value; }
-
- /// Client input parameters to run Solution
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Parameter = value ?? null /* model class */; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties _property;
-
- /// Solution result
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceProperties()); set => this._property = value; }
-
- /// Status of solution provisioning.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ProvisioningState; }
-
- /// Solution diagnostics results.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[] ReplacementMapDiagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapDiagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapDiagnostic = value ?? null /* arrayOf */; }
-
- /// Solution metrics based charts
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[] ReplacementMapMetricsBasedChart { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapMetricsBasedChart; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapMetricsBasedChart = value ?? null /* arrayOf */; }
-
- /// Solutions Troubleshooters
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[] ReplacementMapTroubleshooter { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapTroubleshooter; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapTroubleshooter = value ?? null /* arrayOf */; }
-
- ///
- /// Video solutions, which have the power to engage the customer by stimulating their senses
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[] ReplacementMapVideo { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideo; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideo = value ?? null /* arrayOf */; }
-
- /// Group of Videos
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[] ReplacementMapVideoGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideoGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideoGroup = value ?? null /* arrayOf */; }
-
- /// Solution AzureKB results
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[] ReplacementMapWebResult { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapWebResult; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapWebResult = value ?? null /* arrayOf */; }
-
- /// List of section object.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Section { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Section; }
-
- /// Solution Id to identify single solution.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public string SolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).SolutionId; }
-
- /// The title.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public string Title { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Title; }
-
- /// Solution request trigger criteria
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[] TriggerCriterion { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).TriggerCriterion; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).TriggerCriterion = value ?? null /* arrayOf */; }
-
- /// Creates an new instance.
- public SolutionPatchRequestBody()
- {
-
- }
- }
- /// Solution PatchRequest body
- public partial interface ISolutionPatchRequestBody :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IJsonSerializable
- {
- /// The HTML content that needs to be rendered and shown to customer.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"The HTML content that needs to be rendered and shown to customer.",
- SerializedName = @"content",
- PossibleTypes = new [] { typeof(string) })]
- string Content { get; }
- /// Client input parameters to run Solution
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Client input parameters to run Solution",
- SerializedName = @"parameters",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters Parameter { get; set; }
- /// Status of solution provisioning.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Status of solution provisioning.",
- SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? ProvisioningState { get; }
- /// Solution diagnostics results.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution diagnostics results.",
- SerializedName = @"diagnostics",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[] ReplacementMapDiagnostic { get; set; }
- /// Solution metrics based charts
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution metrics based charts",
- SerializedName = @"metricsBasedCharts",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[] ReplacementMapMetricsBasedChart { get; set; }
- /// Solutions Troubleshooters
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solutions Troubleshooters",
- SerializedName = @"troubleshooters",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[] ReplacementMapTroubleshooter { get; set; }
- ///
- /// Video solutions, which have the power to engage the customer by stimulating their senses
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Video solutions, which have the power to engage the customer by stimulating their senses",
- SerializedName = @"videos",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[] ReplacementMapVideo { get; set; }
- /// Group of Videos
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Group of Videos",
- SerializedName = @"videoGroups",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[] ReplacementMapVideoGroup { get; set; }
- /// Solution AzureKB results
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution AzureKB results",
- SerializedName = @"webResults",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[] ReplacementMapWebResult { get; set; }
- /// List of section object.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"List of section object.",
- SerializedName = @"sections",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Section { get; }
- /// Solution Id to identify single solution.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Solution Id to identify single solution.",
- SerializedName = @"solutionId",
- PossibleTypes = new [] { typeof(string) })]
- string SolutionId { get; }
- /// The title.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"The title.",
- SerializedName = @"title",
- PossibleTypes = new [] { typeof(string) })]
- string Title { get; }
- /// Solution request trigger criteria
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution request trigger criteria",
- SerializedName = @"triggerCriteria",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[] TriggerCriterion { get; set; }
-
- }
- /// Solution PatchRequest body
- internal partial interface ISolutionPatchRequestBodyInternal
-
- {
- /// The HTML content that needs to be rendered and shown to customer.
- string Content { get; set; }
- /// Client input parameters to run Solution
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters Parameter { get; set; }
- /// Solution result
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties Property { get; set; }
- /// Status of solution provisioning.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? ProvisioningState { get; set; }
- /// Solution replacement maps.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps ReplacementMap { get; set; }
- /// Solution diagnostics results.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[] ReplacementMapDiagnostic { get; set; }
- /// Solution metrics based charts
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[] ReplacementMapMetricsBasedChart { get; set; }
- /// Solutions Troubleshooters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[] ReplacementMapTroubleshooter { get; set; }
- ///
- /// Video solutions, which have the power to engage the customer by stimulating their senses
- ///
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[] ReplacementMapVideo { get; set; }
- /// Group of Videos
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[] ReplacementMapVideoGroup { get; set; }
- /// Solution AzureKB results
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[] ReplacementMapWebResult { get; set; }
- /// List of section object.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Section { get; set; }
- /// Solution Id to identify single solution.
- string SolutionId { get; set; }
- /// The title.
- string Title { get; set; }
- /// Solution request trigger criteria
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[] TriggerCriterion { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResource.PowerShell.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResource.PowerShell.cs
deleted file mode 100644
index 65b684d9f3e2..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResource.PowerShell.cs
+++ /dev/null
@@ -1,364 +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.SelfHelp.Models.Api20240301Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PowerShell;
-
- /// Solution response.
- [System.ComponentModel.TypeConverter(typeof(SolutionResourceTypeConverter))]
- public partial class SolutionResource
- {
-
- ///
- /// 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.SelfHelp.Models.Api20240301Preview.ISolutionResource DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SolutionResource(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.SelfHelp.Models.Api20240301Preview.ISolutionResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SolutionResource(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.SelfHelp.Models.Api20240301Preview.ISolutionResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SolutionResource(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.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("ReplacementMap"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMap = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps) content.GetValueForProperty("ReplacementMap",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMap, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ReplacementMapsTypeConverter.ConvertFrom);
- }
- if (content.Contains("TriggerCriterion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).TriggerCriterion = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]) content.GetValueForProperty("TriggerCriterion",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).TriggerCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TriggerCriterionTypeConverter.ConvertFrom));
- }
- if (content.Contains("Parameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("SolutionId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).SolutionId = (string) content.GetValueForProperty("SolutionId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).SolutionId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState.CreateFrom);
- }
- if (content.Contains("Title"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Title, global::System.Convert.ToString);
- }
- if (content.Contains("Content"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Content, global::System.Convert.ToString);
- }
- if (content.Contains("Section"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Section = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[]) content.GetValueForProperty("Section",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Section, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SectionTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapWebResult"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapWebResult = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[]) content.GetValueForProperty("ReplacementMapWebResult",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapWebResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.WebResultTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapDiagnostic"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapDiagnostic = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[]) content.GetValueForProperty("ReplacementMapDiagnostic",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapDiagnostic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsDiagnosticTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapTroubleshooter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapTroubleshooter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[]) content.GetValueForProperty("ReplacementMapTroubleshooter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapTroubleshooter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsTroubleshootersTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideo = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[]) content.GetValueForProperty("ReplacementMapVideo",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideoGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideoGroup = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[]) content.GetValueForProperty("ReplacementMapVideoGroup",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideoGroup, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroupTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapMetricsBasedChart"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapMetricsBasedChart = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[]) content.GetValueForProperty("ReplacementMapMetricsBasedChart",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapMetricsBasedChart, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.MetricsBasedChartTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SolutionResource(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.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.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.SelfHelp.Models.Api40.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("ReplacementMap"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMap = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps) content.GetValueForProperty("ReplacementMap",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMap, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ReplacementMapsTypeConverter.ConvertFrom);
- }
- if (content.Contains("TriggerCriterion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).TriggerCriterion = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]) content.GetValueForProperty("TriggerCriterion",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).TriggerCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TriggerCriterionTypeConverter.ConvertFrom));
- }
- if (content.Contains("Parameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("SolutionId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).SolutionId = (string) content.GetValueForProperty("SolutionId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).SolutionId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState.CreateFrom);
- }
- if (content.Contains("Title"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Title, global::System.Convert.ToString);
- }
- if (content.Contains("Content"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Content, global::System.Convert.ToString);
- }
- if (content.Contains("Section"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Section = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[]) content.GetValueForProperty("Section",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Section, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SectionTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapWebResult"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapWebResult = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[]) content.GetValueForProperty("ReplacementMapWebResult",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapWebResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.WebResultTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapDiagnostic"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapDiagnostic = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[]) content.GetValueForProperty("ReplacementMapDiagnostic",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapDiagnostic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsDiagnosticTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapTroubleshooter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapTroubleshooter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[]) content.GetValueForProperty("ReplacementMapTroubleshooter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapTroubleshooter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsTroubleshootersTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideo = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[]) content.GetValueForProperty("ReplacementMapVideo",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideoGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideoGroup = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[]) content.GetValueForProperty("ReplacementMapVideoGroup",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapVideoGroup, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.VideoGroupTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapMetricsBasedChart"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapMetricsBasedChart = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[]) content.GetValueForProperty("ReplacementMapMetricsBasedChart",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).ReplacementMapMetricsBasedChart, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.MetricsBasedChartTypeConverter.ConvertFrom));
- }
- 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.SelfHelp.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();
- }
- }
- /// Solution response.
- [System.ComponentModel.TypeConverter(typeof(SolutionResourceTypeConverter))]
- public partial interface ISolutionResource
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResource.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResource.cs
deleted file mode 100644
index 85f5025a19b1..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResource.cs
+++ /dev/null
@@ -1,360 +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.SelfHelp.Models.Api20240301Preview
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Extensions;
-
- /// Solution response.
- public partial class SolutionResource :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResource,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IValidates,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IHeaderSerializable
- {
- ///
- /// Backing field for Inherited model
- ///
- private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.Resource();
-
- /// The HTML content that needs to be rendered and shown to customer.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public string Content { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Content; }
-
- ///
- /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id; }
-
- /// Backing field for property.
- private string _location;
-
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Owned)]
- public string Location { get => this._location; set => this._location = value; }
-
- /// Internal Acessors for Content
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal.Content { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Content; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Content = value; }
-
- /// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceProperties()); set { {_property = value;} } }
-
- /// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ProvisioningState = value; }
-
- /// Internal Acessors for ReplacementMap
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal.ReplacementMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMap; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMap = value; }
-
- /// Internal Acessors for Section
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal.Section { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Section; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Section = value; }
-
- /// Internal Acessors for SolutionId
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal.SolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).SolutionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).SolutionId = value; }
-
- /// Internal Acessors for Title
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal.Title { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Title; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Title = value; }
-
- /// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Id = value; }
-
- /// Internal Acessors for Name
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name = value; }
-
- /// Internal Acessors for SystemData
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData = value; }
-
- /// Internal Acessors for Type
- string Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type = value; }
-
- /// The name of the resource
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Name; }
-
- /// Client input parameters to run Solution
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Parameter = value ?? null /* model class */; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties _property;
-
- /// Solution result
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourceProperties()); set => this._property = value; }
-
- /// Status of solution provisioning.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ProvisioningState; }
-
- /// Solution diagnostics results.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[] ReplacementMapDiagnostic { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapDiagnostic; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapDiagnostic = value ?? null /* arrayOf */; }
-
- /// Solution metrics based charts
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[] ReplacementMapMetricsBasedChart { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapMetricsBasedChart; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapMetricsBasedChart = value ?? null /* arrayOf */; }
-
- /// Solutions Troubleshooters
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[] ReplacementMapTroubleshooter { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapTroubleshooter; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapTroubleshooter = value ?? null /* arrayOf */; }
-
- ///
- /// Video solutions, which have the power to engage the customer by stimulating their senses
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[] ReplacementMapVideo { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideo; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideo = value ?? null /* arrayOf */; }
-
- /// Group of Videos
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[] ReplacementMapVideoGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideoGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapVideoGroup = value ?? null /* arrayOf */; }
-
- /// Solution AzureKB results
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[] ReplacementMapWebResult { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapWebResult; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).ReplacementMapWebResult = value ?? null /* arrayOf */; }
-
- /// Gets the resource group name
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Owned)]
- public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); }
-
- /// List of section object.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Section { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Section; }
-
- /// Solution Id to identify single solution.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public string SolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).SolutionId; }
-
- ///
- /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemData; }
-
- /// The timestamp of resource creation (UTC).
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; }
-
- /// The type of identity that created the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType)""); }
-
- /// The timestamp of resource last modification (UTC)
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); }
-
- /// The identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; }
-
- /// The type of identity that last modified the resource.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.CreatedByType)""); }
-
- /// The title.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public string Title { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).Title; }
-
- /// Solution request trigger criteria
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[] TriggerCriterion { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).TriggerCriterion; set => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)Property).TriggerCriterion = value ?? null /* arrayOf */; }
-
- ///
- /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Origin(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.PropertyOrigin.Inherited)]
- public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal)__resource).Type; }
-
- ///
- void Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers)
- {
- if (headers.TryGetValues("Location", out var __locationHeader0))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null;
- }
- }
-
- /// Creates an new instance.
- public SolutionResource()
- {
-
- }
-
- /// 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.SelfHelp.Runtime.IEventListener eventListener)
- {
- await eventListener.AssertNotNull(nameof(__resource), __resource);
- await eventListener.AssertObjectIsValid(nameof(__resource), __resource);
- }
- }
- /// Solution response.
- public partial interface ISolutionResource :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResource
- {
- /// The HTML content that needs to be rendered and shown to customer.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"The HTML content that needs to be rendered and shown to customer.",
- SerializedName = @"content",
- PossibleTypes = new [] { typeof(string) })]
- string Content { get; }
-
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"",
- SerializedName = @"Location",
- PossibleTypes = new [] { typeof(string) })]
- string Location { get; set; }
- /// Client input parameters to run Solution
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Client input parameters to run Solution",
- SerializedName = @"parameters",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters Parameter { get; set; }
- /// Status of solution provisioning.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Status of solution provisioning.",
- SerializedName = @"provisioningState",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? ProvisioningState { get; }
- /// Solution diagnostics results.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution diagnostics results.",
- SerializedName = @"diagnostics",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[] ReplacementMapDiagnostic { get; set; }
- /// Solution metrics based charts
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution metrics based charts",
- SerializedName = @"metricsBasedCharts",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[] ReplacementMapMetricsBasedChart { get; set; }
- /// Solutions Troubleshooters
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solutions Troubleshooters",
- SerializedName = @"troubleshooters",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[] ReplacementMapTroubleshooter { get; set; }
- ///
- /// Video solutions, which have the power to engage the customer by stimulating their senses
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Video solutions, which have the power to engage the customer by stimulating their senses",
- SerializedName = @"videos",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[] ReplacementMapVideo { get; set; }
- /// Group of Videos
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Group of Videos",
- SerializedName = @"videoGroups",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[] ReplacementMapVideoGroup { get; set; }
- /// Solution AzureKB results
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution AzureKB results",
- SerializedName = @"webResults",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[] ReplacementMapWebResult { get; set; }
- /// List of section object.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"List of section object.",
- SerializedName = @"sections",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Section { get; }
- /// Solution Id to identify single solution.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"Solution Id to identify single solution.",
- SerializedName = @"solutionId",
- PossibleTypes = new [] { typeof(string) })]
- string SolutionId { get; }
- /// The title.
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = true,
- Description = @"The title.",
- SerializedName = @"title",
- PossibleTypes = new [] { typeof(string) })]
- string Title { get; }
- /// Solution request trigger criteria
- [Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Solution request trigger criteria",
- SerializedName = @"triggerCriteria",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion) })]
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[] TriggerCriterion { get; set; }
-
- }
- /// Solution response.
- internal partial interface ISolutionResourceInternal :
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api40.IResourceInternal
- {
- /// The HTML content that needs to be rendered and shown to customer.
- string Content { get; set; }
-
- string Location { get; set; }
- /// Client input parameters to run Solution
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters Parameter { get; set; }
- /// Solution result
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties Property { get; set; }
- /// Status of solution provisioning.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState? ProvisioningState { get; set; }
- /// Solution replacement maps.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps ReplacementMap { get; set; }
- /// Solution diagnostics results.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[] ReplacementMapDiagnostic { get; set; }
- /// Solution metrics based charts
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IMetricsBasedChart[] ReplacementMapMetricsBasedChart { get; set; }
- /// Solutions Troubleshooters
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[] ReplacementMapTroubleshooter { get; set; }
- ///
- /// Video solutions, which have the power to engage the customer by stimulating their senses
- ///
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[] ReplacementMapVideo { get; set; }
- /// Group of Videos
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideoGroup[] ReplacementMapVideoGroup { get; set; }
- /// Solution AzureKB results
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[] ReplacementMapWebResult { get; set; }
- /// List of section object.
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[] Section { get; set; }
- /// Solution Id to identify single solution.
- string SolutionId { get; set; }
- /// The title.
- string Title { get; set; }
- /// Solution request trigger criteria
- Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[] TriggerCriterion { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResourceProperties.PowerShell.cs b/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResourceProperties.PowerShell.cs
deleted file mode 100644
index ce70485b67fc..000000000000
--- a/generated/SelfHelp/SelfHelp.Autorest/generated/api/Models/Api20240301Preview/SolutionResourceProperties.PowerShell.cs
+++ /dev/null
@@ -1,270 +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.SelfHelp.Models.Api20240301Preview
-{
- using Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.PowerShell;
-
- /// Solution result
- [System.ComponentModel.TypeConverter(typeof(SolutionResourcePropertiesTypeConverter))]
- public partial class SolutionResourceProperties
- {
-
- ///
- /// 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.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SolutionResourceProperties(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.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SolutionResourceProperties(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.SelfHelp.Models.Api20240301Preview.ISolutionResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SolutionResourceProperties(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("ReplacementMap"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMap = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IReplacementMaps) content.GetValueForProperty("ReplacementMap",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMap, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ReplacementMapsTypeConverter.ConvertFrom);
- }
- if (content.Contains("TriggerCriterion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).TriggerCriterion = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ITriggerCriterion[]) content.GetValueForProperty("TriggerCriterion",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).TriggerCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.TriggerCriterionTypeConverter.ConvertFrom));
- }
- if (content.Contains("Parameter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionResourcePropertiesParametersTypeConverter.ConvertFrom);
- }
- if (content.Contains("SolutionId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).SolutionId = (string) content.GetValueForProperty("SolutionId",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).SolutionId, global::System.Convert.ToString);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Support.SolutionProvisioningState.CreateFrom);
- }
- if (content.Contains("Title"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Title = (string) content.GetValueForProperty("Title",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Title, global::System.Convert.ToString);
- }
- if (content.Contains("Content"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Content = (string) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Content, global::System.Convert.ToString);
- }
- if (content.Contains("Section"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Section = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISection[]) content.GetValueForProperty("Section",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).Section, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SectionTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapWebResult"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapWebResult = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IWebResult[]) content.GetValueForProperty("ReplacementMapWebResult",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapWebResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.WebResultTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapDiagnostic"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapDiagnostic = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsDiagnostic[]) content.GetValueForProperty("ReplacementMapDiagnostic",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapDiagnostic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsDiagnosticTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapTroubleshooter"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapTroubleshooter = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionsTroubleshooters[]) content.GetValueForProperty("ReplacementMapTroubleshooter",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapTroubleshooter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.SolutionsTroubleshootersTypeConverter.ConvertFrom));
- }
- if (content.Contains("ReplacementMapVideo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapVideo = (Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.IVideo[]) content.GetValueForProperty("ReplacementMapVideo",((Microsoft.Azure.PowerShell.Cmdlets.SelfHelp.Models.Api20240301Preview.ISolutionResourcePropertiesInternal)this).ReplacementMapVideo, __y => TypeConverterExtensions.SelectToArray