diff --git a/src/Communication/Communication.Autorest/Az.Communication.format.ps1xml b/src/Communication/Communication.Autorest/Az.Communication.format.ps1xml
index 35f83410015d..1ffab05b979b 100644
--- a/src/Communication/Communication.Autorest/Az.Communication.format.ps1xml
+++ b/src/Communication/Communication.Autorest/Az.Communication.format.ps1xml
@@ -372,9 +372,6 @@
-
-
-
@@ -385,9 +382,6 @@
Name
-
- AzureAsyncOperation
-
diff --git a/src/Communication/Communication.Autorest/Az.Communication.psd1 b/src/Communication/Communication.Autorest/Az.Communication.psd1
index 9eb20b11bee8..6ce26f943787 100644
--- a/src/Communication/Communication.Autorest/Az.Communication.psd1
+++ b/src/Communication/Communication.Autorest/Az.Communication.psd1
@@ -1,138 +1,24 @@
-#
-# Module manifest for module 'Az.Communication'
-#
-# Generated by: Microsoft Corporation
-#
-# Generated on: 2021/12/2
-#
-
@{
-
-# Script module or binary module file associated with this manifest.
-RootModule = './Az.Communication.psm1'
-
-# Version number of this module.
-ModuleVersion = '0.2.0'
-
-# Supported PSEditions
-CompatiblePSEditions = 'Core', 'Desktop'
-
-# ID used to uniquely identify this module
-GUID = '32c4dede-9b85-43d4-83ab-447e2938c400'
-
-# Author of this module
-Author = 'Microsoft Corporation'
-
-# Company or vendor of this module
-CompanyName = 'Microsoft Corporation'
-
-# Copyright statement for this module
-Copyright = 'Microsoft Corporation. All rights reserved.'
-
-# Description of the functionality provided by this module
-Description = 'Microsoft Azure PowerShell: Communication cmdlets'
-
-# Minimum version of the PowerShell engine required by this module
-PowerShellVersion = '5.1'
-
-# Name of the PowerShell host required by this module
-# PowerShellHostName = ''
-
-# Minimum version of the PowerShell host required by this module
-# PowerShellHostVersion = ''
-
-# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-DotNetFrameworkVersion = '4.7.2'
-
-# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-# ClrVersion = ''
-
-# Processor architecture (None, X86, Amd64) required by this module
-# ProcessorArchitecture = ''
-
-# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; })
-
-# Assemblies that must be loaded prior to importing this module
-RequiredAssemblies = './bin/Az.Communication.private.dll'
-
-# Script files (.ps1) that are run in the caller's environment prior to importing this module.
-# ScriptsToProcess = @()
-
-# Type files (.ps1xml) to be loaded when importing this module
-# TypesToProcess = @()
-
-# Format files (.ps1xml) to be loaded when importing this module
-FormatsToProcess = './Az.Communication.format.ps1xml'
-
-# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
-# NestedModules = @()
-
-# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
-FunctionsToExport = 'Get-AzCommunicationService', 'Get-AzCommunicationServiceKey',
- 'New-AzCommunicationService', 'New-AzCommunicationServiceKey',
- 'Remove-AzCommunicationService',
- 'Set-AzCommunicationServiceNotificationHub',
- 'Test-AzCommunicationServiceNameAvailability',
- 'Update-AzCommunicationService'
-
-# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
-CmdletsToExport = @()
-
-# Variables to export from this module
-# VariablesToExport = @()
-
-# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
-AliasesToExport = '*'
-
-# DSC resources to export from this module
-# DscResourcesToExport = @()
-
-# List of all modules packaged with this module
-# ModuleList = @()
-
-# List of all files packaged with this module
-# FileList = @()
-
-# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
-PrivateData = @{
-
+ GUID = '32c4dede-9b85-43d4-83ab-447e2938c400'
+ RootModule = './Az.Communication.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: Communication cmdlets'
+ PowerShellVersion = '5.1'
+ DotNetFrameworkVersion = '4.7.2'
+ RequiredAssemblies = './bin/Az.Communication.private.dll'
+ FormatsToProcess = './Az.Communication.format.ps1xml'
+ FunctionsToExport = 'Get-AzCommunicationService', 'Get-AzCommunicationServiceKey', 'New-AzCommunicationService', 'New-AzCommunicationServiceKey', 'Remove-AzCommunicationService', 'Set-AzCommunicationServiceNotificationHub', 'Test-AzCommunicationServiceNameAvailability', 'Update-AzCommunicationService', '*'
+ AliasesToExport = '*'
+ PrivateData = @{
PSData = @{
-
- # Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure','ResourceManager','ARM','PSModule','Communication'
-
- # A URL to the license for this module.
- LicenseUri = 'https://aka.ms/azps-license'
-
- # A URL to the main website for this project.
- ProjectUri = 'https://github.com/Azure/azure-powershell'
-
- # A URL to an icon representing this module.
- # IconUri = ''
-
- # ReleaseNotes of this module
- ReleaseNotes = '* Added a new cmdlet ''Test-AzCommunicationServiceNameAvailability''
-* Updated API version to 2020-08-20'
-
- # Prerelease string of this module
- # Prerelease = ''
-
- # Flag to indicate whether the module requires explicit user acceptance for install/update/save
- # RequireLicenseAcceptance = $false
-
- # External dependent modules of this module
- # ExternalModuleDependencies = @()
-
- } # End of PSData hashtable
-
- } # End of PrivateData hashtable
-
-# HelpInfo URI of this module
-# HelpInfoURI = ''
-
-# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
-# DefaultCommandPrefix = ''
-
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Communication'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
}
-
diff --git a/src/Communication/Communication.Autorest/Az.Communication.psm1 b/src/Communication/Communication.Autorest/Az.Communication.psm1
index 19e2d60a1d95..93d0b514dd21 100644
--- a/src/Communication/Communication.Autorest/Az.Communication.psm1
+++ b/src/Communication/Communication.Autorest/Az.Communication.psm1
@@ -25,17 +25,17 @@
}
}
if(-not $accountsModule) {
- $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
if($hasAdequateVersion) {
- $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
}
}
}
if(-not $accountsModule) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
- } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Write-Information "Loaded Module '$($accountsModule.Name)'"
@@ -50,6 +50,10 @@
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
# Tweaks the pipeline per call
diff --git a/src/Communication/Communication.Autorest/README.md b/src/Communication/Communication.Autorest/README.md
index 2dcbae672d0e..30a421f66cf2 100644
--- a/src/Communication/Communication.Autorest/README.md
+++ b/src/Communication/Communication.Autorest/README.md
@@ -3,7 +3,6 @@
This directory contains the PowerShell module for the Communication service.
---
-
## Info
- Modifiable: yes
- Generated: all
@@ -15,7 +14,7 @@ This directory contains the PowerShell module for the Communication service.
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
## Module Requirements
-- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@@ -28,12 +27,13 @@ For information on how to develop for `Az.Communication`, see [how-to.md](how-to
> see https://aka.ms/autorest
``` yaml
+commit: 23ff943dbe3b5ccdc63a6195daa0f30b17ed9d88
require:
# readme.azure.noprofile.md is the common configuration file
- - $(this-folder)/../readme.azure.noprofile.md
+ - $(this-folder)/../../readme.azure.noprofile.md
input-file:
# You need to specify your swagger files here.
- - https://github.com/Azure/azure-rest-api-specs/blob/23ff943dbe3b5ccdc63a6195daa0f30b17ed9d88/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json
+ - $(repo)/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - (this-folder)/relative-path-to-your-swagger
@@ -48,6 +48,10 @@ subject-prefix: $(service-name)
# uncomment following line to support viaIdentity for these post APIs
# identity-correction-for-post: true
+# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
+use-extension:
+ "@autorest/powershell": "3.x"
+
directive:
# Following is two common directive which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
diff --git a/src/Communication/Communication.Autorest/build-module.ps1 b/src/Communication/Communication.Autorest/build-module.ps1
index ab479995268f..f2eb1a353892 100644
--- a/src/Communication/Communication.Autorest/build-module.ps1
+++ b/src/Communication/Communication.Autorest/build-module.ps1
@@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
$modelCmdlets = @()
+$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
+if (Test-Path $modelCmdletFolder) {
+ $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
+}
if ($modelCmdlets.Count -gt 0) {
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
CreateModelCmdlet($modelCmdlets)
@@ -139,7 +143,8 @@ if($NoDocs) {
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
}
$null = New-Item -ItemType Directory -Force -Path $docsFolder
- Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
+ $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
}
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
@@ -158,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
Write-Host -ForegroundColor Green 'Creating example stubs...'
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
+{
+ Write-Host -ForegroundColor Green 'Creating ux metadata...'
+ . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
+}
+
Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/src/Communication/Communication.Autorest/check-dependencies.ps1 b/src/Communication/Communication.Autorest/check-dependencies.ps1
index b02ae9135957..c29591c7bfe1 100644
--- a/src/Communication/Communication.Autorest/check-dependencies.ps1
+++ b/src/Communication/Communication.Autorest/check-dependencies.ps1
@@ -25,7 +25,7 @@ if(-not $Isolated) {
function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
if($predicate) {
$module = Get-Module -ListAvailable -Name $moduleName
- if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
$null = New-Item -ItemType Directory -Force -Path $path
Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
if ($requiredVersion) {
@@ -47,7 +47,7 @@ if(Test-Path -Path $localModulesPath) {
$env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
}
-DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3'
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
$tools = Join-Path $PSScriptRoot 'tools'
diff --git a/src/Communication/Communication.Autorest/create-model-cmdlets.ps1 b/src/Communication/Communication.Autorest/create-model-cmdlets.ps1
index 54c040fded1e..6ae88b906073 100644
--- a/src/Communication/Communication.Autorest/create-model-cmdlets.ps1
+++ b/src/Communication/Communication.Autorest/create-model-cmdlets.ps1
@@ -23,9 +23,13 @@ function CreateModelCmdlet {
}
$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
- $ModuleName = 'Az.Communication'.Split(".")[1]
$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
$null = New-Item -ItemType Directory -Force -Path $OutputDir
+ if (''.length -gt 0) {
+ $ModuleName = ''
+ } else {
+ $ModuleName = 'Az.Communication'
+ }
$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
$Content = ''
@@ -64,10 +68,10 @@ function CreateModelCmdlet {
$ObjectType = $Model
$ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
# remove duplicated module name
- if ($ObjectType.StartsWith($ModuleName)) {
+ if ($ObjectType.StartsWith('Communication')) {
$ModulePrefix = ''
} else {
- $ModulePrefix = $ModuleName
+ $ModulePrefix = 'Communication'
}
$OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
@@ -115,7 +119,9 @@ function CreateModelCmdlet {
# check whether completer is needed
$completer = '';
if($Type.Split('.').Split('.')[-2] -eq 'Support') {
- $completer += "`n [ArgumentCompleter([${Type}])]"
+ # If Type is an array, need to strip []
+ $strippedType = $Type.Replace('[]', '')
+ $completer += "`n [ArgumentCompleter([${strippedType}])]"
}
$ParameterDefineScript = "
[Parameter($ParameterDefineProperty)]${completer}
@@ -156,7 +162,7 @@ Create an in-memory object for ${ObjectType}.
.Outputs
${ObjectTypeWithNamespace}
.Link
-https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
+https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
#>
function New-Az${ModulePrefix}${ObjectType}Object {
[OutputType('${ObjectTypeWithNamespace}')]
diff --git a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md
index b48f3cfc1729..b75e8d5d82b2 100644
--- a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md
+++ b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md
@@ -2,7 +2,9 @@
```powershell
Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8
+```
+```output
Location Name Type AzureAsyncOperation
-------- ---- ---- -------------------
global ContosoResource1 Microsoft.Communication/communicationServices
@@ -17,7 +19,9 @@ Returns a list of all ACS resources under that subscription.
```powershell
Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
+```
+```output
Location Name Type AzureAsyncOperation
-------- ---- ---- -------------------
Global ContosoAcsResource1 Microsoft.Communication/communicationServices
diff --git a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md
index 331aaffc1091..92c67b7f57d4 100644
--- a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md
+++ b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md
@@ -2,7 +2,9 @@
```powershell
Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
+```
+```output
PrimaryConnectionString PrimaryKey SecondaryConnectionString SecondaryKey
----------------------- ---------- ----------------------- ----------
endpoint= endpoint=
diff --git a/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md b/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md
index a45db225b500..63299c4948f7 100644
--- a/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md
+++ b/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md
@@ -2,7 +2,9 @@
```powershell
New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
+```
+```output
Location Name Type AzureAsyncOperation
-------- ---- ---- -------------------
Global ContosoAcsResource1 Microsoft.Communication/communicationServices
diff --git a/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md b/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md
index a188c1bc953f..ba0c05d0f2de 100644
--- a/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md
+++ b/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md
@@ -1,8 +1,10 @@
### Example 1: Regenerates the Primary key using a IRegenerateKeyParameters hashtable
```powershell
-PS > New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Parameter @{KeyType="Primary"}
+New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Parameter @{KeyType="Primary"}
+```
+```output
PrimaryConnectionString PrimaryKey
----------------------- ----------
endpoint=
@@ -14,7 +16,9 @@ Invalidates the previous Primary key, regenerate a new one and return it.
```powershell
New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary
+```
+```output
SecondaryConnectionString SecondaryKey
----------------------- ----------
endpoint=
diff --git a/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md b/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md
index 454156ebdda4..e1ec8737eb61 100644
--- a/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md
+++ b/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md
@@ -1,7 +1,9 @@
### Example 1: Checks if already in use resource name ContosoAcsResource1 is available
```powershell
Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1
+```
+```output
Message NameAvailable Reason
------- ------------- ------
Requested name is unavailable for the requested type False AlreadyExists
@@ -12,7 +14,9 @@ Verified that the CommunicationService name is valid and is not already in use.
### Example 2: Checks if new resource name ContosoAcsResource2 is available
```powershell
Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2
+```
+```output
Message NameAvailable Reason
------- ------------- ------
Requested name is available for the requested type True NameAvailable
diff --git a/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md b/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md
index 8914cf0392cf..2062a300f4df 100644
--- a/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md
+++ b/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md
@@ -2,7 +2,9 @@
```powershell
Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
+```
+```output
Location Name Type AzureAsyncOperation
-------- ---- ---- -------------------
Global ContosoAcsResource1 Microsoft.Communication/communicationServices
diff --git a/src/Communication/Communication.Autorest/exports/Get-AzCommunicationService.ps1 b/src/Communication/Communication.Autorest/exports/Get-AzCommunicationService.ps1
index ece9fe69aec2..a9e2593f5be1 100644
--- a/src/Communication/Communication.Autorest/exports/Get-AzCommunicationService.ps1
+++ b/src/Communication/Communication.Autorest/exports/Get-AzCommunicationService.ps1
@@ -20,20 +20,9 @@ Get the CommunicationService and its properties.
.Description
Get the CommunicationService and its properties.
.Example
-PS C:\> Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-global ContosoResource1 Microsoft.Communication/communicationServices
-global ContosoResource4 Microsoft.Communication/communicationServices
-global ContosoResource3 Microsoft.Communication/communicationServices
-global ContosoResource5 Microsoft.Communication/communicationServices
+Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8
.Example
-PS C:\> Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -92,7 +81,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -142,6 +132,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Communication.private\Get-AzCommunicationService_Get';
GetViaIdentity = 'Az.Communication.private\Get-AzCommunicationService_GetViaIdentity';
@@ -153,11 +161,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -166,15 +179,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.ps1 b/src/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.ps1
index a5aa5f27d6af..b6d29c393daf 100644
--- a/src/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.ps1
+++ b/src/Communication/Communication.Autorest/exports/Get-AzCommunicationServiceKey.ps1
@@ -20,11 +20,7 @@ Get the access keys of the CommunicationService resource.
.Description
Get the access keys of the CommunicationService resource.
.Example
-PS C:\> Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
-
-PrimaryConnectionString PrimaryKey SecondaryConnectionString SecondaryKey
------------------------ ---------- ----------------------- ----------
-endpoint= endpoint=
+Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
@@ -60,7 +56,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -110,6 +107,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
List = 'Az.Communication.private\Get-AzCommunicationServiceKey_List';
}
@@ -118,11 +133,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -131,15 +151,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1 b/src/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1
index 466b13f115a3..f256f7d47909 100644
--- a/src/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1
+++ b/src/Communication/Communication.Autorest/exports/New-AzCommunicationService.ps1
@@ -20,11 +20,7 @@ Create a new CommunicationService or update an existing CommunicationService.
.Description
Create a new CommunicationService or update an existing CommunicationService.
.Example
-PS C:\> New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
@@ -80,7 +76,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -142,6 +139,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
CreateExpanded = 'Az.Communication.private\New-AzCommunicationService_CreateExpanded';
}
@@ -150,11 +165,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -163,15 +183,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.ps1 b/src/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.ps1
index 80a3080b0442..d3c457b69ddb 100644
--- a/src/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.ps1
+++ b/src/Communication/Communication.Autorest/exports/New-AzCommunicationServiceKey.ps1
@@ -22,17 +22,9 @@ PrimaryKey and SecondaryKey cannot be regenerated at the same time.
Regenerate CommunicationService access key.
PrimaryKey and SecondaryKey cannot be regenerated at the same time.
.Example
-PS > New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Parameter @{KeyType="Primary"}
-
-PrimaryConnectionString PrimaryKey
------------------------ ----------
-endpoint=
+New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Parameter @{KeyType="Primary"}
.Example
-PS C:\> New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary
-
-SecondaryConnectionString SecondaryKey
------------------------ ----------
-endpoint=
+New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters
@@ -113,7 +105,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -163,6 +156,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Regenerate = 'Az.Communication.private\New-AzCommunicationServiceKey_Regenerate';
RegenerateExpanded = 'Az.Communication.private\New-AzCommunicationServiceKey_RegenerateExpanded';
@@ -174,11 +185,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -187,15 +203,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Communication/Communication.Autorest/exports/ProxyCmdletDefinitions.ps1
index ca6e0cc5bd88..895a36c1663a 100644
--- a/src/Communication/Communication.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/Communication/Communication.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -20,11 +20,7 @@ Get the access keys of the CommunicationService resource.
.Description
Get the access keys of the CommunicationService resource.
.Example
-PS C:\> Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
-
-PrimaryConnectionString PrimaryKey SecondaryConnectionString SecondaryKey
------------------------ ---------- ----------------------- ----------
-endpoint= endpoint=
+Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
@@ -60,7 +56,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -110,6 +107,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
List = 'Az.Communication.private\Get-AzCommunicationServiceKey_List';
}
@@ -118,11 +133,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -131,17 +151,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -150,20 +187,9 @@ Get the CommunicationService and its properties.
.Description
Get the CommunicationService and its properties.
.Example
-PS C:\> Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-global ContosoResource1 Microsoft.Communication/communicationServices
-global ContosoResource4 Microsoft.Communication/communicationServices
-global ContosoResource3 Microsoft.Communication/communicationServices
-global ContosoResource5 Microsoft.Communication/communicationServices
+Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8
.Example
-PS C:\> Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -222,7 +248,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -272,6 +299,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Communication.private\Get-AzCommunicationService_Get';
GetViaIdentity = 'Az.Communication.private\Get-AzCommunicationService_GetViaIdentity';
@@ -283,11 +328,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -296,17 +346,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -317,17 +384,9 @@ PrimaryKey and SecondaryKey cannot be regenerated at the same time.
Regenerate CommunicationService access key.
PrimaryKey and SecondaryKey cannot be regenerated at the same time.
.Example
-PS > New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Parameter @{KeyType="Primary"}
-
-PrimaryConnectionString PrimaryKey
------------------------ ----------
-endpoint=
+New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Parameter @{KeyType="Primary"}
.Example
-PS C:\> New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary
-
-SecondaryConnectionString SecondaryKey
------------------------ ----------
-endpoint=
+New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters
@@ -408,7 +467,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -458,6 +518,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Regenerate = 'Az.Communication.private\New-AzCommunicationServiceKey_Regenerate';
RegenerateExpanded = 'Az.Communication.private\New-AzCommunicationServiceKey_RegenerateExpanded';
@@ -469,11 +547,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -482,17 +565,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -501,11 +601,7 @@ Create a new CommunicationService or update an existing CommunicationService.
.Description
Create a new CommunicationService or update an existing CommunicationService.
.Example
-PS C:\> New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
@@ -561,7 +657,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -623,6 +720,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
CreateExpanded = 'Az.Communication.private\New-AzCommunicationService_CreateExpanded';
}
@@ -631,11 +746,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -644,17 +764,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -663,7 +800,7 @@ Operation to delete a CommunicationService.
.Description
Operation to delete a CommunicationService.
.Example
-PS C:\> Remove-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
+Remove-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -719,7 +856,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -787,6 +925,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Communication.private\Remove-AzCommunicationService_Delete';
DeleteViaIdentity = 'Az.Communication.private\Remove-AzCommunicationService_DeleteViaIdentity';
@@ -796,11 +952,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -809,17 +970,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -828,7 +1006,7 @@ Links an Azure Notification Hub to this communication service.
.Description
Links an Azure Notification Hub to this communication service.
.Example
-PS C:\> Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "" -NotificationHubResourceId ""
+Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "" -NotificationHubResourceId ""
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters
@@ -893,7 +1071,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -943,6 +1122,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Link = 'Az.Communication.private\Set-AzCommunicationServiceNotificationHub_Link';
LinkExpanded = 'Az.Communication.private\Set-AzCommunicationServiceNotificationHub_LinkExpanded';
@@ -952,11 +1149,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -965,17 +1167,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -984,17 +1203,9 @@ Checks that the CommunicationService name is valid and is not already in use.
.Description
Checks that the CommunicationService name is valid and is not already in use.
.Example
-PS C:\> Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1
-
-Message NameAvailable Reason
-------- ------------- ------
-Requested name is unavailable for the requested type False AlreadyExists
+Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1
.Example
-PS C:\> Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2
-
-Message NameAvailable Reason
-------- ------------- ------
-Requested name is available for the requested type True NameAvailable
+Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailability
@@ -1024,7 +1235,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -1074,6 +1286,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
CheckExpanded = 'Az.Communication.private\Test-AzCommunicationServiceNameAvailability_CheckExpanded';
}
@@ -1085,11 +1315,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -1098,17 +1333,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -1117,11 +1369,7 @@ Operation to update an existing CommunicationService.
.Description
Operation to update an existing CommunicationService.
.Example
-PS C:\> Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -1196,7 +1444,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -1246,6 +1495,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Communication.private\Update-AzCommunicationService_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Communication.private\Update-AzCommunicationService_UpdateViaIdentityExpanded';
@@ -1255,11 +1522,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -1268,15 +1540,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.ps1 b/src/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.ps1
index fede7a94f676..5e015cc4be48 100644
--- a/src/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.ps1
+++ b/src/Communication/Communication.Autorest/exports/Remove-AzCommunicationService.ps1
@@ -20,7 +20,7 @@ Operation to delete a CommunicationService.
.Description
Operation to delete a CommunicationService.
.Example
-PS C:\> Remove-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
+Remove-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -76,7 +76,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -144,6 +145,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Communication.private\Remove-AzCommunicationService_Delete';
DeleteViaIdentity = 'Az.Communication.private\Remove-AzCommunicationService_DeleteViaIdentity';
@@ -153,11 +172,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -166,15 +190,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.ps1 b/src/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.ps1
index 1bb10dec4421..79befc990a78 100644
--- a/src/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.ps1
+++ b/src/Communication/Communication.Autorest/exports/Set-AzCommunicationServiceNotificationHub.ps1
@@ -20,7 +20,7 @@ Links an Azure Notification Hub to this communication service.
.Description
Links an Azure Notification Hub to this communication service.
.Example
-PS C:\> Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "" -NotificationHubResourceId ""
+Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "" -NotificationHubResourceId ""
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters
@@ -85,7 +85,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -135,6 +136,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Link = 'Az.Communication.private\Set-AzCommunicationServiceNotificationHub_Link';
LinkExpanded = 'Az.Communication.private\Set-AzCommunicationServiceNotificationHub_LinkExpanded';
@@ -144,11 +163,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -157,15 +181,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.ps1 b/src/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.ps1
index 85773ad1134b..0a8f710088b2 100644
--- a/src/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.ps1
+++ b/src/Communication/Communication.Autorest/exports/Test-AzCommunicationServiceNameAvailability.ps1
@@ -20,17 +20,9 @@ Checks that the CommunicationService name is valid and is not already in use.
.Description
Checks that the CommunicationService name is valid and is not already in use.
.Example
-PS C:\> Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1
-
-Message NameAvailable Reason
-------- ------------- ------
-Requested name is unavailable for the requested type False AlreadyExists
+Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1
.Example
-PS C:\> Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2
-
-Message NameAvailable Reason
-------- ------------- ------
-Requested name is available for the requested type True NameAvailable
+Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailability
@@ -60,7 +52,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -110,6 +103,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
CheckExpanded = 'Az.Communication.private\Test-AzCommunicationServiceNameAvailability_CheckExpanded';
}
@@ -121,11 +132,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -134,15 +150,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1 b/src/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1
index d110a1caa725..10a23a15ec61 100644
--- a/src/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1
+++ b/src/Communication/Communication.Autorest/exports/Update-AzCommunicationService.ps1
@@ -20,11 +20,7 @@ Operation to update an existing CommunicationService.
.Description
Operation to update an existing CommunicationService.
.Example
-PS C:\> Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
-
-Location Name Type AzureAsyncOperation
--------- ---- ---- -------------------
-Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -99,7 +95,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -149,6 +146,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Communication.private\Update-AzCommunicationService_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Communication.private\Update-AzCommunicationService_UpdateViaIdentityExpanded';
@@ -158,11 +173,16 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -171,15 +191,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/generate-help.ps1 b/src/Communication/Communication.Autorest/generate-help.ps1
index dded10f9cc73..fd854232c52c 100644
--- a/src/Communication/Communication.Autorest/generate-help.ps1
+++ b/src/Communication/Communication.Autorest/generate-help.ps1
@@ -66,8 +66,8 @@ foreach($directory in $directories)
$docsPath = Join-Path $docsFolder $directory.Name
$null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue
$examplesPath = Join-Path $examplesFolder $directory.Name
-
- Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath
+ $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
+ Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath -AddComplexInterfaceInfo:$addComplexInterfaceInfo
Write-Host -ForegroundColor Green "Created documentation in '$docsPath'"
}
diff --git a/src/Communication/Communication.Autorest/generate-portal-ux.ps1 b/src/Communication/Communication.Autorest/generate-portal-ux.ps1
new file mode 100644
index 000000000000..259acdb3677e
--- /dev/null
+++ b/src/Communication/Communication.Autorest/generate-portal-ux.ps1
@@ -0,0 +1,375 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+#
+# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal.
+# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated)
+$ErrorActionPreference = 'Stop'
+
+$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+$moduleName = 'Az.Communication'
+$rootModuleName = ''
+if ($rootModuleName -eq "")
+{
+ $rootModuleName = $moduleName
+}
+$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot "./$moduleName.psd1")
+$modulePath = $modulePsd1.FullName
+
+# Load DLL to use build-time cmdlets
+Import-Module -Name $modulePath
+Import-Module -Name (Join-Path $PSScriptRoot "./bin/$moduleName.private.dll")
+$instance = [Microsoft.Azure.PowerShell.Cmdlets.Communication.Module]::Instance
+# Module info is shared per profile
+$moduleInfo = Get-Module -Name $moduleName
+$parameterSetsInfo = Get-Module -Name "$moduleName.private"
+
+$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet")
+
+function Test-FunctionSupported()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [string]
+ $FunctionName
+ )
+
+ If ($buildinfunctions.Contains($FunctionName)) {
+ return $false
+ }
+
+ $cmdletName, $parameterSetName = $FunctionName.Split("_")
+ If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) {
+ return $false
+ }
+ If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) {
+ return $false
+ }
+
+ $parameterSetInfo = $parameterSetsInfo.ExportedCmdlets[$FunctionName]
+ foreach ($parameterInfo in $parameterSetInfo.Parameters.Values)
+ {
+ $category = (Get-ParameterAttribute -ParameterInfo $parameterInfo -AttributeName "CategoryAttribute").Categories
+ $invalideCategory = @('Query', 'Body')
+ if ($invalideCategory -contains $category)
+ {
+ return $false
+ }
+ }
+
+ $customFiles = Get-ChildItem -Path custom -Filter "$cmdletName.*"
+ if ($customFiles.Length -ne 0)
+ {
+ return $false
+ }
+
+ return $true
+}
+
+function Get-MappedCmdletFromFunctionName()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [string]
+ $FunctionName
+ )
+
+ $cmdletName, $parameterSetName = $FunctionName.Split("_")
+
+ return $cmdletName
+}
+
+function Get-ParameterAttribute()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.ParameterMetadata]
+ $ParameterInfo,
+ [Parameter()]
+ [String]
+ $AttributeName
+ )
+ return $ParameterInfo.Attributes | Where-Object { $_.TypeId.Name -eq $AttributeName }
+}
+
+function Get-CmdletAttribute()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $CmdletInfo,
+ [Parameter()]
+ [String]
+ $AttributeName
+ )
+
+ return $CmdletInfo.ImplementingType.GetTypeInfo().GetCustomAttributes([System.object], $true) | Where-Object { $_.TypeId.Name -eq $AttributeName }
+}
+
+function Get-CmdletDescription()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [String]
+ $CmdletName
+ )
+ $helpInfo = Get-Help $CmdletName -Full
+
+ $description = $helpInfo.Description.Text
+ if ($null -eq $description)
+ {
+ return ""
+ }
+ return $description
+}
+
+# Test whether the parameter is from swagger http path
+function Test-ParameterFromSwagger()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.ParameterMetadata]
+ $ParameterInfo
+ )
+ $category = (Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "CategoryAttribute").Categories
+ $doNotExport = Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "DoNotExportAttribute"
+ if ($null -ne $doNotExport)
+ {
+ return $false
+ }
+
+ $valideCategory = @('Path')
+ if ($valideCategory -contains $category)
+ {
+ return $true
+ }
+ return $false
+}
+
+function New-ExampleForParameterSet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $ParameterSetInfo
+ )
+ $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ }
+ $result = @()
+ foreach ($parameter in $parameters)
+ {
+ $category = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "CategoryAttribute").Categories
+ $sourceName = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "InfoAttribute").SerializedName
+ $name = $parameter.Name
+ $result += [ordered]@{
+ name = "-$Name"
+ value = "[$category.$sourceName]"
+ }
+ }
+
+ return $result
+}
+
+function New-ParameterArrayInParameterSet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $ParameterSetInfo
+ )
+ $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ }
+ $result = @()
+ foreach ($parameter in $parameters)
+ {
+ $isMandatory = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "ParameterAttribute").Mandatory
+ $parameterName = $parameter.Name
+ $parameterType = $parameter.ParameterType.ToString().Split('.')[1]
+ if ($parameter.SwitchParameter)
+ {
+ $parameterSignature = "-$parameterName"
+ }
+ else
+ {
+ $parameterSignature = "-$parameterName <$parameterType>"
+ }
+ if ($parameterName -eq "SubscriptionId")
+ {
+ $isMandatory = $false
+ }
+ if (-not $isMandatory)
+ {
+ $parameterSignature = "[$parameterSignature]"
+ }
+ $result += $parameterSignature
+ }
+
+ return $result
+}
+
+function New-MetadataForParameterSet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $ParameterSetInfo
+ )
+ $httpAttribute = Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "HttpPathAttribute"
+ $httpPath = $httpAttribute.Path
+ $apiVersion = $httpAttribute.ApiVersion
+ $provider = [System.Text.RegularExpressions.Regex]::New("/providers/([\w+\.]+)/").Match($httpPath).Groups[1].Value
+ $resourcePath = "/" + $httpPath.Split("$provider/")[1]
+ $resourceType = [System.Text.RegularExpressions.Regex]::New("/([\w]+)/\{\w+\}").Matches($resourcePath) | ForEach-Object {$_.groups[1].Value} | Join-String -Separator "/"
+ $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
+ $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
+ [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
+ [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
+
+ return @{
+ Path = $httpPath
+ Provider = $provider
+ ResourceType = $resourceType
+ ApiVersion = $apiVersion
+ CmdletName = $cmdletName
+ Description = $description
+ Example = $example
+ Signature = @{
+ parameters = $signature
+ }
+ }
+}
+
+function Merge-WithExistCmdletMetadata()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Collections.Specialized.OrderedDictionary]
+ $ExistedCmdletInfo,
+ [Parameter()]
+ [Hashtable]
+ $ParameterSetMetadata
+ )
+ $ExistedCmdletInfo.help.parameterSets += $ParameterSetMetadata.Signature
+ $ExistedCmdletInfo.examples += [ordered]@{
+ description = $ParameterSetMetadata.Description
+ parameters = $ParameterSetMetadata.Example
+ }
+
+ return $ExistedCmdletInfo
+}
+
+function New-MetadataForCmdlet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [Hashtable]
+ $ParameterSetMetadata
+ )
+ $cmdletName = $ParameterSetMetadata.CmdletName
+ $description = Get-CmdletDescription $cmdletName
+ $result = [ordered]@{
+ name = $cmdletName
+ description = $description
+ path = $ParameterSetMetadata.Path
+ help = [ordered]@{
+ learnMore = [ordered]@{
+ url = "https://learn.microsoft.com/powershell/module/$rootModuleName/$cmdletName".ToLower()
+ }
+ parameterSets = @()
+ }
+ examples = @()
+ }
+ $result = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $result -ParameterSetMetadata $ParameterSetMetadata
+ return $result
+}
+
+$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-functionSupported($_) }
+$resourceTypes = @{}
+foreach ($parameterSetName in $parameterSets)
+{
+ $cmdletInfo = $parameterSetsInfo.ExportedCommands[$parameterSetName]
+ $parameterSetMetadata = New-MetadataForParameterSet -ParameterSetInfo $cmdletInfo
+ $cmdletName = $parameterSetMetadata.CmdletName
+ if (-not ($moduleInfo.ExportedCommands.ContainsKey($cmdletName)))
+ {
+ continue
+ }
+ if ($resourceTypes.ContainsKey($parameterSetMetadata.ResourceType))
+ {
+ $ExistedCmdletInfo = $resourceTypes[$parameterSetMetadata.ResourceType].commands | Where-Object { $_.name -eq $cmdletName }
+ if ($ExistedCmdletInfo)
+ {
+ $ExistedCmdletInfo = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $ExistedCmdletInfo -ParameterSetMetadata $parameterSetMetadata
+ }
+ else
+ {
+ $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata
+ $resourceTypes[$parameterSetMetadata.ResourceType].commands += $cmdletInfo
+ }
+ }
+ else
+ {
+ $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata
+ $resourceTypes[$parameterSetMetadata.ResourceType] = [ordered]@{
+ resourceType = $parameterSetMetadata.ResourceType
+ apiVersion = $parameterSetMetadata.ApiVersion
+ learnMore = @{
+ url = "https://learn.microsoft.com/powershell/module/$rootModuleName".ToLower()
+ }
+ commands = @($cmdletInfo)
+ provider = $parameterSetMetadata.Provider
+ }
+ }
+}
+
+$UXFolder = 'UX'
+if (Test-Path $UXFolder)
+{
+ Remove-Item -Path $UXFolder -Recurse
+}
+$null = New-Item -ItemType Directory -Path $UXFolder
+
+foreach ($resourceType in $resourceTypes.Keys)
+{
+ $resourceTypeFileName = $resourceType -replace "/", "-"
+ if ($resourceTypeFileName -eq "")
+ {
+ continue
+ }
+ $resourceTypeInfo = $resourceTypes[$resourceType]
+ $provider = $resourceTypeInfo.provider
+ $providerFolder = "$UXFolder/$provider"
+ if (-not (Test-Path $providerFolder))
+ {
+ $null = New-Item -ItemType Directory -Path $providerFolder
+ }
+ $resourceTypeInfo.Remove("provider")
+ $resourceTypeInfo | ConvertTo-Json -Depth 10 | Out-File "$providerFolder/$resourceTypeFileName.json"
+}
\ No newline at end of file
diff --git a/src/Communication/Communication.Autorest/generated/Module.cs b/src/Communication/Communication.Autorest/generated/Module.cs
index 6e23abf45fea..b94478deaed1 100644
--- a/src/Communication/Communication.Autorest/generated/Module.cs
+++ b/src/Communication/Communication.Autorest/generated/Module.cs
@@ -11,6 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication
using GetParameterDelegate = global::System.Func;
using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
using ArgumentCompleterDelegate = global::System.Func;
+ using GetTelemetryIdDelegate = global::System.Func;
+ using TelemetryDelegate = global::System.Action;
using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>;
using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>;
@@ -30,6 +32,8 @@ public partial class Module
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.HttpPipeline _pipelineWithProxy;
+ public bool _useProxy = false;
+
public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy();
/// Gets completion data for azure specific fields
@@ -44,6 +48,9 @@ public partial class Module
/// The delegate to call to get parameter data from a common module.
public GetParameterDelegate GetParameterValue { get; set; }
+ /// The delegate to get the telemetry Id.
+ public GetTelemetryIdDelegate GetTelemetryId { get; set; }
+
/// Backing field for property.
private static Microsoft.Azure.PowerShell.Cmdlets.Communication.Module _instance;
@@ -65,6 +72,9 @@ public partial class Module
/// The ResourceID for this module (azure arm).
public string ResourceId => @"Az.Communication";
+ /// The delegate for creating a telemetry.
+ public TelemetryDelegate Telemetry { get; set; }
+
/// The from the cmdlet
/// The HttpPipeline for the request
@@ -88,7 +98,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.HttpPipeline Cre
{
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.HttpPipeline pipeline = null;
BeforeCreatePipeline(invocationInfo, ref pipeline);
- pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone();
+ pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone();
AfterCreatePipeline(invocationInfo, ref pipeline);
pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync);
OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } );
@@ -115,7 +125,7 @@ public void Init()
/// Creates the module instance.
private Module()
{
- /// constructor
+ // constructor
ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication();
_handler.Proxy = _webProxy;
_pipeline = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient()));
@@ -127,12 +137,24 @@ private Module()
/// True if the proxy should use default credentials
public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials)
{
+ _useProxy = proxy != null;
+ if (proxy == null)
+ {
+ return;
+ }
// set the proxy configuration
_webProxy.Address = proxy;
_webProxy.BypassProxyOnLocal = false;
- _webProxy.Credentials = proxyCredential ?.GetNetworkCredential();
- _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials;
- _handler.UseProxy = proxy != null;
+ if (proxyUseDefaultCredentials)
+ {
+ _webProxy.Credentials = null;
+ _webProxy.UseDefaultCredentials = true;
+ }
+ else
+ {
+ _webProxy.UseDefaultCredentials = false;
+ _webProxy.Credentials = proxyCredential ?.GetNetworkCredential();
+ }
}
/// Called to dispatch events to the common module listener
diff --git a/src/Communication/Communication.Autorest/generated/api/Communication.cs b/src/Communication/Communication.Autorest/generated/api/Communication.cs
index 6a48d491ba90..7074e3280904 100644
--- a/src/Communication/Communication.Autorest/generated/api/Communication.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Communication.cs
@@ -402,6 +402,7 @@ public partial class Communication
// make the final call
_response = await sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
break;
}
var _contentType = _response.Content.Headers.ContentType?.MediaType;
@@ -411,7 +412,7 @@ public partial class Communication
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -676,6 +677,7 @@ public partial class Communication
// make the final call
_response = await sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
break;
}
var _contentType = _response.Content.Headers.ContentType?.MediaType;
@@ -863,7 +865,7 @@ public partial class Communication
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -1919,7 +1921,7 @@ public partial class Communication
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Any.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Any.PowerShell.cs
index 4eb4d1f801be..cabed49e1580 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Any.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Any.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class Any
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class Any
///
/// 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.
+ /// 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.
@@ -116,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IAny Deser
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Any.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Any.TypeConverter.cs
index 567485b6c4e5..c368d80ed38d 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Any.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Any.TypeConverter.cs
@@ -14,20 +14,19 @@ public partial class AnyTypeConverter : global::System.Management.Automation.PST
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Any.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Any.json.cs
index 8fc110fbe4e4..f8e164a49118 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Any.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Any.json.cs
@@ -20,7 +20,7 @@ public partial class Any
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class Any
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class Any
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs
index fd087d3498c2..4bfc46bbed21 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class ErrorAdditionalInfo
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class ErrorAdditionalInfo
///
/// 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.
+ /// 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.
@@ -132,7 +134,7 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs
index 3b6fa2fc9cf8..c03a37762966 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class ErrorAdditionalInfoTypeConverter : global::System.Managemen
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs
index 5f36fb2afcc9..bf5557bc40c0 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs
@@ -20,7 +20,7 @@ public partial class ErrorAdditionalInfo
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class ErrorAdditionalInfo
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class ErrorAdditionalInfo
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs
index ff98651e7273..367568560973 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class ErrorDetail
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class ErrorDetail
///
/// 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.
+ /// 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.
@@ -156,7 +158,7 @@ internal ErrorDetail(global::System.Management.Automation.PSObject 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs
index cc9050ac9c21..4ca8ac2c27d5 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class ErrorDetailTypeConverter : global::System.Management.Automa
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs
index d3d44973c472..e4187f819b07 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs
@@ -20,7 +20,7 @@ public partial class ErrorDetail
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class ErrorDetail
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class ErrorDetail
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs
index c65930e39856..fd2f2f87851d 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs
@@ -34,7 +34,8 @@ public partial class ErrorResponse
///
/// 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.
+ /// 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.
@@ -46,7 +47,8 @@ public partial class ErrorResponse
///
/// 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.
+ /// 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.
@@ -167,7 +169,7 @@ internal ErrorResponse(global::System.Management.Automation.PSObject 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs
index dd72b5677311..7be931722aad 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class ErrorResponseTypeConverter : global::System.Management.Auto
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs
index c2f761ce5be8..64ded8354746 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs
@@ -23,7 +23,7 @@ public partial class ErrorResponse
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -33,7 +33,8 @@ public partial class ErrorResponse
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -45,7 +46,8 @@ public partial class ErrorResponse
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs
index 86f6da844fd8..9768c93f8cf1 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs
@@ -33,7 +33,8 @@ public partial class Operation
///
/// 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.
+ /// 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.
@@ -45,7 +46,8 @@ public partial class Operation
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOpe
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs
index dce27c83e503..da3faac23f2c 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs
@@ -14,20 +14,19 @@ public partial class OperationTypeConverter : global::System.Management.Automati
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.json.cs
index ad250d5490d8..4386fe332e4a 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Operation.json.cs
@@ -22,7 +22,7 @@ public partial class Operation
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -32,7 +32,8 @@ public partial class Operation
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -44,7 +45,8 @@ public partial class Operation
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs
index 034a61a3c171..73e8cf46fc27 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class OperationDisplay
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class OperationDisplay
///
/// 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.
+ /// 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.
@@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOpe
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs
index 79500402cb8d..2764dbf23c6b 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class OperationDisplayTypeConverter : global::System.Management.A
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs
index 09d627b5971d..8feb8b8492e9 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs
@@ -20,7 +20,7 @@ public partial class OperationDisplay
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class OperationDisplay
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class OperationDisplay
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs
index bb5c0190578a..0bee7ea4b71c 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs
@@ -34,7 +34,8 @@ public partial class OperationListResult
///
/// 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.
+ /// 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.
@@ -46,7 +47,8 @@ public partial class OperationListResult
///
/// 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.
+ /// 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.
@@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOpe
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs
index 58122eeab03c..4b07cf4f1ed9 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class OperationListResultTypeConverter : global::System.Managemen
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.json.cs
index 58bb6bafc3e3..9c8776099e3c 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/OperationListResult.json.cs
@@ -23,7 +23,7 @@ public partial class OperationListResult
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -33,7 +33,8 @@ public partial class OperationListResult
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -45,7 +46,8 @@ public partial class OperationListResult
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs
index d5ed651db470..771379f4d0ee 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs
@@ -33,7 +33,8 @@ public partial class Resource
///
/// 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.
+ /// 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.
@@ -45,7 +46,8 @@ public partial class Resource
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IRes
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs
index a88ef8f96e5e..54d81c7ea9b5 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs
@@ -14,20 +14,19 @@ public partial class ResourceTypeConverter : global::System.Management.Automatio
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.json.cs
index 72c173f90dbe..58d91bcd7d53 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/Resource.json.cs
@@ -22,7 +22,7 @@ public partial class Resource
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -32,7 +32,8 @@ public partial class Resource
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -44,7 +45,8 @@ public partial class Resource
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs
index e49a4711a78e..16648f579422 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class SystemData
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class SystemData
///
/// 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.
+ /// 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.
@@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.ISys
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs
index d91acc758484..e0bf930ead92 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs
@@ -14,20 +14,19 @@ public partial class SystemDataTypeConverter : global::System.Management.Automat
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.json.cs
index de28036a57a6..10cb543032ea 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20/SystemData.json.cs
@@ -20,7 +20,7 @@ public partial class SystemData
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class SystemData
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class SystemData
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.PowerShell.cs
index e9c39c1837ec..755f848d1cb2 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class CommunicationServiceKeys
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class CommunicationServiceKeys
///
/// 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.
+ /// 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.
@@ -150,7 +152,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.TypeConverter.cs
index b22c1966968d..2961f0589ede 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class CommunicationServiceKeysTypeConverter : global::System.Mana
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.json.cs
index 0efd2bf29f9e..c479c4e6e2cf 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceKeys.json.cs
@@ -20,7 +20,7 @@ public partial class CommunicationServiceKeys
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class CommunicationServiceKeys
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class CommunicationServiceKeys
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.PowerShell.cs
index a574f98a0b94..4c6141b4033b 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class CommunicationServiceProperties
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class CommunicationServiceProperties
///
/// 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.
+ /// 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.
@@ -166,7 +168,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.TypeConverter.cs
index 3288aeb4a92e..22f773e77cfb 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class CommunicationServicePropertiesTypeConverter : global::Syste
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,8 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.json.cs
index 7ec0dc4dc80e..08019861e2b9 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceProperties.json.cs
@@ -20,7 +20,7 @@ public partial class CommunicationServiceProperties
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class CommunicationServiceProperties
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class CommunicationServiceProperties
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.PowerShell.cs
index 910cd5884e7f..88254de84c15 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class CommunicationServiceResource
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class CommunicationServiceResource
///
/// 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.
+ /// 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.
@@ -74,10 +76,6 @@ internal CommunicationServiceResource(global::System.Collections.IDictionary con
{
((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.SystemDataTypeConverter.ConvertFrom);
}
- if (content.Contains("AzureAsyncOperation"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).AzureAsyncOperation, global::System.Convert.ToString);
- }
if (content.Contains("Id"))
{
((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString);
@@ -171,10 +169,6 @@ internal CommunicationServiceResource(global::System.Management.Automation.PSObj
{
((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.SystemDataTypeConverter.ConvertFrom);
}
- if (content.Contains("AzureAsyncOperation"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).AzureAsyncOperation, global::System.Convert.ToString);
- }
if (content.Contains("Id"))
{
((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString);
@@ -278,7 +272,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.TypeConverter.cs
index 265c0b3a2902..e1c9b9d1937b 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class CommunicationServiceResourceTypeConverter : global::System.
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.cs
index 685cddf66e88..8332bfa8f2cd 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.cs
@@ -11,8 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820
public partial class CommunicationServiceResource :
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal,
- Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IValidates,
- Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IHeaderSerializable
+ Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IValidates
{
///
/// Backing field for Inherited model
private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResource __taggedResource = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.TaggedResource();
- /// Backing field for property.
- private string _azureAsyncOperation;
-
- [Microsoft.Azure.PowerShell.Cmdlets.Communication.Origin(Microsoft.Azure.PowerShell.Cmdlets.Communication.PropertyOrigin.Owned)]
- public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; }
-
/// The location where the communication service stores its data at rest.
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Origin(Microsoft.Azure.PowerShell.Cmdlets.Communication.PropertyOrigin.Inlined)]
public string DataLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServicePropertiesInternal)Property).DataLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServicePropertiesInternal)Property).DataLocation = value ?? null; }
@@ -164,20 +157,11 @@ public CommunicationServiceResource()
}
- ///
- void Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers)
- {
- if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader0))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader0) is string __headerAzureAsyncOperationHeader0 ? __headerAzureAsyncOperationHeader0 : (string)null;
- }
- }
-
/// Validates that this object meets the validation criteria.
/// an instance that will receive validation
/// events.
///
- /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
+ /// A that will be complete when validation is completed.
///
public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener eventListener)
{
@@ -196,13 +180,6 @@ public partial interface ICommunicationServiceResource :
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILocationResource,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResource
{
- [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"",
- SerializedName = @"Azure-AsyncOperation",
- PossibleTypes = new [] { typeof(string) })]
- string AzureAsyncOperation { get; set; }
/// The location where the communication service stores its data at rest.
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Info(
Required = false,
@@ -309,7 +286,6 @@ internal partial interface ICommunicationServiceResourceInternal :
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILocationResourceInternal,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceInternal
{
- string AzureAsyncOperation { get; set; }
/// The location where the communication service stores its data at rest.
string DataLocation { get; set; }
/// FQDN of the CommunicationService instance.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.json.cs
index 51071158f6be..08a0ee58571f 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResource.json.cs
@@ -20,7 +20,7 @@ public partial class CommunicationServiceResource
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class CommunicationServiceResource
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class CommunicationServiceResource
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.PowerShell.cs
index b9b51a75a881..ba72a8c30109 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.PowerShell.cs
@@ -33,7 +33,8 @@ public partial class CommunicationServiceResourceList
///
/// 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.
+ /// 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.
@@ -45,7 +46,8 @@ public partial class CommunicationServiceResourceList
///
/// 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.
+ /// 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.
@@ -136,7 +138,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.TypeConverter.cs
index 48e5f40dc603..012021dcd4c4 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class CommunicationServiceResourceListTypeConverter : global::Sys
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,8 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.json.cs
index 05fe53cfd01d..48ef7df3f2a9 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/CommunicationServiceResourceList.json.cs
@@ -22,7 +22,7 @@ public partial class CommunicationServiceResourceList
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -32,7 +32,8 @@ public partial class CommunicationServiceResourceList
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -44,7 +45,8 @@ public partial class CommunicationServiceResourceList
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.PowerShell.cs
index 8d11c740f68e..2e573850560c 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class LinkNotificationHubParameters
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class LinkNotificationHubParameters
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.TypeConverter.cs
index 0bd7e96e4f0e..ee504591bd02 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class LinkNotificationHubParametersTypeConverter : global::System
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.json.cs
index dad148011dcf..7e1d6e2e1fb7 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkNotificationHubParameters.json.cs
@@ -20,7 +20,7 @@ public partial class LinkNotificationHubParameters
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class LinkNotificationHubParameters
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class LinkNotificationHubParameters
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.PowerShell.cs
index ebd0843759a4..052689d6f435 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class LinkedNotificationHub
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class LinkedNotificationHub
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkedNotificationHub FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.TypeConverter.cs
index b5a4d768e8cd..d0651a318e9f 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class LinkedNotificationHubTypeConverter : global::System.Managem
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.json.cs
index 9c139eebffa4..5447e97c3634 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LinkedNotificationHub.json.cs
@@ -20,7 +20,7 @@ public partial class LinkedNotificationHub
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class LinkedNotificationHub
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class LinkedNotificationHub
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.PowerShell.cs
index 0bb34b312816..07a3dcb45038 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class LocationResource
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class LocationResource
///
/// 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.
+ /// 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.
@@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILocationResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.TypeConverter.cs
index 1acd20217016..7bc80fc9dcf2 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class LocationResourceTypeConverter : global::System.Management.A
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.json.cs
index b29344863c2d..30fe656d45bc 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/LocationResource.json.cs
@@ -20,7 +20,7 @@ public partial class LocationResource
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class LocationResource
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class LocationResource
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.PowerShell.cs
index 6d059e3f0440..314dcb578784 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.PowerShell.cs
@@ -33,7 +33,8 @@ public partial class NameAvailability
///
/// 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.
+ /// 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.
@@ -45,7 +46,8 @@ public partial class NameAvailability
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.TypeConverter.cs
index ec66e4edc967..713792724014 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class NameAvailabilityTypeConverter : global::System.Management.A
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.json.cs
index b32e9330489f..8843a7af9aa1 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailability.json.cs
@@ -22,7 +22,7 @@ public partial class NameAvailability
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -32,7 +32,8 @@ public partial class NameAvailability
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -44,7 +45,8 @@ public partial class NameAvailability
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.PowerShell.cs
index c418dc28f2ed..f516427379eb 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class NameAvailabilityParameters
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class NameAvailabilityParameters
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailabilityParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.TypeConverter.cs
index 909d5908eb01..db5935d5af6a 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class NameAvailabilityParametersTypeConverter : global::System.Ma
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.json.cs
index 9239f6a1bc50..c17b9a537036 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/NameAvailabilityParameters.json.cs
@@ -20,7 +20,7 @@ public partial class NameAvailabilityParameters
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class NameAvailabilityParameters
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class NameAvailabilityParameters
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.PowerShell.cs
index b42595210f96..8e4d9c3348fe 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class RegenerateKeyParameters
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class RegenerateKeyParameters
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.TypeConverter.cs
index 9f0ec83b4279..a85717f586a2 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class RegenerateKeyParametersTypeConverter : global::System.Manag
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.json.cs
index bc5425dfbd47..7d81af1a9b8f 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/RegenerateKeyParameters.json.cs
@@ -20,7 +20,7 @@ public partial class RegenerateKeyParameters
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class RegenerateKeyParameters
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class RegenerateKeyParameters
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.PowerShell.cs
index a8c5bbd7b7ff..6bac9ffbc1aa 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.PowerShell.cs
@@ -31,7 +31,8 @@ public partial class TaggedResource
///
/// 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.
+ /// 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.
@@ -43,7 +44,8 @@ public partial class TaggedResource
///
/// 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.
+ /// 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.
@@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.TypeConverter.cs
index dd09f56f6ed7..1decb18051e7 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class TaggedResourceTypeConverter : global::System.Management.Aut
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.json.cs
index eb15f558e4d1..5afa5e5acdc6 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResource.json.cs
@@ -20,7 +20,7 @@ public partial class TaggedResource
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -30,7 +30,8 @@ public partial class TaggedResource
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -42,7 +43,8 @@ public partial class TaggedResource
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.PowerShell.cs
index f68caabbaff4..c1db546fbe50 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.PowerShell.cs
@@ -33,7 +33,8 @@ public partial class TaggedResourceTags
///
/// 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.
+ /// 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.
@@ -45,7 +46,8 @@ public partial class TaggedResourceTags
///
/// 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.
+ /// 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.
@@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api2020082
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.TypeConverter.cs
index 3d35d2a32965..dd6ae42f3cca 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class TaggedResourceTagsTypeConverter : global::System.Management
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.json.cs
index f08b193b90e8..12617d4612ff 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/Api20200820/TaggedResourceTags.json.cs
@@ -22,7 +22,7 @@ public partial class TaggedResourceTags
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -32,7 +32,8 @@ public partial class TaggedResourceTags
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -44,7 +45,8 @@ public partial class TaggedResourceTags
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.PowerShell.cs
index 7cd9bcfbf121..79e61e6c1ae9 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.PowerShell.cs
@@ -30,7 +30,8 @@ public partial class CommunicationIdentity
///
/// 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.
+ /// 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.
@@ -42,7 +43,8 @@ public partial class CommunicationIdentity
///
/// 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.
+ /// 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.
@@ -147,7 +149,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunica
/// 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.
+ /// an instance of the model class.
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.TypeConverter.cs
index 551834c7c17f..0e03099c9f6b 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.TypeConverter.cs
@@ -14,20 +14,20 @@ public partial class CommunicationIdentityTypeConverter : global::System.Managem
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -80,19 +80,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -104,8 +105,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.json.cs
index cc8f95469c4c..9ea7ee5ea569 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationIdentity.json.cs
@@ -19,7 +19,7 @@ public partial class CommunicationIdentity
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -29,7 +29,8 @@ public partial class CommunicationIdentity
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -41,7 +42,8 @@ public partial class CommunicationIdentity
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.PowerShell.cs b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.PowerShell.cs
index e12b60c7887f..d5f85f9630b7 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.PowerShell.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.PowerShell.cs
@@ -30,7 +30,8 @@ public partial class CommunicationServiceDeleteAcceptedResponseHeaders
///
/// 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.
+ /// 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.
@@ -42,7 +43,8 @@ public partial class CommunicationServiceDeleteAcceptedResponseHeaders
///
/// 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.
+ /// 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.
@@ -126,7 +128,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunica
/// from a json string.
///
/// a string containing a JSON serialized instance of this model.
- /// an instance of the model class.
+ ///
+ /// an instance of the model class.
+ ///
public static Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceDeleteAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.TypeConverter.cs
index a16ed42249dc..da5f20354f99 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.TypeConverter.cs
@@ -15,20 +15,20 @@ public partial class CommunicationServiceDeleteAcceptedResponseHeadersTypeConver
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the
+ /// type.
///
/// the instance to check if it can be converted to the type.
@@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue)
}
///
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the
+ /// parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false
+ /// true if the converter can convert the parameter to the parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
diff --git a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.json.cs b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.json.cs
index 6518ad48101d..65b2d107d723 100644
--- a/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.json.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Models/CommunicationServiceDeleteAcceptedResponseHeaders.json.cs
@@ -19,7 +19,7 @@ public partial class CommunicationServiceDeleteAcceptedResponseHeaders
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonObject json);
///
- /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior
///
/// The JSON container that the serialization result will be placed in.
@@ -29,7 +29,8 @@ public partial class CommunicationServiceDeleteAcceptedResponseHeaders
///
/// BeforeFromJson will be called before the json 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.
+ /// 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 JsonNode that should be deserialized into this object.
@@ -41,7 +42,8 @@ public partial class CommunicationServiceDeleteAcceptedResponseHeaders
///
/// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the
/// object before it is serialized.
- /// If you wish to disable the default serialization entirely, return true in the output parameter.
+ /// If you wish to disable the default serialization entirely, return true in the output
+ /// parameter.
/// Implement this method in a partial class to enable this behavior.
///
/// The JSON container that the serialization result will be placed in.
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/ActionType.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Support/ActionType.TypeConverter.cs
index b55d41c0c9fc..dd3b9dc259f3 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/ActionType.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/ActionType.TypeConverter.cs
@@ -14,32 +14,32 @@ public partial class ActionTypeTypeConverter :
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true;
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/ActionType.cs b/src/Communication/Communication.Autorest/generated/api/Support/ActionType.cs
index c6ac15973f4c..34bd2e430fea 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/ActionType.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/ActionType.cs
@@ -17,7 +17,7 @@ public partial struct ActionType :
/// the value for an instance of the Enum.
private string _value { get; set; }
- /// Creates an instance of the
+ /// Creates an instance of the Enum class.
/// the value to create an instance for.
private ActionType(string underlyingValue)
{
@@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding != operator for enum ActionType
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are not equal to the same value
public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ActionType e2)
{
@@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding == operator for enum ActionType
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are equal to the same value
public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ActionType e2)
{
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs
index e5d3090a3350..6e35a3df2f9e 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs
@@ -12,32 +12,32 @@ public partial class CreatedByTypeTypeConverter :
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true;
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.cs b/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.cs
index 782048e74d9f..995958deb9fd 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/CreatedByType.cs
@@ -28,7 +28,7 @@ internal static object CreateFrom(object value)
return new CreatedByType(global::System.Convert.ToString(value));
}
- /// Creates an instance of the
+ /// Creates an instance of the Enum class.
/// the value to create an instance for.
private CreatedByType(string underlyingValue)
{
@@ -82,8 +82,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding != operator for enum CreatedByType
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are not equal to the same value
public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.CreatedByType e2)
{
@@ -91,8 +91,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding == operator for enum CreatedByType
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are equal to the same value
public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.CreatedByType e2)
{
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/KeyType.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Support/KeyType.TypeConverter.cs
index f80cdde4eecf..27871aab8e50 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/KeyType.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/KeyType.TypeConverter.cs
@@ -14,32 +14,32 @@ public partial class KeyTypeTypeConverter :
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true;
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/KeyType.cs b/src/Communication/Communication.Autorest/generated/api/Support/KeyType.cs
index 2ffc6643426c..d7d3bdd90ae6 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/KeyType.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/KeyType.cs
@@ -49,7 +49,7 @@ public override int GetHashCode()
return this._value.GetHashCode();
}
- /// Creates an instance of the
+ /// Creates an instance of the Enum class.
/// the value to create an instance for.
private KeyType(string underlyingValue)
{
@@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding != operator for enum KeyType
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are not equal to the same value
public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType e2)
{
@@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding == operator for enum KeyType
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are equal to the same value
public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType e2)
{
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/Origin.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Support/Origin.TypeConverter.cs
index 546dcd782ad8..686c866424ba 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/Origin.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/Origin.TypeConverter.cs
@@ -15,32 +15,32 @@ public partial class OriginTypeConverter :
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true;
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/Origin.cs b/src/Communication/Communication.Autorest/generated/api/Support/Origin.cs
index 91ae6c7385ed..be63f28799ac 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/Origin.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/Origin.cs
@@ -52,7 +52,7 @@ public override int GetHashCode()
return this._value.GetHashCode();
}
- /// Creates an instance of the
+ /// Creates an instance of the Enum class.
/// the value to create an instance for.
private Origin(string underlyingValue)
{
@@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding != operator for enum Origin
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are not equal to the same value
public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.Origin e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.Origin e2)
{
@@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding == operator for enum Origin
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are equal to the same value
public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.Origin e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.Origin e2)
{
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs b/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs
index 73dfe6224257..fb97ecc937e6 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs
@@ -12,32 +12,32 @@ public partial class ProvisioningStateTypeConverter :
{
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true;
///
- /// Determines if the converter can convert the parameter to the
- /// parameter.
+ /// Determines if the converter can convert the parameter to the parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
- /// parameter, otherwise false.
+ /// true if the converter can convert the parameter to the parameter, otherwise false.
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
diff --git a/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.cs b/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.cs
index 350cb979b45f..c501d907b390 100644
--- a/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.cs
+++ b/src/Communication/Communication.Autorest/generated/api/Support/ProvisioningState.cs
@@ -61,7 +61,7 @@ public override int GetHashCode()
return this._value.GetHashCode();
}
- /// Creates an instance of the
+ /// Creates an instance of the Enum class.
/// the value to create an instance for.
private ProvisioningState(string underlyingValue)
{
@@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding != operator for enum ProvisioningState
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are not equal to the same value
public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ProvisioningState e2)
{
@@ -101,8 +101,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Commun
}
/// Overriding == operator for enum ProvisioningState
- /// the value to compare against
- /// the value to compare against
+ /// the value to compare against
+ /// the value to compare against
/// true if the two instances are equal to the same value
public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ProvisioningState e2)
{
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationOperation_List.cs b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationOperation_List.cs
index 3cecabe7f740..4f57140064a1 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationOperation_List.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationOperation_List.cs
@@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperation))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Lists all of the available REST API operations of the Microsoft.Communication provider.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/providers/Microsoft.Communication/operations", ApiVersion = "2020-08-20")]
public partial class GetAzCommunicationOperation_List : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -51,9 +52,10 @@ public partial class GetAzCommunicationOperation_List : global::System.Managemen
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -75,11 +77,11 @@ public partial class GetAzCommunicationOperation_List : global::System.Managemen
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -108,8 +110,8 @@ public partial class GetAzCommunicationOperation_List : global::System.Managemen
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -120,8 +122,8 @@ public partial class GetAzCommunicationOperation_List : global::System.Managemen
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperationListResult
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -132,6 +134,11 @@ public partial class GetAzCommunicationOperation_List : global::System.Managemen
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -143,7 +150,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
///
@@ -251,7 +258,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -294,8 +300,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -334,8 +340,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperationListResult
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationServiceKey_List.cs b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationServiceKey_List.cs
index aca4732de5ae..9badbb3631cb 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationServiceKey_List.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationServiceKey_List.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Get the access keys of the CommunicationService resource.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/listKeys", ApiVersion = "2020-08-20")]
public partial class GetAzCommunicationServiceKey_List : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -56,9 +57,10 @@ public partial class GetAzCommunicationServiceKey_List : global::System.Manageme
public string CommunicationServiceName { get => this._communicationServiceName; set => this._communicationServiceName = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -80,11 +82,11 @@ public partial class GetAzCommunicationServiceKey_List : global::System.Manageme
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -145,8 +147,8 @@ public partial class GetAzCommunicationServiceKey_List : global::System.Manageme
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -157,8 +159,8 @@ public partial class GetAzCommunicationServiceKey_List : global::System.Manageme
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -169,6 +171,11 @@ public partial class GetAzCommunicationServiceKey_List : global::System.Manageme
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -180,7 +187,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
///
@@ -291,7 +298,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -337,8 +343,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -377,8 +383,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_Get.cs b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_Get.cs
index 7e44a5c3d6d1..ae32efbd738e 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_Get.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_Get.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Get the CommunicationService and its properties.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}", ApiVersion = "2020-08-20")]
public partial class GetAzCommunicationService_Get : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -42,9 +43,10 @@ public partial class GetAzCommunicationService_Get : global::System.Management.A
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -66,11 +68,11 @@ public partial class GetAzCommunicationService_Get : global::System.Management.A
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
@@ -146,8 +148,8 @@ public partial class GetAzCommunicationService_Get : global::System.Management.A
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -158,8 +160,8 @@ public partial class GetAzCommunicationService_Get : global::System.Management.A
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -170,6 +172,11 @@ public partial class GetAzCommunicationService_Get : global::System.Management.A
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -181,7 +188,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
///
@@ -289,7 +296,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -335,8 +341,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -375,8 +381,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_GetViaIdentity.cs b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_GetViaIdentity.cs
index 3ae31a549574..83bf867e2141 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_GetViaIdentity.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_GetViaIdentity.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Get the CommunicationService and its properties.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}", ApiVersion = "2020-08-20")]
public partial class GetAzCommunicationService_GetViaIdentity : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -42,9 +43,10 @@ public partial class GetAzCommunicationService_GetViaIdentity : global::System.M
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -74,11 +76,11 @@ public partial class GetAzCommunicationService_GetViaIdentity : global::System.M
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -107,8 +109,8 @@ public partial class GetAzCommunicationService_GetViaIdentity : global::System.M
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -119,8 +121,8 @@ public partial class GetAzCommunicationService_GetViaIdentity : global::System.M
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -131,6 +133,11 @@ public partial class GetAzCommunicationService_GetViaIdentity : global::System.M
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -142,7 +149,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
///
@@ -250,7 +257,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -313,8 +319,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -353,8 +359,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List.cs b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List.cs
index 987dde848a98..b56ec8b97704 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Handles requests to list all resources in a subscription.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Communication/communicationServices", ApiVersion = "2020-08-20")]
public partial class GetAzCommunicationService_List : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -48,9 +49,10 @@ public partial class GetAzCommunicationService_List : global::System.Management.
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -72,11 +74,11 @@ public partial class GetAzCommunicationService_List : global::System.Management.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -123,8 +125,8 @@ public partial class GetAzCommunicationService_List : global::System.Management.
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -135,8 +137,8 @@ public partial class GetAzCommunicationService_List : global::System.Management.
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceList
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -147,6 +149,11 @@ public partial class GetAzCommunicationService_List : global::System.Management.
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -158,7 +165,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
///
@@ -266,7 +273,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -312,8 +318,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -352,8 +358,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceList
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List1.cs b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List1.cs
index 73da50096b3d..6c8ed5934272 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List1.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/GetAzCommunicationService_List1.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Handles requests to list all resources in a resource group.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices", ApiVersion = "2020-08-20")]
public partial class GetAzCommunicationService_List1 : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -48,9 +49,10 @@ public partial class GetAzCommunicationService_List1 : global::System.Management
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -72,11 +74,11 @@ public partial class GetAzCommunicationService_List1 : global::System.Management
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -137,8 +139,8 @@ public partial class GetAzCommunicationService_List1 : global::System.Management
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -149,8 +151,8 @@ public partial class GetAzCommunicationService_List1 : global::System.Management
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceList
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -161,6 +163,11 @@ public partial class GetAzCommunicationService_List1 : global::System.Management
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -172,7 +179,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
///
@@ -280,7 +287,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -326,8 +332,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -366,8 +372,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResourceList
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_Regenerate.cs b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_Regenerate.cs
index 85ab0b73b18d..1b8749b4fb54 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_Regenerate.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_Regenerate.cs
@@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey", ApiVersion = "2020-08-20")]
public partial class NewAzCommunicationServiceKey_Regenerate : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -58,9 +59,10 @@ public partial class NewAzCommunicationServiceKey_Regenerate : global::System.Ma
public string CommunicationServiceName { get => this._communicationServiceName; set => this._communicationServiceName = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -82,11 +84,11 @@ public partial class NewAzCommunicationServiceKey_Regenerate : global::System.Ma
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
@@ -160,8 +162,8 @@ public partial class NewAzCommunicationServiceKey_Regenerate : global::System.Ma
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -172,8 +174,8 @@ public partial class NewAzCommunicationServiceKey_Regenerate : global::System.Ma
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -184,6 +186,11 @@ public partial class NewAzCommunicationServiceKey_Regenerate : global::System.Ma
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -195,7 +202,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -306,7 +313,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -349,8 +355,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -389,8 +395,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateExpanded.cs b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateExpanded.cs
index 161b948a8022..5e381cba871b 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateExpanded.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateExpanded.cs
@@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey", ApiVersion = "2020-08-20")]
public partial class NewAzCommunicationServiceKey_RegenerateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -35,6 +36,9 @@ public partial class NewAzCommunicationServiceKey_RegenerateExpanded : global::S
///
private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource();
+ /// Parameters describes the request to regenerate access keys
+ private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.RegenerateKeyParameters();
+
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -58,9 +62,10 @@ public partial class NewAzCommunicationServiceKey_RegenerateExpanded : global::S
public string CommunicationServiceName { get => this._communicationServiceName; set => this._communicationServiceName = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -93,22 +98,16 @@ public partial class NewAzCommunicationServiceKey_RegenerateExpanded : global::S
SerializedName = @"keyType",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType) })]
[global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType))]
- public Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType KeyType { get => ParametersBody.KeyType ?? ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType)""); set => ParametersBody.KeyType = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType KeyType { get => _parametersBody.KeyType ?? ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType)""); set => _parametersBody.KeyType = value; }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.RegenerateKeyParameters();
-
- /// Parameters describes the request to regenerate access keys
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; }
-
///
/// The instance of the that the remote call will use.
///
@@ -167,8 +166,8 @@ public partial class NewAzCommunicationServiceKey_RegenerateExpanded : global::S
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -179,8 +178,8 @@ public partial class NewAzCommunicationServiceKey_RegenerateExpanded : global::S
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -191,6 +190,11 @@ public partial class NewAzCommunicationServiceKey_RegenerateExpanded : global::S
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -202,7 +206,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -313,7 +317,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -328,12 +331,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.CommunicationServiceRegenerateKey(SubscriptionId, ResourceGroupName, CommunicationServiceName, ParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceRegenerateKey(SubscriptionId, ResourceGroupName, CommunicationServiceName, _parametersBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,CommunicationServiceName=CommunicationServiceName,body=ParametersBody})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,CommunicationServiceName=CommunicationServiceName,body=_parametersBody})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
@@ -356,8 +359,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -379,14 +382,14 @@ protected override void StopProcessing()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
@@ -396,8 +399,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentity.cs b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentity.cs
index 8519f5d5b72f..af6df64a2b05 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentity.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentity.cs
@@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey", ApiVersion = "2020-08-20")]
public partial class NewAzCommunicationServiceKey_RegenerateViaIdentity : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -44,9 +45,10 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentity : global
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -76,11 +78,11 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentity : global
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
@@ -122,8 +124,8 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentity : global
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -134,8 +136,8 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentity : global
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -146,6 +148,11 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentity : global
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -157,7 +164,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -268,7 +275,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -331,8 +337,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -371,8 +377,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded.cs b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded.cs
index c8476dc1d047..790b46feabb5 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded.cs
@@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey", ApiVersion = "2020-08-20")]
public partial class NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -35,6 +36,9 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded
///
private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource();
+ /// Parameters describes the request to regenerate access keys
+ private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.RegenerateKeyParameters();
+
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -44,9 +48,10 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -87,22 +92,16 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded
SerializedName = @"keyType",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType) })]
[global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType))]
- public Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType KeyType { get => ParametersBody.KeyType ?? ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType)""); set => ParametersBody.KeyType = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType KeyType { get => _parametersBody.KeyType ?? ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType)""); set => _parametersBody.KeyType = value; }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.RegenerateKeyParameters();
-
- /// Parameters describes the request to regenerate access keys
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters ParametersBody { get => this._parametersBody; set => this._parametersBody = value; }
-
///
/// The instance of the that the remote call will use.
///
@@ -129,8 +128,8 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -141,8 +140,8 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -153,6 +152,11 @@ public partial class NewAzCommunicationServiceKey_RegenerateViaIdentityExpanded
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -164,7 +168,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -275,7 +279,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -292,7 +295,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.CommunicationServiceRegenerateKeyViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceRegenerateKeyViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -309,13 +312,13 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CommunicationServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.CommunicationServiceRegenerateKey(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.CommunicationServiceName ?? null, ParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceRegenerateKey(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.CommunicationServiceName ?? null, _parametersBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
@@ -338,8 +341,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -361,14 +364,14 @@ protected override void StopProcessing()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
@@ -378,8 +381,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs
index cec8419ee917..69df504ea65a 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/NewAzCommunicationService_CreateExpanded.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Create a new CommunicationService or update an existing CommunicationService.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}", ApiVersion = "2020-08-20")]
public partial class NewAzCommunicationService_CreateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -33,6 +34,9 @@ public partial class NewAzCommunicationService_CreateExpanded : global::System.M
///
private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource();
+ /// A class representing a CommunicationService resource.
+ private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource();
+
/// when specified, runs this cmdlet as a PowerShell job
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -55,12 +59,13 @@ public partial class NewAzCommunicationService_CreateExpanded : global::System.M
Description = @"The location where the communication service stores its data at rest.",
SerializedName = @"dataLocation",
PossibleTypes = new [] { typeof(string) })]
- public string DataLocation { get => ParametersBody.DataLocation ?? null; set => ParametersBody.DataLocation = value; }
+ public string DataLocation { get => _parametersBody.DataLocation ?? null; set => _parametersBody.DataLocation = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -90,14 +95,14 @@ public partial class NewAzCommunicationService_CreateExpanded : global::System.M
Description = @"The Azure location where the CommunicationService is running.",
SerializedName = @"location",
PossibleTypes = new [] { typeof(string) })]
- public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; }
+ public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
@@ -123,12 +128,6 @@ public partial class NewAzCommunicationService_CreateExpanded : global::System.M
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
public global::System.Management.Automation.SwitchParameter NoWait { get; set; }
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource();
-
- /// A class representing a CommunicationService resource.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; }
-
///
/// The instance of the that the remote call will use.
///
@@ -194,15 +193,15 @@ public partial class NewAzCommunicationService_CreateExpanded : global::System.M
Description = @"Tags of the service which is a list of key value pairs that describe the resource.",
SerializedName = @"tags",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags) })]
- public Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; }
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -213,8 +212,8 @@ public partial class NewAzCommunicationService_CreateExpanded : global::System.M
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -225,6 +224,11 @@ public partial class NewAzCommunicationService_CreateExpanded : global::System.M
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -250,7 +254,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.NewAzCommunicati
clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials;
clone.HttpPipelinePrepend = this.HttpPipelinePrepend;
clone.HttpPipelineAppend = this.HttpPipelineAppend;
- clone.ParametersBody = this.ParametersBody;
+ clone._parametersBody = this._parametersBody;
clone.SubscriptionId = this.SubscriptionId;
clone.ResourceGroupName = this.ResourceGroupName;
clone.Name = this.Name;
@@ -260,7 +264,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.NewAzCommunicati
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -401,7 +405,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -416,12 +419,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.CommunicationServiceCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, ParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=ParametersBody})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_parametersBody})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
@@ -444,8 +447,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -467,14 +470,14 @@ protected override void StopProcessing()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
@@ -484,8 +487,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs b/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs
index 008924149d3e..64fb92eed877 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_Delete.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(bool))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Operation to delete a CommunicationService.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}", ApiVersion = "2020-08-20")]
public partial class RemoveAzCommunicationService_Delete : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -47,9 +48,10 @@ public partial class RemoveAzCommunicationService_Delete : global::System.Manage
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -71,11 +73,11 @@ public partial class RemoveAzCommunicationService_Delete : global::System.Manage
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
@@ -166,8 +168,8 @@ public partial class RemoveAzCommunicationService_Delete : global::System.Manage
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -198,6 +200,11 @@ public partial class RemoveAzCommunicationService_Delete : global::System.Manage
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -232,7 +239,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.RemoveAzCommunic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -365,7 +372,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -416,8 +422,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs b/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs
index 0b41e8797f0c..2ebc9dda7650 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/RemoveAzCommunicationService_DeleteViaIdentity.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(bool))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Operation to delete a CommunicationService.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}", ApiVersion = "2020-08-20")]
public partial class RemoveAzCommunicationService_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -47,9 +48,10 @@ public partial class RemoveAzCommunicationService_DeleteViaIdentity : global::Sy
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -79,11 +81,11 @@ public partial class RemoveAzCommunicationService_DeleteViaIdentity : global::Sy
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -127,8 +129,8 @@ public partial class RemoveAzCommunicationService_DeleteViaIdentity : global::Sy
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -159,6 +161,11 @@ public partial class RemoveAzCommunicationService_DeleteViaIdentity : global::Sy
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -190,7 +197,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets.RemoveAzCommunic
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -323,7 +330,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -394,8 +400,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_Link.cs b/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_Link.cs
index ab42001cf77c..e27e72760b9e 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_Link.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_Link.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(string))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Links an Azure Notification Hub to this communication service.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/linkNotificationHub", ApiVersion = "2020-08-20")]
public partial class SetAzCommunicationServiceNotificationHub_Link : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -56,9 +57,10 @@ public partial class SetAzCommunicationServiceNotificationHub_Link : global::Sys
public string CommunicationServiceName { get => this._communicationServiceName; set => this._communicationServiceName = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -93,11 +95,11 @@ public partial class SetAzCommunicationServiceNotificationHub_Link : global::Sys
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters LinkNotificationHubParameter { get => this._linkNotificationHubParameter; set => this._linkNotificationHubParameter = value; }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -158,8 +160,8 @@ public partial class SetAzCommunicationServiceNotificationHub_Link : global::Sys
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -170,8 +172,8 @@ public partial class SetAzCommunicationServiceNotificationHub_Link : global::Sys
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkedNotificationHub
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -182,6 +184,11 @@ public partial class SetAzCommunicationServiceNotificationHub_Link : global::Sys
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -193,7 +200,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -296,7 +303,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -347,8 +353,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -387,8 +393,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkedNotificationHub
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_LinkExpanded.cs b/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_LinkExpanded.cs
index 1349f86c49f4..8239aa2bfda3 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_LinkExpanded.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/SetAzCommunicationServiceNotificationHub_LinkExpanded.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(string))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Links an Azure Notification Hub to this communication service.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/linkNotificationHub", ApiVersion = "2020-08-20")]
public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -33,6 +34,9 @@ public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : glo
///
private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource();
+ /// Description of an Azure Notification Hub to link to the communication service
+ private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters _linkNotificationHubParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.LinkNotificationHubParameters();
+
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -64,12 +68,13 @@ public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : glo
Description = @"Connection string for the notification hub",
SerializedName = @"connectionString",
PossibleTypes = new [] { typeof(string) })]
- public string ConnectionString { get => LinkNotificationHubParametersBody.ConnectionString ?? null; set => LinkNotificationHubParametersBody.ConnectionString = value; }
+ public string ConnectionString { get => _linkNotificationHubParametersBody.ConnectionString ?? null; set => _linkNotificationHubParametersBody.ConnectionString = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -90,18 +95,12 @@ public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : glo
/// Accessor for our copy of the InvocationInfo.
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters _linkNotificationHubParametersBody= new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.LinkNotificationHubParameters();
-
- /// Description of an Azure Notification Hub to link to the communication service
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters LinkNotificationHubParametersBody { get => this._linkNotificationHubParametersBody; set => this._linkNotificationHubParametersBody = value; }
-
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// The resource ID of the notification hub
@@ -113,7 +112,7 @@ public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : glo
Description = @"The resource ID of the notification hub",
SerializedName = @"resourceId",
PossibleTypes = new [] { typeof(string) })]
- public string NotificationHubResourceId { get => LinkNotificationHubParametersBody.ResourceId ?? null; set => LinkNotificationHubParametersBody.ResourceId = value; }
+ public string NotificationHubResourceId { get => _linkNotificationHubParametersBody.ResourceId ?? null; set => _linkNotificationHubParametersBody.ResourceId = value; }
///
/// The instance of the that the remote call will use.
@@ -173,8 +172,8 @@ public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : glo
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -185,8 +184,8 @@ public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : glo
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkedNotificationHub
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -197,6 +196,11 @@ public partial class SetAzCommunicationServiceNotificationHub_LinkExpanded : glo
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -208,7 +212,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -311,7 +315,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -326,12 +329,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.CommunicationServiceLinkNotificationHub(SubscriptionId, ResourceGroupName, CommunicationServiceName, LinkNotificationHubParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceLinkNotificationHub(SubscriptionId, ResourceGroupName, CommunicationServiceName, _linkNotificationHubParametersBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,CommunicationServiceName=CommunicationServiceName,body=LinkNotificationHubParametersBody})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,CommunicationServiceName=CommunicationServiceName,body=_linkNotificationHubParametersBody})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
@@ -362,8 +365,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -385,14 +388,14 @@ protected override void StopProcessing()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=LinkNotificationHubParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=_linkNotificationHubParametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=LinkNotificationHubParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, CommunicationServiceName=CommunicationServiceName, body=_linkNotificationHubParametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
@@ -402,8 +405,8 @@ protected override void StopProcessing()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkedNotificationHub
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/TestAzCommunicationServiceNameAvailability_CheckExpanded.cs b/src/Communication/Communication.Autorest/generated/cmdlets/TestAzCommunicationServiceNameAvailability_CheckExpanded.cs
index 3a5467788090..d090b852bc26 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/TestAzCommunicationServiceNameAvailability_CheckExpanded.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/TestAzCommunicationServiceNameAvailability_CheckExpanded.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailability))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Checks that the CommunicationService name is valid and is not already in use.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Communication/checkNameAvailability", ApiVersion = "2020-08-20")]
public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -33,6 +34,9 @@ public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded :
///
private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource();
+ /// Data POST-ed to the nameAvailability action
+ private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailabilityParameters _nameAvailabilityParametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.NameAvailabilityParameters();
+
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -42,9 +46,10 @@ public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded :
public Microsoft.Azure.PowerShell.Cmdlets.Communication.Communication Client => Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.ClientAPI;
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -66,11 +71,11 @@ public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded :
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
///
@@ -84,13 +89,7 @@ public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded :
Description = @"The CommunicationService name to validate. e.g.""my-CommunicationService-name-here""",
SerializedName = @"name",
PossibleTypes = new [] { typeof(string) })]
- public string Name { get => NameAvailabilityParametersBody.Name ?? null; set => NameAvailabilityParametersBody.Name = value; }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailabilityParameters _nameAvailabilityParametersBody= new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.NameAvailabilityParameters();
-
- /// Data POST-ed to the nameAvailability action
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailabilityParameters NameAvailabilityParametersBody { get => this._nameAvailabilityParametersBody; set => this._nameAvailabilityParametersBody = value; }
+ public string Name { get => _nameAvailabilityParametersBody.Name ?? null; set => _nameAvailabilityParametersBody.Name = value; }
///
/// The instance of the that the remote call will use.
@@ -147,15 +146,15 @@ public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded :
Description =@"",
Script = @"""Microsoft.Communication/CommunicationServices""")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.DoNotExport]
- public string Type { get => NameAvailabilityParametersBody.Type ?? null; set => NameAvailabilityParametersBody.Type = value; }
+ public string Type { get => _nameAvailabilityParametersBody.Type ?? null; set => _nameAvailabilityParametersBody.Type = value; }
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -166,8 +165,8 @@ public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded :
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailability
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -178,6 +177,11 @@ public partial class TestAzCommunicationServiceNameAvailability_CheckExpanded :
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -189,7 +193,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -292,7 +296,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -307,12 +310,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.CommunicationServiceCheckNameAvailability(SubscriptionId, NameAvailabilityParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceCheckNameAvailability(SubscriptionId, _nameAvailabilityParametersBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,body=NameAvailabilityParametersBody})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,body=_nameAvailabilityParametersBody})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
@@ -343,8 +346,8 @@ public TestAzCommunicationServiceNameAvailability_CheckExpanded()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -366,14 +369,14 @@ public TestAzCommunicationServiceNameAvailability_CheckExpanded()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=NameAvailabilityParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=_nameAvailabilityParametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=NameAvailabilityParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=_nameAvailabilityParametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
@@ -383,8 +386,8 @@ public TestAzCommunicationServiceNameAvailability_CheckExpanded()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailability
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs b/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs
index bbe03c51ccb4..1836fbb8e940 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateExpanded.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Operation to update an existing CommunicationService.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}", ApiVersion = "2020-08-20")]
public partial class UpdateAzCommunicationService_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -33,6 +34,9 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : global::Syste
///
private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource();
+ /// A class representing a CommunicationService resource.
+ private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource();
+
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -50,12 +54,13 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : global::Syste
Description = @"The location where the communication service stores its data at rest.",
SerializedName = @"dataLocation",
PossibleTypes = new [] { typeof(string) })]
- public string DataLocation { get => ParametersBody.DataLocation ?? null; set => ParametersBody.DataLocation = value; }
+ public string DataLocation { get => _parametersBody.DataLocation ?? null; set => _parametersBody.DataLocation = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -85,14 +90,14 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : global::Syste
Description = @"The Azure location where the CommunicationService is running.",
SerializedName = @"location",
PossibleTypes = new [] { typeof(string) })]
- public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; }
+ public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
/// Backing field for property.
@@ -110,12 +115,6 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : global::Syste
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Path)]
public string Name { get => this._name; set => this._name = value; }
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource();
-
- /// A class representing a CommunicationService resource.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; }
-
///
/// The instance of the that the remote call will use.
///
@@ -181,15 +180,15 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : global::Syste
Description = @"Tags of the service which is a list of key value pairs that describe the resource.",
SerializedName = @"tags",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags) })]
- public Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; }
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -200,8 +199,8 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : global::Syste
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -212,6 +211,11 @@ public partial class UpdateAzCommunicationService_UpdateExpanded : global::Syste
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -223,7 +227,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -326,7 +330,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -341,12 +344,12 @@ protected override void ProcessRecord()
try
{
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
- await this.Client.CommunicationServiceUpdate(SubscriptionId, ResourceGroupName, Name, ParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceUpdate(SubscriptionId, ResourceGroupName, Name, _parametersBody, onOk, onDefault, this, Pipeline);
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=ParametersBody})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_parametersBody})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
@@ -377,8 +380,8 @@ public UpdateAzCommunicationService_UpdateExpanded()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -400,14 +403,14 @@ public UpdateAzCommunicationService_UpdateExpanded()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
@@ -417,8 +420,8 @@ public UpdateAzCommunicationService_UpdateExpanded()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs b/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs
index 9b4e0ff3b881..9f0c9deddd05 100644
--- a/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs
+++ b/src/Communication/Communication.Autorest/generated/cmdlets/UpdateAzCommunicationService_UpdateViaIdentityExpanded.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Cmdlets
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Description(@"Operation to update an existing CommunicationService.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Generated]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.Communication.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}", ApiVersion = "2020-08-20")]
public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener
{
@@ -33,6 +34,9 @@ public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : gl
///
private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource();
+ /// A class representing a CommunicationService resource.
+ private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource();
+
/// Wait for .NET debugger to attach
[global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Runtime)]
@@ -50,12 +54,13 @@ public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : gl
Description = @"The location where the communication service stores its data at rest.",
SerializedName = @"dataLocation",
PossibleTypes = new [] { typeof(string) })]
- public string DataLocation { get => ParametersBody.DataLocation ?? null; set => ParametersBody.DataLocation = value; }
+ public string DataLocation { get => _parametersBody.DataLocation ?? null; set => _parametersBody.DataLocation = value; }
///
- /// The credentials, account, tenant, and subscription used for communication with Azure
+ /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet
+ /// against a different subscription
///
- [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")]
[global::System.Management.Automation.ValidateNotNull]
[global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Communication.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Communication.ParameterCategory.Azure)]
@@ -93,22 +98,16 @@ public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : gl
Description = @"The Azure location where the CommunicationService is running.",
SerializedName = @"location",
PossibleTypes = new [] { typeof(string) })]
- public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; }
+ public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; }
///
- /// cancellation delegate. Stops the cmdlet when called.
+ /// cancellation delegate. Stops the cmdlet when called.
///
global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel;
- /// cancellation token.
+ /// cancellation token.
global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener.Token => _cancellationTokenSource.Token;
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.CommunicationServiceResource();
-
- /// A class representing a CommunicationService resource.
- private Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; }
-
///
/// The instance of the that the remote call will use.
///
@@ -142,15 +141,15 @@ public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : gl
Description = @"Tags of the service which is a list of key value pairs that describe the resource.",
SerializedName = @"tags",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags) })]
- public Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ITaggedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; }
///
/// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what
/// happens on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
/// /// Determines if the rest of the onDefault method should be processed, or if the method should
/// return immediately (set to true to skip further processing )
@@ -161,8 +160,8 @@ public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : gl
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
@@ -173,6 +172,11 @@ public partial class UpdateAzCommunicationService_UpdateViaIdentityExpanded : gl
///
protected override void BeginProcessing()
{
+ var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.GetTelemetryId.Invoke();
+ if (telemetryId != "" && telemetryId != "internal")
+ {
+ __correlationId = telemetryId;
+ }
Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials);
if (Break)
{
@@ -184,7 +188,7 @@ protected override void BeginProcessing()
/// Performs clean-up after the command execution
protected override void EndProcessing()
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
+
}
/// Handles/Dispatches events during the call to the REST service.
@@ -287,7 +291,6 @@ protected override void ProcessRecord()
{
using( NoSynchronizationContext )
{
- await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Communication.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName);
if (null != HttpPipelinePrepend)
@@ -304,7 +307,7 @@ protected override void ProcessRecord()
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
if (InputObject?.Id != null)
{
- await this.Client.CommunicationServiceUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceUpdateViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline);
}
else
{
@@ -321,13 +324,13 @@ protected override void ProcessRecord()
{
ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CommunicationServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) );
}
- await this.Client.CommunicationServiceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.CommunicationServiceName ?? null, ParametersBody, onOk, onDefault, this, Pipeline);
+ await this.Client.CommunicationServiceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.CommunicationServiceName ?? null, _parametersBody, onOk, onDefault, this, Pipeline);
}
await ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; }
}
catch (Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.UndeclaredResponseException urexception)
{
- WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody})
+ WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody})
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
});
@@ -358,8 +361,8 @@ public UpdateAzCommunicationService_UpdateViaIdentityExpanded()
/// a delegate that is called when the remote service returns default (any response code not handled elsewhere).
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IErrorResponse
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
@@ -381,14 +384,14 @@ public UpdateAzCommunicationService_UpdateViaIdentityExpanded()
{
// Unrecognized Response. Create an error record based on what we have.
var ex = new Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.RestException(responseMessage, await response);
- WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action }
});
}
else
{
- WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody })
+ WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody })
{
ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty }
});
@@ -398,8 +401,8 @@ public UpdateAzCommunicationService_UpdateViaIdentityExpanded()
/// a delegate that is called when the remote service returns 200 (OK).
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a from the remote call
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+ /// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
diff --git a/src/Communication/Communication.Autorest/generated/runtime/AsyncOperationResponse.cs b/src/Communication/Communication.Autorest/generated/runtime/AsyncOperationResponse.cs
index 18df5a1533c2..70b7d1ced7be 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/AsyncOperationResponse.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/AsyncOperationResponse.cs
@@ -31,10 +31,10 @@ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets
///
- /// Creates a new instance of , deserializing the content from a json string.
+ /// 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.
+ /// an instance of the model class.
public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.Json.JsonNode.Parse(jsonText));
}
@@ -43,19 +43,19 @@ public partial class AsyncOperationResponseTypeConverter : System.Management.Aut
{
///
- /// Determines if the converter can convert the parameter to the
+ /// Determines if the converter can convert the parameter to the
/// parameter.
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
+ /// true if the converter can convert the parameter to the
/// parameter, otherwise false.
///
public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
///
- /// Determines if the converter can convert the parameter to the
+ /// Determines if the converter can convert the parameter to a type
/// parameter.
///
/// the instance to check if it can be converted to the
- /// Determines if the parameter can be converted to the parameter
+ /// Determines if the parameter can be converted to the parameter
///
/// the to convert from
/// the to convert to
///
- /// true if the converter can convert the parameter to the
+ /// true if the converter can convert the parameter to the
/// parameter, otherwise false
///
public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter to the parameter using and
///
/// the to convert from
/// the to convert to
@@ -128,8 +128,7 @@ public static bool CanConvertFrom(dynamic sourceValue)
public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue);
///
- /// Converts the parameter to the parameter using and
+ /// Converts the parameter into an instance of
///
/// the value to convert into an instance of .
///
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
index ca8f89624d63..75c64d11c83f 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
@@ -33,6 +33,9 @@ public class ExportHelpMarkdown : PSCmdlet
[ValidateNotNullOrEmpty]
public string ExamplesFolder { get; set; }
+ [Parameter()]
+ public SwitchParameter AddComplexInterfaceInfo { get; set; }
+
protected override void ProcessRecord()
{
try
@@ -41,7 +44,7 @@ protected override void ProcessRecord()
var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast()
.Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi))
.Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty));
- WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder);
+ WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder, AddComplexInterfaceInfo.IsPresent);
}
catch (Exception ee)
{
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
index f30c082ec1c1..ab77d97d0ddb 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
@@ -52,6 +52,9 @@ public class ExportProxyCmdlet : PSCmdlet
[Parameter(Mandatory = true, ParameterSetName = "NoDocs")]
public SwitchParameter ExcludeDocs { get; set; }
+ [Parameter(ParameterSetName = "Docs")]
+ public SwitchParameter AddComplexInterfaceInfo { get; set; }
+
protected override void ProcessRecord()
{
try
@@ -163,7 +166,7 @@ protected override void ProcessRecord()
var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles;
var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder;
var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder;
- WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder);
+ WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder, AddComplexInterfaceInfo.IsPresent);
}
}
}
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
index 9c732940a051..7729faf41009 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
@@ -163,7 +163,7 @@ protected override void ProcessRecord()
if (previewVersion != null)
{
- sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}");
+ sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = '{previewVersion}'");
}
sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule Communication".Split(' ').ToPsList().NullIfEmpty() ?? "''"}");
sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'");
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs
index 6599447a3ddf..cddf0298b1eb 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.PowerShell
{
internal static class MarkdownRenderer
{
- public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder)
+ public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder, bool AddComplexInterfaceInfo = true)
{
Directory.CreateDirectory(docsFolder);
var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray();
@@ -69,18 +69,26 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod
}
sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}");
- sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}");
- foreach (var alias in markdownInfo.Aliases)
+ if (markdownInfo.Aliases.Any())
{
- sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}");
+ sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}");
}
- if (markdownInfo.ComplexInterfaceInfos.Any())
+ foreach (var alias in markdownInfo.Aliases)
{
- sb.Append($"{ComplexParameterHeader}{Environment.NewLine}");
+ sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}");
}
- foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos)
+
+ if (AddComplexInterfaceInfo)
{
- sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}");
+ if (markdownInfo.ComplexInterfaceInfos.Any())
+ {
+ sb.Append($"{ComplexParameterHeader}{Environment.NewLine}");
+ }
+ foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos)
+ {
+ sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}");
+ }
+
}
sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}");
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
index 357b6c43ce39..51b248a2ded4 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
@@ -52,6 +52,17 @@ public override string ToString()
internal class HelpExampleOutput
{
+ private string ExampleTemplate =
+ "{0}{1}" + Environment.NewLine +
+ "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine +
+ "{5}" + Environment.NewLine + Environment.NewLine;
+
+ private string ExampleTemplateWithOutput =
+ "{0}{1}" + Environment.NewLine +
+ "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine +
+ "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine +
+ "{8}" + Environment.NewLine + Environment.NewLine;
+
public MarkdownExampleHelpInfo ExampleInfo { get; }
public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo)
@@ -59,17 +70,26 @@ public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo)
ExampleInfo = exampleInfo;
}
- public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name}
-{ExampleCodeHeader}
-{ExampleInfo.Code}
-{ExampleCodeFooter}
-
-{ExampleInfo.Description.ToDescriptionFormat()}
-
-";
+ public override string ToString()
+ {
+ if (string.IsNullOrEmpty(ExampleInfo.Output))
+ {
+ return string.Format(ExampleTemplate,
+ ExampleNameHeader, ExampleInfo.Name,
+ ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter,
+ ExampleInfo.Description.ToDescriptionFormat());
+ }
+ else
+ {
+ return string.Format(ExampleTemplateWithOutput,
+ ExampleNameHeader, ExampleInfo.Name,
+ ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter,
+ ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter,
+ ExampleInfo.Description.ToDescriptionFormat()); ;
+ }
+ }
}
-
-
+
internal class HelpParameterOutput
{
public MarkdownParameterHelpInfo ParameterInfo { get; }
@@ -161,6 +181,8 @@ public static string ToDescriptionFormat(this string text, bool escapeAngleBrack
public const string ExampleNameHeader = "### ";
public const string ExampleCodeHeader = "```powershell";
public const string ExampleCodeFooter = "```";
+ public const string ExampleOutputHeader = "```output";
+ public const string ExampleOutputFooter = "```";
public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo);
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
index 3a0b43e2b82f..e3c028b8a940 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs
@@ -109,18 +109,21 @@ internal class PsHelpExampleInfo
{
public string Title { get; }
public string Code { get; }
+ public string Output { get; }
public string Remarks { get; }
public PsHelpExampleInfo(PSObject exampleObject)
{
Title = exampleObject.GetProperty("title");
Code = exampleObject.GetProperty("code");
+ Output = exampleObject.GetProperty("output");
Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText();
}
public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample)
{
Title = markdownExample.Name;
Code = markdownExample.Code;
+ Output = markdownExample.Output;
Remarks = markdownExample.Description;
}
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
index 2aa6609a6ba3..0e4c753e5abc 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
@@ -39,7 +39,7 @@ internal class MarkdownHelpInfo
public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "")
{
ExternalHelpFilename = externalHelpFilename;
- ModuleName = variantGroup.ModuleName;
+ ModuleName = variantGroup.RootModuleName != "" ? variantGroup.RootModuleName : variantGroup.ModuleName;
var helpInfo = variantGroup.HelpInfo;
var commentInfo = variantGroup.CommentInfo;
Schema = Version.Parse("2.0.0");
@@ -91,12 +91,17 @@ private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder)
var code = codeStartIndex.HasValue && codeEndIndex.HasValue
? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1)))
: String.Empty;
- var descriptionStartIndex = (codeEndIndex ?? 0) + 1;
+ var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue);
+ var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex);
+ var output = outputStartIndex.HasValue && outputEndIndex.HasValue
+ ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1)))
+ : String.Empty;
+ var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1;
descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex;
var descriptionEndIndex = eg.Length - 1;
descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex;
var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex));
- return new MarkdownExampleHelpInfo(name, code, description);
+ return new MarkdownExampleHelpInfo(name, code, output, description);
}).ToArray();
}
}
@@ -154,12 +159,14 @@ internal class MarkdownExampleHelpInfo
{
public string Name { get; }
public string Code { get; }
+ public string Output { get; }
public string Description { get; }
- public MarkdownExampleHelpInfo(string name, string code, string description)
+ public MarkdownExampleHelpInfo(string name, string code, string output, string description)
{
Name = name;
Code = code;
+ Output = output;
Description = description;
}
}
@@ -213,12 +220,12 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param
internal static class MarkdownTypesExtensions
{
- public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks);
+ public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks);
public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos =
{
- new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"),
- new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}")
+ new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"),
+ new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"),
};
public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters =
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index b41273a15836..ed83cd1706c5 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
@@ -168,18 +168,62 @@ public ParameterNameOutput(string parameterName, bool isLast)
public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}";
}
- internal class BeginOutput
+ internal class BaseOutput
{
public VariantGroup VariantGroup { get; }
- public BeginOutput(VariantGroup variantGroup)
+ protected static readonly bool IsAzure = Convert.ToBoolean(@"true");
+ public BaseOutput(VariantGroup variantGroup)
{
VariantGroup = variantGroup;
}
+ public string ClearTelemetryContext()
+ {
+ return (!VariantGroup.IsInternal && IsAzure) ? $@"{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()" : "";
+ }
+ }
+
+ internal class BeginOutput : BaseOutput
+ {
+ public BeginOutput(VariantGroup variantGroup) : base(variantGroup)
+ {
+ }
public string GetProcessCustomAttributesAtRuntime()
{
- return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)";
+ return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]
+{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{
+{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)";
+ }
+
+ private string GetTelemetry()
+ {
+ if (!VariantGroup.IsInternal && IsAzure)
+ {
+ return $@"
+{Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{
+{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+{Indent}{Indent}}}
+{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+{Indent}{Indent}if ($preTelemetryId -eq '') {{
+{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}}} else {{
+{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{
+{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+{Indent}{Indent}{Indent}}} else {{
+{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+{Indent}{Indent}{Indent}}}
+{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+{Indent}{Indent}}}
+";
+ }
+ return "";
}
public override string ToString() => $@"begin {{
{Indent}try {{
@@ -188,6 +232,7 @@ public override string ToString() => $@"begin {{
{Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1
{Indent}{Indent}}}
{Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName
+{GetTelemetry()}
{GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()}
{GetProcessCustomAttributesAtRuntime()}
{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
@@ -195,6 +240,7 @@ public override string ToString() => $@"begin {{
{Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
{Indent}{Indent}$steppablePipeline.Begin($PSCmdlet)
{Indent}}} catch {{
+{ClearTelemetryContext()}
{Indent}{Indent}throw
{Indent}}}
}}
@@ -231,28 +277,69 @@ private string GetDefaultValuesStatements()
}
}
- internal class ProcessOutput
+ internal class ProcessOutput : BaseOutput
{
+ public ProcessOutput(VariantGroup variantGroup) : base(variantGroup)
+ {
+ }
+
+ private string GetFinally()
+ {
+ if (IsAzure && !VariantGroup.IsInternal)
+ {
+ return $@"
+{Indent}finally {{
+{Indent}{Indent}$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+{Indent}{Indent}$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+{Indent}}}
+";
+ }
+ return "";
+ }
public override string ToString() => $@"process {{
{Indent}try {{
{Indent}{Indent}$steppablePipeline.Process($_)
{Indent}}} catch {{
+{ClearTelemetryContext()}
{Indent}{Indent}throw
{Indent}}}
+{GetFinally()}
}}
-
";
}
- internal class EndOutput
+ internal class EndOutput : BaseOutput
{
+ public EndOutput(VariantGroup variantGroup) : base(variantGroup)
+ {
+ }
+
+ private string GetTelemetry()
+ {
+ if (!VariantGroup.IsInternal && IsAzure)
+ {
+ return $@"
+{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+{Indent}{Indent}if ($preTelemetryId -eq '') {{
+{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Communication.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+{Indent}{Indent}}}
+{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+";
+ }
+ return "";
+ }
public override string ToString() => $@"end {{
{Indent}try {{
{Indent}{Indent}$steppablePipeline.End()
+{GetTelemetry()}
{Indent}}} catch {{
+{ClearTelemetryContext()}
{Indent}{Indent}throw
{Indent}}}
-}}
+}}
";
}
@@ -493,9 +580,9 @@ public static string ToSyntaxTypeName(this Type type)
public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup);
- public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput();
+ public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup);
- public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput();
+ public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(variantGroup);
public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup);
@@ -524,7 +611,7 @@ string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool
return ni.IsComplexInterface
? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false)
: RenderProperty(ni, nestedIndent, includeDashes, includeBackticks);
- }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks));
+ }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks));
return String.Join(Environment.NewLine, nested);
}
}
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
index 292284e5b30b..a904fa894729 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs
@@ -30,6 +30,8 @@ public ProfileGroup(Variant[] variants, string profileName = NoProfiles)
internal class VariantGroup
{
public string ModuleName { get; }
+
+ public string RootModuleName {get => @"";}
public string CmdletName { get; }
public string CmdletVerb { get; }
public string CmdletNoun { get; }
@@ -385,7 +387,9 @@ public CommentInfo(VariantGroup variantGroup)
helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray())
.Where(o => o != "None").Distinct().OrderBy(o => o).ToArray();
- OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{variantGroup.ModuleName.ToLowerInvariant()}/{variantGroup.CmdletName.ToLowerInvariant()}";
+ // Use root module name in the help link
+ var moduleName = variantGroup.RootModuleName == "" ? variantGroup.ModuleName.ToLowerInvariant() : variantGroup.RootModuleName.ToLowerInvariant();
+ OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{moduleName}/{variantGroup.CmdletName.ToLowerInvariant()}";
RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray();
}
}
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsAttributes.cs
index 7c2f226fa8fc..a7a0918d8240 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsAttributes.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsAttributes.cs
@@ -48,6 +48,13 @@ public ProfileAttribute(params string[] profiles)
}
}
+ [AttributeUsage(AttributeTargets.Class)]
+ public class HttpPathAttribute : Attribute
+ {
+ public string Path { get; set; }
+ public string ApiVersion { get; set; }
+ }
+
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class CategoryAttribute : Attribute
{
diff --git a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsHelpers.cs b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsHelpers.cs
index c855680e389c..80f711b1ee21 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsHelpers.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/BuildTime/PsHelpers.cs
@@ -39,9 +39,10 @@ public static IEnumerable GetModuleCmdlets(params string[] modulePa
public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder)
{
// https://stackoverflow.com/a/40969712/294804
+ var wrappedFolder = scriptFolder.Contains("'") ? $@"""{scriptFolder}""" : $@"'{scriptFolder}'";
var getCmdletsCommand = $@"
$currentFunctions = Get-ChildItem function:
-Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }}
+Get-ChildItem -Path {wrappedFolder} -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }}
Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }}
";
return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand);
diff --git a/src/Communication/Communication.Autorest/generated/runtime/Customizations/IJsonSerializable.cs b/src/Communication/Communication.Autorest/generated/runtime/Customizations/IJsonSerializable.cs
index 77a52a53ec75..4eddb951e922 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/Customizations/IJsonSerializable.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/Customizations/IJsonSerializable.cs
@@ -129,7 +129,7 @@ private static JsonNode TryToJsonValue(dynamic oValue)
///
/// Serialize an object by using a variety of methods.
///
- /// the object to be serialized.
+ /// the object to be serialized.
/// the serialized JsonNode (if successful), otherwise, null
internal static JsonNode ToJsonValue(object value)
{
diff --git a/src/Communication/Communication.Autorest/generated/runtime/EventDataExtensions.cs b/src/Communication/Communication.Autorest/generated/runtime/EventDataExtensions.cs
index 7fdaa125d568..b537e1bc9e70 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/EventDataExtensions.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/EventDataExtensions.cs
@@ -7,7 +7,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime
{
using System;
- [System.ComponentModel.TypeConverter(typeof(EventDataConverter))]
///
/// PowerShell-specific data on top of the llc# EventData
///
@@ -16,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime
/// Obviously, this code would need to be duplcated on both modules.
/// This is preferable to sharing a common library, as versioning makes that problematic.
///
+ [System.ComponentModel.TypeConverter(typeof(EventDataConverter))]
public partial class EventData : EventArgs
{
}
diff --git a/src/Communication/Communication.Autorest/generated/runtime/ISendAsync.cs b/src/Communication/Communication.Autorest/generated/runtime/ISendAsync.cs
index 5eb81bcba2f7..dd2370f0c48e 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/ISendAsync.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/ISendAsync.cs
@@ -238,6 +238,8 @@ internal static Task CloneWithContentAndDispose(this HttpReq
/// Clones an HttpRequestMessage (without the content)
///
/// Original HttpRequestMessage (Will be diposed before returning)
+ ///
+ ///
/// A clone of the HttpRequestMessage
internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null)
{
@@ -252,9 +254,9 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste
{
clone.Properties.Add(prop);
}
-
+
foreach (KeyValuePair> header in original.Headers)
- {
+ {
/*
**temporarily skip cloning telemetry related headers**
clone.Headers.TryAddWithoutValidation(header.Key, header.Value);
@@ -264,7 +266,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste
clone.Headers.TryAddWithoutValidation(header.Key, header.Value);
}
}
-
+
return clone;
}
@@ -272,6 +274,8 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste
/// Clones an HttpRequestMessage (including the content stream and content headers)
///
/// Original HttpRequestMessage (Will be diposed before returning)
+ ///
+ ///
/// A clone of the HttpRequestMessage
internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null)
{
diff --git a/src/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs b/src/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs
index 7fce84133b70..b14ac2a006a0 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/MessageAttribute.cs
@@ -21,7 +21,7 @@ public class GenericBreakingChangeAttribute : Attribute
//The version the change is effective from, non mandatory
public string DeprecateByVersion { get; }
- public bool DeprecateByVersionSet { get; } = false;
+ public string DeprecateByAzVersion { get; }
//The date on which the change comes in effect
public DateTime ChangeInEfectByDate { get; }
@@ -32,23 +32,18 @@ public class GenericBreakingChangeAttribute : Attribute
//New way fo calling the cmdlet
public string NewWay { get; set; }
- public GenericBreakingChangeAttribute(string message)
- {
- _message = message;
- }
-
- public GenericBreakingChangeAttribute(string message, string deprecateByVersion)
+ public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion)
{
_message = message;
+ this.DeprecateByAzVersion = deprecateByAzVersion;
this.DeprecateByVersion = deprecateByVersion;
- this.DeprecateByVersionSet = true;
}
- public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate)
+ public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate)
{
_message = message;
this.DeprecateByVersion = deprecateByVersion;
- this.DeprecateByVersionSet = true;
+ this.DeprecateByAzVersion = deprecateByAzVersion;
if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result))
{
@@ -86,10 +81,8 @@ public void PrintCustomAttributeInfo(Action writeOutput)
writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d")));
}
- if (DeprecateByVersionSet)
- {
- writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion));
- }
+ writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion));
+ writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion));
if (OldWay != null && NewWay != null)
{
@@ -114,18 +107,13 @@ public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute
public string ReplacementCmdletName { get; set; }
- public CmdletBreakingChangeAttribute() :
- base(string.Empty)
+ public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion)
{
}
- public CmdletBreakingChangeAttribute(string deprecateByVersione) :
- base(string.Empty, deprecateByVersione)
- {
- }
-
- public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) :
- base(string.Empty, deprecateByVersion, changeInEfectByDate)
+ public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate)
{
}
@@ -146,20 +134,15 @@ protected override string GetAttributeSpecificMessage()
public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute
{
public string[] ChangedParameterSet { set; get; }
- public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) :
- base(string.Empty)
- {
- ChangedParameterSet = changedParameterSet;
- }
- public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) :
- base(string.Empty, deprecateByVersione)
+ public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion)
{
ChangedParameterSet = changedParameterSet;
}
- public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) :
- base(string.Empty, deprecateByVersion, changeInEfectByDate)
+ public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate)
{
ChangedParameterSet = changedParameterSet;
}
@@ -185,6 +168,11 @@ public class PreviewMessageAttribute : Attribute
{
public string _message;
+ public DateTime EstimatedGaDate { get; }
+
+ public bool IsEstimatedGaDateSet { get; } = false;
+
+
public PreviewMessageAttribute()
{
this._message = Resources.PreviewCmdletMessage;
@@ -192,12 +180,26 @@ public PreviewMessageAttribute()
public PreviewMessageAttribute(string message)
{
- this._message = message;
+ this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message;
}
- public void PrintCustomAttributeInfo(System.Management.Automation.PSCmdlet psCmdlet)
+ public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this(message)
{
- psCmdlet.WriteWarning(this._message);
+ if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result))
+ {
+ this.EstimatedGaDate = result;
+ this.IsEstimatedGaDateSet = true;
+ }
+ }
+
+ public void PrintCustomAttributeInfo(Action writeOutput)
+ {
+ writeOutput(this._message);
+
+ if (IsEstimatedGaDateSet)
+ {
+ writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString()));
+ }
}
public virtual bool IsApplicableToInvocation(InvocationInfo invocation)
@@ -219,20 +221,14 @@ public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute
public String NewParameterType { get; set; }
- public ParameterBreakingChangeAttribute(string nameOfParameterChanging) :
- base(string.Empty)
+ public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion)
{
this.NameOfParameterChanging = nameOfParameterChanging;
}
- public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) :
- base(string.Empty, deprecateByVersion)
- {
- this.NameOfParameterChanging = nameOfParameterChanging;
- }
-
- public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) :
- base(string.Empty, deprecateByVersion, changeInEfectByDate)
+ public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate)
{
this.NameOfParameterChanging = nameOfParameterChanging;
}
@@ -276,7 +272,7 @@ protected override string GetAttributeSpecificMessage()
/// then the attribbute is applicable
/// If the invocationInfo is null we return true
///
- ///
+ ///
/// bool
public override bool IsApplicableToInvocation(InvocationInfo invocationInfo)
{
@@ -298,20 +294,14 @@ public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute
public string[] NewOutputProperties { get; set; }
- public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) :
- base(string.Empty)
- {
- this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType;
- }
-
- public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) :
- base(string.Empty, deprecateByVersion)
+ public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion)
{
this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType;
}
- public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) :
- base(string.Empty, deprecateByVersion, changeInEfectByDate)
+ public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) :
+ base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate)
{
this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType;
}
diff --git a/src/Communication/Communication.Autorest/generated/runtime/MessageAttributeHelper.cs b/src/Communication/Communication.Autorest/generated/runtime/MessageAttributeHelper.cs
index 5937d996fd89..1c809048e6b6 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/MessageAttributeHelper.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/MessageAttributeHelper.cs
@@ -23,6 +23,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Communication.Runtime
using System.Threading.Tasks;
public class MessageAttributeHelper
{
+ private static readonly bool IsAzure = Convert.ToBoolean(@"true");
public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings";
public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings";
@@ -34,7 +35,7 @@ public class MessageAttributeHelper
* the boundParameterNames is a list of parameters bound to the cmdlet at runtime,
* We only process the Parameter beaking change attributes attached only params listed in this list (if present)
* */
- public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet)
+ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet, bool showPreviewMessage = true)
{
bool supressWarningOrError = false;
@@ -52,37 +53,53 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv
//Do not process the attributes at runtime... The env variable to override the warning messages is set
return;
}
+ if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile"))
+ {
+ psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.");
+ }
+
+ ProcessBreakingChangeAttributesAtRuntime(commandInfo, invocationInfo, parameterSet, psCmdlet);
+
+ }
+ private static void ProcessBreakingChangeAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet)
+ {
List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet));
StringBuilder sb = new StringBuilder();
- Action appendBreakingChangeInfo = (string s) => sb.Append(s);
+ Action appendAttributeMessage = (string s) => sb.Append(s);
if (attributes != null && attributes.Count > 0)
{
- appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0]));
+ appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0]));
foreach (GenericBreakingChangeAttribute attribute in attributes)
{
- attribute.PrintCustomAttributeInfo(appendBreakingChangeInfo);
+ attribute.PrintCustomAttributeInfo(appendAttributeMessage);
}
- appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK));
+ appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK));
psCmdlet.WriteWarning(sb.ToString());
}
+ }
+
+ public static void ProcessPreviewMessageAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet)
+ {
List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo));
+ StringBuilder sb = new StringBuilder();
+ Action appendAttributeMessage = (string s) => sb.Append(s);
if (previewAttributes != null && previewAttributes.Count > 0)
{
foreach (PreviewMessageAttribute attribute in previewAttributes)
{
- attribute.PrintCustomAttributeInfo(psCmdlet);
+ attribute.PrintCustomAttributeInfo(appendAttributeMessage);
}
+ psCmdlet.WriteWarning(sb.ToString());
}
}
-
/**
* This function takes in a CommandInfo (CmdletInfo or FunctionInfo)
* And returns all the deprecation attributes attached to it
@@ -124,6 +141,12 @@ private static IEnumerable GetAllBreakingChangeA
}
return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo));
}
+
+ public static bool ContainsPreviewAttribute(CommandInfo commandInfo, InvocationInfo invocationInfo)
+ {
+ return GetAllPreviewAttributesInType(commandInfo, invocationInfo)?.Count() > 0;
+ }
+
private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo)
{
List attributeList = new List();
diff --git a/src/Communication/Communication.Autorest/generated/runtime/PipelineMocking.cs b/src/Communication/Communication.Autorest/generated/runtime/PipelineMocking.cs
index 6207fb3c384b..f0f19feea783 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/PipelineMocking.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/PipelineMocking.cs
@@ -259,4 +259,4 @@ public async Task SendAsync(HttpRequestMessage request, IEv
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.Designer.cs b/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.Designer.cs
index 7505190c0fcb..9897f8c84256 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.Designer.cs
+++ b/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.Designer.cs
@@ -734,7 +734,7 @@ public static string BreakingChangesAttributesInEffectByDateMessage
}
///
- /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}'
+ /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}'
///
///.
///
@@ -746,6 +746,19 @@ public static string BreakingChangesAttributesInEffectByVersion
}
}
+ ///
+ /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}'
+ ///
+ ///.
+ ///
+ public static string BreakingChangesAttributesInEffectByAzVersion
+ {
+ get
+ {
+ return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to ```powershell
///# Old
@@ -3122,7 +3135,16 @@ public static string PortalInstructionsGit
}
///
- /// Looks up a localized string similar to This cmdlet is in preview. The functionality may not be available in the selected subscription.
+ /// Looks up a localized string similar to The estimated generally available date is '{0}'..
+ ///
+ public static string PreviewCmdletETAMessage {
+ get {
+ return ResourceManager.GetString("PreviewCmdletETAMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to This cmdlet is in preview. Its behavior is subject to change based on customer feedback..
///
public static string PreviewCmdletMessage
{
@@ -5630,4 +5652,4 @@ public static string YesHint
}
}
}
-}
+}
\ No newline at end of file
diff --git a/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.resx b/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.resx
index 598cd53e958a..a08a2e50172b 100644
--- a/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.resx
+++ b/src/Communication/Communication.Autorest/generated/runtime/Properties/Resources.resx
@@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can
-- The change is expected to take effect from the version : '{0}'
+- The change is expected to take effect from version : '{0}'
```powershell
@@ -1736,6 +1736,12 @@ The type of the parameter is changing from '{0}' to '{1}'.
Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
- This cmdlet is in preview. The functionality may not be available in the selected subscription.
+ This cmdlet is in preview. Its behavior is subject to change based on customer feedback.
+
+
+ The estimated generally available date is '{0}'.
+
+
+ - The change is expected to take effect from Az version : '{0}'
\ No newline at end of file
diff --git a/src/Communication/Communication.Autorest/help/Az.Communication.md b/src/Communication/Communication.Autorest/help/Az.Communication.md
new file mode 100644
index 000000000000..0a92c88e8e6d
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/Az.Communication.md
@@ -0,0 +1,38 @@
+---
+Module Name: Az.Communication
+Module Guid: 32c4dede-9b85-43d4-83ab-447e2938c400
+Download Help Link: https://learn.microsoft.com/powershell/module/az.communication
+Help Version: 1.0.0.0
+Locale: en-US
+---
+
+# Az.Communication Module
+## Description
+Microsoft Azure PowerShell: Communication cmdlets
+
+## Az.Communication Cmdlets
+### [Get-AzCommunicationService](Get-AzCommunicationService.md)
+Get the CommunicationService and its properties.
+
+### [Get-AzCommunicationServiceKey](Get-AzCommunicationServiceKey.md)
+Get the access keys of the CommunicationService resource.
+
+### [New-AzCommunicationService](New-AzCommunicationService.md)
+Create a new CommunicationService or update an existing CommunicationService.
+
+### [New-AzCommunicationServiceKey](New-AzCommunicationServiceKey.md)
+Regenerate CommunicationService access key.
+PrimaryKey and SecondaryKey cannot be regenerated at the same time.
+
+### [Remove-AzCommunicationService](Remove-AzCommunicationService.md)
+Operation to delete a CommunicationService.
+
+### [Set-AzCommunicationServiceNotificationHub](Set-AzCommunicationServiceNotificationHub.md)
+Links an Azure Notification Hub to this communication service.
+
+### [Test-AzCommunicationServiceNameAvailability](Test-AzCommunicationServiceNameAvailability.md)
+Checks that the CommunicationService name is valid and is not already in use.
+
+### [Update-AzCommunicationService](Update-AzCommunicationService.md)
+Operation to update an existing CommunicationService.
+
diff --git a/src/Communication/Communication.Autorest/help/Get-AzCommunicationService.md b/src/Communication/Communication.Autorest/help/Get-AzCommunicationService.md
new file mode 100644
index 000000000000..0e9ba3903ec4
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/Get-AzCommunicationService.md
@@ -0,0 +1,166 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/get-azcommunicationservice
+schema: 2.0.0
+---
+
+# Get-AzCommunicationService
+
+## SYNOPSIS
+Get the CommunicationService and its properties.
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzCommunicationService [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### Get
+```
+Get-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzCommunicationService -InputObject [-DefaultProfile ]
+ []
+```
+
+### List1
+```
+Get-AzCommunicationService -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get the CommunicationService and its properties.
+
+## EXAMPLES
+
+### Example 1: List existing CommunicationServices for a Subscription
+```powershell
+Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8
+```
+
+```output
+Location Name Type AzureAsyncOperation
+-------- ---- ---- -------------------
+global ContosoResource1 Microsoft.Communication/communicationServices
+global ContosoResource4 Microsoft.Communication/communicationServices
+global ContosoResource3 Microsoft.Communication/communicationServices
+global ContosoResource5 Microsoft.Communication/communicationServices
+```
+
+Returns a list of all ACS resources under that subscription.
+
+### Example 2: Get infomation on specified Azure Communication resource
+```powershell
+Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
+```
+
+```output
+Location Name Type AzureAsyncOperation
+-------- ---- ---- -------------------
+Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+```
+
+Returns the information on an ACS resource, if one matching provided parameters is found.
+
+## PARAMETERS
+
+### -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.Communication.Models.ICommunicationIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Name
+The name of the CommunicationService resource.
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases: CommunicationServiceName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List1
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List, List1
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Communication.Models.ICommunicationIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/help/Get-AzCommunicationServiceKey.md b/src/Communication/Communication.Autorest/help/Get-AzCommunicationServiceKey.md
new file mode 100644
index 000000000000..d28a8044891a
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/Get-AzCommunicationServiceKey.md
@@ -0,0 +1,145 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/get-azcommunicationservicekey
+schema: 2.0.0
+---
+
+# Get-AzCommunicationServiceKey
+
+## SYNOPSIS
+Get the access keys of the CommunicationService resource.
+
+## SYNTAX
+
+```
+Get-AzCommunicationServiceKey -CommunicationServiceName -ResourceGroupName
+ [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Get the access keys of the CommunicationService resource.
+
+## EXAMPLES
+
+### Example 1: Fetch the Key for the specified Communcation service
+```powershell
+Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
+```
+
+```output
+PrimaryConnectionString PrimaryKey SecondaryConnectionString SecondaryKey
+----------------------- ---------- ----------------------- ----------
+endpoint= endpoint=
+```
+
+Displays the ConnectionString and Key for the specified Communcation service.
+
+## PARAMETERS
+
+### -CommunicationServiceName
+The name of the CommunicationService resource.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+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
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/help/New-AzCommunicationService.md b/src/Communication/Communication.Autorest/help/New-AzCommunicationService.md
new file mode 100644
index 000000000000..5d037e69caa9
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/New-AzCommunicationService.md
@@ -0,0 +1,221 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/new-azcommunicationservice
+schema: 2.0.0
+---
+
+# New-AzCommunicationService
+
+## SYNOPSIS
+Create a new CommunicationService or update an existing CommunicationService.
+
+## SYNTAX
+
+```
+New-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ]
+ [-DataLocation ] [-Location ] [-Tag ] [-DefaultProfile ] [-AsJob]
+ [-NoWait] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Create a new CommunicationService or update an existing CommunicationService.
+
+## EXAMPLES
+
+### Example 1: Create a ACS resource
+```powershell
+New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global
+```
+
+```output
+Location Name Type AzureAsyncOperation
+-------- ---- ---- -------------------
+Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+```
+
+Creates a ACS resource using the specified parameters.
+
+## 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
+```
+
+### -DataLocation
+The location where the communication service stores its data at rest.
+
+```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
+```
+
+### -Location
+The Azure location where the CommunicationService is running.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Name
+The name of the CommunicationService resource.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases: CommunicationServiceName
+
+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
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Tag
+Tags of the service which is a list of key value pairs that describe the resource.
+
+```yaml
+Type: System.Collections.Hashtable
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/help/New-AzCommunicationServiceKey.md b/src/Communication/Communication.Autorest/help/New-AzCommunicationServiceKey.md
new file mode 100644
index 000000000000..0e7d56296053
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/New-AzCommunicationServiceKey.md
@@ -0,0 +1,233 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/new-azcommunicationservicekey
+schema: 2.0.0
+---
+
+# New-AzCommunicationServiceKey
+
+## SYNOPSIS
+Regenerate CommunicationService access key.
+PrimaryKey and SecondaryKey cannot be regenerated at the same time.
+
+## SYNTAX
+
+### RegenerateExpanded (Default)
+```
+New-AzCommunicationServiceKey -CommunicationServiceName -ResourceGroupName
+ [-SubscriptionId ] [-KeyType ] [-DefaultProfile ] [-Confirm] [-WhatIf]
+ []
+```
+
+### Regenerate
+```
+New-AzCommunicationServiceKey -CommunicationServiceName -ResourceGroupName
+ -Parameter [-SubscriptionId ] [-DefaultProfile ] [-Confirm]
+ [-WhatIf] []
+```
+
+### RegenerateViaIdentity
+```
+New-AzCommunicationServiceKey -InputObject -Parameter
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+### RegenerateViaIdentityExpanded
+```
+New-AzCommunicationServiceKey -InputObject [-KeyType ]
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Regenerate CommunicationService access key.
+PrimaryKey and SecondaryKey cannot be regenerated at the same time.
+
+## EXAMPLES
+
+### Example 1: Regenerates the Primary key using a IRegenerateKeyParameters hashtable
+```powershell
+New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Parameter @{KeyType="Primary"}
+```
+
+```output
+PrimaryConnectionString PrimaryKey
+----------------------- ----------
+endpoint=
+```
+
+Invalidates the previous Primary key, regenerate a new one and return it.
+
+### Example 2: Regenerates the Secondary key using a KeyType
+```powershell
+New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary
+```
+
+```output
+SecondaryConnectionString SecondaryKey
+----------------------- ----------
+endpoint=
+```
+
+Invalidates the previous Secondary key, regenerate a new one and return it.
+
+## PARAMETERS
+
+### -CommunicationServiceName
+The name of the CommunicationService resource.
+
+```yaml
+Type: System.String
+Parameter Sets: Regenerate, RegenerateExpanded
+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.Communication.Models.ICommunicationIdentity
+Parameter Sets: RegenerateViaIdentity, RegenerateViaIdentityExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -KeyType
+The keyType to regenerate.
+Must be either 'primary' or 'secondary'(case-insensitive).
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.KeyType
+Parameter Sets: RegenerateExpanded, RegenerateViaIdentityExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Parameter
+Parameters describes the request to regenerate access keys
+To construct, see NOTES section for PARAMETER properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.IRegenerateKeyParameters
+Parameter Sets: Regenerate, RegenerateViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: Regenerate, RegenerateExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```yaml
+Type: System.String
+Parameter Sets: Regenerate, RegenerateExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Communication.Models.Api20200820.IRegenerateKeyParameters
+
+### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceKeys
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/help/README.md b/src/Communication/Communication.Autorest/help/README.md
new file mode 100644
index 000000000000..48f091a4ce63
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/README.md
@@ -0,0 +1,11 @@
+# Docs
+This directory contains the documentation of the cmdlets for the `Az.Communication` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder.
+
+## Info
+- Modifiable: no
+- Generated: all
+- Committed: yes
+- Packaged: yes
+
+## Details
+The process of documentation generation loads `Az.Communication` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.
\ No newline at end of file
diff --git a/src/Communication/Communication.Autorest/help/Remove-AzCommunicationService.md b/src/Communication/Communication.Autorest/help/Remove-AzCommunicationService.md
new file mode 100644
index 000000000000..d293165911b9
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/Remove-AzCommunicationService.md
@@ -0,0 +1,209 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/remove-azcommunicationservice
+schema: 2.0.0
+---
+
+# Remove-AzCommunicationService
+
+## SYNOPSIS
+Operation to delete a CommunicationService.
+
+## SYNTAX
+
+### Delete (Default)
+```
+Remove-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### DeleteViaIdentity
+```
+Remove-AzCommunicationService -InputObject [-DefaultProfile ] [-AsJob]
+ [-NoWait] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Operation to delete a CommunicationService.
+
+## EXAMPLES
+
+### Example 1: Remove the specified Azure Communication resource
+```powershell
+Remove-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
+```
+
+Remove / Delete the Azure Communication resource.
+
+## 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
+```
+
+### -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.Communication.Models.ICommunicationIdentity
+Parameter Sets: DeleteViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Name
+The name of the CommunicationService resource.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases: CommunicationServiceName
+
+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
+```
+
+### -PassThru
+Returns true when the command succeeds
+
+```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
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```yaml
+Type: System.String
+Parameter Sets: Delete
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Communication.Models.ICommunicationIdentity
+
+## OUTPUTS
+
+### System.Boolean
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/help/Set-AzCommunicationServiceNotificationHub.md b/src/Communication/Communication.Autorest/help/Set-AzCommunicationServiceNotificationHub.md
new file mode 100644
index 000000000000..a9d408a8f0ab
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/Set-AzCommunicationServiceNotificationHub.md
@@ -0,0 +1,196 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/set-azcommunicationservicenotificationhub
+schema: 2.0.0
+---
+
+# Set-AzCommunicationServiceNotificationHub
+
+## SYNOPSIS
+Links an Azure Notification Hub to this communication service.
+
+## SYNTAX
+
+### LinkExpanded (Default)
+```
+Set-AzCommunicationServiceNotificationHub -CommunicationServiceName -ResourceGroupName
+ -ConnectionString -NotificationHubResourceId [-SubscriptionId ]
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+### Link
+```
+Set-AzCommunicationServiceNotificationHub -CommunicationServiceName -ResourceGroupName
+ -LinkNotificationHubParameter [-SubscriptionId ]
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Links an Azure Notification Hub to this communication service.
+
+## EXAMPLES
+
+### Example 1: Provide Notification Hub details interactively
+```powershell
+Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "" -NotificationHubResourceId ""
+```
+
+A linked notification hub allows a ACS resource to send notifications for certain events.
+
+## PARAMETERS
+
+### -CommunicationServiceName
+The name of the CommunicationService resource.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ConnectionString
+Connection string for the notification hub
+
+```yaml
+Type: System.String
+Parameter Sets: LinkExpanded
+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
+```
+
+### -LinkNotificationHubParameter
+Description of an Azure Notification Hub to link to the communication service
+To construct, see NOTES section for LINKNOTIFICATIONHUBPARAMETER properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ILinkNotificationHubParameters
+Parameter Sets: Link
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -NotificationHubResourceId
+The resource ID of the notification hub
+
+```yaml
+Type: System.String
+Parameter Sets: LinkExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Communication.Models.Api20200820.ILinkNotificationHubParameters
+
+## OUTPUTS
+
+### System.String
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/help/Test-AzCommunicationServiceNameAvailability.md b/src/Communication/Communication.Autorest/help/Test-AzCommunicationServiceNameAvailability.md
new file mode 100644
index 000000000000..90ee42804202
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/Test-AzCommunicationServiceNameAvailability.md
@@ -0,0 +1,143 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/test-azcommunicationservicenameavailability
+schema: 2.0.0
+---
+
+# Test-AzCommunicationServiceNameAvailability
+
+## SYNOPSIS
+Checks that the CommunicationService name is valid and is not already in use.
+
+## SYNTAX
+
+```
+Test-AzCommunicationServiceNameAvailability -Name [-SubscriptionId ]
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Checks that the CommunicationService name is valid and is not already in use.
+
+## EXAMPLES
+
+### Example 1: Checks if already in use resource name ContosoAcsResource1 is available
+```powershell
+Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1
+```
+
+```output
+Message NameAvailable Reason
+------- ------------- ------
+Requested name is unavailable for the requested type False AlreadyExists
+```
+
+Verified that the CommunicationService name is valid and is not already in use.
+
+### Example 2: Checks if new resource name ContosoAcsResource2 is available
+```powershell
+Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2
+```
+
+```output
+Message NameAvailable Reason
+------- ------------- ------
+Requested name is available for the requested type True NameAvailable
+```
+
+Verified that the requested CommunicationService name already in use.
+
+## PARAMETERS
+
+### -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
+```
+
+### -Name
+The CommunicationService name to validate.
+e.g."my-CommunicationService-name-here"
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.INameAvailability
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/help/Update-AzCommunicationService.md b/src/Communication/Communication.Autorest/help/Update-AzCommunicationService.md
new file mode 100644
index 000000000000..66d05a2d74c2
--- /dev/null
+++ b/src/Communication/Communication.Autorest/help/Update-AzCommunicationService.md
@@ -0,0 +1,217 @@
+---
+external help file:
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/update-azcommunicationservice
+schema: 2.0.0
+---
+
+# Update-AzCommunicationService
+
+## SYNOPSIS
+Operation to update an existing CommunicationService.
+
+## SYNTAX
+
+### UpdateExpanded (Default)
+```
+Update-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ]
+ [-DataLocation ] [-Location ] [-Tag ] [-DefaultProfile ] [-Confirm]
+ [-WhatIf] []
+```
+
+### UpdateViaIdentityExpanded
+```
+Update-AzCommunicationService -InputObject [-DataLocation ]
+ [-Location ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf]
+ []
+```
+
+## DESCRIPTION
+Operation to update an existing CommunicationService.
+
+## EXAMPLES
+
+### Example 1: Update an existing ACS resource to have tags
+```powershell
+Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"}
+```
+
+```output
+Location Name Type AzureAsyncOperation
+-------- ---- ---- -------------------
+Global ContosoAcsResource1 Microsoft.Communication/communicationServices
+```
+
+Attaches the given tags to the specified ACS resource.
+
+## PARAMETERS
+
+### -DataLocation
+The location where the communication service stores its data at rest.
+
+```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.Communication.Models.ICommunicationIdentity
+Parameter Sets: UpdateViaIdentityExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Location
+The Azure location where the CommunicationService is running.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Name
+The name of the CommunicationService resource.
+
+```yaml
+Type: System.String
+Parameter Sets: UpdateExpanded
+Aliases: CommunicationServiceName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+The name is case insensitive.
+
+```yaml
+Type: System.String
+Parameter Sets: UpdateExpanded
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+The ID of the target subscription.
+
+```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
+```
+
+### -Tag
+Tags of the service which is a list of key value pairs that describe the resource.
+
+```yaml
+Type: System.Collections.Hashtable
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+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.Communication.Models.ICommunicationIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20200820.ICommunicationServiceResource
+
+## NOTES
+
+## RELATED LINKS
+
diff --git a/src/Communication/Communication.Autorest/internal/Get-AzCommunicationOperation.ps1 b/src/Communication/Communication.Autorest/internal/Get-AzCommunicationOperation.ps1
index 957bdcfe1d7b..c061bbcc028e 100644
--- a/src/Communication/Communication.Autorest/internal/Get-AzCommunicationOperation.ps1
+++ b/src/Communication/Communication.Autorest/internal/Get-AzCommunicationOperation.ps1
@@ -20,13 +20,9 @@ Lists all of the available REST API operations of the Microsoft.Communication pr
.Description
Lists all of the available REST API operations of the Microsoft.Communication provider.
.Example
-PS C:\> {{ Add code here }}
-
-{{ Add output here }}
+{{ Add code here }}
.Example
-PS C:\> {{ Add code here }}
-
-{{ Add output here }}
+{{ Add code here }}
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperation
@@ -42,7 +38,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -92,6 +89,7 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
$mapping = @{
List = 'Az.Communication.private\Get-AzCommunicationOperation_List';
}
@@ -101,6 +99,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+
throw
}
}
@@ -109,15 +108,18 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+
throw
}
-}
+}
end {
try {
$steppablePipeline.End()
+
} catch {
+
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/Communication/Communication.Autorest/internal/ProxyCmdletDefinitions.ps1
index 957bdcfe1d7b..c061bbcc028e 100644
--- a/src/Communication/Communication.Autorest/internal/ProxyCmdletDefinitions.ps1
+++ b/src/Communication/Communication.Autorest/internal/ProxyCmdletDefinitions.ps1
@@ -20,13 +20,9 @@ Lists all of the available REST API operations of the Microsoft.Communication pr
.Description
Lists all of the available REST API operations of the Microsoft.Communication provider.
.Example
-PS C:\> {{ Add code here }}
-
-{{ Add output here }}
+{{ Add code here }}
.Example
-PS C:\> {{ Add code here }}
-
-{{ Add output here }}
+{{ Add code here }}
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20.IOperation
@@ -42,7 +38,8 @@ param(
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Communication.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter(DontShow)]
@@ -92,6 +89,7 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
$mapping = @{
List = 'Az.Communication.private\Get-AzCommunicationOperation_List';
}
@@ -101,6 +99,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+
throw
}
}
@@ -109,15 +108,18 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+
throw
}
-}
+}
end {
try {
$steppablePipeline.End()
+
} catch {
+
throw
}
-}
+}
}
diff --git a/src/Communication/Communication.Autorest/internal/README.md b/src/Communication/Communication.Autorest/internal/README.md
index ec681cc01be3..0ec53fcb7700 100644
--- a/src/Communication/Communication.Autorest/internal/README.md
+++ b/src/Communication/Communication.Autorest/internal/README.md
@@ -1,5 +1,5 @@
# Internal
-This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.
+This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.
## Info
- Modifiable: no
@@ -11,4 +11,4 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that
The `Az.Communication.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.Communication`. Instead, this sub-module is imported by the `..\custom\Az.Communication.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.Communication.internal\Get-Example` would call an internal cmdlet named `Get-Example`.
## Purpose
-This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.Communication`.
\ No newline at end of file
+This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.Communication`.
diff --git a/src/Communication/Communication.sln b/src/Communication/Communication.sln
index 1583a6249168..608adb34b0a3 100644
--- a/src/Communication/Communication.sln
+++ b/src/Communication/Communication.sln
@@ -21,6 +21,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Communication", "Communi
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Communication", "Communication\Communication.csproj", "{BC377B3E-760F-4C72-8E2B-64F295F35AC6}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.EmailService", "EmailService.Autorest\Az.EmailService.csproj", "{FC1241C9-8A04-4E0D-9C8E-658CCD5C0B23}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -62,6 +64,10 @@ Global
{BC377B3E-760F-4C72-8E2B-64F295F35AC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC377B3E-760F-4C72-8E2B-64F295F35AC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC377B3E-760F-4C72-8E2B-64F295F35AC6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FC1241C9-8A04-4E0D-9C8E-658CCD5C0B23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FC1241C9-8A04-4E0D-9C8E-658CCD5C0B23}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FC1241C9-8A04-4E0D-9C8E-658CCD5C0B23}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FC1241C9-8A04-4E0D-9C8E-658CCD5C0B23}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{BDECA744-485E-4FBF-BDBC-D58635179F45} = {8C6025CF-0F63-49CE-8FBE-8275AFC0AD14}
diff --git a/src/Communication/Communication/Az.Communication.psd1 b/src/Communication/Communication/Az.Communication.psd1
index 4603c5901aea..a954182c273f 100644
--- a/src/Communication/Communication/Az.Communication.psd1
+++ b/src/Communication/Communication/Az.Communication.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 12/5/2023
+# Generated on: 3/11/2024
#
@{
@@ -51,10 +51,11 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; })
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.16.0'; })
# Assemblies that must be loaded prior to importing this module
-RequiredAssemblies = 'Communication.Autorest/bin/Az.Communication.private.dll'
+RequiredAssemblies = 'Communication.Autorest/bin/Az.Communication.private.dll',
+ 'EmailService.Autorest/bin/Az.EmailService.private.dll'
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
ScriptsToProcess = @()
@@ -63,18 +64,29 @@ ScriptsToProcess = @()
TypesToProcess = @()
# Format files (.ps1xml) to be loaded when importing this module
-FormatsToProcess = 'Communication.Autorest/Az.Communication.format.ps1xml'
+FormatsToProcess = 'Communication.Autorest/Az.Communication.format.ps1xml',
+ 'EmailService.Autorest/Az.EmailService.format.ps1xml'
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
-NestedModules = @('Communication.Autorest/Az.Communication.psm1')
+NestedModules = @('Communication.Autorest/Az.Communication.psm1',
+ 'EmailService.Autorest/Az.EmailService.psm1')
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Get-AzCommunicationService', 'Get-AzCommunicationServiceKey',
+ 'Get-AzEmailService', 'Get-AzEmailServiceDomain',
+ 'Get-AzEmailServiceSenderUsername',
+ 'Invoke-AzEmailServiceInitiateDomainVerification',
'New-AzCommunicationService', 'New-AzCommunicationServiceKey',
- 'Remove-AzCommunicationService',
+ 'New-AzEmailService', 'New-AzEmailServiceDomain',
+ 'New-AzEmailServiceSenderUsername', 'Remove-AzCommunicationService',
+ 'Remove-AzEmailService', 'Remove-AzEmailServiceDomain',
+ 'Remove-AzEmailServiceSenderUsername',
'Set-AzCommunicationServiceNotificationHub',
+ 'Stop-AzEmailServiceDomainVerification',
'Test-AzCommunicationServiceNameAvailability',
- 'Update-AzCommunicationService'
+ 'Update-AzCommunicationService', 'Update-AzEmailService',
+ 'Update-AzEmailServiceDomain',
+ 'Update-AzEmailServiceSenderUsername'
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
diff --git a/src/Communication/Communication/ChangeLog.md b/src/Communication/Communication/ChangeLog.md
index 9ea73c456cdc..bdfa8271a456 100644
--- a/src/Communication/Communication/ChangeLog.md
+++ b/src/Communication/Communication/ChangeLog.md
@@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
+* First preview release for module Az.EmailService
## Version 0.2.0
* Added a new cmdlet `Test-AzCommunicationServiceNameAvailability`
diff --git a/src/Communication/Communication/help/Get-AzCommunicationService.md b/src/Communication/Communication/help/Get-AzCommunicationService.md
index d3f0df55cefc..397bce589302 100644
--- a/src/Communication/Communication/help/Get-AzCommunicationService.md
+++ b/src/Communication/Communication/help/Get-AzCommunicationService.md
@@ -1,5 +1,5 @@
---
-external help file:
+external help file: Az.Communication-help.xml
Module Name: Az.Communication
online version: https://learn.microsoft.com/powershell/module/az.communication/get-azcommunicationservice
schema: 2.0.0
@@ -14,25 +14,26 @@ Get the CommunicationService and its properties.
### List (Default)
```
-Get-AzCommunicationService [-SubscriptionId ] [-DefaultProfile ] []
+Get-AzCommunicationService [-SubscriptionId ] [-DefaultProfile ]
+ [-ProgressAction ] []
```
### Get
```
Get-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ]
- [-DefaultProfile ] []
+ [-DefaultProfile ] [-ProgressAction ] []
```
-### GetViaIdentity
+### List1
```
-Get-AzCommunicationService -InputObject [-DefaultProfile ]
- []
+Get-AzCommunicationService -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] [-ProgressAction ] []
```
-### List1
+### GetViaIdentity
```
-Get-AzCommunicationService -ResourceGroupName [-SubscriptionId ]
- [-DefaultProfile ] []
+Get-AzCommunicationService -InputObject [-DefaultProfile ]
+ [-ProgressAction ] []
```
## DESCRIPTION
@@ -117,6 +118,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+{{ Fill ProgressAction Description }}
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
@@ -138,7 +154,7 @@ The ID of the target subscription.
```yaml
Type: System.String[]
-Parameter Sets: Get, List, List1
+Parameter Sets: List, Get, List1
Aliases:
Required: False
@@ -175,4 +191,3 @@ INPUTOBJECT ``: Identity Parameter
- `[SubscriptionId ]`: The ID of the target subscription.
## RELATED LINKS
-
diff --git a/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md b/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md
index 870bb293c783..77ac68a55d99 100644
--- a/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md
+++ b/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md
@@ -1,5 +1,5 @@
---
-external help file:
+external help file: Az.Communication-help.xml
Module Name: Az.Communication
online version: https://learn.microsoft.com/powershell/module/az.communication/get-azcommunicationservicekey
schema: 2.0.0
@@ -14,7 +14,8 @@ Get the access keys of the CommunicationService resource.
```
Get-AzCommunicationServiceKey -CommunicationServiceName -ResourceGroupName
- [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] []
+ [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf]
+ [-Confirm] []
```
## DESCRIPTION
@@ -67,6 +68,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ProgressAction
+{{ Fill ProgressAction Description }}
+
+```yaml
+Type: System.Management.Automation.ActionPreference
+Parameter Sets: (All)
+Aliases: proga
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
@@ -143,4 +159,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
ALIASES
## RELATED LINKS
-
diff --git a/src/Communication/Communication/help/Get-AzEmailService.md b/src/Communication/Communication/help/Get-AzEmailService.md
new file mode 100644
index 000000000000..a4b6066efa7f
--- /dev/null
+++ b/src/Communication/Communication/help/Get-AzEmailService.md
@@ -0,0 +1,177 @@
+---
+external help file: Az.Communication-help.xml
+Module Name: Az.Communication
+online version: https://learn.microsoft.com/powershell/module/az.communication/get-azemailservice
+schema: 2.0.0
+---
+
+# Get-AzEmailService
+
+## SYNOPSIS
+Get the EmailService and its properties.
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzEmailService [-SubscriptionId ] [-DefaultProfile ]
+ [-ProgressAction ] []
+```
+
+### Get
+```
+Get-AzEmailService -Name -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] [-ProgressAction ] []
+```
+
+### List1
+```
+Get-AzEmailService -ResourceGroupName [-SubscriptionId ] [-DefaultProfile