-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autorest.az configurations for azure monitor control service (#12090
) * add AMCS config for codegen * reorganize command group * rename command group * Codegen modify try to rename DataCollectionRules create parameters * hide DataCollectionRules Create & Update commands and DataCollectionRuleAssociations Create command * use alias instand of rename in code-gen * use monitor-control-service as the extension name * Update readme.python.md
- Loading branch information
Showing
3 changed files
with
107 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,92 @@ | ||
## AZ | ||
|
||
These settings apply only when `--az` is specified on the command line. | ||
``` yaml $(az) | ||
batch: | ||
- AMCS: true | ||
``` | ||
``` yaml $(az) && $(AMCS) | ||
az: | ||
extensions: monitor-control-service | ||
parent-extension: monitor | ||
namespace: azure.mgmt.amcs | ||
package-name: azure-mgmt-amcs | ||
az-output-folder: $(azure-cli-extension-folder)/src/monitor-control-service | ||
python-sdk-output-folder: "$(az-output-folder)/azext_amcs/vendored_sdks/amcs" | ||
# add additinal configuration here specific for Azure CLI | ||
# refer to the faq.md for more details | ||
``` | ||
|
||
# Az.AMCS | ||
This directory contains the CLI common model for the Azure Monitor Control Service (AMCS). | ||
|
||
> Metadata | ||
``` yaml $(AMCS) | ||
|
||
extension-mode: preview | ||
|
||
directive: | ||
|
||
- where: | ||
group: monitor monitor-control-service data-collection-rule | ||
set: | ||
group: monitor data-collection-rule | ||
- where: | ||
group: monitor data-collection-rule | ||
set: | ||
group: monitor data-collection rule | ||
|
||
- where: | ||
group: monitor monitor-control-service data-collection-rule-association | ||
set: | ||
group: monitor data-collection-rule-association | ||
- where: | ||
group: monitor data-collection-rule-association | ||
set: | ||
group: monitor data-collection rule-association | ||
- where: | ||
group: monitor data-collection rule-association | ||
set: | ||
group: monitor data-collection rule association | ||
|
||
cli: | ||
cli-directive: | ||
# -------- data-collection rule -------- | ||
- where: | ||
group: DataCollectionRules | ||
param: dataCollectionRuleName | ||
alias: | ||
- name | ||
- n | ||
- where: | ||
group: DataCollectionRuleAssociations | ||
op: Create | ||
hidden: True | ||
- where: | ||
group: DataCollectionRules | ||
op: Create | ||
hidden: True | ||
- where: | ||
group: DataCollectionRules | ||
op: Update | ||
hidden: True | ||
|
||
# -------- data-collection rule association -------- | ||
- where: | ||
group: DataCollectionRuleAssociations | ||
param: resourceUri | ||
alias: | ||
- resource | ||
- where: | ||
group: DataCollectionRuleAssociations | ||
param: dataCollectionRuleName | ||
alias: | ||
- rule_name | ||
- where: | ||
group: DataCollectionRuleAssociations | ||
param: associationName | ||
alias: | ||
- name | ||
- n | ||
``` |
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
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