Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

[AzureStackHCI] parameter name and rest api request mapping #713

Open qiaozha opened 3 years ago

qiaozha commented 3 years ago

e.g. for object

sample: {"foo": { "bar" : { "name" : "sample-name" } } }

This would appear in the generated cli as az sample --foo "{\"bar\" : {\"name\" : \"sample-name\" } }"

Ideally we would want to be able to map properties when generating the cli so that we could say in the readme.cli.md, foo-name = foo.bar.name and then the cli would be generated so that the above could be written as az sample --foo-name "sample-name"

qiaozha commented 3 years ago

where: param: cli-flatten: true

--foo.bar.name = foo- = foo.bar.

foo-type = foo.bar.type;

--foo-name

split parameter sku sku-name

combine parameter

conflicts