Skip to content

Commit

Permalink
Security t2 (Azure#14676)
Browse files Browse the repository at this point in the history
* sql t2 readme config

* readme config

* Update readme.python.md

* conflient resolve

* security t2 config

* modelerfour config

* Delete duplicate JSON files

* del test

* Update readme.md

* directive x-ms-enum

* delete redundant definition

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent 5724431 commit 0f2dd57
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,6 @@
"description": "Include the policy rules",
"type": "boolean",
"required": false,
"enum": [
false,
true
],
"x-ms-parameter-location": "method"
},
"Summary": {
Expand All @@ -565,10 +561,6 @@
"description": "Return output in a summarized form",
"type": "boolean",
"required": false,
"enum": [
false,
true
],
"x-ms-parameter-location": "method"
},
"AdaptiveApplicationControlGroup": {
Expand Down
5 changes: 1 addition & 4 deletions specification/security/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ input-file:
- Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
- Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
- Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
- Microsoft.Security/stable/2019-08-01/iotAlertTypes.json
- Microsoft.Security/stable/2019-08-01/iotAlerts.json
- Microsoft.Security/stable/2019-08-01/iotRecommendationTypes.json
- Microsoft.Security/stable/2019-08-01/iotRecommendations.json
- Microsoft.Security/preview/2015-06-01-preview/locations.json
- Microsoft.Security/preview/2015-06-01-preview/operations.json
- Microsoft.Security/preview/2015-06-01-preview/tasks.json
Expand Down Expand Up @@ -486,6 +482,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-go
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-resource-manager-schemas
Expand Down
46 changes: 43 additions & 3 deletions specification/security/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 @@ -15,13 +15,53 @@ python:
package-version: 0.1.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.security
package-name: azure-mgmt-security
package-version: 1.0.0b1
clear-output-folder: true
modelerfour:
lenient-model-deduplication: true
```
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/security/azure-mgmt-security/azure/mgmt/security
```
``` yaml $(python) && $(python-mode) == 'create'
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/security/azure-mgmt-security
```
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/security/azure-mgmt-security/azure/mgmt/security
```
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/security/azure-mgmt-security
```
```yaml $(python) && $(track2)
directive:
- from: swagger-document
where: $.definitions.AadConnectivityState.properties.connectivityState
transform: >
$['x-ms-enum']['name'] = 'AadConnectivityStateEnum';
- from: swagger-document
where: $.definitions.ExternalSecuritySolutionKind.properties.kind
transform: >
$['x-ms-enum']['name'] = 'ExternalSecuritySolutionKindEnum';
- from: jitNetworkAccessPolicies.json
where: $.definitions.JitNetworkAccessPortRule.properties.protocol
transform: >
$['x-ms-enum']['name'] = 'protocolEnum';
- from: alerts.json
where: $.definitions.AlertSimulatorRequestProperties.properties.kind
transform: >
$['x-ms-enum']['name'] = 'kindEnum';
```

0 comments on commit 0f2dd57

Please sign in to comment.