Skip to content

Commit cbdc565

Browse files
RAY-316msyyc
authored andcommitted
Security t2 (Azure#14676)
* 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>
1 parent 98404e1 commit cbdc565

File tree

3 files changed

+44
-15
lines changed

3 files changed

+44
-15
lines changed

specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/applicationWhitelistings.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,6 @@
553553
"description": "Include the policy rules",
554554
"type": "boolean",
555555
"required": false,
556-
"enum": [
557-
false,
558-
true
559-
],
560556
"x-ms-parameter-location": "method"
561557
},
562558
"Summary": {
@@ -565,10 +561,6 @@
565561
"description": "Return output in a summarized form",
566562
"type": "boolean",
567563
"required": false,
568-
"enum": [
569-
false,
570-
true
571-
],
572564
"x-ms-parameter-location": "method"
573565
},
574566
"AdaptiveApplicationControlGroup": {

specification/security/resource-manager/readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ input-file:
187187
- Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
188188
- Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
189189
- Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
190-
- Microsoft.Security/stable/2019-08-01/iotAlertTypes.json
191-
- Microsoft.Security/stable/2019-08-01/iotAlerts.json
192-
- Microsoft.Security/stable/2019-08-01/iotRecommendationTypes.json
193-
- Microsoft.Security/stable/2019-08-01/iotRecommendations.json
194190
- Microsoft.Security/preview/2015-06-01-preview/locations.json
195191
- Microsoft.Security/preview/2015-06-01-preview/operations.json
196192
- Microsoft.Security/preview/2015-06-01-preview/tasks.json
@@ -486,6 +482,7 @@ swagger-to-sdk:
486482
- repo: azure-sdk-for-net
487483
- repo: azure-sdk-for-go
488484
- repo: azure-sdk-for-python
485+
- repo: azure-sdk-for-python-track2
489486
- repo: azure-sdk-for-js
490487
- repo: azure-sdk-for-node
491488
- repo: azure-resource-manager-schemas

specification/security/resource-manager/readme.python.md

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
55
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
66

7-
``` yaml $(python)
7+
``` yaml $(python) && !$(track2)
88
python-mode: create
99
python:
1010
azure-arm: true
@@ -15,13 +15,53 @@ python:
1515
package-version: 0.1.0
1616
clear-output-folder: true
1717
```
18-
``` yaml $(python) && $(python-mode) == 'update'
18+
``` yaml $(python) && $(track2)
19+
python-mode: create
20+
azure-arm: true
21+
license-header: MICROSOFT_MIT_NO_VERSION
22+
namespace: azure.mgmt.security
23+
package-name: azure-mgmt-security
24+
package-version: 1.0.0b1
25+
clear-output-folder: true
26+
modelerfour:
27+
lenient-model-deduplication: true
28+
```
29+
30+
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
1931
python:
2032
no-namespace-folders: true
2133
output-folder: $(python-sdks-folder)/security/azure-mgmt-security/azure/mgmt/security
2234
```
23-
``` yaml $(python) && $(python-mode) == 'create'
35+
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
2436
python:
2537
basic-setup-py: true
2638
output-folder: $(python-sdks-folder)/security/azure-mgmt-security
2739
```
40+
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
41+
no-namespace-folders: true
42+
output-folder: $(python-sdks-folder)/security/azure-mgmt-security/azure/mgmt/security
43+
```
44+
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
45+
basic-setup-py: true
46+
output-folder: $(python-sdks-folder)/security/azure-mgmt-security
47+
```
48+
49+
```yaml $(python) && $(track2)
50+
directive:
51+
- from: swagger-document
52+
where: $.definitions.AadConnectivityState.properties.connectivityState
53+
transform: >
54+
$['x-ms-enum']['name'] = 'AadConnectivityStateEnum';
55+
- from: swagger-document
56+
where: $.definitions.ExternalSecuritySolutionKind.properties.kind
57+
transform: >
58+
$['x-ms-enum']['name'] = 'ExternalSecuritySolutionKindEnum';
59+
- from: jitNetworkAccessPolicies.json
60+
where: $.definitions.JitNetworkAccessPortRule.properties.protocol
61+
transform: >
62+
$['x-ms-enum']['name'] = 'protocolEnum';
63+
- from: alerts.json
64+
where: $.definitions.AlertSimulatorRequestProperties.properties.kind
65+
transform: >
66+
$['x-ms-enum']['name'] = 'kindEnum';
67+
```

0 commit comments

Comments
 (0)