autorest.az icon indicating copy to clipboard operation
autorest.az copied to clipboard

[AzureStackHCI] parameter name and rest api request mapping

Open qiaozha opened this issue 4 years ago • 1 comments

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 avatar Jan 18 '21 01:01 qiaozha

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

qiaozha avatar Jan 28 '21 08:01 qiaozha