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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
# Azure Communication Configuration for Python
> see https://aka.ms/autorest
### Setup
```ps
npm install -g autorest
```
### Generation
```ps
cd <swagger-folder>
autorest SWAGGER.md
```
### Settings
```yaml
tag: package-2024-09-01-preview
require: https://github.com/Azure/azure-rest-api-specs/blob/c4617cc66337beda60a1781f8d511dd5089bc649/specification/communication/data-plane/CallAutomation/readme.md
output-folder: ../azure/communication/callautomation/_generated
models-mode: msrest
namespace: azure.communication.callautomation
package-name: azure-communication-callautomation
license-header: MICROSOFT_MIT_NO_VERSION
enable-xml: true
clear-output-folder: true
no-namespace-folders: true
python: true
v3: true
no-async: false
add-credential: false
title: Azure Communication Call Automation Service
```
### Rename response to result
```yaml
directive:
- from: swagger-document
where: $.definitions.RecordingContentType.x-ms-enum
transform: >
$["name"] = "RecordingContent";
- from: swagger-document
where: $.definitions.RecordingChannelType.x-ms-enum
transform: >
$["name"] = "RecordingChannel";
- from: swagger-document
where: $.definitions.RecordingFormatType.x-ms-enum
transform: >
$["name"] = "RecordingFormat";
- from: swagger-document
where: $.definitions.RecordingStorageType.x-ms-enum
transform: >
$["name"] = "RecordingStorageKind";
- from: swagger-document
where: $.definitions.Tone.x-ms-enum
transform: >
$["name"] = "DtmfTone";
- from: swagger-document
where: $.definitions.CallConnectionStateModel.x-ms-enum
transform: >
$["name"] = "CallConnectionState";
```
|