Skip to content

Commit eaa5066

Browse files
azure-powershell-botLucasYao93isra-fel
authored
Migrate VoiceServices from generation to main (#20798)
* Move VoiceServices to main * Update Changelog.md --------- Co-authored-by: Lucas Yao <[email protected]> Co-authored-by: Yeming Liu <[email protected]>
1 parent 1ee69ed commit eaa5066

File tree

221 files changed

+2798
-18276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+2798
-18276
lines changed

src/VoiceServices/Az.VoiceServices.format.ps1xml

Lines changed: 88 additions & 178 deletions
Large diffs are not rendered by default.

src/VoiceServices/Az.VoiceServices.psd1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 12/22/2022
6+
# Generated on: 1/31/2023
77
#
88

99
@{
@@ -69,17 +69,14 @@ FormatsToProcess = './Az.VoiceServices.format.ps1xml'
6969
# NestedModules = @()
7070

7171
# 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.
72-
FunctionsToExport = 'Get-AzVoiceServicesCommunicationsContact',
73-
'Get-AzVoiceServicesCommunicationsGateway',
72+
FunctionsToExport = 'Get-AzVoiceServicesCommunicationsGateway',
7473
'Get-AzVoiceServicesCommunicationsTestLine',
75-
'New-AzVoiceServicesCommunicationsContact',
7674
'New-AzVoiceServicesCommunicationsGateway',
7775
'New-AzVoiceServicesCommunicationsGatewayServiceRegionObject',
7876
'New-AzVoiceServicesCommunicationsTestLine',
79-
'Remove-AzVoiceServicesCommunicationsContact',
8077
'Remove-AzVoiceServicesCommunicationsGateway',
8178
'Remove-AzVoiceServicesCommunicationsTestLine',
82-
'Update-AzVoiceServicesCommunicationsContact',
79+
'Test-AzVoiceServicesNameAvailability',
8380
'Update-AzVoiceServicesCommunicationsGateway',
8481
'Update-AzVoiceServicesCommunicationsTestLine'
8582

src/VoiceServices/Az.VoiceServices.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434

3535
if(-not $accountsModule) {
36-
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
36+
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
3737
} elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
3838
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
3939
}

src/VoiceServices/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Upgraded API version to 2023-01-31
2122

2223
## Version 0.1.0
2324
* First preview release for module Az.VoiceServices

src/VoiceServices/README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ In this directory, run AutoRest:
3535
> see https://aka.ms/autorest
3636
3737
``` yaml
38+
branch: 78ec1b99699a4bf44869bd13f1b0ed7d92a99c27
3839
require:
3940
- $(this-folder)/../readme.azure.noprofile.md
40-
# lock the commit
41-
input-file:
42-
- $(this-folder)\test\swagger\voiceservices\resource-manager\Microsoft.VoiceServices\preview\2022-12-01-preview\openapi.json
41+
- $(repo)/specification/voiceservices/resource-manager/readme.md
42+
try-require:
43+
- $(repo)/specification/voiceservices/resource-manager/readme.powershell.md
4344

4445
subject-prefix: $(service-name)
4546

@@ -57,17 +58,27 @@ directive:
5758
"additionalProperties": true,
5859
"description": "Details of API bridge functionality."
5960
}
60-
61+
62+
- where:
63+
subject: ^NameAvailabilityLocal$
64+
variant: ^Check$|^CheckViaIdentity$|^CheckViaIdentityExpanded$
65+
remove: true
66+
- where:
67+
subject: ^NameAvailabilityLocal$
68+
set:
69+
subject: NameAvailability
70+
6171
- where:
6272
subject: CommunicationGateway
6373
set:
6474
subject: CommunicationsGateway
6575

6676
- where:
67-
subject: Contact
77+
subject: CommunicationsGateway
78+
parameter-name: AutoGeneratedDomainNameLabelScope
6879
set:
69-
subject: CommunicationsContact
70-
80+
parameter-name: DomainNameLabelScope
81+
7182
- where:
7283
subject: TestLine
7384
set:

src/VoiceServices/VoiceServices.sln

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{F668F433-02BE-4F65-8374-414C6523BAB1}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BB33970E-1200-4692-B30D-604108E39C16}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{2B259982-8BF3-4E9F-949A-F41E19B40F1C}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{7095CE5C-C76E-468E-95C0-842B688514C9}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{0983AC64-6354-4307-8F1E-1F31BC74ECE0}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{57014F4D-7FA1-4C2E-8ED3-2727462421BA}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{8F6A289A-0308-41C2-B504-CA823A3BBCD1}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{091B6ABF-3A43-4A99-9E1C-95DC816D80A5}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.VoiceServices", "Az.VoiceServices.csproj", "{C2C8DF49-30AE-4358-8D89-DE70022F757F}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}"
17+
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.VoiceServices", "Az.VoiceServices.csproj", "{51869C9B-520A-47FA-883E-2026BDF21655}"
1719
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -24,29 +26,33 @@ Global
2426
HideSolutionNode = FALSE
2527
EndGlobalSection
2628
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27-
{F668F433-02BE-4F65-8374-414C6523BAB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28-
{F668F433-02BE-4F65-8374-414C6523BAB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
29-
{F668F433-02BE-4F65-8374-414C6523BAB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
30-
{F668F433-02BE-4F65-8374-414C6523BAB1}.Release|Any CPU.Build.0 = Release|Any CPU
31-
{2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
34-
{2B259982-8BF3-4E9F-949A-F41E19B40F1C}.Release|Any CPU.Build.0 = Release|Any CPU
35-
{7095CE5C-C76E-468E-95C0-842B688514C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
36-
{7095CE5C-C76E-468E-95C0-842B688514C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
37-
{7095CE5C-C76E-468E-95C0-842B688514C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{7095CE5C-C76E-468E-95C0-842B688514C9}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40-
{0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
41-
{0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
42-
{0983AC64-6354-4307-8F1E-1F31BC74ECE0}.Release|Any CPU.Build.0 = Release|Any CPU
43-
{8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
46-
{8F6A289A-0308-41C2-B504-CA823A3BBCD1}.Release|Any CPU.Build.0 = Release|Any CPU
47-
{C2C8DF49-30AE-4358-8D89-DE70022F757F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48-
{C2C8DF49-30AE-4358-8D89-DE70022F757F}.Debug|Any CPU.Build.0 = Debug|Any CPU
49-
{C2C8DF49-30AE-4358-8D89-DE70022F757F}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{C2C8DF49-30AE-4358-8D89-DE70022F757F}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{BB33970E-1200-4692-B30D-604108E39C16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{BB33970E-1200-4692-B30D-604108E39C16}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{BB33970E-1200-4692-B30D-604108E39C16}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{BB33970E-1200-4692-B30D-604108E39C16}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{3AD4A18C-0C99-47EC-9DC3-FCCE39EEFDAE}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{9C6C56E8-B7E5-4EB6-A8EC-47F33A9DFDAD}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{57014F4D-7FA1-4C2E-8ED3-2727462421BA}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{091B6ABF-3A43-4A99-9E1C-95DC816D80A5}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{8C6EEA47-49AE-4CDD-ADD2-27BE64A67284}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{51869C9B-520A-47FA-883E-2026BDF21655}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{51869C9B-520A-47FA-883E-2026BDF21655}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{51869C9B-520A-47FA-883E-2026BDF21655}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{51869C9B-520A-47FA-883E-2026BDF21655}.Release|Any CPU.Build.0 = Release|Any CPU
5157
EndGlobalSection
5258
EndGlobal

src/VoiceServices/custom/New-AzVoiceServicesCommunicationsGatewayServiceRegionObject.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Create an in-memory object for ServiceRegionProperties.
2121
Create an in-memory object for ServiceRegionProperties.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties
24+
Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties
2525
.Link
2626
https://learn.microsoft.com/powershell/module/az.VoiceServices/new-AzVoiceServicesCommunicationsGatewayServiceRegionObject
2727
#>
2828
function New-AzVoiceServicesCommunicationsGatewayServiceRegionObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties')]
29+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties')]
3030
[CmdletBinding(PositionalBinding=$false)]
3131
Param(
3232

@@ -42,7 +42,7 @@ function New-AzVoiceServicesCommunicationsGatewayServiceRegionObject {
4242
)
4343

4444
process {
45-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20221201Preview.ServiceRegionProperties]::New()
45+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.Models.Api20230131.ServiceRegionProperties]::New()
4646

4747
if ($PSBoundParameters.ContainsKey('Name')) {
4848
$Object.Name = $Name

src/VoiceServices/custom/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s
3232
### Attributes
3333
For processing the cmdlets, we've created some additional attributes:
3434
- `Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.DescriptionAttribute`
35-
- 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.
35+
- 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.
3636
- `Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.DoNotExportAttribute`
3737
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.VoiceServices`.
3838
- `Microsoft.Azure.PowerShell.Cmdlets.VoiceServices.InternalExportAttribute`

src/VoiceServices/examples/Get-AzVoiceServicesCommunicationsContact.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/VoiceServices/examples/New-AzVoiceServicesCommunicationsContact.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/VoiceServices/examples/Remove-AzVoiceServicesCommunicationsContact.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### Example 1: Checks whether the resource name is available in the given region
2+
```powershell
3+
Test-AzVoiceServicesNameAvailability -Location eastus -Name 'VoiceServicesTestName' -Type "Microsoft.VoiceServices/CommunicationsGateways"
4+
```
5+
6+
```output
7+
Message NameAvailable Reason
8+
------- ------------- ------
9+
True
10+
```
11+
12+
This command checks whether the resource name is available in the given region.

src/VoiceServices/examples/Update-AzVoiceServicesCommunicationsContact.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)