Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[StoragePool] Add cli directive for codeGen #14547

Merged
merged 1 commit into from
May 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```