Skip to content

Commit

Permalink
[StoragePool] Add cli directive for codeGen (Azure#14547)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliehzl authored May 26, 2021
1 parent 0c3188f commit 61b4ce1
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
38 changes: 38 additions & 0 deletions specification/storagepool/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## AZ

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

``` yaml $(az)
az:
extensions: diskpool
namespace: azure.mgmt.storagepool
package-name: azure-mgmt-storagepool
az-output-folder: $(azure-cli-extension-folder)/src/diskpool
python-sdk-output-folder: "$(az-output-folder)/azext_diskpool/vendored_sdks/storagepool"
# add additinal configuration here specific for Azure CLI
# refer to the faq.md for more details
```

## Az.DiskPool

``` yaml
cli:
cli-directive:
- where:
param: disks
set:
positional: true
positionalKeys:
- id
- where:
group: DiskPools
op: ListOutboundNetworkDependenciesEndpoints
hidden: true
- where:
group: DiskPools
parameter: additionalCapabilities
alias:
- additional_capabilities
- a

```
21 changes: 21 additions & 0 deletions specification/storagepool/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
``` yaml
# add any configuration here for all CLI languages
# refer to the faq.md for more details
directive:
- where:
group: diskpool disk-pool
set:
group: disk-pool
- where:
group: diskpool iscsi-target
set:
group: disk-pool iscsi-target
- where:
command: disk-pool deallocate
set:
command: disk-pool stop
- where:
command: diskpool disk-pool-zone list
set:
command: disk-pool list-skus
```

0 comments on commit 61b4ce1

Please sign in to comment.