|
187 | 187 | } |
188 | 188 | }, |
189 | 189 | "definitions": { |
190 | | - "ExportResourceParameter": { |
| 190 | + "ExportResource": { |
191 | 191 | "allOf": [ |
192 | 192 | { |
193 | | - "$ref": "#/definitions/BaseExportParameter" |
| 193 | + "$ref": "#/definitions/BaseExportModel" |
194 | 194 | } |
195 | 195 | ], |
196 | 196 | "description": "Export parameter for a single resource", |
197 | 197 | "required": [ |
198 | | - "resourceId" |
| 198 | + "resourceIds" |
199 | 199 | ], |
200 | 200 | "properties": { |
201 | | - "resourceId": { |
| 201 | + "resourceIds": { |
202 | 202 | "description": "The id of the resource to be exported", |
203 | | - "type": "string" |
| 203 | + "type": "array", |
| 204 | + "items": { |
| 205 | + "type": "string" |
| 206 | + } |
204 | 207 | }, |
205 | | - "name": { |
206 | | - "description": "The Terraform resource name", |
| 208 | + "resourceName": { |
| 209 | + "description": "The Terraform resource name. Only works when `resourceIds` contains only one item.", |
207 | 210 | "type": "string", |
208 | 211 | "default": "res-0" |
| 212 | + }, |
| 213 | + "resourceType": { |
| 214 | + "description": "The Terraform resource type. Only works when `resourceIds` contains only one item.", |
| 215 | + "type": "string" |
| 216 | + }, |
| 217 | + "namePattern": { |
| 218 | + "description": "The name pattern of the Terraform resources", |
| 219 | + "type": "string", |
| 220 | + "default": "res-" |
209 | 221 | } |
210 | 222 | }, |
211 | 223 | "type": "object" |
212 | 224 | }, |
213 | | - "ExportResourceGroupParameter": { |
| 225 | + "ExportResourceGroup": { |
214 | 226 | "allOf": [ |
215 | 227 | { |
216 | | - "$ref": "#/definitions/BaseExportParameter" |
| 228 | + "$ref": "#/definitions/BaseExportModel" |
217 | 229 | } |
218 | 230 | ], |
219 | 231 | "description": "Export parameter for a resource group", |
|
226 | 238 | "type": "string" |
227 | 239 | }, |
228 | 240 | "namePattern": { |
229 | | - "description": "The pattern of the Terraform resources", |
| 241 | + "description": "The name pattern of the Terraform resources", |
230 | 242 | "type": "string", |
231 | 243 | "default": "res-" |
232 | 244 | } |
233 | 245 | }, |
234 | 246 | "type": "object" |
235 | 247 | }, |
236 | | - "ExportQueryParameter": { |
| 248 | + "ExportQuery": { |
237 | 249 | "allOf": [ |
238 | 250 | { |
239 | | - "$ref": "#/definitions/BaseExportParameter" |
| 251 | + "$ref": "#/definitions/BaseExportModel" |
240 | 252 | } |
241 | 253 | ], |
242 | 254 | "description": "Export parameter for resources queried by ARG (Azure Resource Graph)", |
|
249 | 261 | "type": "string" |
250 | 262 | }, |
251 | 263 | "namePattern": { |
252 | | - "description": "The pattern of the Terraform resources", |
| 264 | + "description": "The name pattern of the Terraform resources", |
253 | 265 | "type": "string", |
254 | 266 | "default": "res-" |
255 | 267 | }, |
|
261 | 273 | }, |
262 | 274 | "type": "object" |
263 | 275 | }, |
264 | | - "BaseExportParameter": { |
| 276 | + "BaseExportModel": { |
265 | 277 | "description": "The base export parameter", |
266 | 278 | "discriminator": "type", |
267 | 279 | "required": [ |
|
288 | 300 | "fullProperties": { |
289 | 301 | "description": "Whether to output all non-computed properties in the generated Terraform configuration? This probably needs manual modifications to make it valid", |
290 | 302 | "type": "boolean", |
291 | | - "default": false |
| 303 | + "default": true |
| 304 | + }, |
| 305 | + "maskSensitive": { |
| 306 | + "description": "Mask sensitive attributes in the Terraform configuration", |
| 307 | + "type": "boolean", |
| 308 | + "default": true |
292 | 309 | } |
293 | 310 | }, |
294 | 311 | "type": "object" |
|
297 | 314 | "description": "The parameter type", |
298 | 315 | "type": "string", |
299 | 316 | "enum": [ |
300 | | - "ExportResourceParameter", |
301 | | - "ExportResourceGroupParameter", |
302 | | - "ExportQueryParameter" |
| 317 | + "ExportResource", |
| 318 | + "ExportResourceGroup", |
| 319 | + "ExportQuery" |
303 | 320 | ], |
304 | 321 | "x-ms-enum": { |
305 | 322 | "name": "parameterType", |
|
383 | 400 | "name": "exportParameter", |
384 | 401 | "required": true, |
385 | 402 | "schema": { |
386 | | - "$ref": "#/definitions/BaseExportParameter" |
| 403 | + "$ref": "#/definitions/BaseExportModel" |
387 | 404 | }, |
388 | 405 | "x-ms-parameter-location": "method" |
389 | 406 | } |
|
0 commit comments