Skip to content

Commit 3875a7a

Browse files
j5limpraries880
authored andcommitted
[Hub Generated] Review request for Microsoft.PolicyInsights to add version 2018-07-01-preview (#5408)
* Fix incorrect types * Transform the type of expressionValue and targetValue to object type for the languages that support a generic object type.
1 parent 8da04b8 commit 3875a7a

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@
9393
"policyEvaluationDetails": {
9494
"evaluatedExpressions": [
9595
{
96-
"result": "False",
97-
"expression": "name",
98-
"path": "name",
99-
"expressionValue": "myDomainName",
100-
"targetValue": "someName",
101-
"operator": "Equals"
96+
"result": "True",
97+
"expression": "tags",
98+
"path": "tags",
99+
"expressionValue": {},
100+
"targetValue": "global-opco",
101+
"operator": "NotContainsKey"
102102
}
103103
],
104104
"ifNotExistsDetails": {

specification/policyinsights/resource-manager/readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ csharp:
145145
namespace: Microsoft.Azure.Management.PolicyInsights
146146
output-folder: $(csharp-sdks-folder)/PolicyInsights/Management/Management.PolicyInsights/Generated
147147
clear-output-folder: true
148+
directive:
149+
- from: swagger-document
150+
where: $.definitions.ExpressionEvaluationDetails.properties.expressionValue
151+
transform: $.type = "object"
152+
- from: swagger-document
153+
where: $.definitions.ExpressionEvaluationDetails.properties.targetValue
154+
transform: $.type = "object"
148155
```
149156

150157
## Python
@@ -162,6 +169,13 @@ python:
162169
namespace: azure.mgmt.policyinsights
163170
package-name: azure-mgmt-policyinsights
164171
clear-output-folder: true
172+
directive:
173+
- from: swagger-document
174+
where: $.definitions.ExpressionEvaluationDetails.properties.expressionValue
175+
transform: $.type = "object"
176+
- from: swagger-document
177+
where: $.definitions.ExpressionEvaluationDetails.properties.targetValue
178+
transform: $.type = "object"
165179
```
166180
``` yaml $(python) && $(python-mode) == 'update'
167181
python:
@@ -190,6 +204,13 @@ namespace: com.microsoft.azure.management.policyinsights
190204
license-header: MICROSOFT_MIT_NO_CODEGEN
191205
payload-flattening-threshold: 1
192206
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-policyinsights
207+
directive:
208+
- from: swagger-document
209+
where: $.definitions.ExpressionEvaluationDetails.properties.expressionValue
210+
transform: $.type = "object"
211+
- from: swagger-document
212+
where: $.definitions.ExpressionEvaluationDetails.properties.targetValue
213+
transform: $.type = "object"
193214
```
194215

195216
### Java multi-api

0 commit comments

Comments
 (0)