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
|
# Azure Attestation Service client library for Python
## Setup
```ps
npm install -g autorest
```
## Generation
```ps
cd <swagger-folder>
autorest SWAGGER.md
```
### Code generation settings
```yaml
title: AzureAttestationRestClient
require:
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/attestation/data-plane/readme.md
output-folder: ../azure/security/attestation/_generated
namespace: azure.security.attestation._generated
no-namespace-folders: true
license-header: MICROSOFT_MIT_NO_VERSION
tag: package-2020-10-01
package-version: 1.0.0b2
enable-xml: false
clear-output-folder: true
python: true
v3: true
add-credentials: true
azure-arm: false
payload-flattening-threshold: 2
package-name: azure-security-attestation
credential-scopes: 'https://attest.azure.net/.default'
```
```yaml
directive:
from: swagger-document
where: "$.x-ms-parameterized-host.parameters"
transform: >
$.name = "endpoint"
```
```yaml
directive:
where: "$.x-ms-parameterized-host"
transform: >
$.hostTemplate = "endpoint"
```
|