Skip to content

Commit

Permalink
ADP: fix cli codegen (Azure#13172)
Browse files Browse the repository at this point in the history
* ADP: fix cli codegen

* Move directive
  • Loading branch information
aelij authored Mar 1, 2021
1 parent be2b34f commit c265d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 6 additions & 0 deletions specification/adp/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ az:
package-name: azure-mgmt-adp
az-output-folder: $(azure-cli-extension-folder)/src/adp
python-sdk-output-folder: "$(az-output-folder)/azext_adp/vendored_sdks/adp"

directive:
- from: swagger-document
where: $.definitions.DataPoolLocation
transform: >
$.properties.encryption["x-ms-client-flatten"] = true;
```
9 changes: 0 additions & 9 deletions specification/adp/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
## CLI

These settings don't need to apply `--cli` on the command line.

``` yaml
cli:
cli-directive:
- where:
type: DataPoolLocation
prop: encryption
cli-flatten: true
```

0 comments on commit c265d4f

Please sign in to comment.