forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[StoragePool] Add cli directive for codeGen (Azure#14547)
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |