Skip to content

Commit

Permalink
adding az cli command generation (Azure#14623)
Browse files Browse the repository at this point in the history
* adding az cli command generation

* reverting x-ms-client-flatten for delegated subnet

* address feedback from cli team

* pushing another change

* remove readonly flag

* remove flatten flag

Co-authored-by: Ali Egal <alegal@microsoft.com>
  • Loading branch information
aegal and aegal authored Jul 8, 2021
1 parent 2cbe9bd commit 43976e1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions specification/dnc/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## AZ

These settings apply only when `--az` is specified on the command line.

``` yaml $(az) && $(target-mode) != 'core'
az:
extensions: dnc
namespace: azure.mgmt.dnc
package-name: azure-mgmt-dnc
az-output-folder: $(azure-cli-extension-folder)/src/dnc
python-sdk-output-folder: "$(az-output-folder)/azext_dnc/vendored_sdks/dnc"
# add additinal configuration here specific for Azure CLI
# refer to the faq.md for more details
```
28 changes: 28 additions & 0 deletions specification/dnc/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
``` yaml
# add any configuration here for all CLI languages
# refer to the faq.md for more details
cli:
cli-directive:
- where:
group: .*
parameter: privateLinkResourceId
alias:
- priv_link_resource_id
## hide an operation
- where:
group: .*
op: Patch
hidden: true
- where:
group: .*
op: PatchDetails
hidden: true
- where:
group: .*
op: GetDetails
name: show
- where:
group: .*
op: PutDetails
name: create
```

0 comments on commit 43976e1

Please sign in to comment.