diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md deleted file mode 100644 index 4dd39f1715b4..000000000000 --- a/src/Support/Support.Autorest/docs/Update-AzSupportCommunication.md +++ /dev/null @@ -1,278 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportcommunication -schema: 2.0.0 ---- - -# Update-AzSupportCommunication - -## SYNOPSIS -Adds a new customer communication to an Azure support ticket. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzSupportCommunication -Name -SupportTicketName [-SubscriptionId ] - [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzSupportCommunication -InputObject [-Body ] [-Sender ] - [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentitySupportTicketExpanded -``` -Update-AzSupportCommunication -Name -SupportTicketInputObject [-Body ] - [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -## DESCRIPTION -Adds a new customer communication to an Azure support ticket. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Body -Body of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -Communication name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentitySupportTicketExpanded -Aliases: CommunicationName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Sender -Email address of the sender. -This property is required if called by a service principal. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Subject -Subject of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SubscriptionId -Azure subscription Id. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketInputObject -Identity Parameter -To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentitySupportTicketExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md deleted file mode 100644 index 408ca36d58a8..000000000000 --- a/src/Support/Support.Autorest/docs/Update-AzSupportCommunicationsNoSubscription.md +++ /dev/null @@ -1,264 +0,0 @@ ---- -external help file: -Module Name: Az.Support -online version: https://learn.microsoft.com/powershell/module/az.support/update-azsupportcommunicationsnosubscription -schema: 2.0.0 ---- - -# Update-AzSupportCommunicationsNoSubscription - -## SYNOPSIS -Adds a new customer communication to an Azure support ticket. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzSupportCommunicationsNoSubscription -CommunicationName -SupportTicketName - [-Body ] [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzSupportCommunicationsNoSubscription -InputObject [-Body ] - [-Sender ] [-Subject ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentitySupportTicketExpanded -``` -Update-AzSupportCommunicationsNoSubscription -CommunicationName - -SupportTicketInputObject [-Body ] [-Sender ] [-Subject ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Adds a new customer communication to an Azure support ticket. - -## EXAMPLES - -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Body -Body of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -CommunicationName -Communication name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentitySupportTicketExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```yaml -Type: System.Management.Automation.PSObject -Parameter Sets: (All) -Aliases: AzureRMContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Sender -Email address of the sender. -This property is required if called by a service principal. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Subject -Subject of the communication. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SupportTicketInputObject -Identity Parameter -To construct, see NOTES section for SUPPORTTICKETINPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity -Parameter Sets: UpdateViaIdentitySupportTicketExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -SupportTicketName -Support ticket name. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. -The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ISupportIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.ICommunicationDetails - -## NOTES - -## RELATED LINKS - diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportCommunication.md b/src/Support/Support.Autorest/examples/Update-AzSupportCommunication.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Update-AzSupportCommunication.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md b/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md deleted file mode 100644 index 0371f56c36d2..000000000000 --- a/src/Support/Support.Autorest/examples/Update-AzSupportCommunicationsNoSubscription.md +++ /dev/null @@ -1,22 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - diff --git a/src/Support/Support.Autorest/test/Update-AzSupportCommunication.Tests.ps1 b/src/Support/Support.Autorest/test/Update-AzSupportCommunication.Tests.ps1 deleted file mode 100644 index 96802aff908a..000000000000 --- a/src/Support/Support.Autorest/test/Update-AzSupportCommunication.Tests.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzSupportCommunication')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzSupportCommunication.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzSupportCommunication' { - - It 'UpdateExpanded' { - Mock Update-AzSupportCommunication{ New-MockObject -Type "Microsoft.Azure.PowerShell.Cmdlets.Support.Models.CommunicationDetails"} - - Update-AzSupportCommunication -Name $env.CommunicationName -SupportTicketName $env.Name -Body "Body changed" - - Assert-MockCalled Update-AzSupportCommunication -Exactly 1 - } - - It 'UpdateViaIdentitySupportTicketExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/Support/Support.Autorest/test/Update-AzSupportCommunicationsNoSubscription.Tests.ps1 b/src/Support/Support.Autorest/test/Update-AzSupportCommunicationsNoSubscription.Tests.ps1 deleted file mode 100644 index 77ed42120e1f..000000000000 --- a/src/Support/Support.Autorest/test/Update-AzSupportCommunicationsNoSubscription.Tests.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzSupportCommunicationsNoSubscription')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzSupportCommunicationsNoSubscription.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzSupportCommunicationsNoSubscription' { - - It 'UpdateExpanded' { - Mock Update-AzSupportCommunicationsNoSubscription{ New-MockObject -Type "Microsoft.Azure.PowerShell.Cmdlets.Support.Models.CommunicationDetails"} - - Update-AzSupportCommunicationsNoSubscription -CommunicationName $env.CommunicationName -SupportTicketName $env.Name -Body "Body changed" - - Assert-MockCalled Update-AzSupportCommunicationsNoSubscription -Exactly 1 - } - - It 'UpdateViaIdentitySupportTicketExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -}