Skip to content

Commit

Permalink
add policyinsights track2 config (Azure#11398)
Browse files Browse the repository at this point in the history
  • Loading branch information
00Kai0 authored and giromm2ms committed Dec 20, 2020
1 parent 11e29ba commit a62f3e7
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion specification/policyinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
``` yaml $(python) && !$(track2)
python-mode: create
python:
azure-arm: true
Expand All @@ -158,12 +158,36 @@ python:
package-name: azure-mgmt-policyinsights
clear-output-folder: true
```

``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.policyinsights
package-name: azure-mgmt-policyinsights
package-version: 1.0.0b1
clear-output-folder: true
directive:
- from: policyEvents.json
where: $.parameters.fromParameter
transform: $['x-ms-client-name'] = 'FromProperty'
- from: policyStates.json
where: $.parameters.fromParameter
transform: $['x-ms-client-name'] = 'FromProperty'
```

``` yaml $(python) && $(python-mode) == 'update'
no-namespace-folders: true
output-folder: $(python-sdks-folder)/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights
```
``` yaml $(python) && $(python-mode) == 'create'
basic-setup-py: true
output-folder: $(python-sdks-folder)/policyinsights/azure-mgmt-policyinsights
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/policyinsights/azure-mgmt-policyinsights
Expand Down

0 comments on commit a62f3e7

Please sign in to comment.