Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
266 changes: 88 additions & 178 deletions src/VoiceServices/Az.VoiceServices.format.ps1xml

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions src/VoiceServices/Az.VoiceServices.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 12/22/2022
# Generated on: 1/31/2023
#

@{
Expand Down Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/VoiceServices/Az.VoiceServices.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions src/VoiceServices/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 18 additions & 7 deletions src/VoiceServices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:
Expand Down
66 changes: 36 additions & 30 deletions src/VoiceServices/VoiceServices.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/VoiceServices/custom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 12 additions & 0 deletions src/VoiceServices/examples/Test-AzVoiceServicesNameAvailability.md
Original file line number Diff line number Diff line change
@@ -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.

This file was deleted.

Loading