forked from Azure/azure-sdk-for-node
-
Notifications
You must be signed in to change notification settings - Fork 4
/
codegen_mappings.schema.json
197 lines (197 loc) · 6.75 KB
/
codegen_mappings.schema.json
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{
"type": "object",
"properties": {
"$schema": {
"type": "string"
}
},
"additionalProperties": {
"description": "An Azure service.",
"type": "object",
"properties": {
"resource-manager": {
"$ref": "#definitions/resourceManagerPackageContainer"
},
"data-plane": {
"$ref": "#definitions/dataplanePackageContainer"
}
},
"additionalProperties": false
},
"definitions": {
"packageName": {
"description": "The name of the package that will be published to NPM.",
"type": "string",
"minLength": 1
},
"packageVersion": {
"description": "The version of the package that will be published to NPM.",
"type": "string",
"minLength": 1
},
"dir": {
"description": "The path where this package's generated files will be placed relative to azure-sdk-for-node/lib/services/.",
"type": "string",
"minLength": 1
},
"source": {
"description": "The path to the readme.md file relative to azure-rest-api-specs/specification/.",
"type": "string",
"minLength": 1
},
"clientName": {
"description": "The name of the client class that will be generated for this package.",
"type": "string",
"minLength": 1
},
"ft": {
"description": "The payload-flattening-threshold property that will be used when generating this package's files.",
"type": "integer",
"minimum": 0
},
"language": {
"description": "The language that this package will target.",
"enum": [
"NodeJS",
"Azure.NodeJS"
]
},
"tag": {
"description": "A tag that will be added to the AutoRest command line arguments.",
"type": "string",
"minLength": 1
},
"generatePackageJson": {
"description": "Whether or not the package's package.json file will be generated.",
"type": "boolean"
},
"generateReadmeMd": {
"description": "Whether or not the package's readme.md file will be generated.",
"type": "boolean"
},
"generateLicenseTxt": {
"description": "Whether or not the package's license.txt file will be generated.",
"type": "boolean"
},
"sourceCodeFolderPath": {
"description": "The relative path to the folder where the source code files will be generated to.",
"type": "string"
},
"resourceManagerPackageContainer": {
"oneOf":[
{
"$ref": "#definitions/resourceManagerPackage"
},
{
"description": "A collection of management packages for this service.",
"type": "object",
"additionalProperties": {
"$ref": "#definitions/resourceManagerPackage"
}
}
]
},
"resourceManagerPackage": {
"description": "The management package for this service.",
"type": "object",
"properties": {
"packageName": {
"$ref": "#definitions/packageName"
},
"packageVersion": {
"$ref": "#definitions/packageVersion"
},
"dir": {
"$ref": "#definitions/dir"
},
"source": {
"$ref": "#definitions/source"
},
"clientName": {
"$ref": "#definitions/clientName"
},
"ft": {
"$ref": "#definitions/ft"
},
"language": {
"$ref": "#definitions/language"
},
"tag": {
"$ref": "#definitions/tag"
},
"generatePackageJson": {
"$ref": "#definitions/generatePackageJson"
},
"generateReadmeMd": {
"$ref": "#definitions/generateReadmeMd"
},
"generateLicenseTxt": {
"$ref": "#definitions/generateLicenseTxt"
},
"sourceCodeFolderPath": {
"$ref": "#definitions/sourceCodeFolderPath"
}
},
"required": ["packageName", "dir", "source"],
"additionalProperties": false
},
"dataplanePackageContainer": {
"oneOf":[
{
"$ref": "#definitions/dataplanePackage"
},
{
"description": "A collection of dataplane packages for this service.",
"type": "object",
"additionalProperties": {
"$ref": "#definitions/dataplanePackage"
}
}
]
},
"dataplanePackage": {
"description": "The dataplane package for this service.",
"type": "object",
"properties": {
"packageName": {
"$ref": "#definitions/packageName"
},
"packageVersion": {
"$ref": "#definitions/packageVersion"
},
"dir": {
"$ref": "#definitions/dir"
},
"source": {
"$ref": "#definitions/source"
},
"clientName": {
"$ref": "#definitions/clientName"
},
"ft": {
"$ref": "#definitions/ft"
},
"language": {
"$ref": "#definitions/language"
},
"tag": {
"$ref": "#definitions/tag"
},
"generatePackageJson": {
"$ref": "#definitions/generatePackageJson"
},
"generateReadmeMd": {
"$ref": "#definitions/generateReadmeMd"
},
"generateLicenseTxt": {
"$ref": "#definitions/generateLicenseTxt"
},
"sourceCodeFolderPath": {
"$ref": "#definitions/sourceCodeFolderPath"
}
},
"required": ["packageName", "dir", "source"],
"additionalProperties": false
}
}
}