File: README.md

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (52 lines) | stat: -rw-r--r-- 1,070 bytes parent folder | download | duplicates (2)
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"
```