-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
autorest.md
82 lines (75 loc) · 2.07 KB
/
autorest.md
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Generated code configuration
Run `dotnet build /t:GenerateCode` to generate code.
``` yaml
azure-arm: true
generate-model-factory: false
csharp: true
library-name: Hci
namespace: Azure.ResourceManager.Hci
require: https://github.com/Azure/azure-rest-api-specs/blob/324a148497f28ef7588eee7bdb61dcd28b74f505/specification/azurestackhci/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
format-by-name-rules:
'*TenantId': 'uuid'
'etag': 'etag'
'location': 'azure-location'
'*Uri': 'Uri'
'*Uris': 'Uri'
'*ClientId': 'uuid'
'*ApplicationObjectId': 'uuid'
'*ServicePrincipalObjectId': 'uuid'
rename-rules:
CPU: Cpu
CPUs: Cpus
Os: OS
Ip: IP
Ips: IPs|ips
ID: Id
IDs: Ids
VM: Vm
VMs: Vms
Vmos: VmOS
VMScaleSet: VmScaleSet
DNS: Dns
VPN: Vpn
NAT: Nat
WAN: Wan
Ipv4: IPv4|ipv4
Ipv6: IPv6|ipv6
Ipsec: IPsec|ipsec
SSO: Sso
URI: Uri
Etag: ETag|etag
prepend-rp-prefix:
- Cluster
- ProvisioningState
- ClusterDesiredProperties
- ClusterNode
- ClusterReportedProperties
rename-mapping:
Extension: ArcExtension
Extension.properties.extensionParameters.autoUpgradeMinorVersion: ShouldAutoUpgradeMinorVersion
Extension.properties.extensionParameters.type: ArcExtensionType
Status: HciClusterStatus
ClusterReportedProperties.clusterId: -|uuid
Cluster.properties.cloudId: -|uuid
ArcIdentityResponse: ArcIdentityResult
ClusterIdentityResponse: HciClusterIdentityResult
ClusterReportedProperties.lastUpdated: LastUpdatedOn
ClusterList: HciClusterListResult
DiagnosticLevel: HciClusterDiagnosticLevel
ExtensionAggregateState: ArcExtensionAggregateState
ExtensionList: ArcExtensionListResult
ImdsAttestation: ImdsAttestationState
PasswordCredential: ArcPasswordCredential
UploadCertificateRequest: HciClusterCertificateContent
RawCertificateData: HciClusterRawCertificate
PerNodeState: PerNodeArcState
directive:
- from: swagger-document
where: $.definitions..systemData
transform: $["x-ms-client-flatten"] = false
```