autorest.az
autorest.az copied to clipboard
[AzureStackHCI] parameter name and rest api request mapping
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"
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