Skip to content

Commit 12573bd

Browse files
add x-ms-enum to policyinsights (#17424)
* add x-ms-enum to policyinsights * fix casing * resolve comments * resolve comments * resolve comment * align the parameters in all the polluted files
1 parent fe41884 commit 12573bd

File tree

10 files changed

+60
-0
lines changed

10 files changed

+60
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,10 @@
814814
"enum": [
815815
"Microsoft.Management"
816816
],
817+
"x-ms-enum": {
818+
"name": "ManagementGroupsNamespaceType",
819+
"modelAsString": false
820+
},
817821
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
818822
"x-ms-parameter-location": "method"
819823
},

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,10 @@
15431543
"enum": [
15441544
"Microsoft.Management"
15451545
],
1546+
"x-ms-enum": {
1547+
"name": "ManagementGroupsNamespaceType",
1548+
"modelAsString": false
1549+
},
15461550
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
15471551
"x-ms-parameter-location": "method"
15481552
},

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@
368368
"enum": [
369369
"default"
370370
],
371+
"x-ms-enum": {
372+
"name": "PolicyTrackedResourcesResourceType",
373+
"modelAsString": true
374+
},
371375
"description": "The name of the virtual resource under PolicyTrackedResources resource type; only \"default\" is allowed.",
372376
"x-ms-parameter-location": "method"
373377
},
@@ -379,6 +383,10 @@
379383
"enum": [
380384
"Microsoft.Management"
381385
],
386+
"x-ms-enum": {
387+
"name": "ManagementGroupsNamespaceType",
388+
"modelAsString": false
389+
},
382390
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
383391
"x-ms-parameter-location": "method"
384392
},

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,10 @@
12991299
"enum": [
13001300
"Microsoft.Management"
13011301
],
1302+
"x-ms-enum": {
1303+
"name": "ManagementGroupsNamespaceType",
1304+
"modelAsString": false
1305+
},
13021306
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
13031307
"x-ms-parameter-location": "method"
13041308
},

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2018-04-04/policyEvents.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,10 @@
774774
"enum": [
775775
"Microsoft.Management"
776776
],
777+
"x-ms-enum": {
778+
"name": "ManagementGroupsNamespaceType",
779+
"modelAsString": false
780+
},
777781
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
778782
"x-ms-parameter-location": "method"
779783
},

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2018-04-04/policyStates.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,10 @@
13901390
"enum": [
13911391
"Microsoft.Management"
13921392
],
1393+
"x-ms-enum": {
1394+
"name": "ManagementGroupsNamespaceType",
1395+
"modelAsString": false
1396+
},
13931397
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
13941398
"x-ms-parameter-location": "method"
13951399
},

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-07-01/remediations.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,10 @@
13251325
"enum": [
13261326
"Microsoft.Management"
13271327
],
1328+
"x-ms-enum": {
1329+
"name": "ManagementGroupsNamespaceType",
1330+
"modelAsString": false
1331+
},
13281332
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
13291333
"x-ms-parameter-location": "method"
13301334
},

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyEvents.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,10 @@
912912
"enum": [
913913
"default"
914914
],
915+
"x-ms-enum": {
916+
"name": "PolicyEventsResourceType",
917+
"modelAsString": true
918+
},
915919
"description": "The name of the virtual resource under PolicyEvents resource type; only \"default\" is allowed.",
916920
"x-ms-parameter-location": "method"
917921
},
@@ -923,6 +927,10 @@
923927
"enum": [
924928
"Microsoft.Management"
925929
],
930+
"x-ms-enum": {
931+
"name": "ManagementGroupsNamespaceType",
932+
"modelAsString": false
933+
},
926934
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
927935
"x-ms-parameter-location": "method"
928936
},
@@ -967,6 +975,10 @@
967975
"enum": [
968976
"Microsoft.Authorization"
969977
],
978+
"x-ms-enum": {
979+
"name": "AuthorizationNamespaceType",
980+
"modelAsString": false
981+
},
970982
"description": "The namespace for Microsoft Authorization resource provider; only \"Microsoft.Authorization\" is allowed.",
971983
"x-ms-parameter-location": "method"
972984
},

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyStates.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,10 @@
17591759
"enum": [
17601760
"latest"
17611761
],
1762+
"x-ms-enum": {
1763+
"name": "PolicyStatesSummaryResourceType",
1764+
"modelAsString": true
1765+
},
17621766
"description": "The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.",
17631767
"x-ms-parameter-location": "method"
17641768
},
@@ -1770,6 +1774,10 @@
17701774
"enum": [
17711775
"Microsoft.Management"
17721776
],
1777+
"x-ms-enum": {
1778+
"name": "ManagementGroupsNamespaceType",
1779+
"modelAsString": false
1780+
},
17731781
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
17741782
"x-ms-parameter-location": "method"
17751783
},
@@ -1814,6 +1822,10 @@
18141822
"enum": [
18151823
"Microsoft.Authorization"
18161824
],
1825+
"x-ms-enum": {
1826+
"name": "AuthorizationNamespaceType",
1827+
"modelAsString": false
1828+
},
18171829
"description": "The namespace for Microsoft Authorization resource provider; only \"Microsoft.Authorization\" is allowed.",
18181830
"x-ms-parameter-location": "method"
18191831
},

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2021-10-01/remediations.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,10 @@
13621362
"enum": [
13631363
"Microsoft.Management"
13641364
],
1365+
"x-ms-enum": {
1366+
"name": "ManagementGroupsNamespaceType",
1367+
"modelAsString": false
1368+
},
13651369
"description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
13661370
"x-ms-parameter-location": "method"
13671371
},

0 commit comments

Comments
 (0)