Skip to content

Commit 3ae3dd1

Browse files
nreischanandanthony
authored andcommitted
[Hub Generated] Publish private branch 'nreisch-componentPolicyStates-Microsoft.PolicyInsights-2022-04-01' (Azure#20802)
* Adds base for updating Microsoft.PolicyInsights from version stable/2019-10-01 to version 2022-04-01 * Updates readme * Updates API version in new specs and examples * Clean 2022-04-01 * Add ComponentPolicyStates API * Remove pageable * Fix CI 1 * Fix CI 2 * Fix CI 3 * CI Fix 4 * Fix CI 5 * Fix CI 6 * Fix CI * Fix CI * Fix CI * Fix CI * FIX CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI: * Fix CI * Fix * Fix * Fix contract * Address comments 1 * Add to readme * Address comments * Remove operations api * Remove operations api from 2022-04-01 * Add back operations api * Address comments * Fix * Fix CI * Fix CI * Fix CI * Remove x-ms-parameter-grouping * Rename parameters * Whitespace fix * whitespace fix * Fix params * Fix CI * Update PolicyEvaluationDetails example * Fix space * Fixes * Suppress resource name restriction * Add pattern * Fix pattern * Suppress LRO_RESPONSE_HEADER for 2019 api * Update resource name pattern * Remove isDataAction from later api-version * Add back operations api * Remove suppression * Fix LRO * Fix example
1 parent ded8111 commit 3ae3dd1

22 files changed

+2145
-83
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
},
77
"responses": {
88
"200": {},
9-
"202": {}
9+
"202": {
10+
"headers": {
11+
"Code": "202",
12+
"Message": "Accepted",
13+
"Retry-After": "30",
14+
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PolicyInsights/asyncOperationResults/00000000-0000-0000-0000-000000000000?api-version=2019-10-01"
15+
}
16+
}
1017
}
1118
}

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
},
66
"responses": {
77
"200": {},
8-
"202": {}
8+
"202": {
9+
"headers": {
10+
"Code": "202",
11+
"Message": "Accepted",
12+
"Retry-After": "30",
13+
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PolicyInsights/asyncOperationResults/00000000-0000-0000-0000-000000000000?api-version=2019-10-01"
14+
}
15+
}
916
}
1017
}
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Policy Insights Operations API",
5+
"version": "2019-10-01"
6+
},
7+
"host": "management.azure.com",
8+
"schemes": [
9+
"https"
10+
],
11+
"consumes": [
12+
"application/json"
13+
],
14+
"produces": [
15+
"application/json"
16+
],
17+
"security": [
18+
{
19+
"azure_auth": [
20+
"user_impersonation"
21+
]
22+
}
23+
],
24+
"securityDefinitions": {
25+
"azure_auth": {
26+
"type": "oauth2",
27+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
28+
"flow": "implicit",
29+
"description": "Azure Active Directory OAuth2 Flow",
30+
"scopes": {
31+
"user_impersonation": "impersonate your user account"
32+
}
33+
}
34+
},
35+
"paths": {
36+
"/providers/Microsoft.PolicyInsights/operations": {
37+
"get": {
38+
"operationId": "Operations_List",
39+
"description": "Lists available operations.",
40+
"parameters": [
41+
{
42+
"$ref": "#/parameters/apiVersionParameter"
43+
}
44+
],
45+
"responses": {
46+
"200": {
47+
"description": "List of available operations.",
48+
"schema": {
49+
"$ref": "#/definitions/OperationsListResults"
50+
}
51+
},
52+
"default": {
53+
"description": "Error response describing why the operation failed.",
54+
"schema": {
55+
"$ref": "#/definitions/QueryFailure"
56+
}
57+
}
58+
},
59+
"x-ms-examples": {
60+
"List operations": {
61+
"$ref": "./examples/Operations_ListOperations.json"
62+
}
63+
}
64+
}
65+
}
66+
},
67+
"definitions": {
68+
"OperationsListResults": {
69+
"description": "List of available operations.",
70+
"properties": {
71+
"@odata.count": {
72+
"description": "OData entity count; represents the number of operations returned.",
73+
"type": "integer",
74+
"format": "int32",
75+
"minimum": 1
76+
},
77+
"value": {
78+
"description": "List of available operations.",
79+
"type": "array",
80+
"items": {
81+
"$ref": "#/definitions/Operation"
82+
},
83+
"x-ms-identifiers": [
84+
"name"
85+
]
86+
}
87+
}
88+
},
89+
"Operation": {
90+
"description": "Operation definition.",
91+
"properties": {
92+
"name": {
93+
"description": "Operation name.",
94+
"type": "string"
95+
},
96+
"display": {
97+
"description": "Display metadata associated with the operation.",
98+
"properties": {
99+
"provider": {
100+
"description": "Resource provider name.",
101+
"type": "string"
102+
},
103+
"resource": {
104+
"description": "Resource name on which the operation is performed.",
105+
"type": "string"
106+
},
107+
"operation": {
108+
"description": "Operation name.",
109+
"type": "string"
110+
},
111+
"description": {
112+
"description": "Operation description.",
113+
"type": "string"
114+
}
115+
}
116+
}
117+
}
118+
},
119+
"QueryFailure": {
120+
"description": "Error response.",
121+
"properties": {
122+
"error": {
123+
"description": "Error definition.",
124+
"properties": {
125+
"code": {
126+
"description": "Service specific error code which serves as the substatus for the HTTP error code.",
127+
"type": "string",
128+
"readOnly": true
129+
},
130+
"message": {
131+
"description": "Description of the error.",
132+
"type": "string",
133+
"readOnly": true
134+
}
135+
}
136+
}
137+
}
138+
}
139+
},
140+
"parameters": {
141+
"apiVersionParameter": {
142+
"name": "api-version",
143+
"in": "query",
144+
"required": true,
145+
"type": "string",
146+
"description": "API version to use with the client requests.",
147+
"x-ms-parameter-location": "client"
148+
}
149+
}
150+
}

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

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,36 +1131,6 @@
11311131
}
11321132
}
11331133
}
1134-
},
1135-
"/providers/Microsoft.PolicyInsights/operations": {
1136-
"get": {
1137-
"operationId": "Operations_List",
1138-
"description": "Lists available operations.",
1139-
"parameters": [
1140-
{
1141-
"$ref": "#/parameters/apiVersionParameter"
1142-
}
1143-
],
1144-
"responses": {
1145-
"200": {
1146-
"description": "List of available operations.",
1147-
"schema": {
1148-
"$ref": "#/definitions/OperationsListResults"
1149-
}
1150-
},
1151-
"default": {
1152-
"description": "Error response describing why the operation failed.",
1153-
"schema": {
1154-
"$ref": "#/definitions/QueryFailure"
1155-
}
1156-
}
1157-
},
1158-
"x-ms-examples": {
1159-
"List operations": {
1160-
"$ref": "./examples/PolicyStates_ListOperations.json"
1161-
}
1162-
}
1163-
}
11641134
}
11651135
},
11661136
"x-ms-paths": {
@@ -1696,57 +1666,6 @@
16961666
}
16971667
}
16981668
},
1699-
"OperationsListResults": {
1700-
"description": "List of available operations.",
1701-
"properties": {
1702-
"@odata.count": {
1703-
"description": "OData entity count; represents the number of operations returned.",
1704-
"type": "integer",
1705-
"format": "int32",
1706-
"minimum": 1
1707-
},
1708-
"value": {
1709-
"description": "List of available operations.",
1710-
"type": "array",
1711-
"items": {
1712-
"$ref": "#/definitions/Operation"
1713-
},
1714-
"x-ms-identifiers": [
1715-
"name"
1716-
]
1717-
}
1718-
}
1719-
},
1720-
"Operation": {
1721-
"description": "Operation definition.",
1722-
"properties": {
1723-
"name": {
1724-
"description": "Operation name.",
1725-
"type": "string"
1726-
},
1727-
"display": {
1728-
"description": "Display metadata associated with the operation.",
1729-
"properties": {
1730-
"provider": {
1731-
"description": "Resource provider name.",
1732-
"type": "string"
1733-
},
1734-
"resource": {
1735-
"description": "Resource name on which the operation is performed.",
1736-
"type": "string"
1737-
},
1738-
"operation": {
1739-
"description": "Operation name.",
1740-
"type": "string"
1741-
},
1742-
"description": {
1743-
"description": "Operation description.",
1744-
"type": "string"
1745-
}
1746-
}
1747-
}
1748-
}
1749-
},
17501669
"MetadataDocument": {
17511670
"description": "Metadata XML document.",
17521671
"type": "string"

0 commit comments

Comments
 (0)