diff --git a/src/VoiceServices/Az.VoiceServices.format.ps1xml b/src/VoiceServices/Az.VoiceServices.format.ps1xml
index 572cabd77405..33bfa7a4dde6 100644
--- a/src/VoiceServices/Az.VoiceServices.format.ps1xml
+++ b/src/VoiceServices/Az.VoiceServices.format.ps1xml
@@ -23,28 +23,6 @@
-
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ContactsDeleteAcceptedResponseHeaders
-
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.ContactsDeleteAcceptedResponseHeaders
-
-
-
-
-
-
-
-
-
-
-
- RetryAfter
-
-
-
-
-
-
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.TestLinesDeleteAcceptedResponseHeaders
@@ -78,7 +56,7 @@
-
+
@@ -97,7 +75,7 @@
CommunicationsGatewayName
- ContactName
+ Location
ResourceGroupName
@@ -410,149 +388,55 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGateway
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CheckNameAvailabilityRequest
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGateway
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CheckNameAvailabilityRequest
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Location
-
Name
-
- SystemDataCreatedAt
-
-
- SystemDataCreatedBy
-
-
- SystemDataCreatedByType
-
-
- SystemDataLastModifiedAt
-
-
- SystemDataLastModifiedBy
-
-
- SystemDataLastModifiedByType
-
-
- ResourceGroupName
-
-
- RetryAfter
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayListResult
-
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayListResult
-
-
-
-
-
-
-
-
-
-
-
- NextLink
-
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CheckNameAvailabilityResponse
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CheckNameAvailabilityResponse
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
- Codec
-
-
- Connectivity
-
-
- E911Type
-
-
- Platform
+ Message
- ProvisioningState
+ NameAvailable
- Status
+ Reason
@@ -560,31 +444,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGateway
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayUpdateTags
-
-
-
-
-
-
-
-
-
-
-
- Item
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.Contact
-
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.Contact
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGateway
@@ -658,9 +520,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ContactListResult
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayListResult
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ContactListResult
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayListResult
@@ -680,45 +542,81 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ContactProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayProperties
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ContactProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayProperties
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
- ContactName
+ AutoGeneratedDomainNameLabel
- Email
+ AutoGeneratedDomainNameLabelScope
- PhoneNumber
+ Codec
+
+
+ Connectivity
+
+
+ E911Type
+
+
+ EmergencyDialString
+
+
+ OnPremMcpEnabled
+
+
+ Platform
ProvisioningState
- Role
+ Status
+
+
+ TeamsVoicemailPilotNumber
@@ -726,9 +624,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ContactUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayUpdateTags
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ContactUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayUpdateTags
@@ -748,12 +646,18 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.PrimaryRegionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.PrimaryRegionProperties
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.PrimaryRegionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.PrimaryRegionProperties
+
+
+
+
+
+
@@ -764,6 +668,12 @@
+
+ AllowedMediaSourceAddressPrefix
+
+
+ AllowedSignalingSourceAddressPrefix
+
EsrpAddress
@@ -776,9 +686,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties
@@ -798,9 +708,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLine
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLine
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLine
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLine
@@ -874,9 +784,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLineListResult
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLineListResult
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLineListResult
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLineListResult
@@ -896,9 +806,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLineProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLineProperties
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLineProperties
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLineProperties
@@ -930,9 +840,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLineUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLineUpdateTags
- Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.TestLineUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.TestLineUpdateTags
diff --git a/src/VoiceServices/Az.VoiceServices.psd1 b/src/VoiceServices/Az.VoiceServices.psd1
index dda10d48570c..83dab6347874 100644
--- a/src/VoiceServices/Az.VoiceServices.psd1
+++ b/src/VoiceServices/Az.VoiceServices.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 12/22/2022
+# Generated on: 1/31/2023
#
@{
@@ -69,17 +69,14 @@ FormatsToProcess = './Az.VoiceServices.format.ps1xml'
# 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-AzVoiceServicesCommunicationsContact',
- 'Get-AzVoiceServicesCommunicationsGateway',
+FunctionsToExport = 'Get-AzVoiceServicesCommunicationsGateway',
'Get-AzVoiceServicesCommunicationsTestLine',
- 'New-AzVoiceServicesCommunicationsContact',
'New-AzVoiceServicesCommunicationsGateway',
'New-AzVoiceServicesCommunicationsGatewayServiceRegionObject',
'New-AzVoiceServicesCommunicationsTestLine',
- 'Remove-AzVoiceServicesCommunicationsContact',
'Remove-AzVoiceServicesCommunicationsGateway',
'Remove-AzVoiceServicesCommunicationsTestLine',
- 'Update-AzVoiceServicesCommunicationsContact',
+ 'Test-AzVoiceServicesNameAvailability',
'Update-AzVoiceServicesCommunicationsGateway',
'Update-AzVoiceServicesCommunicationsTestLine'
diff --git a/src/VoiceServices/Az.VoiceServices.psm1 b/src/VoiceServices/Az.VoiceServices.psm1
index 8b311178cd7b..ca34d0fe70d4 100644
--- a/src/VoiceServices/Az.VoiceServices.psm1
+++ b/src/VoiceServices/Az.VoiceServices.psm1
@@ -33,7 +33,7 @@
}
if(-not $accountsModule) {
- 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
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.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
}
diff --git a/src/VoiceServices/Changelog.md b/src/VoiceServices/Changelog.md
index 0f2897870fae..f8ac4582565d 100644
--- a/src/VoiceServices/Changelog.md
+++ b/src/VoiceServices/Changelog.md
@@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
+* Upgraded API version to 2023-01-31
## Version 0.1.0
* First preview release for module Az.VoiceServices
diff --git a/src/VoiceServices/README.md b/src/VoiceServices/README.md
index fa3b76e1c8fb..ef54081a2b79 100644
--- a/src/VoiceServices/README.md
+++ b/src/VoiceServices/README.md
@@ -35,11 +35,12 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
+branch: 78ec1b99699a4bf44869bd13f1b0ed7d92a99c27
require:
- $(this-folder)/../readme.azure.noprofile.md
-# lock the commit
-input-file:
- - $(this-folder)\test\swagger\voiceservices\resource-manager\Microsoft.VoiceServices\preview\2022-12-01-preview\openapi.json
+ - $(repo)/specification/voiceservices/resource-manager/readme.md
+try-require:
+ - $(repo)/specification/voiceservices/resource-manager/readme.powershell.md
subject-prefix: $(service-name)
@@ -57,17 +58,27 @@ directive:
"additionalProperties": true,
"description": "Details of API bridge functionality."
}
-
+
+ - where:
+ subject: ^NameAvailabilityLocal$
+ variant: ^Check$|^CheckViaIdentity$|^CheckViaIdentityExpanded$
+ remove: true
+ - where:
+ subject: ^NameAvailabilityLocal$
+ set:
+ subject: NameAvailability
+
- where:
subject: CommunicationGateway
set:
subject: CommunicationsGateway
- where:
- subject: Contact
+ subject: CommunicationsGateway
+ parameter-name: AutoGeneratedDomainNameLabelScope
set:
- subject: CommunicationsContact
-
+ parameter-name: DomainNameLabelScope
+
- where:
subject: TestLine
set:
diff --git a/src/VoiceServices/VoiceServices.sln b/src/VoiceServices/VoiceServices.sln
index 9907a4e2bb9b..1d296099c14f 100644
--- a/src/VoiceServices/VoiceServices.sln
+++ b/src/VoiceServices/VoiceServices.sln
@@ -3,17 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{F668F433-02BE-4F65-8374-414C6523BAB1}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BB33970E-1200-4692-B30D-604108E39C16}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{2B259982-8BF3-4E9F-949A-F41E19B40F1C}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{7095CE5C-C76E-468E-95C0-842B688514C9}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{0983AC64-6354-4307-8F1E-1F31BC74ECE0}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{57014F4D-7FA1-4C2E-8ED3-2727462421BA}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{8F6A289A-0308-41C2-B504-CA823A3BBCD1}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{091B6ABF-3A43-4A99-9E1C-95DC816D80A5}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.VoiceServices", "Az.VoiceServices.csproj", "{C2C8DF49-30AE-4358-8D89-DE70022F757F}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.VoiceServices", "Az.VoiceServices.csproj", "{51869C9B-520A-47FA-883E-2026BDF21655}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -24,29 +26,33 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {F668F433-02BE-4F65-8374-414C6523BAB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F668F433-02BE-4F65-8374-414C6523BAB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F668F433-02BE-4F65-8374-414C6523BAB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F668F433-02BE-4F65-8374-414C6523BAB1}.Release|Any CPU.Build.0 = Release|Any CPU
- {2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Release|Any CPU.Build.0 = Release|Any CPU
- {7095CE5C-C76E-468E-95C0-842B688514C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7095CE5C-C76E-468E-95C0-842B688514C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {7095CE5C-C76E-468E-95C0-842B688514C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7095CE5C-C76E-468E-95C0-842B688514C9}.Release|Any CPU.Build.0 = Release|Any CPU
- {0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Release|Any CPU.Build.0 = Release|Any CPU
- {8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Release|Any CPU.Build.0 = Release|Any CPU
- {C2C8DF49-30AE-4358-8D89-DE70022F757F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C2C8DF49-30AE-4358-8D89-DE70022F757F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C2C8DF49-30AE-4358-8D89-DE70022F757F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C2C8DF49-30AE-4358-8D89-DE70022F757F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BB33970E-1200-4692-B30D-604108E39C16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BB33970E-1200-4692-B30D-604108E39C16}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BB33970E-1200-4692-B30D-604108E39C16}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BB33970E-1200-4692-B30D-604108E39C16}.Release|Any CPU.Build.0 = Release|Any CPU
+ {3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Release|Any CPU.Build.0 = Release|Any CPU
+ {51869C9B-520A-47FA-883E-2026BDF21655}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {51869C9B-520A-47FA-883E-2026BDF21655}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {51869C9B-520A-47FA-883E-2026BDF21655}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {51869C9B-520A-47FA-883E-2026BDF21655}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/src/VoiceServices/custom/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1 b/src/VoiceServices/custom/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1
index b8f1592f888e..15ff54e839ad 100644
--- a/src/VoiceServices/custom/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1
+++ b/src/VoiceServices/custom/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1
@@ -21,12 +21,12 @@ Create an in-memory object for ServiceRegionProperties.
Create an in-memory object for ServiceRegionProperties.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties
.Link
https://learn.microsoft.com/powershell/module/az.VoiceServices/new-AzVoiceServicesCommunicationsGatewayServiceRegionObject
#>
function New-AzVoiceServicesCommunicationsGatewayServiceRegionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -42,7 +42,7 @@ function New-AzVoiceServicesCommunicationsGatewayServiceRegionObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties]::New()
if ($PSBoundParameters.ContainsKey('Name')) {
$Object.Name = $Name
diff --git a/src/VoiceServices/custom/README.md b/src/VoiceServices/custom/README.md
index c3a67d02c66a..2991fbb47729 100644
--- a/src/VoiceServices/custom/README.md
+++ b/src/VoiceServices/custom/README.md
@@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s
### Attributes
For processing the cmdlets, we've created some additional attributes:
- `Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.DescriptionAttribute`
- - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
+ - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- `Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.VoiceServices`.
- `Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.InternalExportAttribute`
diff --git a/src/VoiceServices/examples/Get-AzVoiceServicesCommunicationsContact.md b/src/VoiceServices/examples/Get-AzVoiceServicesCommunicationsContact.md
deleted file mode 100644
index 14d297bf0720..000000000000
--- a/src/VoiceServices/examples/Get-AzVoiceServicesCommunicationsContact.md
+++ /dev/null
@@ -1,38 +0,0 @@
-### Example 1: List all contacts under the communications gateway
-```powershell
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01
-```
-
-```output
-Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName RetryAfter
--------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ----------------- ----------
-westcentralus gateway-01 12/7/2022 7:47:30 AM v-diya@microsoft.com User 12/7/2022 7:47:30 AM v-diya@microsoft.com User vtest-communication-rg
-```
-
-List all contacts under the communications gateway.
-
-### Example 2: Get a contact
-```powershell
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01
-```
-
-```output
-Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName RetryAfter
--------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ----------------- ----------
-westcentralus gateway-01 12/7/2022 7:47:30 AM v-diya@microsoft.com User 12/7/2022 7:47:30 AM v-diya@microsoft.com User vtest-communication-rg
-```
-
-Get a contact.
-
-### Example 3: Get a contact by pipeline
-```powershell
-New-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 -Location 'westcentralus' -PhoneNumber "+1-555-1234" -FullContactName "John Smith" -Email "johnsmith@example.com" -Role "Network Manager" | Get-AzVoiceServicesCommunicationsContact
-```
-
-```output
-Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName RetryAfter
--------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ----------------- ----------
-westcentralus gateway-01 12/7/2022 7:47:30 AM v-diya@microsoft.com User 12/7/2022 7:47:30 AM v-diya@microsoft.com User vtest-communication-rg
-```
-
-Get a contact by pipeline.
\ No newline at end of file
diff --git a/src/VoiceServices/examples/New-AzVoiceServicesCommunicationsContact.md b/src/VoiceServices/examples/New-AzVoiceServicesCommunicationsContact.md
deleted file mode 100644
index 5496f866e2fe..000000000000
--- a/src/VoiceServices/examples/New-AzVoiceServicesCommunicationsContact.md
+++ /dev/null
@@ -1,12 +0,0 @@
-### Example 1: Create a contact for the communications gateway
-```powershell
-New-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name contact-01 -Location 'westcentralus' -PhoneNumber "+1-555-1234" -FullContactName "John Smith" -Email "johnsmith@example.com" -Role "Network Manager"
-```
-
-```output
-Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName RetryAfter
--------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ----------------- ----------
-westcentralus contact-01 12/7/2022 7:47:30 AM v-diya@microsoft.com User 12/7/2022 7:47:30 AM v-diya@microsoft.com User vtest-communication-rg
-```
-
-Create a contact for the communications gateway.
\ No newline at end of file
diff --git a/src/VoiceServices/examples/Remove-AzVoiceServicesCommunicationsContact.md b/src/VoiceServices/examples/Remove-AzVoiceServicesCommunicationsContact.md
deleted file mode 100644
index 44a209386a37..000000000000
--- a/src/VoiceServices/examples/Remove-AzVoiceServicesCommunicationsContact.md
+++ /dev/null
@@ -1,20 +0,0 @@
-### Example 1: Delete a contact
-```powershell
-Remove-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01
-```
-
-```output
-```
-
-Delete a contact.
-
-### Example 2: Delete a contact by pipeline
-```powershell
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 | Remove-AzVoiceServicesCommunicationsContact
-```
-
-```output
-```
-
-Delete a contact by pipeline.
-
diff --git a/src/VoiceServices/examples/Test-AzVoiceServicesNameAvailability.md b/src/VoiceServices/examples/Test-AzVoiceServicesNameAvailability.md
new file mode 100644
index 000000000000..1a4689aff185
--- /dev/null
+++ b/src/VoiceServices/examples/Test-AzVoiceServicesNameAvailability.md
@@ -0,0 +1,12 @@
+### Example 1: Checks whether the resource name is available in the given region
+```powershell
+Test-AzVoiceServicesNameAvailability -Location eastus -Name 'VoiceServicesTestName' -Type "Microsoft.VoiceServices/CommunicationsGateways"
+```
+
+```output
+Message NameAvailable Reason
+------- ------------- ------
+ True
+```
+
+This command checks whether the resource name is available in the given region.
\ No newline at end of file
diff --git a/src/VoiceServices/examples/Update-AzVoiceServicesCommunicationsContact.md b/src/VoiceServices/examples/Update-AzVoiceServicesCommunicationsContact.md
deleted file mode 100644
index 1a0879cb5412..000000000000
--- a/src/VoiceServices/examples/Update-AzVoiceServicesCommunicationsContact.md
+++ /dev/null
@@ -1,25 +0,0 @@
-### Example 1: Update a contact
-```powershell
-Update-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 -Tag @{'key1'='value1'}
-```
-
-```output
-Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName RetryAfter
--------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ----------------- ----------
-westcentralus gateway-01 12/7/2022 7:47:30 AM v-diya@microsoft.com User 12/7/2022 8:34:33 AM v-diya@microsoft.com User vtest-communication-rg
-```
-
-Update a contact.
-
-### Example 2: Update a contact by pipeline
-```powershell
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 | Update-AzVoiceServicesCommunicationsContact -Tag @{'key1'='value1'}
-```
-
-```output
-Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName RetryAfter
--------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ----------------- ----------
-westcentralus gateway-01 12/7/2022 7:47:30 AM v-diya@microsoft.com User 12/7/2022 8:34:33 AM v-diya@microsoft.com User vtest-communication-rg
-```
-
-Update a contact by pipeline.
\ No newline at end of file
diff --git a/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsContact.ps1 b/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsContact.ps1
deleted file mode 100644
index b178d7ba3e29..000000000000
--- a/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsContact.ps1
+++ /dev/null
@@ -1,214 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Get a Contact
-.Description
-Get a Contact
-.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01
-.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01
-.Example
-New-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 -Location 'westcentralus' -PhoneNumber "+1-555-1234" -FullContactName "John Smith" -Email "johnsmith@example.com" -Role "Network Manager" | Get-AzVoiceServicesCommunicationsContact
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
- [TestLineName ]: Unique identifier for this test line
-.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/get-azvoiceservicescommunicationscontact
-#>
-function Get-AzVoiceServicesCommunicationsContact {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('ContactName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this contact
- ${Name},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.private\Get-AzVoiceServicesCommunicationsContact_Get';
- GetViaIdentity = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsContact_GetViaIdentity';
- List = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsContact_List';
- }
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $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
- }
-}
-
-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.VoiceServices.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/VoiceServices/exports/Get-AzVoiceServicesCommunicationsGateway.ps1 b/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsGateway.ps1
index 874afb3cb9bd..45324023f3fb 100644
--- a/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsGateway.ps1
+++ b/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsGateway.ps1
@@ -35,7 +35,7 @@ New-AzVoiceServicesCommunicationsGateway -ResourceGroupName 'vtest-communication
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -43,8 +43,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/get-azvoiceservicescommunicationsgateway
#>
function Get-AzVoiceServicesCommunicationsGateway {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsTestLine.ps1 b/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsTestLine.ps1
index 669299797683..cb30b27cf811 100644
--- a/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsTestLine.ps1
+++ b/src/VoiceServices/exports/Get-AzVoiceServicesCommunicationsTestLine.ps1
@@ -29,7 +29,7 @@ New-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -37,8 +37,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -46,7 +46,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/get-azvoiceservicescommunicationstestline
#>
function Get-AzVoiceServicesCommunicationsTestLine {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGateway.ps1 b/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGateway.ps1
index f604252109f5..097d489ea82a 100644
--- a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGateway.ps1
+++ b/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGateway.ps1
@@ -27,7 +27,7 @@ $region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name use
New-AzVoiceServicesCommunicationsGateway -ResourceGroupName 'vtest-communication-rg' -Name vsc-gateway-pwsh01 -Location 'westcentralus' -Codec 'PCMA' -E911Type 'Standard' -Platform 'OperatorConnect' -ServiceLocation $region
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -36,12 +36,14 @@ To create the parameters described below, construct a hash table containing the
SERVICELOCATION : The regions in which to deploy the resources needed for Teams Calling
Name : The name of the region in which the resources needed for Teams Calling will be deployed.
PrimaryRegionPropertyOperatorAddress : IP address to use to contact the operator network from this region
+ [PrimaryRegionPropertyAllowedMediaSourceAddressPrefix ]: The allowed source IP address or CIDR ranges for media
+ [PrimaryRegionPropertyAllowedSignalingSourceAddressPrefix ]: The allowed source IP address or CIDR ranges for signaling
[PrimaryRegionPropertyEsrpAddress ]: IP address to use to contact the ESRP from this region
.Link
https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationsgateway
#>
function New-AzVoiceServicesCommunicationsGateway {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -72,7 +74,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IApiBridgeProperties]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.IApiBridgeProperties]))]
[System.Collections.Hashtable]
# Details of API bridge functionality, if required
${ApiBridge},
@@ -85,6 +87,13 @@ param(
# Voice codecs to support
${Codec},
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.AutoGeneratedDomainNameLabelScope])]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.AutoGeneratedDomainNameLabelScope]
+ # The scope at which the auto-generated domain name can be re-used
+ ${DomainNameLabelScope},
+
[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.E911Type])]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
@@ -92,6 +101,19 @@ param(
# How to handle 911 calls
${E911Type},
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.String[]]
+ # A list of dial strings used for emergency calling.
+ ${EmergencyDialString},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether an on-premises Mobile Control Point is in use.
+ ${OnPremMcpEnabled},
+
[Parameter()]
[AllowEmptyCollection()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.CommunicationsPlatform])]
@@ -103,7 +125,7 @@ param(
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IServiceRegionProperties[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.IServiceRegionProperties[]]
# The regions in which to deploy the resources needed for Teams Calling
# To construct, see NOTES section for SERVICELOCATION properties and create a hash table.
${ServiceLocation},
@@ -115,6 +137,12 @@ param(
# Resource tags.
${Tag},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.String]
+ # This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
+ ${TeamsVoicemailPilotNumber},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
diff --git a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1 b/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1
index af86baa27a63..944020fd3aa8 100644
--- a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1
+++ b/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1
@@ -20,19 +20,19 @@ Create an in-memory object for ServiceRegionProperties.
.Description
Create an in-memory object for ServiceRegionProperties.
.Example
-region = @()
+$region = @()
$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast -PrimaryRegionOperatorAddress '198.51.100.1'
$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast2 -PrimaryRegionOperatorAddress '198.51.100.2'
New-AzVoiceServicesCommunicationsGateway -ResourceGroupName 'vtest-communication-rg' -Name vsc-gateway-pwsh01 -Location 'westcentralus' -Codec 'PCMA' -E911Type 'Standard' -Platform 'OperatorConnect' -ServiceLocation $region
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties
.Link
https://learn.microsoft.com/powershell/module/az.VoiceServices/new-AzVoiceServicesCommunicationsGatewayServiceRegionObject
#>
function New-AzVoiceServicesCommunicationsGatewayServiceRegionObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
diff --git a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsTestLine.ps1 b/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsTestLine.ps1
index acb8058156bf..497484c0cfb8 100644
--- a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsTestLine.ps1
+++ b/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsTestLine.ps1
@@ -23,12 +23,12 @@ Create a TestLine
New-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name testline-01 -Location westcentralus -Purpose 'Automated' -PhoneNumber "+1-555-1234"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine
.Link
https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationstestline
#>
function New-AzVoiceServicesCommunicationsTestLine {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/VoiceServices/exports/ProxyCmdletDefinitions.ps1 b/src/VoiceServices/exports/ProxyCmdletDefinitions.ps1
index 75a65d9ad2a8..d7eeb202711c 100644
--- a/src/VoiceServices/exports/ProxyCmdletDefinitions.ps1
+++ b/src/VoiceServices/exports/ProxyCmdletDefinitions.ps1
@@ -14,205 +14,6 @@
# is regenerated.
# ----------------------------------------------------------------------------------
-<#
-.Synopsis
-Get a Contact
-.Description
-Get a Contact
-.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01
-.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01
-.Example
-New-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 -Location 'westcentralus' -PhoneNumber "+1-555-1234" -FullContactName "John Smith" -Email "johnsmith@example.com" -Role "Network Manager" | Get-AzVoiceServicesCommunicationsContact
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
- [TestLineName ]: Unique identifier for this test line
-.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/get-azvoiceservicescommunicationscontact
-#>
-function Get-AzVoiceServicesCommunicationsContact {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('ContactName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this contact
- ${Name},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.private\Get-AzVoiceServicesCommunicationsContact_Get';
- GetViaIdentity = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsContact_GetViaIdentity';
- List = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsContact_List';
- }
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $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
- }
-}
-
-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.VoiceServices.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
- }
-}
-}
-
<#
.Synopsis
Get a CommunicationsGateway
@@ -234,7 +35,7 @@ New-AzVoiceServicesCommunicationsGateway -ResourceGroupName 'vtest-communication
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -242,8 +43,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -251,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/get-azvoiceservicescommunicationsgateway
#>
function Get-AzVoiceServicesCommunicationsGateway {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -428,7 +229,7 @@ New-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -436,8 +237,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -445,7 +246,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/get-azvoiceservicescommunicationstestline
#>
function Get-AzVoiceServicesCommunicationsTestLine {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -466,470 +267,24 @@ param(
[Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.private\Get-AzVoiceServicesCommunicationsTestLine_Get';
- GetViaIdentity = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsTestLine_GetViaIdentity';
- List = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsTestLine_List';
- }
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $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
- }
-}
-
-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.VoiceServices.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
- }
-}
-}
-
-<#
-.Synopsis
-Create a Contact
-.Description
-Create a Contact
-.Example
-New-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name contact-01 -Location 'westcentralus' -PhoneNumber "+1-555-1234" -FullContactName "John Smith" -Email "johnsmith@example.com" -Role "Network Manager"
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact
-.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationscontact
-#>
-function New-AzVoiceServicesCommunicationsContact {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(Mandatory)]
- [Alias('ContactName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this contact
- ${Name},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # Email address of contact
- ${Email},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # Full name of contact
- ${FullContactName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # Telephone number of contact
- ${PhoneNumber},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # Job title of contact
- ${Role},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api30.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.private\New-AzVoiceServicesCommunicationsContact_CreateExpanded';
- }
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $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
- }
-}
-
-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.VoiceServices.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
- }
-}
-}
-
-<#
-.Synopsis
-Create a CommunicationsGateway
-.Description
-Create a CommunicationsGateway
-.Example
-$region = @()
-$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast -PrimaryRegionOperatorAddress '198.51.100.1'
-$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast2 -PrimaryRegionOperatorAddress '198.51.100.2'
-
-New-AzVoiceServicesCommunicationsGateway -ResourceGroupName 'vtest-communication-rg' -Name vsc-gateway-pwsh01 -Location 'westcentralus' -Codec 'PCMA' -E911Type 'Standard' -Platform 'OperatorConnect' -ServiceLocation $region
-
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-SERVICELOCATION : The regions in which to deploy the resources needed for Teams Calling
- Name : The name of the region in which the resources needed for Teams Calling will be deployed.
- PrimaryRegionPropertyOperatorAddress : IP address to use to contact the operator network from this region
- [PrimaryRegionPropertyEsrpAddress ]: IP address to use to contact the ESRP from this region
-.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationsgateway
-#>
-function New-AzVoiceServicesCommunicationsGateway {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this deployment
- ${Name},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IApiBridgeProperties]))]
- [System.Collections.Hashtable]
- # Details of API bridge functionality, if required
- ${ApiBridge},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TeamsCodecs])]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TeamsCodecs[]]
- # Voice codecs to support
- ${Codec},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.E911Type])]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.E911Type]
- # How to handle 911 calls
- ${E911Type},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.CommunicationsPlatform])]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.CommunicationsPlatform[]]
- # What platforms to support
- ${Platform},
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IServiceRegionProperties[]]
- # The regions in which to deploy the resources needed for Teams Calling
- # To construct, see NOTES section for SERVICELOCATION properties and create a hash table.
- ${ServiceLocation},
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api30.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -939,12 +294,6 @@ param(
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -965,12 +314,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
[System.Uri]
@@ -1017,9 +360,11 @@ begin {
}
$mapping = @{
- CreateExpanded = 'Az.VoiceServices.private\New-AzVoiceServicesCommunicationsGateway_CreateExpanded';
+ Get = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsTestLine_Get';
+ GetViaIdentity = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsTestLine_GetViaIdentity';
+ List = 'Az.VoiceServices.private\Get-AzVoiceServicesCommunicationsTestLine_List';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -1070,32 +415,40 @@ end {
<#
.Synopsis
-Create a TestLine
+Create a CommunicationsGateway
.Description
-Create a TestLine
+Create a CommunicationsGateway
.Example
-New-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name testline-01 -Location westcentralus -Purpose 'Automated' -PhoneNumber "+1-555-1234"
+$region = @()
+$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast -PrimaryRegionOperatorAddress '198.51.100.1'
+$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast2 -PrimaryRegionOperatorAddress '198.51.100.2'
+
+New-AzVoiceServicesCommunicationsGateway -ResourceGroupName 'vtest-communication-rg' -Name vsc-gateway-pwsh01 -Location 'westcentralus' -Codec 'PCMA' -E911Type 'Standard' -Platform 'OperatorConnect' -ServiceLocation $region
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+SERVICELOCATION : The regions in which to deploy the resources needed for Teams Calling
+ Name : The name of the region in which the resources needed for Teams Calling will be deployed.
+ PrimaryRegionPropertyOperatorAddress : IP address to use to contact the operator network from this region
+ [PrimaryRegionPropertyAllowedMediaSourceAddressPrefix ]: The allowed source IP address or CIDR ranges for media
+ [PrimaryRegionPropertyAllowedSignalingSourceAddressPrefix ]: The allowed source IP address or CIDR ranges for signaling
+ [PrimaryRegionPropertyEsrpAddress ]: IP address to use to contact the ESRP from this region
.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationstestline
+https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationsgateway
#>
-function New-AzVoiceServicesCommunicationsTestLine {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine])]
+function New-AzVoiceServicesCommunicationsGateway {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[System.String]
# Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(Mandatory)]
- [Alias('TestLineName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this test line
${Name},
[Parameter(Mandatory)]
@@ -1120,17 +473,61 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # The phone number
- ${PhoneNumber},
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.IApiBridgeProperties]))]
+ [System.Collections.Hashtable]
+ # Details of API bridge functionality, if required
+ ${ApiBridge},
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TestLinePurpose])]
+ [AllowEmptyCollection()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TeamsCodecs])]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TestLinePurpose]
- # Purpose of this test line, e.g.
- # automated or manual testing
- ${Purpose},
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TeamsCodecs[]]
+ # Voice codecs to support
+ ${Codec},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.AutoGeneratedDomainNameLabelScope])]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.AutoGeneratedDomainNameLabelScope]
+ # The scope at which the auto-generated domain name can be re-used
+ ${DomainNameLabelScope},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.E911Type])]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.E911Type]
+ # How to handle 911 calls
+ ${E911Type},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.String[]]
+ # A list of dial strings used for emergency calling.
+ ${EmergencyDialString},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether an on-premises Mobile Control Point is in use.
+ ${OnPremMcpEnabled},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.CommunicationsPlatform])]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.CommunicationsPlatform[]]
+ # What platforms to support
+ ${Platform},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.IServiceRegionProperties[]]
+ # The regions in which to deploy the resources needed for Teams Calling
+ # To construct, see NOTES section for SERVICELOCATION properties and create a hash table.
+ ${ServiceLocation},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
@@ -1139,6 +536,12 @@ param(
# Resource tags.
${Tag},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.String]
+ # This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
+ ${TeamsVoicemailPilotNumber},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1225,7 +628,7 @@ begin {
}
$mapping = @{
- CreateExpanded = 'Az.VoiceServices.private\New-AzVoiceServicesCommunicationsTestLine_CreateExpanded';
+ CreateExpanded = 'Az.VoiceServices.private\New-AzVoiceServicesCommunicationsGateway_CreateExpanded';
}
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
@@ -1278,70 +681,74 @@ end {
<#
.Synopsis
-Delete a Contact
+Create a TestLine
.Description
-Delete a Contact
-.Example
-Remove-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01
+Create a TestLine
.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 | Remove-AzVoiceServicesCommunicationsContact
+New-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name testline-01 -Location westcentralus -Purpose 'Automated' -PhoneNumber "+1-555-1234"
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-System.Boolean
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
- [TestLineName ]: Unique identifier for this test line
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine
.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/remove-azvoiceservicescommunicationscontact
+https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationstestline
#>
-function Remove-AzVoiceServicesCommunicationsContact {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function New-AzVoiceServicesCommunicationsTestLine {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[System.String]
# Unique identifier for this deployment
${CommunicationsGatewayName},
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Alias('ContactName')]
+ [Parameter(Mandatory)]
+ [Alias('TestLineName')]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[System.String]
- # Unique identifier for this contact
+ # Unique identifier for this test line
${Name},
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Delete')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.String]
+ # The phone number
+ ${PhoneNumber},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TestLinePurpose])]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Support.TestLinePurpose]
+ # Purpose of this test line, e.g.
+ # automated or manual testing
+ ${Purpose},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -1383,12 +790,6 @@ param(
# Run the command asynchronously
${NoWait},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
[System.Uri]
@@ -1435,10 +836,9 @@ begin {
}
$mapping = @{
- Delete = 'Az.VoiceServices.private\Remove-AzVoiceServicesCommunicationsContact_Delete';
- DeleteViaIdentity = 'Az.VoiceServices.private\Remove-AzVoiceServicesCommunicationsContact_DeleteViaIdentity';
+ CreateExpanded = 'Az.VoiceServices.private\New-AzVoiceServicesCommunicationsTestLine_CreateExpanded';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -1508,8 +908,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -1713,8 +1113,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -1905,77 +1305,45 @@ end {
<#
.Synopsis
-Update a Contact
+Check whether the resource name is available in the given region.
.Description
-Update a Contact
+Check whether the resource name is available in the given region.
.Example
-Update-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 -Tag @{'key1'='value1'}
-.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 | Update-AzVoiceServicesCommunicationsContact -Tag @{'key1'='value1'}
+Test-AzVoiceServicesNameAvailability -Location eastus -Name 'VoiceServicesTestName' -Type "Microsoft.VoiceServices/CommunicationsGateways"
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
- [TestLineName ]: Unique identifier for this test line
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICheckNameAvailabilityResponse
.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/update-azvoiceservicescommunicationscontact
+https://learn.microsoft.com/powershell/module/az.voiceservices/test-azvoiceservicesnameavailability
#>
-function Update-AzVoiceServicesCommunicationsContact {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact])]
-[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Test-AzVoiceServicesNameAvailability {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICheckNameAvailabilityResponse])]
+[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Alias('ContactName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this contact
- ${Name},
-
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
+ # The location in which uniqueness will be verified.
+ ${Location},
- [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
+ [System.String]
+ # The name of the resource for which availability needs to be checked.
+ ${Name},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContactUpdateTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
+ [System.String]
+ # The resource type.
+ ${Type},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -2051,10 +1419,9 @@ begin {
}
$mapping = @{
- UpdateExpanded = 'Az.VoiceServices.private\Update-AzVoiceServicesCommunicationsContact_UpdateExpanded';
- UpdateViaIdentityExpanded = 'Az.VoiceServices.private\Update-AzVoiceServicesCommunicationsContact_UpdateViaIdentityExpanded';
+ CheckExpanded = 'Az.VoiceServices.private\Test-AzVoiceServicesNameAvailability_CheckExpanded';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -2116,7 +1483,7 @@ Get-AzVoiceServicesCommunicationsGateway -ResourceGroupName vtest-communication-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2124,8 +1491,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -2133,7 +1500,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/update-azvoiceservicescommunicationsgateway
#>
function Update-AzVoiceServicesCommunicationsGateway {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -2166,7 +1533,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGatewayUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGatewayUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -2310,7 +1677,7 @@ Get-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2318,8 +1685,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -2327,7 +1694,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/update-azvoiceservicescommunicationstestline
#>
function Update-AzVoiceServicesCommunicationsTestLine {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -2366,7 +1733,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLineUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLineUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -2503,19 +1870,19 @@ Create an in-memory object for ServiceRegionProperties.
.Description
Create an in-memory object for ServiceRegionProperties.
.Example
-region = @()
+$region = @()
$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast -PrimaryRegionOperatorAddress '198.51.100.1'
$region += New-AzVoiceServicesCommunicationsGatewayServiceRegionObject -Name useast2 -PrimaryRegionOperatorAddress '198.51.100.2'
New-AzVoiceServicesCommunicationsGateway -ResourceGroupName 'vtest-communication-rg' -Name vsc-gateway-pwsh01 -Location 'westcentralus' -Codec 'PCMA' -E911Type 'Standard' -Platform 'OperatorConnect' -ServiceLocation $region
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties
.Link
https://learn.microsoft.com/powershell/module/az.VoiceServices/new-AzVoiceServicesCommunicationsGatewayServiceRegionObject
#>
function New-AzVoiceServicesCommunicationsGatewayServiceRegionObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
diff --git a/src/VoiceServices/exports/README.md b/src/VoiceServices/exports/README.md
index 4f967969097b..6a923985f91c 100644
--- a/src/VoiceServices/exports/README.md
+++ b/src/VoiceServices/exports/README.md
@@ -1,5 +1,5 @@
# Exports
-This directory contains the cmdlets *exported by* `Az.VoiceServices`. No other cmdlets in this repository are directly exported. What that means is the `Az.VoiceServices` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. 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 the cmdlets *exported by* `Az.VoiceServices`. No other cmdlets in this repository are directly exported. What that means is the `Az.VoiceServices` module will run [Export-ModuleMember](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. 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
diff --git a/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsContact.ps1 b/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsContact.ps1
deleted file mode 100644
index e5a7d31afa95..000000000000
--- a/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsContact.ps1
+++ /dev/null
@@ -1,226 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Delete a Contact
-.Description
-Delete a Contact
-.Example
-Remove-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01
-.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 | Remove-AzVoiceServicesCommunicationsContact
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
-.Outputs
-System.Boolean
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
- [TestLineName ]: Unique identifier for this test line
-.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/remove-azvoiceservicescommunicationscontact
-#>
-function Remove-AzVoiceServicesCommunicationsContact {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Alias('ContactName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this contact
- ${Name},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Delete')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.private\Remove-AzVoiceServicesCommunicationsContact_Delete';
- DeleteViaIdentity = 'Az.VoiceServices.private\Remove-AzVoiceServicesCommunicationsContact_DeleteViaIdentity';
- }
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $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
- }
-}
-
-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.VoiceServices.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/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsGateway.ps1 b/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsGateway.ps1
index 4da313d0373f..b11065bc3dce 100644
--- a/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsGateway.ps1
+++ b/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsGateway.ps1
@@ -35,8 +35,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
diff --git a/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsTestLine.ps1 b/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsTestLine.ps1
index 2d448ef630ee..d96ec18a58ca 100644
--- a/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsTestLine.ps1
+++ b/src/VoiceServices/exports/Remove-AzVoiceServicesCommunicationsTestLine.ps1
@@ -35,8 +35,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
diff --git a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsContact.ps1 b/src/VoiceServices/exports/Test-AzVoiceServicesNameAvailability.ps1
similarity index 72%
rename from src/VoiceServices/exports/New-AzVoiceServicesCommunicationsContact.ps1
rename to src/VoiceServices/exports/Test-AzVoiceServicesNameAvailability.ps1
index e3822a86183d..7b51a22c6ba3 100644
--- a/src/VoiceServices/exports/New-AzVoiceServicesCommunicationsContact.ps1
+++ b/src/VoiceServices/exports/Test-AzVoiceServicesNameAvailability.ps1
@@ -16,40 +16,26 @@
<#
.Synopsis
-Create a Contact
+Check whether the resource name is available in the given region.
.Description
-Create a Contact
+Check whether the resource name is available in the given region.
.Example
-New-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name contact-01 -Location 'westcentralus' -PhoneNumber "+1-555-1234" -FullContactName "John Smith" -Email "johnsmith@example.com" -Role "Network Manager"
+Test-AzVoiceServicesNameAvailability -Location eastus -Name 'VoiceServicesTestName' -Type "Microsoft.VoiceServices/CommunicationsGateways"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICheckNameAvailabilityResponse
.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/new-azvoiceservicescommunicationscontact
+https://learn.microsoft.com/powershell/module/az.voiceservices/test-azvoiceservicesnameavailability
#>
-function New-AzVoiceServicesCommunicationsContact {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Test-AzVoiceServicesNameAvailability {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICheckNameAvailabilityResponse])]
+[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
[System.String]
- # Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(Mandatory)]
- [Alias('ContactName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this contact
- ${Name},
-
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
+ # The location in which uniqueness will be verified.
+ ${Location},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
@@ -58,42 +44,17 @@ param(
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
-
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
[System.String]
- # Email address of contact
- ${Email},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # Full name of contact
- ${FullContactName},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [System.String]
- # Telephone number of contact
- ${PhoneNumber},
+ # The name of the resource for which availability needs to be checked.
+ ${Name},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
[System.String]
- # Job title of contact
- ${Role},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api30.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
+ # The resource type.
+ ${Type},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -103,12 +64,6 @@ param(
# The credentials, account, tenant, and subscription used for communication with Azure.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -129,12 +84,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
[System.Uri]
@@ -181,9 +130,9 @@ begin {
}
$mapping = @{
- CreateExpanded = 'Az.VoiceServices.private\New-AzVoiceServicesCommunicationsContact_CreateExpanded';
+ CheckExpanded = 'Az.VoiceServices.private\Test-AzVoiceServicesNameAvailability_CheckExpanded';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
diff --git a/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsContact.ps1 b/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsContact.ps1
deleted file mode 100644
index 44cba79e7415..000000000000
--- a/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsContact.ps1
+++ /dev/null
@@ -1,215 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# 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.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Update a Contact
-.Description
-Update a Contact
-.Example
-Update-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 -Tag @{'key1'='value1'}
-.Example
-Get-AzVoiceServicesCommunicationsContact -ResourceGroupName vtest-communication-rg -CommunicationsGatewayName vsc-gateway-pwsh01 -Name gateway-01 | Update-AzVoiceServicesCommunicationsContact -Tag @{'key1'='value1'}
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
- [Id ]: Resource identity path
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [SubscriptionId ]: The ID of the target subscription.
- [TestLineName ]: Unique identifier for this test line
-.Link
-https://learn.microsoft.com/powershell/module/az.voiceservices/update-azvoiceservicescommunicationscontact
-#>
-function Update-AzVoiceServicesCommunicationsContact {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact])]
-[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this deployment
- ${CommunicationsGatewayName},
-
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Alias('ContactName')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # Unique identifier for this contact
- ${Name},
-
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [System.String]
- # The name of the resource group.
- # The name is case insensitive.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='UpdateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The ID of the target subscription.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContactUpdateTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.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.VoiceServices.private\Update-AzVoiceServicesCommunicationsContact_UpdateExpanded';
- UpdateViaIdentityExpanded = 'Az.VoiceServices.private\Update-AzVoiceServicesCommunicationsContact_UpdateViaIdentityExpanded';
- }
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- $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
- }
-}
-
-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.VoiceServices.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/VoiceServices/exports/Update-AzVoiceServicesCommunicationsGateway.ps1 b/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsGateway.ps1
index b62e41794b7d..392fb807f31b 100644
--- a/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsGateway.ps1
+++ b/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsGateway.ps1
@@ -27,7 +27,7 @@ Get-AzVoiceServicesCommunicationsGateway -ResourceGroupName vtest-communication-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -35,8 +35,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/update-azvoiceservicescommunicationsgateway
#>
function Update-AzVoiceServicesCommunicationsGateway {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -77,7 +77,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGatewayUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGatewayUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
diff --git a/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1 b/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1
index 2895ebfe3fb3..dfffbb79b89a 100644
--- a/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1
+++ b/src/VoiceServices/exports/Update-AzVoiceServicesCommunicationsTestLine.ps1
@@ -27,7 +27,7 @@ Get-AzVoiceServicesCommunicationsTestLine -ResourceGroupName vtest-communication
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.IVoiceServicesIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine
+Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -35,8 +35,8 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[CommunicationsGatewayName ]: Unique identifier for this deployment
- [ContactName ]: Unique identifier for this contact
[Id ]: Resource identity path
+ [Location ]: The location in which uniqueness will be verified.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
[TestLineName ]: Unique identifier for this test line
@@ -44,7 +44,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.voiceservices/update-azvoiceservicescommunicationstestline
#>
function Update-AzVoiceServicesCommunicationsTestLine {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLine])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLine])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -83,7 +83,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ITestLineUpdateTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ITestLineUpdateTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
diff --git a/src/VoiceServices/generate-info.json b/src/VoiceServices/generate-info.json
index ecc3d327c287..e4b3c9cd0dca 100644
--- a/src/VoiceServices/generate-info.json
+++ b/src/VoiceServices/generate-info.json
@@ -1,8 +1,8 @@
{
- "swagger_commit": "8bbdaa16bf2523c166b7933439e63ed945596a8b",
+ "swagger_commit": "794b03f1b40b6f7646528fbe06bcfce7b58223a9",
"node": "v14.15.5",
"autorest": "`-- (empty)",
- "autorest_core": "3.9.3",
+ "autorest_core": "3.9.4",
"autorest_modelerfour": "4.15.414",
"autorest_powershell": "3.0.498"
}
diff --git a/src/VoiceServices/generated/api/MicrosoftVoiceServices.cs b/src/VoiceServices/generated/api/MicrosoftVoiceServices.cs
index 1e7ed1646660..c701658b50b9 100644
--- a/src/VoiceServices/generated/api/MicrosoftVoiceServices.cs
+++ b/src/VoiceServices/generated/api/MicrosoftVoiceServices.cs
@@ -26,9 +26,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -72,9 +72,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -131,7 +131,7 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -245,7 +245,7 @@ public partial class MicrosoftVoiceServices
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGateway.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGateway.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
break;
}
default:
@@ -278,7 +278,7 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGateway body, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task CommunicationsGatewaysCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGateway body, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -309,7 +309,7 @@ public partial class MicrosoftVoiceServices
///
public async global::System.Threading.Tasks.Task CommunicationsGatewaysDelete(string subscriptionId, string resourceGroupName, string communicationsGatewayName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -351,7 +351,7 @@ public partial class MicrosoftVoiceServices
///
public async global::System.Threading.Tasks.Task CommunicationsGatewaysDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -582,9 +582,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysGet(string subscriptionId, string resourceGroupName, string communicationsGatewayName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysGet(string subscriptionId, string resourceGroupName, string communicationsGatewayName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -623,9 +623,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -676,7 +676,7 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task CommunicationsGatewaysGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task CommunicationsGatewaysGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -694,7 +694,7 @@ public partial class MicrosoftVoiceServices
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGateway.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGateway.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
break;
}
default:
@@ -751,9 +751,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -791,9 +791,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -844,7 +844,7 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task CommunicationsGatewaysListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task CommunicationsGatewaysListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -862,7 +862,7 @@ public partial class MicrosoftVoiceServices
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -915,9 +915,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -953,9 +953,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1003,7 +1003,7 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task CommunicationsGatewaysListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task CommunicationsGatewaysListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1021,7 +1021,7 @@ public partial class MicrosoftVoiceServices
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGatewayListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGatewayListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -1073,9 +1073,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGatewayUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGatewayUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1119,9 +1119,9 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGatewayUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGatewayUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
- var apiVersion = @"2022-12-01-preview";
+ var apiVersion = @"2023-01-31";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1176,7 +1176,7 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1194,7 +1194,7 @@ public partial class MicrosoftVoiceServices
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.CommunicationsGateway.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.CommunicationsGateway.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
break;
}
default:
@@ -1227,7 +1227,7 @@ public partial class MicrosoftVoiceServices
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdate_Validate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ICommunicationsGatewayUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task CommunicationsGatewaysUpdate_Validate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ICommunicationsGatewayUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -1243,936 +1243,10 @@ public partial class MicrosoftVoiceServices
}
}
- /// Create a Contact
+ /// Check whether the resource name is available in the given region.
+ /// The location in which uniqueness will be verified.
/// The ID of the target subscription.
- /// The name of the resource group. The name is case insensitive.
- /// Unique identifier for this deployment
- /// Unique identifier for this contact
- /// Resource create parameters.
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync pipeline to use to make the request.
- ///
- /// A that will be complete when handling of the response is completed.
- ///
- public async global::System.Threading.Tasks.Task ContactsCreateOrUpdate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string contactName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
- {
- var apiVersion = @"2022-12-01-preview";
- // Constant Parameters
- using( NoSynchronizationContext )
- {
- // construct URL
- var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
- "/subscriptions/"
- + global::System.Uri.EscapeDataString(subscriptionId)
- + "/resourceGroups/"
- + global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.VoiceServices/communicationsGateways/"
- + global::System.Uri.EscapeDataString(communicationsGatewayName)
- + "/contacts/"
- + global::System.Uri.EscapeDataString(contactName)
- + "?"
- + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
- ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- // generate request object
- var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Method.Put, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
- // set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
- request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
- // make the call
- await this.ContactsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender);
- }
- }
-
- /// Create a Contact
- ///
- /// Resource create parameters.
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync pipeline to use to make the request.
- ///
- /// A that will be complete when handling of the response is completed.
- ///
- public async global::System.Threading.Tasks.Task ContactsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
- {
- var apiVersion = @"2022-12-01-preview";
- // Constant Parameters
- using( NoSynchronizationContext )
- {
- // verify that Identity format is an exact match for uri
-
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.VoiceServices/communicationsGateways/(?[^/]+)/contacts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
- if (!_match.Success)
- {
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}'");
- }
-
- // replace URI parameters with values from identity
- var subscriptionId = _match.Groups["subscriptionId"].Value;
- var resourceGroupName = _match.Groups["resourceGroupName"].Value;
- var communicationsGatewayName = _match.Groups["communicationsGatewayName"].Value;
- var contactName = _match.Groups["contactName"].Value;
- // construct URL
- var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
- "/subscriptions/"
- + subscriptionId
- + "/resourceGroups/"
- + resourceGroupName
- + "/providers/Microsoft.VoiceServices/communicationsGateways/"
- + communicationsGatewayName
- + "/contacts/"
- + contactName
- + "?"
- + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
- ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- // generate request object
- var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Method.Put, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
- // set body content
- request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8);
- request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; }
- // make the call
- await this.ContactsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender);
- }
- }
-
- /// Actual wire call for method.
- /// the prepared HttpRequestMessage to send.
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync pipeline to use to make the request.
- ///
- /// A that will be complete when handling of the response is completed.
- ///
- internal async global::System.Threading.Tasks.Task ContactsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
- {
- using( NoSynchronizationContext )
- {
- global::System.Net.Http.HttpResponseMessage _response = null;
- try
- {
- var sendTask = sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; }
- _response = await sendTask;
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- // this operation supports x-ms-long-running-operation
- var _originalUri = request.RequestUri.AbsoluteUri;
- // declared final-state-via: azure-async-operation
- var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation");
- var location = _response.GetFirstHeader(@"Location");
- while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted )
- {
-
- // get the delay before polling. (default to 30 seconds if not present)
- int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- // start the delay timer (we'll await later...)
- var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token );
-
- // while we wait, let's grab the headers and get ready to poll.
- if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) {
- asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation");
- }
- if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) {
- location = _response.GetFirstHeader(@"Location");
- }
- var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation;
- request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Method.Get);
-
- // and let's look at the current response body and see if we have some information we can give back to the listener
- var content = await _response.Content.ReadAsStringAsync();
- await waiting;
-
- // check for cancellation
- if( eventListener.Token.IsCancellationRequested ) { return; }
-
- // drop the old response
- _response?.Dispose();
-
- // make the polling call
- _response = await sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- // if we got back an OK, take a peek inside and see if it's done
- if( _response.StatusCode == global::System.Net.HttpStatusCode.OK)
- {
- var error = false;
- try {
- if( Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonObject json)
- {
- var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status");
- if( state is null )
- {
- // the body doesn't contain any information that has the state of the LRO
- // we're going to just get out, and let the consumer have the result
- break;
- }
-
- switch( state?.ToString()?.ToLower() )
- {
- case "failed":
- error = true;
- break;
- case "succeeded":
- case "canceled":
- // we're done polling.
- break;
-
- default:
- // need to keep polling!
- _response.StatusCode = global::System.Net.HttpStatusCode.Created;
- continue;
- }
- }
- } catch {
- // if we run into a problem peeking into the result,
- // we really don't want to do anything special.
- }
- if (error) {
- throw new Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.UndeclaredResponseException(_response);
- }
- }
-
- // check for terminal status code
- if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted )
- {
- continue;
- }
- // we are done polling, do a request on final target?
- // create a new request with the final uri
- request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Method.Get);
-
- // drop the old response
- _response?.Dispose();
-
- // make the final call
- _response = await sender.SendAsync(request, eventListener);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- break;
- }
- var _contentType = _response.Content.Headers.ContentType?.MediaType;
-
- switch ( _response.StatusCode )
- {
- case global::System.Net.HttpStatusCode.OK:
- {
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.Contact.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers)));
- break;
- }
- default:
- {
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Json.JsonNode.Parse(body.Result)) ));
- break;
- }
- }
- }
- finally
- {
- // finally statements
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.Finally, request, _response);
- _response?.Dispose();
- request?.Dispose();
- }
- }
- }
-
- ///
- /// Validation method for method. Call this like the actual call, but you will get validation
- /// events back.
- ///
- /// The ID of the target subscription.
- /// The name of the resource group. The name is case insensitive.
- /// Unique identifier for this deployment
- /// Unique identifier for this contact
- /// Resource create parameters.
- /// an instance that will receive events.
- ///
- /// A that will be complete when handling of the response is completed.
- ///
- internal async global::System.Threading.Tasks.Task ContactsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string contactName, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.IContact body, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener)
- {
- using( NoSynchronizationContext )
- {
- await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId);
- await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1);
- await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName);
- await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1);
- await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90);
- await eventListener.AssertNotNull(nameof(communicationsGatewayName),communicationsGatewayName);
- await eventListener.AssertRegEx(nameof(communicationsGatewayName),communicationsGatewayName,@"^[a-zA-Z0-9-]{3,24}$");
- await eventListener.AssertNotNull(nameof(contactName),contactName);
- await eventListener.AssertRegEx(nameof(contactName),contactName,@"^[a-zA-Z0-9-]{3,24}$");
- await eventListener.AssertNotNull(nameof(body), body);
- await eventListener.AssertObjectIsValid(nameof(body), body);
- }
- }
-
- /// Delete a Contact
- /// The ID of the target subscription.
- /// The name of the resource group. The name is case insensitive.
- /// Unique identifier for this deployment
- /// Unique identifier for this contact
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns 204 (NoContent).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync pipeline to use to make the request.
- ///
- /// A that will be complete when handling of the response is completed.
- ///
- public async global::System.Threading.Tasks.Task ContactsDelete(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string contactName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
- {
- var apiVersion = @"2022-12-01-preview";
- // Constant Parameters
- using( NoSynchronizationContext )
- {
- // construct URL
- var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
- "/subscriptions/"
- + global::System.Uri.EscapeDataString(subscriptionId)
- + "/resourceGroups/"
- + global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.VoiceServices/communicationsGateways/"
- + global::System.Uri.EscapeDataString(communicationsGatewayName)
- + "/contacts/"
- + global::System.Uri.EscapeDataString(contactName)
- + "?"
- + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
- ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- // generate request object
- var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Method.Delete, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
- // make the call
- await this.ContactsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender);
- }
- }
-
- /// Delete a Contact
- ///
- /// a delegate that is called when the remote service returns 200 (OK).
- /// a delegate that is called when the remote service returns 204 (NoContent).
- /// a delegate that is called when the remote service returns default (any response code not handled
- /// elsewhere).
- /// an instance that will receive events.
- /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync pipeline to use to make the request.
- ///
- /// A that will be complete when handling of the response is completed.
- ///
- public async global::System.Threading.Tasks.Task ContactsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.ISendAsync sender)
- {
- var apiVersion = @"2022-12-01-preview";
- // Constant Parameters
- using( NoSynchronizationContext )
- {
- // verify that Identity format is an exact match for uri
-
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.VoiceServices/communicationsGateways/(?[^/]+)/contacts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
- if (!_match.Success)
- {
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}'");
- }
-
- // replace URI parameters with values from identity
- var subscriptionId = _match.Groups["subscriptionId"].Value;
- var resourceGroupName = _match.Groups["resourceGroupName"].Value;
- var communicationsGatewayName = _match.Groups["communicationsGatewayName"].Value;
- var contactName = _match.Groups["contactName"].Value;
- // construct URL
- var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace(
- "/subscriptions/"
- + subscriptionId
- + "/resourceGroups/"
- + resourceGroupName
- + "/providers/Microsoft.VoiceServices/communicationsGateways/"
- + communicationsGatewayName
- + "/contacts/"
- + contactName
- + "?"
- + "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
- ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- // generate request object
- var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}");
- var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Method.Delete, _url);
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
-
- await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; }
- // make the call
- await this.ContactsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender);
- }
- }
-
- /// Actual wire call for