1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
# Azure Communication Phone Numbers for Python
> see https://aka.ms/autorest
### Generation
```ps
cd <swagger-folder>
autorest ./PHONE_NUMBER_SWAGGER.md
```
### Settings
``` yaml
tag: package-phonenumber-2025-02-11
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a3d9c16f14fbfa814d6315a4972517cec77c6bfb/specification/communication/data-plane/PhoneNumbers/readme.md
output-folder: ../azure/communication/phonenumbers/_generated
namespace: azure.communication.phonenumbers
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 3
no-namespace-folders: true
clear-output-folder: true
v3: true
python: true
title: Phone Numbers Client
models-mode: msrest
```
``` yaml
directive:
from: swagger-document
where: $.definitions.PhoneNumberSearchResult.properties.error.x-ms-enum
transform: >
$["name"] = "PhoneNumberSearchResultError";
```
``` yaml
directive:
from: swagger-document
where: $.parameters.Endpoint
transform: >
$["format"] = "";
```
|