@azure/arm-policyinsights 3.2.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +72 -79
  4. package/dist/index.js +8639 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +1870 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +50 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +60 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +1336 -589
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +42 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +202 -166
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/attestations.d.ts +161 -0
  29. package/dist-esm/src/operations/attestations.d.ts.map +1 -0
  30. package/dist-esm/src/operations/attestations.js +747 -0
  31. package/dist-esm/src/operations/attestations.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/operations/index.js +5 -5
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +18 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +46 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/policyEvents.d.ts +208 -0
  41. package/dist-esm/src/operations/policyEvents.d.ts.map +1 -0
  42. package/dist-esm/src/operations/policyEvents.js +1097 -0
  43. package/dist-esm/src/operations/policyEvents.js.map +1 -0
  44. package/dist-esm/src/operations/policyMetadataOperations.d.ts +38 -0
  45. package/dist-esm/src/operations/policyMetadataOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/policyMetadataOperations.js +144 -0
  47. package/dist-esm/src/operations/policyMetadataOperations.js.map +1 -0
  48. package/dist-esm/src/operations/policyRestrictions.d.ts +27 -0
  49. package/dist-esm/src/operations/policyRestrictions.d.ts.map +1 -0
  50. package/dist-esm/src/operations/policyRestrictions.js +81 -0
  51. package/dist-esm/src/operations/policyRestrictions.js.map +1 -0
  52. package/dist-esm/src/operations/policyStates.d.ts +361 -0
  53. package/dist-esm/src/operations/policyStates.d.ts.map +1 -0
  54. package/dist-esm/src/operations/policyStates.js +1632 -0
  55. package/dist-esm/src/operations/policyStates.js.map +1 -0
  56. package/dist-esm/src/operations/policyTrackedResources.d.ts +99 -0
  57. package/dist-esm/src/operations/policyTrackedResources.d.ts.map +1 -0
  58. package/dist-esm/src/operations/policyTrackedResources.js +458 -0
  59. package/dist-esm/src/operations/policyTrackedResources.js.map +1 -0
  60. package/dist-esm/src/operations/remediations.d.ts +304 -0
  61. package/dist-esm/src/operations/remediations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/remediations.js +1377 -0
  63. package/dist-esm/src/operations/remediations.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/attestations.d.ts +110 -0
  65. package/dist-esm/src/operationsInterfaces/attestations.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/attestations.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/attestations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
  69. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/index.js +16 -0
  71. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/policyEvents.d.ts +60 -0
  77. package/dist-esm/src/operationsInterfaces/policyEvents.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/policyEvents.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/policyEvents.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts +17 -0
  81. package/dist-esm/src/operationsInterfaces/policyMetadataOperations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/policyMetadataOperations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/policyMetadataOperations.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts +19 -0
  85. package/dist-esm/src/operationsInterfaces/policyRestrictions.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/policyRestrictions.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/policyRestrictions.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/policyStates.d.ts +165 -0
  89. package/dist-esm/src/operationsInterfaces/policyStates.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/policyStates.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/policyStates.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts +29 -0
  93. package/dist-esm/src/operationsInterfaces/policyTrackedResources.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/policyTrackedResources.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/policyTrackedResources.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/remediations.d.ts +168 -0
  97. package/dist-esm/src/operationsInterfaces/remediations.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/remediations.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/remediations.js.map +1 -0
  100. package/dist-esm/src/policyInsightsClient.d.ts +24 -0
  101. package/dist-esm/src/policyInsightsClient.d.ts.map +1 -0
  102. package/dist-esm/src/policyInsightsClient.js +57 -0
  103. package/dist-esm/src/policyInsightsClient.js.map +1 -0
  104. package/dist-esm/test/sampleTest.d.ts +2 -0
  105. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  106. package/dist-esm/test/sampleTest.js +40 -0
  107. package/dist-esm/test/sampleTest.js.map +1 -0
  108. package/package.json +82 -22
  109. package/review/arm-policyinsights.api.md +1525 -0
  110. package/rollup.config.js +181 -30
  111. package/src/index.ts +12 -0
  112. package/src/lroImpl.ts +34 -0
  113. package/src/models/index.ts +1645 -2293
  114. package/src/models/mappers.ts +1579 -795
  115. package/src/models/parameters.ts +250 -167
  116. package/src/operations/attestations.ts +999 -0
  117. package/src/operations/index.ts +5 -5
  118. package/src/operations/operations.ts +29 -44
  119. package/src/operations/policyEvents.ts +1158 -327
  120. package/src/operations/policyMetadataOperations.ts +108 -113
  121. package/src/operations/policyRestrictions.ts +111 -0
  122. package/src/operations/policyStates.ts +1751 -750
  123. package/src/operations/policyTrackedResources.ts +416 -284
  124. package/src/operations/remediations.ts +1208 -1248
  125. package/src/operationsInterfaces/attestations.ts +212 -0
  126. package/src/operationsInterfaces/index.ts +16 -0
  127. package/src/operationsInterfaces/operations.ts +21 -0
  128. package/src/operationsInterfaces/policyEvents.ts +109 -0
  129. package/src/operationsInterfaces/policyMetadataOperations.ts +36 -0
  130. package/src/operationsInterfaces/policyRestrictions.ts +40 -0
  131. package/src/operationsInterfaces/policyStates.ts +287 -0
  132. package/src/operationsInterfaces/policyTrackedResources.ts +55 -0
  133. package/src/operationsInterfaces/remediations.ts +310 -0
  134. package/src/policyInsightsClient.ts +93 -39
  135. package/tsconfig.json +20 -7
  136. package/types/arm-policyinsights.d.ts +2728 -0
  137. package/types/tsdoc-metadata.json +11 -0
  138. package/dist/arm-policyinsights.js +0 -4909
  139. package/dist/arm-policyinsights.js.map +0 -1
  140. package/dist/arm-policyinsights.min.js +0 -1
  141. package/dist/arm-policyinsights.min.js.map +0 -1
  142. package/esm/models/index.d.ts +0 -2651
  143. package/esm/models/index.d.ts.map +0 -1
  144. package/esm/models/index.js +0 -8
  145. package/esm/models/index.js.map +0 -1
  146. package/esm/models/mappers.d.ts +0 -40
  147. package/esm/models/mappers.d.ts.map +0 -1
  148. package/esm/models/mappers.js.map +0 -1
  149. package/esm/models/operationsMappers.d.ts +0 -2
  150. package/esm/models/operationsMappers.d.ts.map +0 -1
  151. package/esm/models/operationsMappers.js +0 -9
  152. package/esm/models/operationsMappers.js.map +0 -1
  153. package/esm/models/parameters.d.ts +0 -33
  154. package/esm/models/parameters.d.ts.map +0 -1
  155. package/esm/models/parameters.js.map +0 -1
  156. package/esm/models/policyEventsMappers.d.ts +0 -2
  157. package/esm/models/policyEventsMappers.d.ts.map +0 -1
  158. package/esm/models/policyEventsMappers.js +0 -9
  159. package/esm/models/policyEventsMappers.js.map +0 -1
  160. package/esm/models/policyMetadataOperationsMappers.d.ts +0 -2
  161. package/esm/models/policyMetadataOperationsMappers.d.ts.map +0 -1
  162. package/esm/models/policyMetadataOperationsMappers.js +0 -9
  163. package/esm/models/policyMetadataOperationsMappers.js.map +0 -1
  164. package/esm/models/policyStatesMappers.d.ts +0 -2
  165. package/esm/models/policyStatesMappers.d.ts.map +0 -1
  166. package/esm/models/policyStatesMappers.js +0 -9
  167. package/esm/models/policyStatesMappers.js.map +0 -1
  168. package/esm/models/policyTrackedResourcesMappers.d.ts +0 -2
  169. package/esm/models/policyTrackedResourcesMappers.d.ts.map +0 -1
  170. package/esm/models/policyTrackedResourcesMappers.js +0 -9
  171. package/esm/models/policyTrackedResourcesMappers.js.map +0 -1
  172. package/esm/models/remediationsMappers.d.ts +0 -2
  173. package/esm/models/remediationsMappers.d.ts.map +0 -1
  174. package/esm/models/remediationsMappers.js +0 -9
  175. package/esm/models/remediationsMappers.js.map +0 -1
  176. package/esm/operations/index.d.ts.map +0 -1
  177. package/esm/operations/index.js.map +0 -1
  178. package/esm/operations/operations.d.ts +0 -28
  179. package/esm/operations/operations.d.ts.map +0 -1
  180. package/esm/operations/operations.js +0 -51
  181. package/esm/operations/operations.js.map +0 -1
  182. package/esm/operations/policyEvents.d.ts +0 -198
  183. package/esm/operations/policyEvents.d.ts.map +0 -1
  184. package/esm/operations/policyEvents.js +0 -365
  185. package/esm/operations/policyEvents.js.map +0 -1
  186. package/esm/operations/policyMetadataOperations.d.ts +0 -64
  187. package/esm/operations/policyMetadataOperations.d.ts.map +0 -1
  188. package/esm/operations/policyMetadataOperations.js +0 -106
  189. package/esm/operations/policyMetadataOperations.js.map +0 -1
  190. package/esm/operations/policyStates.d.ts +0 -442
  191. package/esm/operations/policyStates.d.ts.map +0 -1
  192. package/esm/operations/policyStates.js +0 -712
  193. package/esm/operations/policyStates.js.map +0 -1
  194. package/esm/operations/policyTrackedResources.d.ts +0 -160
  195. package/esm/operations/policyTrackedResources.d.ts.map +0 -1
  196. package/esm/operations/policyTrackedResources.js +0 -258
  197. package/esm/operations/policyTrackedResources.js.map +0 -1
  198. package/esm/operations/remediations.d.ts +0 -679
  199. package/esm/operations/remediations.d.ts.map +0 -1
  200. package/esm/operations/remediations.js +0 -1014
  201. package/esm/operations/remediations.js.map +0 -1
  202. package/esm/policyInsightsClient.d.ts +0 -22
  203. package/esm/policyInsightsClient.d.ts.map +0 -1
  204. package/esm/policyInsightsClient.js +0 -37
  205. package/esm/policyInsightsClient.js.map +0 -1
  206. package/esm/policyInsightsClientContext.d.ts +0 -13
  207. package/esm/policyInsightsClientContext.d.ts.map +0 -1
  208. package/esm/policyInsightsClientContext.js +0 -50
  209. package/esm/policyInsightsClientContext.js.map +0 -1
  210. package/src/models/operationsMappers.ts +0 -15
  211. package/src/models/policyEventsMappers.ts +0 -14
  212. package/src/models/policyMetadataOperationsMappers.ts +0 -16
  213. package/src/models/policyStatesMappers.ts +0 -24
  214. package/src/models/policyTrackedResourcesMappers.ts +0 -16
  215. package/src/models/remediationsMappers.ts +0 -20
  216. package/src/policyInsightsClientContext.ts +0 -54
@@ -1,2874 +1,2226 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
11
+ /** Query results. */
12
+ export interface PolicyTrackedResourcesQueryResults {
13
+ /**
14
+ * Query results.
15
+ * NOTE: This property will not be serialized. It can only be populated by the server.
16
+ */
17
+ readonly value?: PolicyTrackedResource[];
18
+ /**
19
+ * The URL to get the next set of results.
20
+ * NOTE: This property will not be serialized. It can only be populated by the server.
21
+ */
22
+ readonly nextLink?: string;
23
+ }
13
24
 
14
- /**
15
- * The policy details.
16
- */
25
+ /** Policy tracked resource record. */
26
+ export interface PolicyTrackedResource {
27
+ /**
28
+ * The ID of the policy tracked resource.
29
+ * NOTE: This property will not be serialized. It can only be populated by the server.
30
+ */
31
+ readonly trackedResourceId?: string;
32
+ /**
33
+ * The details of the policy that require the tracked resource.
34
+ * NOTE: This property will not be serialized. It can only be populated by the server.
35
+ */
36
+ readonly policyDetails?: PolicyDetails;
37
+ /**
38
+ * The details of the policy triggered deployment that created the tracked resource.
39
+ * NOTE: This property will not be serialized. It can only be populated by the server.
40
+ */
41
+ readonly createdBy?: TrackedResourceModificationDetails;
42
+ /**
43
+ * The details of the policy triggered deployment that modified the tracked resource.
44
+ * NOTE: This property will not be serialized. It can only be populated by the server.
45
+ */
46
+ readonly lastModifiedBy?: TrackedResourceModificationDetails;
47
+ /**
48
+ * Timestamp of the last update to the tracked resource.
49
+ * NOTE: This property will not be serialized. It can only be populated by the server.
50
+ */
51
+ readonly lastUpdateUtc?: Date;
52
+ }
53
+
54
+ /** The policy details. */
17
55
  export interface PolicyDetails {
18
56
  /**
19
57
  * The ID of the policy definition.
20
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
58
+ * NOTE: This property will not be serialized. It can only be populated by the server.
21
59
  */
22
60
  readonly policyDefinitionId?: string;
23
61
  /**
24
62
  * The ID of the policy assignment.
25
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
63
+ * NOTE: This property will not be serialized. It can only be populated by the server.
26
64
  */
27
65
  readonly policyAssignmentId?: string;
28
66
  /**
29
67
  * The display name of the policy assignment.
30
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
68
+ * NOTE: This property will not be serialized. It can only be populated by the server.
31
69
  */
32
70
  readonly policyAssignmentDisplayName?: string;
33
71
  /**
34
72
  * The scope of the policy assignment.
35
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
73
+ * NOTE: This property will not be serialized. It can only be populated by the server.
36
74
  */
37
75
  readonly policyAssignmentScope?: string;
38
76
  /**
39
77
  * The ID of the policy set definition.
40
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
78
+ * NOTE: This property will not be serialized. It can only be populated by the server.
41
79
  */
42
80
  readonly policySetDefinitionId?: string;
43
81
  /**
44
82
  * The policy definition reference ID within the policy set definition.
45
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
83
+ * NOTE: This property will not be serialized. It can only be populated by the server.
46
84
  */
47
85
  readonly policyDefinitionReferenceId?: string;
48
86
  }
49
87
 
50
- /**
51
- * The details of the policy triggered deployment that created or modified the tracked resource.
52
- */
88
+ /** The details of the policy triggered deployment that created or modified the tracked resource. */
53
89
  export interface TrackedResourceModificationDetails {
54
90
  /**
55
91
  * The details of the policy that created or modified the tracked resource.
56
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
92
+ * NOTE: This property will not be serialized. It can only be populated by the server.
57
93
  */
58
94
  readonly policyDetails?: PolicyDetails;
59
95
  /**
60
96
  * The ID of the deployment that created or modified the tracked resource.
61
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
97
+ * NOTE: This property will not be serialized. It can only be populated by the server.
62
98
  */
63
99
  readonly deploymentId?: string;
64
100
  /**
65
101
  * Timestamp of the deployment that created or modified the tracked resource.
66
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
102
+ * NOTE: This property will not be serialized. It can only be populated by the server.
67
103
  */
68
104
  readonly deploymentTime?: Date;
69
105
  }
70
106
 
71
- /**
72
- * Policy tracked resource record.
73
- */
74
- export interface PolicyTrackedResource {
75
- /**
76
- * The ID of the policy tracked resource.
77
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
78
- */
79
- readonly trackedResourceId?: string;
80
- /**
81
- * The details of the policy that require the tracked resource.
82
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
83
- */
84
- readonly policyDetails?: PolicyDetails;
85
- /**
86
- * The details of the policy triggered deployment that created the tracked resource.
87
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
88
- */
89
- readonly createdBy?: TrackedResourceModificationDetails;
90
- /**
91
- * The details of the policy triggered deployment that modified the tracked resource.
92
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
93
- */
94
- readonly lastModifiedBy?: TrackedResourceModificationDetails;
95
- /**
96
- * Timestamp of the last update to the tracked resource.
97
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
98
- */
99
- readonly lastUpdateUtc?: Date;
107
+ /** Error response. */
108
+ export interface QueryFailure {
109
+ /** Error definition. */
110
+ error?: QueryFailureError;
100
111
  }
101
112
 
102
- /**
103
- * Error definition.
104
- */
113
+ /** Error definition. */
105
114
  export interface QueryFailureError {
106
115
  /**
107
116
  * Service specific error code which serves as the substatus for the HTTP error code.
108
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
117
+ * NOTE: This property will not be serialized. It can only be populated by the server.
109
118
  */
110
119
  readonly code?: string;
111
120
  /**
112
121
  * Description of the error.
113
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
122
+ * NOTE: This property will not be serialized. It can only be populated by the server.
114
123
  */
115
124
  readonly message?: string;
116
125
  }
117
126
 
118
- /**
119
- * Error response.
120
- */
121
- export interface QueryFailure {
127
+ /** List of deployments for a remediation. */
128
+ export interface RemediationDeploymentsListResult {
122
129
  /**
123
- * Error definition.
130
+ * Array of deployments for the remediation.
131
+ * NOTE: This property will not be serialized. It can only be populated by the server.
124
132
  */
125
- error?: QueryFailureError;
126
- }
127
-
128
- /**
129
- * The filters that will be applied to determine which resources to remediate.
130
- */
131
- export interface RemediationFilters {
133
+ readonly value?: RemediationDeployment[];
132
134
  /**
133
- * The resource locations that will be remediated.
135
+ * The URL to get the next set of results.
136
+ * NOTE: This property will not be serialized. It can only be populated by the server.
134
137
  */
135
- locations?: string[];
138
+ readonly nextLink?: string;
136
139
  }
137
140
 
138
- /**
139
- * The deployment status summary for all deployments created by the remediation.
140
- */
141
- export interface RemediationDeploymentSummary {
142
- /**
143
- * The number of deployments required by the remediation.
144
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
145
- */
146
- readonly totalDeployments?: number;
147
- /**
148
- * The number of deployments required by the remediation that have succeeded.
149
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
150
- */
151
- readonly successfulDeployments?: number;
141
+ /** Details of a single deployment created by the remediation. */
142
+ export interface RemediationDeployment {
152
143
  /**
153
- * The number of deployments required by the remediation that have failed.
154
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
144
+ * Resource ID of the resource that is being remediated by the deployment.
145
+ * NOTE: This property will not be serialized. It can only be populated by the server.
155
146
  */
156
- readonly failedDeployments?: number;
157
- }
158
-
159
- /**
160
- * The remediation definition.
161
- */
162
- export interface Remediation extends BaseResource {
147
+ readonly remediatedResourceId?: string;
163
148
  /**
164
- * The resource ID of the policy assignment that should be remediated.
149
+ * Resource ID of the template deployment that will remediate the resource.
150
+ * NOTE: This property will not be serialized. It can only be populated by the server.
165
151
  */
166
- policyAssignmentId?: string;
152
+ readonly deploymentId?: string;
167
153
  /**
168
- * The policy definition reference ID of the individual definition that should be remediated.
169
- * Required when the policy assignment being remediated assigns a policy set definition.
154
+ * Status of the remediation deployment.
155
+ * NOTE: This property will not be serialized. It can only be populated by the server.
170
156
  */
171
- policyDefinitionReferenceId?: string;
157
+ readonly status?: string;
172
158
  /**
173
- * The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not
174
- * specified. Possible values include: 'ExistingNonCompliant', 'ReEvaluateCompliance'
159
+ * Location of the resource that is being remediated.
160
+ * NOTE: This property will not be serialized. It can only be populated by the server.
175
161
  */
176
- resourceDiscoveryMode?: ResourceDiscoveryMode;
162
+ readonly resourceLocation?: string;
177
163
  /**
178
- * The status of the remediation.
179
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
164
+ * Error encountered while remediated the resource.
165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
180
166
  */
181
- readonly provisioningState?: string;
167
+ readonly error?: ErrorDefinition;
182
168
  /**
183
169
  * The time at which the remediation was created.
184
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
185
171
  */
186
172
  readonly createdOn?: Date;
187
173
  /**
188
- * The time at which the remediation was last updated.
189
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
174
+ * The time at which the remediation deployment was last updated.
175
+ * NOTE: This property will not be serialized. It can only be populated by the server.
190
176
  */
191
177
  readonly lastUpdatedOn?: Date;
178
+ }
179
+
180
+ /** Error definition. */
181
+ export interface ErrorDefinition {
192
182
  /**
193
- * The filters that will be applied to determine which resources to remediate.
183
+ * Service specific error code which serves as the substatus for the HTTP error code.
184
+ * NOTE: This property will not be serialized. It can only be populated by the server.
194
185
  */
195
- filters?: RemediationFilters;
186
+ readonly code?: string;
196
187
  /**
197
- * The deployment status summary for all deployments created by the remediation.
198
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
188
+ * Description of the error.
189
+ * NOTE: This property will not be serialized. It can only be populated by the server.
199
190
  */
200
- readonly deploymentStatus?: RemediationDeploymentSummary;
191
+ readonly message?: string;
201
192
  /**
202
- * The ID of the remediation.
203
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
193
+ * The target of the error.
194
+ * NOTE: This property will not be serialized. It can only be populated by the server.
204
195
  */
205
- readonly id?: string;
196
+ readonly target?: string;
206
197
  /**
207
- * The type of the remediation.
208
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
198
+ * Internal error details.
199
+ * NOTE: This property will not be serialized. It can only be populated by the server.
209
200
  */
210
- readonly type?: string;
201
+ readonly details?: ErrorDefinition[];
211
202
  /**
212
- * The name of the remediation.
213
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
203
+ * Additional scenario specific error details.
204
+ * NOTE: This property will not be serialized. It can only be populated by the server.
214
205
  */
215
- readonly name?: string;
206
+ readonly additionalInfo?: TypedErrorInfo[];
216
207
  }
217
208
 
218
- /**
219
- * Scenario specific error details.
220
- */
209
+ /** Scenario specific error details. */
221
210
  export interface TypedErrorInfo {
222
211
  /**
223
212
  * The type of included error details.
224
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
213
+ * NOTE: This property will not be serialized. It can only be populated by the server.
225
214
  */
226
215
  readonly type?: string;
227
216
  /**
228
217
  * The scenario specific error details.
229
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
218
+ * NOTE: This property will not be serialized. It can only be populated by the server.
230
219
  */
231
220
  readonly info?: any;
232
221
  }
233
222
 
234
- /**
235
- * Error definition.
236
- */
237
- export interface ErrorDefinition {
238
- /**
239
- * Service specific error code which serves as the substatus for the HTTP error code.
240
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
241
- */
242
- readonly code?: string;
243
- /**
244
- * Description of the error.
245
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
246
- */
247
- readonly message?: string;
223
+ /** Error response. */
224
+ export interface ErrorResponse {
225
+ /** The error details. */
226
+ error?: ErrorDefinition;
227
+ }
228
+
229
+ /** The remediation definition. */
230
+ export interface Remediation {
248
231
  /**
249
- * The target of the error.
250
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
232
+ * The ID of the remediation.
233
+ * NOTE: This property will not be serialized. It can only be populated by the server.
251
234
  */
252
- readonly target?: string;
235
+ readonly id?: string;
253
236
  /**
254
- * Internal error details.
255
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
237
+ * The type of the remediation.
238
+ * NOTE: This property will not be serialized. It can only be populated by the server.
256
239
  */
257
- readonly details?: ErrorDefinition[];
240
+ readonly type?: string;
258
241
  /**
259
- * Additional scenario specific error details.
260
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
242
+ * The name of the remediation.
243
+ * NOTE: This property will not be serialized. It can only be populated by the server.
261
244
  */
262
- readonly additionalInfo?: TypedErrorInfo[];
263
- }
264
-
265
- /**
266
- * Details of a single deployment created by the remediation.
267
- */
268
- export interface RemediationDeployment {
245
+ readonly name?: string;
269
246
  /**
270
- * Resource ID of the resource that is being remediated by the deployment.
271
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
247
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
248
+ * NOTE: This property will not be serialized. It can only be populated by the server.
272
249
  */
273
- readonly remediatedResourceId?: string;
250
+ readonly systemData?: SystemData;
251
+ /** The resource ID of the policy assignment that should be remediated. */
252
+ policyAssignmentId?: string;
253
+ /** The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition. */
254
+ policyDefinitionReferenceId?: string;
255
+ /** The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified. */
256
+ resourceDiscoveryMode?: ResourceDiscoveryMode;
274
257
  /**
275
- * Resource ID of the template deployment that will remediate the resource.
276
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
258
+ * The status of the remediation.
259
+ * NOTE: This property will not be serialized. It can only be populated by the server.
277
260
  */
278
- readonly deploymentId?: string;
261
+ readonly provisioningState?: string;
279
262
  /**
280
- * Status of the remediation deployment.
281
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
263
+ * The time at which the remediation was created.
264
+ * NOTE: This property will not be serialized. It can only be populated by the server.
282
265
  */
283
- readonly status?: string;
266
+ readonly createdOn?: Date;
284
267
  /**
285
- * Location of the resource that is being remediated.
286
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
268
+ * The time at which the remediation was last updated.
269
+ * NOTE: This property will not be serialized. It can only be populated by the server.
287
270
  */
288
- readonly resourceLocation?: string;
271
+ readonly lastUpdatedOn?: Date;
272
+ /** The filters that will be applied to determine which resources to remediate. */
273
+ filters?: RemediationFilters;
289
274
  /**
290
- * Error encountered while remediated the resource.
291
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
275
+ * The deployment status summary for all deployments created by the remediation.
276
+ * NOTE: This property will not be serialized. It can only be populated by the server.
292
277
  */
293
- readonly error?: ErrorDefinition;
278
+ readonly deploymentStatus?: RemediationDeploymentSummary;
294
279
  /**
295
- * The time at which the remediation was created.
296
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
280
+ * The remediation status message. Provides additional details regarding the state of the remediation.
281
+ * NOTE: This property will not be serialized. It can only be populated by the server.
297
282
  */
298
- readonly createdOn?: Date;
283
+ readonly statusMessage?: string;
299
284
  /**
300
- * The time at which the remediation deployment was last updated.
301
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
285
+ * The remediation correlation Id. Can be used to find events related to the remediation in the activity log.
286
+ * NOTE: This property will not be serialized. It can only be populated by the server.
302
287
  */
303
- readonly lastUpdatedOn?: Date;
288
+ readonly correlationId?: string;
289
+ /** Determines the max number of resources that can be remediated by the remediation job. If not provided, the default resource count is used. */
290
+ resourceCount?: number;
291
+ /** Determines how many resources to remediate at any given time. Can be used to increase or reduce the pace of the remediation. If not provided, the default parallel deployments value is used. */
292
+ parallelDeployments?: number;
293
+ /** The remediation failure threshold settings */
294
+ failureThreshold?: RemediationPropertiesFailureThreshold;
304
295
  }
305
296
 
306
- /**
307
- * Error response.
308
- */
309
- export interface ErrorResponse {
310
- /**
311
- * The error details.
312
- */
313
- error?: ErrorDefinition;
297
+ /** The filters that will be applied to determine which resources to remediate. */
298
+ export interface RemediationFilters {
299
+ /** The resource locations that will be remediated. */
300
+ locations?: string[];
314
301
  }
315
302
 
316
- /**
317
- * Policy event record.
318
- */
319
- export interface PolicyEvent {
303
+ /** The deployment status summary for all deployments created by the remediation. */
304
+ export interface RemediationDeploymentSummary {
320
305
  /**
321
- * OData entity ID; always set to null since policy event records do not have an entity ID.
306
+ * The number of deployments required by the remediation.
307
+ * NOTE: This property will not be serialized. It can only be populated by the server.
322
308
  */
323
- odataid?: string;
309
+ readonly totalDeployments?: number;
324
310
  /**
325
- * OData context string; used by OData clients to resolve type information based on metadata.
311
+ * The number of deployments required by the remediation that have succeeded.
312
+ * NOTE: This property will not be serialized. It can only be populated by the server.
326
313
  */
327
- odatacontext?: string;
314
+ readonly successfulDeployments?: number;
328
315
  /**
329
- * Timestamp for the policy event record.
316
+ * The number of deployments required by the remediation that have failed.
317
+ * NOTE: This property will not be serialized. It can only be populated by the server.
330
318
  */
331
- timestamp?: Date;
319
+ readonly failedDeployments?: number;
320
+ }
321
+
322
+ /** The remediation failure threshold settings */
323
+ export interface RemediationPropertiesFailureThreshold {
324
+ /** A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold. */
325
+ percentage?: number;
326
+ }
327
+
328
+ /** Metadata pertaining to creation and last modification of the resource. */
329
+ export interface SystemData {
330
+ /** The identity that created the resource. */
331
+ createdBy?: string;
332
+ /** The type of identity that created the resource. */
333
+ createdByType?: CreatedByType;
334
+ /** The timestamp of resource creation (UTC). */
335
+ createdAt?: Date;
336
+ /** The identity that last modified the resource. */
337
+ lastModifiedBy?: string;
338
+ /** The type of identity that last modified the resource. */
339
+ lastModifiedByType?: CreatedByType;
340
+ /** The timestamp of resource last modification (UTC) */
341
+ lastModifiedAt?: Date;
342
+ }
343
+
344
+ /** List of remediations. */
345
+ export interface RemediationListResult {
332
346
  /**
333
- * Resource ID.
347
+ * Array of remediation definitions.
348
+ * NOTE: This property will not be serialized. It can only be populated by the server.
334
349
  */
335
- resourceId?: string;
350
+ readonly value?: Remediation[];
336
351
  /**
337
- * Policy assignment ID.
352
+ * The URL to get the next set of results.
353
+ * NOTE: This property will not be serialized. It can only be populated by the server.
338
354
  */
355
+ readonly nextLink?: string;
356
+ }
357
+
358
+ /** Query results. */
359
+ export interface PolicyEventsQueryResults {
360
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
361
+ odataContext?: string;
362
+ /** OData entity count; represents the number of policy event records returned. */
363
+ odataCount?: number;
364
+ /** Odata next link; URL to get the next set of results. */
365
+ odataNextLink?: string;
366
+ /** Query results. */
367
+ value?: PolicyEvent[];
368
+ }
369
+
370
+ /** Policy event record. */
371
+ export interface PolicyEvent {
372
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
373
+ [property: string]: any;
374
+ /** OData entity ID; always set to null since policy event records do not have an entity ID. */
375
+ odataId?: string;
376
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
377
+ odataContext?: string;
378
+ /** Timestamp for the policy event record. */
379
+ timestamp?: Date;
380
+ /** Resource ID. */
381
+ resourceId?: string;
382
+ /** Policy assignment ID. */
339
383
  policyAssignmentId?: string;
340
- /**
341
- * Policy definition ID.
342
- */
384
+ /** Policy definition ID. */
343
385
  policyDefinitionId?: string;
344
- /**
345
- * Effective parameters for the policy assignment.
346
- */
386
+ /** Effective parameters for the policy assignment. */
347
387
  effectiveParameters?: string;
348
- /**
349
- * Flag which states whether the resource is compliant against the policy assignment it was
350
- * evaluated against.
351
- */
388
+ /** Flag which states whether the resource is compliant against the policy assignment it was evaluated against. */
352
389
  isCompliant?: boolean;
353
- /**
354
- * Subscription ID.
355
- */
390
+ /** Subscription ID. */
356
391
  subscriptionId?: string;
357
- /**
358
- * Resource type.
359
- */
392
+ /** Resource type. */
360
393
  resourceType?: string;
361
- /**
362
- * Resource location.
363
- */
394
+ /** Resource location. */
364
395
  resourceLocation?: string;
365
- /**
366
- * Resource group name.
367
- */
396
+ /** Resource group name. */
368
397
  resourceGroup?: string;
369
- /**
370
- * List of resource tags.
371
- */
398
+ /** List of resource tags. */
372
399
  resourceTags?: string;
373
- /**
374
- * Policy assignment name.
375
- */
400
+ /** Policy assignment name. */
376
401
  policyAssignmentName?: string;
377
- /**
378
- * Policy assignment owner.
379
- */
402
+ /** Policy assignment owner. */
380
403
  policyAssignmentOwner?: string;
381
- /**
382
- * Policy assignment parameters.
383
- */
404
+ /** Policy assignment parameters. */
384
405
  policyAssignmentParameters?: string;
385
- /**
386
- * Policy assignment scope.
387
- */
406
+ /** Policy assignment scope. */
388
407
  policyAssignmentScope?: string;
389
- /**
390
- * Policy definition name.
391
- */
408
+ /** Policy definition name. */
392
409
  policyDefinitionName?: string;
393
- /**
394
- * Policy definition action, i.e. effect.
395
- */
410
+ /** Policy definition action, i.e. effect. */
396
411
  policyDefinitionAction?: string;
397
- /**
398
- * Policy definition category.
399
- */
412
+ /** Policy definition category. */
400
413
  policyDefinitionCategory?: string;
401
- /**
402
- * Policy set definition ID, if the policy assignment is for a policy set.
403
- */
414
+ /** Policy set definition ID, if the policy assignment is for a policy set. */
404
415
  policySetDefinitionId?: string;
405
- /**
406
- * Policy set definition name, if the policy assignment is for a policy set.
407
- */
416
+ /** Policy set definition name, if the policy assignment is for a policy set. */
408
417
  policySetDefinitionName?: string;
409
- /**
410
- * Policy set definition owner, if the policy assignment is for a policy set.
411
- */
418
+ /** Policy set definition owner, if the policy assignment is for a policy set. */
412
419
  policySetDefinitionOwner?: string;
413
- /**
414
- * Policy set definition category, if the policy assignment is for a policy set.
415
- */
420
+ /** Policy set definition category, if the policy assignment is for a policy set. */
416
421
  policySetDefinitionCategory?: string;
417
- /**
418
- * Policy set definition parameters, if the policy assignment is for a policy set.
419
- */
422
+ /** Policy set definition parameters, if the policy assignment is for a policy set. */
420
423
  policySetDefinitionParameters?: string;
421
- /**
422
- * Comma separated list of management group IDs, which represent the hierarchy of the management
423
- * groups the resource is under.
424
- */
424
+ /** Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under. */
425
425
  managementGroupIds?: string;
426
- /**
427
- * Reference ID for the policy definition inside the policy set, if the policy assignment is for
428
- * a policy set.
429
- */
426
+ /** Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set. */
430
427
  policyDefinitionReferenceId?: string;
431
- /**
432
- * Tenant ID for the policy event record.
433
- */
428
+ /** Compliance state of the resource. */
429
+ complianceState?: string;
430
+ /** Tenant ID for the policy event record. */
434
431
  tenantId?: string;
435
- /**
436
- * Principal object ID for the user who initiated the resource operation that triggered the
437
- * policy event.
438
- */
432
+ /** Principal object ID for the user who initiated the resource operation that triggered the policy event. */
439
433
  principalOid?: string;
440
- /**
441
- * Describes unknown properties. The value of an unknown property can be of "any" type.
442
- */
434
+ /** Components events records populated only when URL contains $expand=components clause. */
435
+ components?: ComponentEventDetails[];
436
+ }
437
+
438
+ /** Component event details. */
439
+ export interface ComponentEventDetails {
440
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
443
441
  [property: string]: any;
442
+ /** Component Id. */
443
+ id?: string;
444
+ /** Component type. */
445
+ type?: string;
446
+ /** Component name. */
447
+ name?: string;
448
+ /** Timestamp for component policy event record. */
449
+ timestamp?: Date;
450
+ /** Tenant ID for the policy event record. */
451
+ tenantId?: string;
452
+ /** Principal object ID for the user who initiated the resource component operation that triggered the policy event. */
453
+ principalOid?: string;
454
+ /** Policy definition action, i.e. effect. */
455
+ policyDefinitionAction?: string;
444
456
  }
445
457
 
446
- /**
447
- * Query results.
448
- */
449
- export interface PolicyEventsQueryResults {
458
+ /** Query results. */
459
+ export interface PolicyStatesQueryResults {
460
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
461
+ odataContext?: string;
462
+ /** OData entity count; represents the number of policy state records returned. */
463
+ odataCount?: number;
464
+ /** Odata next link; URL to get the next set of results. */
465
+ odataNextLink?: string;
466
+ /** Query results. */
467
+ value?: PolicyState[];
468
+ }
469
+
470
+ /** Policy state record. */
471
+ export interface PolicyState {
472
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
473
+ [property: string]: any;
474
+ /** OData entity ID; always set to null since policy state records do not have an entity ID. */
475
+ odataId?: string;
476
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
477
+ odataContext?: string;
478
+ /** Timestamp for the policy state record. */
479
+ timestamp?: Date;
480
+ /** Resource ID. */
481
+ resourceId?: string;
482
+ /** Policy assignment ID. */
483
+ policyAssignmentId?: string;
484
+ /** Policy definition ID. */
485
+ policyDefinitionId?: string;
486
+ /** Effective parameters for the policy assignment. */
487
+ effectiveParameters?: string;
488
+ /** Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead. */
489
+ isCompliant?: boolean;
490
+ /** Subscription ID. */
491
+ subscriptionId?: string;
492
+ /** Resource type. */
493
+ resourceType?: string;
494
+ /** Resource location. */
495
+ resourceLocation?: string;
496
+ /** Resource group name. */
497
+ resourceGroup?: string;
498
+ /** List of resource tags. */
499
+ resourceTags?: string;
500
+ /** Policy assignment name. */
501
+ policyAssignmentName?: string;
502
+ /** Policy assignment owner. */
503
+ policyAssignmentOwner?: string;
504
+ /** Policy assignment parameters. */
505
+ policyAssignmentParameters?: string;
506
+ /** Policy assignment scope. */
507
+ policyAssignmentScope?: string;
508
+ /** Policy definition name. */
509
+ policyDefinitionName?: string;
510
+ /** Policy definition action, i.e. effect. */
511
+ policyDefinitionAction?: string;
512
+ /** Policy definition category. */
513
+ policyDefinitionCategory?: string;
514
+ /** Policy set definition ID, if the policy assignment is for a policy set. */
515
+ policySetDefinitionId?: string;
516
+ /** Policy set definition name, if the policy assignment is for a policy set. */
517
+ policySetDefinitionName?: string;
518
+ /** Policy set definition owner, if the policy assignment is for a policy set. */
519
+ policySetDefinitionOwner?: string;
520
+ /** Policy set definition category, if the policy assignment is for a policy set. */
521
+ policySetDefinitionCategory?: string;
522
+ /** Policy set definition parameters, if the policy assignment is for a policy set. */
523
+ policySetDefinitionParameters?: string;
524
+ /** Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under. */
525
+ managementGroupIds?: string;
526
+ /** Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set. */
527
+ policyDefinitionReferenceId?: string;
528
+ /** Compliance state of the resource. */
529
+ complianceState?: string;
530
+ /** Policy evaluation details. */
531
+ policyEvaluationDetails?: PolicyEvaluationDetails;
532
+ /** Policy definition group names. */
533
+ policyDefinitionGroupNames?: string[];
534
+ /** Components state compliance records populated only when URL contains $expand=components clause. */
535
+ components?: ComponentStateDetails[];
450
536
  /**
451
- * OData context string; used by OData clients to resolve type information based on metadata.
537
+ * Evaluated policy definition version.
538
+ * NOTE: This property will not be serialized. It can only be populated by the server.
452
539
  */
453
- odatacontext?: string;
540
+ readonly policyDefinitionVersion?: string;
454
541
  /**
455
- * OData entity count; represents the number of policy event records returned.
542
+ * Evaluated policy set definition version.
543
+ * NOTE: This property will not be serialized. It can only be populated by the server.
456
544
  */
457
- odatacount?: number;
545
+ readonly policySetDefinitionVersion?: string;
458
546
  /**
459
- * Query results.
547
+ * Evaluated policy assignment version.
548
+ * NOTE: This property will not be serialized. It can only be populated by the server.
460
549
  */
461
- value?: PolicyEvent[];
550
+ readonly policyAssignmentVersion?: string;
462
551
  }
463
552
 
464
- /**
465
- * Evaluation details of policy language expressions.
466
- */
553
+ /** Policy evaluation details. */
554
+ export interface PolicyEvaluationDetails {
555
+ /** Details of the evaluated expressions. */
556
+ evaluatedExpressions?: ExpressionEvaluationDetails[];
557
+ /** Evaluation details of IfNotExists effect. */
558
+ ifNotExistsDetails?: IfNotExistsEvaluationDetails;
559
+ }
560
+
561
+ /** Evaluation details of policy language expressions. */
467
562
  export interface ExpressionEvaluationDetails {
468
- /**
469
- * Evaluation result.
470
- */
563
+ /** Evaluation result. */
471
564
  result?: string;
472
- /**
473
- * Expression evaluated.
474
- */
565
+ /** Expression evaluated. */
475
566
  expression?: string;
476
567
  /**
477
- * Property path if the expression is a field or an alias.
568
+ * The kind of expression that was evaluated.
569
+ * NOTE: This property will not be serialized. It can only be populated by the server.
478
570
  */
571
+ readonly expressionKind?: string;
572
+ /** Property path if the expression is a field or an alias. */
479
573
  path?: string;
480
- /**
481
- * Value of the expression.
482
- */
483
- expressionValue?: any;
484
- /**
485
- * Target value to be compared with the expression value.
486
- */
487
- targetValue?: any;
488
- /**
489
- * Operator to compare the expression value and the target value.
490
- */
574
+ /** Value of the expression. */
575
+ expressionValue?: Record<string, unknown>;
576
+ /** Target value to be compared with the expression value. */
577
+ targetValue?: Record<string, unknown>;
578
+ /** Operator to compare the expression value and the target value. */
491
579
  operator?: string;
492
580
  }
493
581
 
494
- /**
495
- * Evaluation details of IfNotExists effect.
496
- */
582
+ /** Evaluation details of IfNotExists effect. */
497
583
  export interface IfNotExistsEvaluationDetails {
498
- /**
499
- * ID of the last evaluated resource for IfNotExists effect.
500
- */
584
+ /** ID of the last evaluated resource for IfNotExists effect. */
501
585
  resourceId?: string;
502
- /**
503
- * Total number of resources to which the existence condition is applicable.
504
- */
586
+ /** Total number of resources to which the existence condition is applicable. */
505
587
  totalResources?: number;
506
588
  }
507
589
 
508
- /**
509
- * Policy evaluation details.
510
- */
511
- export interface PolicyEvaluationDetails {
512
- /**
513
- * Details of the evaluated expressions.
514
- */
515
- evaluatedExpressions?: ExpressionEvaluationDetails[];
516
- /**
517
- * Evaluation details of IfNotExists effect.
518
- */
519
- ifNotExistsDetails?: IfNotExistsEvaluationDetails;
590
+ /** Component state details. */
591
+ export interface ComponentStateDetails {
592
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
593
+ [property: string]: any;
594
+ /** Component Id. */
595
+ id?: string;
596
+ /** Component type. */
597
+ type?: string;
598
+ /** Component name. */
599
+ name?: string;
600
+ /** Component compliance evaluation timestamp. */
601
+ timestamp?: Date;
602
+ /** Component compliance state. */
603
+ complianceState?: string;
520
604
  }
521
605
 
522
- /**
523
- * Policy state record.
524
- */
525
- export interface PolicyState {
606
+ /** Summarize action results. */
607
+ export interface SummarizeResults {
608
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
609
+ odataContext?: string;
610
+ /** OData entity count; represents the number of summaries returned; always set to 1. */
611
+ odataCount?: number;
612
+ /** Summarize action results. */
613
+ value?: Summary[];
614
+ }
615
+
616
+ /** Summary results. */
617
+ export interface Summary {
618
+ /** OData entity ID; always set to null since summaries do not have an entity ID. */
619
+ odataId?: string;
620
+ /** OData context string; used by OData clients to resolve type information based on metadata. */
621
+ odataContext?: string;
622
+ /** Compliance summary for all policy assignments. */
623
+ results?: SummaryResults;
624
+ /** Policy assignments summary. */
625
+ policyAssignments?: PolicyAssignmentSummary[];
626
+ }
627
+
628
+ /** Compliance summary on a particular summary level. */
629
+ export interface SummaryResults {
630
+ /** HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary. This property will not be available by default in future API versions, but could be queried explicitly. */
631
+ queryResultsUri?: string;
632
+ /** Number of non-compliant resources. */
633
+ nonCompliantResources?: number;
634
+ /** Number of non-compliant policies. */
635
+ nonCompliantPolicies?: number;
636
+ /** The resources summary at this level. */
637
+ resourceDetails?: ComplianceDetail[];
638
+ /** The policy artifact summary at this level. For query scope level, it represents policy assignment summary. For policy assignment level, it represents policy definitions summary. */
639
+ policyDetails?: ComplianceDetail[];
640
+ /** The policy definition group summary at this level. */
641
+ policyGroupDetails?: ComplianceDetail[];
642
+ }
643
+
644
+ /** The compliance state rollup. */
645
+ export interface ComplianceDetail {
646
+ /** The compliance state. */
647
+ complianceState?: string;
648
+ /** Summarized count value for this compliance state. */
649
+ count?: number;
650
+ }
651
+
652
+ /** Policy assignment summary. */
653
+ export interface PolicyAssignmentSummary {
654
+ /** Policy assignment ID. */
655
+ policyAssignmentId?: string;
656
+ /** Policy set definition ID, if the policy assignment is for a policy set. */
657
+ policySetDefinitionId?: string;
658
+ /** Compliance summary for the policy assignment. */
659
+ results?: SummaryResults;
660
+ /** Policy definitions summary. */
661
+ policyDefinitions?: PolicyDefinitionSummary[];
662
+ /** Policy definition group summary. */
663
+ policyGroups?: PolicyGroupSummary[];
664
+ }
665
+
666
+ /** Policy definition summary. */
667
+ export interface PolicyDefinitionSummary {
668
+ /** Policy definition ID. */
669
+ policyDefinitionId?: string;
670
+ /** Policy definition reference ID. */
671
+ policyDefinitionReferenceId?: string;
672
+ /** Policy definition group names. */
673
+ policyDefinitionGroupNames?: string[];
674
+ /** Policy effect, i.e. policy definition action. */
675
+ effect?: string;
676
+ /** Compliance summary for the policy definition. */
677
+ results?: SummaryResults;
678
+ }
679
+
680
+ /** Policy definition group summary. */
681
+ export interface PolicyGroupSummary {
682
+ /** Policy group name. */
683
+ policyGroupName?: string;
684
+ /** Compliance summary for the policy definition group. */
685
+ results?: SummaryResults;
686
+ }
687
+
688
+ /** List of available operations. */
689
+ export interface OperationsListResults {
690
+ /** OData entity count; represents the number of operations returned. */
691
+ odataCount?: number;
692
+ /** List of available operations. */
693
+ value?: Operation[];
694
+ }
695
+
696
+ /** Operation definition. */
697
+ export interface Operation {
698
+ /** Operation name. */
699
+ name?: string;
700
+ /** Display metadata associated with the operation. */
701
+ display?: OperationDisplay;
702
+ }
703
+
704
+ /** Display metadata associated with the operation. */
705
+ export interface OperationDisplay {
706
+ /** Resource provider name. */
707
+ provider?: string;
708
+ /** Resource name on which the operation is performed. */
709
+ resource?: string;
710
+ /** Operation name. */
711
+ operation?: string;
712
+ /** Operation description. */
713
+ description?: string;
714
+ }
715
+
716
+ /** Policy metadata resource definition. */
717
+ export interface PolicyMetadata {
526
718
  /**
527
- * OData entity ID; always set to null since policy state records do not have an entity ID.
719
+ * The ID of the policy metadata.
720
+ * NOTE: This property will not be serialized. It can only be populated by the server.
528
721
  */
529
- odataid?: string;
722
+ readonly id?: string;
530
723
  /**
531
- * OData context string; used by OData clients to resolve type information based on metadata.
724
+ * The type of the policy metadata.
725
+ * NOTE: This property will not be serialized. It can only be populated by the server.
532
726
  */
533
- odatacontext?: string;
727
+ readonly type?: string;
534
728
  /**
535
- * Timestamp for the policy state record.
729
+ * The name of the policy metadata.
730
+ * NOTE: This property will not be serialized. It can only be populated by the server.
536
731
  */
537
- timestamp?: Date;
732
+ readonly name?: string;
538
733
  /**
539
- * Resource ID.
734
+ * The policy metadata identifier.
735
+ * NOTE: This property will not be serialized. It can only be populated by the server.
540
736
  */
541
- resourceId?: string;
737
+ readonly metadataId?: string;
542
738
  /**
543
- * Policy assignment ID.
739
+ * The category of the policy metadata.
740
+ * NOTE: This property will not be serialized. It can only be populated by the server.
544
741
  */
545
- policyAssignmentId?: string;
742
+ readonly category?: string;
546
743
  /**
547
- * Policy definition ID.
744
+ * The title of the policy metadata.
745
+ * NOTE: This property will not be serialized. It can only be populated by the server.
548
746
  */
549
- policyDefinitionId?: string;
747
+ readonly title?: string;
550
748
  /**
551
- * Effective parameters for the policy assignment.
749
+ * The owner of the policy metadata.
750
+ * NOTE: This property will not be serialized. It can only be populated by the server.
552
751
  */
553
- effectiveParameters?: string;
752
+ readonly owner?: string;
554
753
  /**
555
- * Flag which states whether the resource is compliant against the policy assignment it was
556
- * evaluated against. This property is deprecated; please use ComplianceState instead.
754
+ * Url for getting additional content about the resource metadata.
755
+ * NOTE: This property will not be serialized. It can only be populated by the server.
557
756
  */
558
- isCompliant?: boolean;
757
+ readonly additionalContentUrl?: string;
559
758
  /**
560
- * Subscription ID.
759
+ * Additional metadata.
760
+ * NOTE: This property will not be serialized. It can only be populated by the server.
561
761
  */
562
- subscriptionId?: string;
762
+ readonly metadata?: Record<string, unknown>;
563
763
  /**
564
- * Resource type.
764
+ * The description of the policy metadata.
765
+ * NOTE: This property will not be serialized. It can only be populated by the server.
565
766
  */
566
- resourceType?: string;
767
+ readonly description?: string;
567
768
  /**
568
- * Resource location.
769
+ * The requirements of the policy metadata.
770
+ * NOTE: This property will not be serialized. It can only be populated by the server.
569
771
  */
570
- resourceLocation?: string;
772
+ readonly requirements?: string;
773
+ }
774
+
775
+ /** The properties of the policy metadata, excluding properties containing large strings */
776
+ export interface PolicyMetadataSlimProperties {
571
777
  /**
572
- * Resource group name.
778
+ * The policy metadata identifier.
779
+ * NOTE: This property will not be serialized. It can only be populated by the server.
573
780
  */
574
- resourceGroup?: string;
781
+ readonly metadataId?: string;
575
782
  /**
576
- * List of resource tags.
783
+ * The category of the policy metadata.
784
+ * NOTE: This property will not be serialized. It can only be populated by the server.
577
785
  */
578
- resourceTags?: string;
786
+ readonly category?: string;
579
787
  /**
580
- * Policy assignment name.
788
+ * The title of the policy metadata.
789
+ * NOTE: This property will not be serialized. It can only be populated by the server.
581
790
  */
582
- policyAssignmentName?: string;
791
+ readonly title?: string;
583
792
  /**
584
- * Policy assignment owner.
793
+ * The owner of the policy metadata.
794
+ * NOTE: This property will not be serialized. It can only be populated by the server.
585
795
  */
586
- policyAssignmentOwner?: string;
796
+ readonly owner?: string;
587
797
  /**
588
- * Policy assignment parameters.
798
+ * Url for getting additional content about the resource metadata.
799
+ * NOTE: This property will not be serialized. It can only be populated by the server.
589
800
  */
590
- policyAssignmentParameters?: string;
801
+ readonly additionalContentUrl?: string;
591
802
  /**
592
- * Policy assignment scope.
803
+ * Additional metadata.
804
+ * NOTE: This property will not be serialized. It can only be populated by the server.
593
805
  */
594
- policyAssignmentScope?: string;
806
+ readonly metadata?: Record<string, unknown>;
807
+ }
808
+
809
+ /** Error response. */
810
+ export interface ErrorResponseAutoGenerated {
811
+ /** The error details. */
812
+ error?: ErrorDefinitionAutoGenerated;
813
+ }
814
+
815
+ /** Error definition. */
816
+ export interface ErrorDefinitionAutoGenerated {
595
817
  /**
596
- * Policy definition name.
818
+ * Service specific error code which serves as the substatus for the HTTP error code.
819
+ * NOTE: This property will not be serialized. It can only be populated by the server.
597
820
  */
598
- policyDefinitionName?: string;
821
+ readonly code?: string;
599
822
  /**
600
- * Policy definition action, i.e. effect.
823
+ * Description of the error.
824
+ * NOTE: This property will not be serialized. It can only be populated by the server.
601
825
  */
602
- policyDefinitionAction?: string;
826
+ readonly message?: string;
603
827
  /**
604
- * Policy definition category.
828
+ * The target of the error.
829
+ * NOTE: This property will not be serialized. It can only be populated by the server.
605
830
  */
606
- policyDefinitionCategory?: string;
831
+ readonly target?: string;
607
832
  /**
608
- * Policy set definition ID, if the policy assignment is for a policy set.
833
+ * Internal error details.
834
+ * NOTE: This property will not be serialized. It can only be populated by the server.
609
835
  */
610
- policySetDefinitionId?: string;
836
+ readonly details?: ErrorDefinitionAutoGenerated[];
611
837
  /**
612
- * Policy set definition name, if the policy assignment is for a policy set.
838
+ * Additional scenario specific error details.
839
+ * NOTE: This property will not be serialized. It can only be populated by the server.
613
840
  */
614
- policySetDefinitionName?: string;
841
+ readonly additionalInfo?: TypedErrorInfo[];
842
+ }
843
+
844
+ /** Collection of policy metadata resources. */
845
+ export interface PolicyMetadataCollection {
615
846
  /**
616
- * Policy set definition owner, if the policy assignment is for a policy set.
847
+ * Array of policy metadata definitions.
848
+ * NOTE: This property will not be serialized. It can only be populated by the server.
617
849
  */
618
- policySetDefinitionOwner?: string;
850
+ readonly value?: SlimPolicyMetadata[];
619
851
  /**
620
- * Policy set definition category, if the policy assignment is for a policy set.
852
+ * The URL to get the next set of results.
853
+ * NOTE: This property will not be serialized. It can only be populated by the server.
621
854
  */
622
- policySetDefinitionCategory?: string;
855
+ readonly nextLink?: string;
856
+ }
857
+
858
+ /** Slim version of policy metadata resource definition, excluding properties with large strings */
859
+ export interface SlimPolicyMetadata {
623
860
  /**
624
- * Policy set definition parameters, if the policy assignment is for a policy set.
861
+ * The ID of the policy metadata.
862
+ * NOTE: This property will not be serialized. It can only be populated by the server.
625
863
  */
626
- policySetDefinitionParameters?: string;
864
+ readonly id?: string;
627
865
  /**
628
- * Comma separated list of management group IDs, which represent the hierarchy of the management
629
- * groups the resource is under.
866
+ * The type of the policy metadata.
867
+ * NOTE: This property will not be serialized. It can only be populated by the server.
630
868
  */
631
- managementGroupIds?: string;
632
- /**
633
- * Reference ID for the policy definition inside the policy set, if the policy assignment is for
634
- * a policy set.
635
- */
636
- policyDefinitionReferenceId?: string;
869
+ readonly type?: string;
637
870
  /**
638
- * Compliance state of the resource.
871
+ * The name of the policy metadata.
872
+ * NOTE: This property will not be serialized. It can only be populated by the server.
639
873
  */
640
- complianceState?: string;
874
+ readonly name?: string;
641
875
  /**
642
- * Policy evaluation details.
876
+ * The policy metadata identifier.
877
+ * NOTE: This property will not be serialized. It can only be populated by the server.
643
878
  */
644
- policyEvaluationDetails?: PolicyEvaluationDetails;
879
+ readonly metadataId?: string;
645
880
  /**
646
- * Policy definition group names.
881
+ * The category of the policy metadata.
882
+ * NOTE: This property will not be serialized. It can only be populated by the server.
647
883
  */
648
- policyDefinitionGroupNames?: string[];
884
+ readonly category?: string;
649
885
  /**
650
- * Evaluated policy definition version.
651
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
886
+ * The title of the policy metadata.
887
+ * NOTE: This property will not be serialized. It can only be populated by the server.
652
888
  */
653
- readonly policyDefinitionVersion?: string;
889
+ readonly title?: string;
654
890
  /**
655
- * Evaluated policy set definition version.
656
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
891
+ * The owner of the policy metadata.
892
+ * NOTE: This property will not be serialized. It can only be populated by the server.
657
893
  */
658
- readonly policySetDefinitionVersion?: string;
894
+ readonly owner?: string;
659
895
  /**
660
- * Evaluated policy assignment version.
661
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
896
+ * Url for getting additional content about the resource metadata.
897
+ * NOTE: This property will not be serialized. It can only be populated by the server.
662
898
  */
663
- readonly policyAssignmentVersion?: string;
899
+ readonly additionalContentUrl?: string;
664
900
  /**
665
- * Describes unknown properties. The value of an unknown property can be of "any" type.
901
+ * Additional metadata.
902
+ * NOTE: This property will not be serialized. It can only be populated by the server.
666
903
  */
667
- [property: string]: any;
904
+ readonly metadata?: Record<string, unknown>;
668
905
  }
669
906
 
670
- /**
671
- * Query results.
672
- */
673
- export interface PolicyStatesQueryResults {
674
- /**
675
- * OData context string; used by OData clients to resolve type information based on metadata.
676
- */
677
- odatacontext?: string;
678
- /**
679
- * OData entity count; represents the number of policy state records returned.
680
- */
681
- odatacount?: number;
682
- /**
683
- * Query results.
684
- */
685
- value?: PolicyState[];
907
+ /** The check policy restrictions parameters describing the resource that is being evaluated. */
908
+ export interface CheckRestrictionsRequest {
909
+ /** The information about the resource that will be evaluated. */
910
+ resourceDetails: CheckRestrictionsResourceDetails;
911
+ /** The list of fields and values that should be evaluated for potential restrictions. */
912
+ pendingFields?: PendingField[];
686
913
  }
687
914
 
688
- /**
689
- * The compliance state rollup.
690
- */
691
- export interface ComplianceDetail {
692
- /**
693
- * The compliance state.
694
- */
695
- complianceState?: string;
696
- /**
697
- * Summarized count value for this compliance state.
698
- */
699
- count?: number;
915
+ /** The information about the resource that will be evaluated. */
916
+ export interface CheckRestrictionsResourceDetails {
917
+ /** The resource content. This should include whatever properties are already known and can be a partial set of all resource properties. */
918
+ resourceContent: Record<string, unknown>;
919
+ /** The api-version of the resource content. */
920
+ apiVersion?: string;
921
+ /** The scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID. */
922
+ scope?: string;
700
923
  }
701
924
 
702
- /**
703
- * Compliance summary on a particular summary level.
704
- */
705
- export interface SummaryResults {
706
- /**
707
- * HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for
708
- * the compliance summary. This property will not be available by default in future API versions,
709
- * but could be queried explicitly.
710
- */
711
- queryResultsUri?: string;
712
- /**
713
- * Number of non-compliant resources.
714
- */
715
- nonCompliantResources?: number;
716
- /**
717
- * Number of non-compliant policies.
718
- */
719
- nonCompliantPolicies?: number;
720
- /**
721
- * The resources summary at this level.
722
- */
723
- resourceDetails?: ComplianceDetail[];
724
- /**
725
- * The policy artifact summary at this level. For query scope level, it represents policy
726
- * assignment summary. For policy assignment level, it represents policy definitions summary.
727
- */
728
- policyDetails?: ComplianceDetail[];
729
- /**
730
- * The policy definition group summary at this level.
731
- */
732
- policyGroupDetails?: ComplianceDetail[];
925
+ /** A field that should be evaluated against Azure Policy to determine restrictions. */
926
+ export interface PendingField {
927
+ /** The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias. */
928
+ field: string;
929
+ /** The list of potential values for the field that should be evaluated against Azure Policy. */
930
+ values?: string[];
733
931
  }
734
932
 
735
- /**
736
- * Policy definition summary.
737
- */
738
- export interface PolicyDefinitionSummary {
739
- /**
740
- * Policy definition ID.
741
- */
742
- policyDefinitionId?: string;
743
- /**
744
- * Policy definition reference ID.
745
- */
746
- policyDefinitionReferenceId?: string;
747
- /**
748
- * Policy definition group names.
749
- */
750
- policyDefinitionGroupNames?: string[];
933
+ /** The result of a check policy restrictions evaluation on a resource. */
934
+ export interface CheckRestrictionsResult {
751
935
  /**
752
- * Policy effect, i.e. policy definition action.
936
+ * The restrictions that will be placed on various fields in the resource by policy.
937
+ * NOTE: This property will not be serialized. It can only be populated by the server.
753
938
  */
754
- effect?: string;
939
+ readonly fieldRestrictions?: FieldRestrictions[];
755
940
  /**
756
- * Compliance summary for the policy definition.
941
+ * Evaluation results for the provided partial resource content.
942
+ * NOTE: This property will not be serialized. It can only be populated by the server.
757
943
  */
758
- results?: SummaryResults;
944
+ readonly contentEvaluationResult?: CheckRestrictionsResultContentEvaluationResult;
759
945
  }
760
946
 
761
- /**
762
- * Policy definition group summary.
763
- */
764
- export interface PolicyGroupSummary {
765
- /**
766
- * Policy group name.
767
- */
768
- policyGroupName?: string;
947
+ /** The restrictions that will be placed on a field in the resource by policy. */
948
+ export interface FieldRestrictions {
769
949
  /**
770
- * Compliance summary for the policy definition group.
950
+ * The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias.
951
+ * NOTE: This property will not be serialized. It can only be populated by the server.
771
952
  */
772
- results?: SummaryResults;
953
+ readonly field?: string;
954
+ /** The restrictions placed on that field by policy. */
955
+ restrictions?: FieldRestriction[];
773
956
  }
774
957
 
775
- /**
776
- * Policy assignment summary.
777
- */
778
- export interface PolicyAssignmentSummary {
779
- /**
780
- * Policy assignment ID.
781
- */
782
- policyAssignmentId?: string;
958
+ /** The restrictions on a field imposed by a specific policy. */
959
+ export interface FieldRestriction {
783
960
  /**
784
- * Policy set definition ID, if the policy assignment is for a policy set.
961
+ * The type of restriction that is imposed on the field.
962
+ * NOTE: This property will not be serialized. It can only be populated by the server.
785
963
  */
786
- policySetDefinitionId?: string;
964
+ readonly result?: FieldRestrictionResult;
787
965
  /**
788
- * Compliance summary for the policy assignment.
966
+ * The value that policy will set for the field if the user does not provide a value.
967
+ * NOTE: This property will not be serialized. It can only be populated by the server.
789
968
  */
790
- results?: SummaryResults;
969
+ readonly defaultValue?: string;
791
970
  /**
792
- * Policy definitions summary.
971
+ * The values that policy either requires or denies for the field.
972
+ * NOTE: This property will not be serialized. It can only be populated by the server.
793
973
  */
794
- policyDefinitions?: PolicyDefinitionSummary[];
974
+ readonly values?: string[];
795
975
  /**
796
- * Policy definition group summary.
976
+ * The details of the policy that is causing the field restriction.
977
+ * NOTE: This property will not be serialized. It can only be populated by the server.
797
978
  */
798
- policyGroups?: PolicyGroupSummary[];
979
+ readonly policy?: PolicyReference;
799
980
  }
800
981
 
801
- /**
802
- * Summary results.
803
- */
804
- export interface Summary {
982
+ /** Resource identifiers for a policy. */
983
+ export interface PolicyReference {
805
984
  /**
806
- * OData entity ID; always set to null since summaries do not have an entity ID.
985
+ * The resource identifier of the policy definition.
986
+ * NOTE: This property will not be serialized. It can only be populated by the server.
807
987
  */
808
- odataid?: string;
988
+ readonly policyDefinitionId?: string;
809
989
  /**
810
- * OData context string; used by OData clients to resolve type information based on metadata.
990
+ * The resource identifier of the policy set definition.
991
+ * NOTE: This property will not be serialized. It can only be populated by the server.
811
992
  */
812
- odatacontext?: string;
993
+ readonly policySetDefinitionId?: string;
813
994
  /**
814
- * Compliance summary for all policy assignments.
995
+ * The reference identifier of a specific policy definition within a policy set definition.
996
+ * NOTE: This property will not be serialized. It can only be populated by the server.
815
997
  */
816
- results?: SummaryResults;
998
+ readonly policyDefinitionReferenceId?: string;
817
999
  /**
818
- * Policy assignments summary.
1000
+ * The resource identifier of the policy assignment.
1001
+ * NOTE: This property will not be serialized. It can only be populated by the server.
819
1002
  */
820
- policyAssignments?: PolicyAssignmentSummary[];
1003
+ readonly policyAssignmentId?: string;
821
1004
  }
822
1005
 
823
- /**
824
- * Summarize action results.
825
- */
826
- export interface SummarizeResults {
1006
+ /** Evaluation results for the provided partial resource content. */
1007
+ export interface CheckRestrictionsResultContentEvaluationResult {
1008
+ /** Policy evaluation results against the given resource content. This will indicate if the partial content that was provided will be denied as-is. */
1009
+ policyEvaluations?: PolicyEvaluationResult[];
1010
+ }
1011
+
1012
+ /** The result of a non-compliant policy evaluation against the given resource content. */
1013
+ export interface PolicyEvaluationResult {
827
1014
  /**
828
- * OData context string; used by OData clients to resolve type information based on metadata.
1015
+ * The details of the policy that was evaluated.
1016
+ * NOTE: This property will not be serialized. It can only be populated by the server.
829
1017
  */
830
- odatacontext?: string;
1018
+ readonly policyInfo?: PolicyReference;
831
1019
  /**
832
- * OData entity count; represents the number of summaries returned; always set to 1.
1020
+ * The result of the policy evaluation against the resource. This will typically be 'NonCompliant' but may contain other values if errors were encountered.
1021
+ * NOTE: This property will not be serialized. It can only be populated by the server.
833
1022
  */
834
- odatacount?: number;
1023
+ readonly evaluationResult?: string;
835
1024
  /**
836
- * Summarize action results.
1025
+ * The detailed results of the policy expressions and values that were evaluated.
1026
+ * NOTE: This property will not be serialized. It can only be populated by the server.
837
1027
  */
838
- value?: Summary[];
1028
+ readonly evaluationDetails?: PolicyEvaluationDetails;
839
1029
  }
840
1030
 
841
- /**
842
- * Display metadata associated with the operation.
843
- */
844
- export interface OperationDisplay {
845
- /**
846
- * Resource provider name.
847
- */
848
- provider?: string;
849
- /**
850
- * Resource name on which the operation is performed.
851
- */
852
- resource?: string;
1031
+ /** List of attestations. */
1032
+ export interface AttestationListResult {
853
1033
  /**
854
- * Operation name.
1034
+ * Array of attestation definitions.
1035
+ * NOTE: This property will not be serialized. It can only be populated by the server.
855
1036
  */
856
- operation?: string;
1037
+ readonly value?: Attestation[];
857
1038
  /**
858
- * Operation description.
1039
+ * The URL to get the next set of results.
1040
+ * NOTE: This property will not be serialized. It can only be populated by the server.
859
1041
  */
1042
+ readonly nextLink?: string;
1043
+ }
1044
+
1045
+ /** A piece of evidence supporting the compliance state set in the attestation. */
1046
+ export interface AttestationEvidence {
1047
+ /** The description for this piece of evidence. */
860
1048
  description?: string;
1049
+ /** The URI location of the evidence. */
1050
+ sourceUri?: string;
861
1051
  }
862
1052
 
863
- /**
864
- * Operation definition.
865
- */
866
- export interface Operation {
1053
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
1054
+ export interface Resource {
867
1055
  /**
868
- * Operation name.
1056
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
1057
+ * NOTE: This property will not be serialized. It can only be populated by the server.
869
1058
  */
870
- name?: string;
871
- /**
872
- * Display metadata associated with the operation.
873
- */
874
- display?: OperationDisplay;
875
- }
876
-
877
- /**
878
- * List of available operations.
879
- */
880
- export interface OperationsListResults {
1059
+ readonly id?: string;
881
1060
  /**
882
- * OData entity count; represents the number of operations returned.
1061
+ * The name of the resource
1062
+ * NOTE: This property will not be serialized. It can only be populated by the server.
883
1063
  */
884
- odatacount?: number;
1064
+ readonly name?: string;
885
1065
  /**
886
- * List of available operations.
1066
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
1067
+ * NOTE: This property will not be serialized. It can only be populated by the server.
887
1068
  */
888
- value?: Operation[];
1069
+ readonly type?: string;
889
1070
  }
890
1071
 
891
- /**
892
- * Policy metadata resource definition.
893
- */
894
- export interface PolicyMetadata {
895
- /**
896
- * The policy metadata identifier.
897
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
898
- */
899
- readonly metadataId?: string;
1072
+ /** Error response. */
1073
+ export interface ErrorResponseAutoGenerated2 {
1074
+ /** The error details. */
1075
+ error?: ErrorDefinitionAutoGenerated2;
1076
+ }
1077
+
1078
+ /** Error definition. */
1079
+ export interface ErrorDefinitionAutoGenerated2 {
900
1080
  /**
901
- * The category of the policy metadata.
902
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1081
+ * Service specific error code which serves as the substatus for the HTTP error code.
1082
+ * NOTE: This property will not be serialized. It can only be populated by the server.
903
1083
  */
904
- readonly category?: string;
1084
+ readonly code?: string;
905
1085
  /**
906
- * The title of the policy metadata.
907
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1086
+ * Description of the error.
1087
+ * NOTE: This property will not be serialized. It can only be populated by the server.
908
1088
  */
909
- readonly title?: string;
1089
+ readonly message?: string;
910
1090
  /**
911
- * The owner of the policy metadata.
912
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1091
+ * The target of the error.
1092
+ * NOTE: This property will not be serialized. It can only be populated by the server.
913
1093
  */
914
- readonly owner?: string;
1094
+ readonly target?: string;
915
1095
  /**
916
- * Url for getting additional content about the resource metadata.
917
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1096
+ * Internal error details.
1097
+ * NOTE: This property will not be serialized. It can only be populated by the server.
918
1098
  */
919
- readonly additionalContentUrl?: string;
1099
+ readonly details?: ErrorDefinitionAutoGenerated2[];
920
1100
  /**
921
- * Additional metadata.
922
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1101
+ * Additional scenario specific error details.
1102
+ * NOTE: This property will not be serialized. It can only be populated by the server.
923
1103
  */
924
- readonly metadata?: any;
1104
+ readonly additionalInfo?: TypedErrorInfo[];
1105
+ }
1106
+
1107
+ /** The properties of the policy metadata. */
1108
+ export type PolicyMetadataProperties = PolicyMetadataSlimProperties & {
925
1109
  /**
926
1110
  * The description of the policy metadata.
927
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1111
+ * NOTE: This property will not be serialized. It can only be populated by the server.
928
1112
  */
929
1113
  readonly description?: string;
930
1114
  /**
931
1115
  * The requirements of the policy metadata.
932
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1116
+ * NOTE: This property will not be serialized. It can only be populated by the server.
933
1117
  */
934
1118
  readonly requirements?: string;
935
- /**
936
- * The ID of the policy metadata.
937
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
938
- */
939
- readonly id?: string;
940
- /**
941
- * The type of the policy metadata.
942
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
943
- */
944
- readonly type?: string;
945
- /**
946
- * The name of the policy metadata.
947
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
948
- */
949
- readonly name?: string;
950
- }
1119
+ };
951
1120
 
952
- /**
953
- * Slim version of policy metadata resource definition, excluding properties with large strings
954
- */
955
- export interface SlimPolicyMetadata {
956
- /**
957
- * The policy metadata identifier.
958
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
959
- */
960
- readonly metadataId?: string;
961
- /**
962
- * The category of the policy metadata.
963
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
964
- */
965
- readonly category?: string;
966
- /**
967
- * The title of the policy metadata.
968
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
969
- */
970
- readonly title?: string;
971
- /**
972
- * The owner of the policy metadata.
973
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
974
- */
975
- readonly owner?: string;
976
- /**
977
- * Url for getting additional content about the resource metadata.
978
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
979
- */
980
- readonly additionalContentUrl?: string;
981
- /**
982
- * Additional metadata.
983
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
984
- */
985
- readonly metadata?: any;
1121
+ /** An attestation resource. */
1122
+ export type Attestation = Resource & {
986
1123
  /**
987
- * The ID of the policy metadata.
988
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1124
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
1125
+ * NOTE: This property will not be serialized. It can only be populated by the server.
989
1126
  */
990
- readonly id?: string;
991
- /**
992
- * The type of the policy metadata.
993
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1127
+ readonly systemData?: SystemData;
1128
+ /** The resource ID of the policy assignment that the attestation is setting the state for. */
1129
+ policyAssignmentId: string;
1130
+ /** The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition. */
1131
+ policyDefinitionReferenceId?: string;
1132
+ /** The compliance state that should be set on the resource. */
1133
+ complianceState?: ComplianceState;
1134
+ /** The time the compliance state should expire. */
1135
+ expiresOn?: Date;
1136
+ /** The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID. */
1137
+ owner?: string;
1138
+ /** Comments describing why this attestation was created. */
1139
+ comments?: string;
1140
+ /** The evidence supporting the compliance state set in this attestation. */
1141
+ evidence?: AttestationEvidence[];
1142
+ /**
1143
+ * The status of the attestation.
1144
+ * NOTE: This property will not be serialized. It can only be populated by the server.
994
1145
  */
995
- readonly type?: string;
1146
+ readonly provisioningState?: string;
996
1147
  /**
997
- * The name of the policy metadata.
998
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1148
+ * The time the compliance state was last changed in this attestation.
1149
+ * NOTE: This property will not be serialized. It can only be populated by the server.
999
1150
  */
1000
- readonly name?: string;
1001
- }
1151
+ readonly lastComplianceStateChangeAt?: Date;
1152
+ };
1002
1153
 
1003
- /**
1004
- * Additional parameters for a set of operations.
1005
- */
1154
+ /** Parameter group */
1006
1155
  export interface QueryOptions {
1007
- /**
1008
- * Maximum number of records to return.
1009
- */
1156
+ /** Maximum number of records to return. */
1010
1157
  top?: number;
1011
- /**
1012
- * OData filter expression.
1013
- */
1158
+ /** OData filter expression. */
1014
1159
  filter?: string;
1015
- /**
1016
- * Ordering expression using OData notation. One or more comma-separated column names with an
1017
- * optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
1018
- */
1160
+ /** Ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc". */
1019
1161
  orderBy?: string;
1020
- /**
1021
- * Select expression using OData notation. Limits the columns on each record to just those
1022
- * requested, e.g. "$select=PolicyAssignmentId, ResourceId".
1023
- */
1162
+ /** Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". */
1024
1163
  select?: string;
1025
- /**
1026
- * ISO 8601 formatted timestamp specifying the start time of the interval to query. When not
1027
- * specified, the service uses ($to - 1-day).
1028
- */
1164
+ /** ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). */
1029
1165
  from?: Date;
1030
- /**
1031
- * ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
1032
- * specified, the service uses request time.
1033
- */
1166
+ /** ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. */
1034
1167
  to?: Date;
1035
- /**
1036
- * OData apply expression for aggregations.
1037
- */
1168
+ /** OData apply expression for aggregations. */
1038
1169
  apply?: string;
1039
- /**
1040
- * The $expand query parameter. For example, to expand policyEvaluationDetails, use
1041
- * $expand=policyEvaluationDetails
1042
- */
1170
+ /** Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element. */
1171
+ skipToken?: string;
1172
+ /** The $expand query parameter. For example, to expand components use $expand=components */
1043
1173
  expand?: string;
1044
1174
  }
1045
1175
 
1046
- /**
1047
- * Optional Parameters.
1048
- */
1049
- export interface PolicyTrackedResourcesListQueryResultsForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
1050
- /**
1051
- * Additional parameters for the operation
1052
- */
1053
- queryOptions?: QueryOptions;
1176
+ /** Known values of {@link ResourceDiscoveryMode} that the service accepts. */
1177
+ export enum KnownResourceDiscoveryMode {
1178
+ /** Remediate resources that are already known to be non-compliant. */
1179
+ ExistingNonCompliant = "ExistingNonCompliant",
1180
+ /** Re-evaluate the compliance state of resources and then remediate the resources found to be non-compliant. */
1181
+ ReEvaluateCompliance = "ReEvaluateCompliance"
1054
1182
  }
1055
1183
 
1056
1184
  /**
1057
- * Optional Parameters.
1185
+ * Defines values for ResourceDiscoveryMode. \
1186
+ * {@link KnownResourceDiscoveryMode} can be used interchangeably with ResourceDiscoveryMode,
1187
+ * this enum contains the known values that the service supports.
1188
+ * ### Known values supported by the service
1189
+ * **ExistingNonCompliant**: Remediate resources that are already known to be non-compliant. \
1190
+ * **ReEvaluateCompliance**: Re-evaluate the compliance state of resources and then remediate the resources found to be non-compliant.
1058
1191
  */
1059
- export interface PolicyTrackedResourcesListQueryResultsForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
1060
- /**
1061
- * Additional parameters for the operation
1062
- */
1063
- queryOptions?: QueryOptions;
1192
+ export type ResourceDiscoveryMode = string;
1193
+
1194
+ /** Known values of {@link CreatedByType} that the service accepts. */
1195
+ export enum KnownCreatedByType {
1196
+ User = "User",
1197
+ Application = "Application",
1198
+ ManagedIdentity = "ManagedIdentity",
1199
+ Key = "Key"
1064
1200
  }
1065
1201
 
1066
1202
  /**
1067
- * Optional Parameters.
1203
+ * Defines values for CreatedByType. \
1204
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
1205
+ * this enum contains the known values that the service supports.
1206
+ * ### Known values supported by the service
1207
+ * **User** \
1208
+ * **Application** \
1209
+ * **ManagedIdentity** \
1210
+ * **Key**
1068
1211
  */
1069
- export interface PolicyTrackedResourcesListQueryResultsForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
1070
- /**
1071
- * Additional parameters for the operation
1072
- */
1073
- queryOptions?: QueryOptions;
1212
+ export type CreatedByType = string;
1213
+
1214
+ /** Known values of {@link PolicyStatesResource} that the service accepts. */
1215
+ export enum KnownPolicyStatesResource {
1216
+ Default = "default",
1217
+ Latest = "latest"
1074
1218
  }
1075
1219
 
1076
1220
  /**
1077
- * Optional Parameters.
1221
+ * Defines values for PolicyStatesResource. \
1222
+ * {@link KnownPolicyStatesResource} can be used interchangeably with PolicyStatesResource,
1223
+ * this enum contains the known values that the service supports.
1224
+ * ### Known values supported by the service
1225
+ * **default** \
1226
+ * **latest**
1078
1227
  */
1079
- export interface PolicyTrackedResourcesListQueryResultsForResourceOptionalParams extends msRest.RequestOptionsBase {
1080
- /**
1081
- * Additional parameters for the operation
1082
- */
1083
- queryOptions?: QueryOptions;
1228
+ export type PolicyStatesResource = string;
1229
+
1230
+ /** Known values of {@link FieldRestrictionResult} that the service accepts. */
1231
+ export enum KnownFieldRestrictionResult {
1232
+ /** The field and/or values are required by policy. */
1233
+ Required = "Required",
1234
+ /** The field will be removed by policy. */
1235
+ Removed = "Removed",
1236
+ /** The field and/or values will be denied by policy. */
1237
+ Deny = "Deny"
1084
1238
  }
1085
1239
 
1086
1240
  /**
1087
- * Optional Parameters.
1241
+ * Defines values for FieldRestrictionResult. \
1242
+ * {@link KnownFieldRestrictionResult} can be used interchangeably with FieldRestrictionResult,
1243
+ * this enum contains the known values that the service supports.
1244
+ * ### Known values supported by the service
1245
+ * **Required**: The field and\/or values are required by policy. \
1246
+ * **Removed**: The field will be removed by policy. \
1247
+ * **Deny**: The field and\/or values will be denied by policy.
1088
1248
  */
1089
- export interface RemediationsListDeploymentsAtManagementGroupOptionalParams extends msRest.RequestOptionsBase {
1090
- /**
1091
- * Additional parameters for the operation
1092
- */
1093
- queryOptions?: QueryOptions;
1249
+ export type FieldRestrictionResult = string;
1250
+
1251
+ /** Known values of {@link ComplianceState} that the service accepts. */
1252
+ export enum KnownComplianceState {
1253
+ /** The resource is in compliance with the policy. */
1254
+ Compliant = "Compliant",
1255
+ /** The resource is not in compliance with the policy. */
1256
+ NonCompliant = "NonCompliant",
1257
+ /** The compliance state of the resource is not known. */
1258
+ Unknown = "Unknown"
1094
1259
  }
1095
1260
 
1096
1261
  /**
1097
- * Optional Parameters.
1262
+ * Defines values for ComplianceState. \
1263
+ * {@link KnownComplianceState} can be used interchangeably with ComplianceState,
1264
+ * this enum contains the known values that the service supports.
1265
+ * ### Known values supported by the service
1266
+ * **Compliant**: The resource is in compliance with the policy. \
1267
+ * **NonCompliant**: The resource is not in compliance with the policy. \
1268
+ * **Unknown**: The compliance state of the resource is not known.
1098
1269
  */
1099
- export interface RemediationsListForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
1100
- /**
1101
- * Additional parameters for the operation
1102
- */
1270
+ export type ComplianceState = string;
1271
+
1272
+ /** Optional parameters. */
1273
+ export interface PolicyTrackedResourcesListQueryResultsForManagementGroupOptionalParams
1274
+ extends coreClient.OperationOptions {
1275
+ /** Parameter group */
1103
1276
  queryOptions?: QueryOptions;
1104
1277
  }
1105
1278
 
1106
- /**
1107
- * Optional Parameters.
1108
- */
1109
- export interface RemediationsListDeploymentsAtSubscriptionOptionalParams extends msRest.RequestOptionsBase {
1110
- /**
1111
- * Additional parameters for the operation
1112
- */
1279
+ /** Contains response data for the listQueryResultsForManagementGroup operation. */
1280
+ export type PolicyTrackedResourcesListQueryResultsForManagementGroupResponse = PolicyTrackedResourcesQueryResults;
1281
+
1282
+ /** Optional parameters. */
1283
+ export interface PolicyTrackedResourcesListQueryResultsForSubscriptionOptionalParams
1284
+ extends coreClient.OperationOptions {
1285
+ /** Parameter group */
1113
1286
  queryOptions?: QueryOptions;
1114
1287
  }
1115
1288
 
1116
- /**
1117
- * Optional Parameters.
1118
- */
1119
- export interface RemediationsListForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
1120
- /**
1121
- * Additional parameters for the operation
1122
- */
1289
+ /** Contains response data for the listQueryResultsForSubscription operation. */
1290
+ export type PolicyTrackedResourcesListQueryResultsForSubscriptionResponse = PolicyTrackedResourcesQueryResults;
1291
+
1292
+ /** Optional parameters. */
1293
+ export interface PolicyTrackedResourcesListQueryResultsForResourceGroupOptionalParams
1294
+ extends coreClient.OperationOptions {
1295
+ /** Parameter group */
1123
1296
  queryOptions?: QueryOptions;
1124
1297
  }
1125
1298
 
1126
- /**
1127
- * Optional Parameters.
1128
- */
1129
- export interface RemediationsListDeploymentsAtResourceGroupOptionalParams extends msRest.RequestOptionsBase {
1130
- /**
1131
- * Additional parameters for the operation
1132
- */
1299
+ /** Contains response data for the listQueryResultsForResourceGroup operation. */
1300
+ export type PolicyTrackedResourcesListQueryResultsForResourceGroupResponse = PolicyTrackedResourcesQueryResults;
1301
+
1302
+ /** Optional parameters. */
1303
+ export interface PolicyTrackedResourcesListQueryResultsForResourceOptionalParams
1304
+ extends coreClient.OperationOptions {
1305
+ /** Parameter group */
1133
1306
  queryOptions?: QueryOptions;
1134
1307
  }
1135
1308
 
1136
- /**
1137
- * Optional Parameters.
1138
- */
1139
- export interface RemediationsListForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
1140
- /**
1141
- * Additional parameters for the operation
1142
- */
1309
+ /** Contains response data for the listQueryResultsForResource operation. */
1310
+ export type PolicyTrackedResourcesListQueryResultsForResourceResponse = PolicyTrackedResourcesQueryResults;
1311
+
1312
+ /** Optional parameters. */
1313
+ export interface PolicyTrackedResourcesListQueryResultsForManagementGroupNextOptionalParams
1314
+ extends coreClient.OperationOptions {
1315
+ /** Parameter group */
1143
1316
  queryOptions?: QueryOptions;
1144
1317
  }
1145
1318
 
1146
- /**
1147
- * Optional Parameters.
1148
- */
1149
- export interface RemediationsListDeploymentsAtResourceOptionalParams extends msRest.RequestOptionsBase {
1150
- /**
1151
- * Additional parameters for the operation
1152
- */
1319
+ /** Contains response data for the listQueryResultsForManagementGroupNext operation. */
1320
+ export type PolicyTrackedResourcesListQueryResultsForManagementGroupNextResponse = PolicyTrackedResourcesQueryResults;
1321
+
1322
+ /** Optional parameters. */
1323
+ export interface PolicyTrackedResourcesListQueryResultsForSubscriptionNextOptionalParams
1324
+ extends coreClient.OperationOptions {
1325
+ /** Parameter group */
1153
1326
  queryOptions?: QueryOptions;
1154
1327
  }
1155
1328
 
1156
- /**
1157
- * Optional Parameters.
1158
- */
1159
- export interface RemediationsListForResourceOptionalParams extends msRest.RequestOptionsBase {
1160
- /**
1161
- * Additional parameters for the operation
1162
- */
1329
+ /** Contains response data for the listQueryResultsForSubscriptionNext operation. */
1330
+ export type PolicyTrackedResourcesListQueryResultsForSubscriptionNextResponse = PolicyTrackedResourcesQueryResults;
1331
+
1332
+ /** Optional parameters. */
1333
+ export interface PolicyTrackedResourcesListQueryResultsForResourceGroupNextOptionalParams
1334
+ extends coreClient.OperationOptions {
1335
+ /** Parameter group */
1163
1336
  queryOptions?: QueryOptions;
1164
1337
  }
1165
1338
 
1166
- /**
1167
- * Optional Parameters.
1168
- */
1169
- export interface PolicyEventsListQueryResultsForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
1170
- /**
1171
- * Additional parameters for the operation
1172
- */
1339
+ /** Contains response data for the listQueryResultsForResourceGroupNext operation. */
1340
+ export type PolicyTrackedResourcesListQueryResultsForResourceGroupNextResponse = PolicyTrackedResourcesQueryResults;
1341
+
1342
+ /** Optional parameters. */
1343
+ export interface PolicyTrackedResourcesListQueryResultsForResourceNextOptionalParams
1344
+ extends coreClient.OperationOptions {
1345
+ /** Parameter group */
1173
1346
  queryOptions?: QueryOptions;
1174
1347
  }
1175
1348
 
1176
- /**
1177
- * Optional Parameters.
1178
- */
1179
- export interface PolicyEventsListQueryResultsForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
1180
- /**
1181
- * Additional parameters for the operation
1182
- */
1349
+ /** Contains response data for the listQueryResultsForResourceNext operation. */
1350
+ export type PolicyTrackedResourcesListQueryResultsForResourceNextResponse = PolicyTrackedResourcesQueryResults;
1351
+
1352
+ /** Optional parameters. */
1353
+ export interface RemediationsListDeploymentsAtManagementGroupOptionalParams
1354
+ extends coreClient.OperationOptions {
1355
+ /** Parameter group */
1183
1356
  queryOptions?: QueryOptions;
1184
1357
  }
1185
1358
 
1186
- /**
1187
- * Optional Parameters.
1188
- */
1189
- export interface PolicyEventsListQueryResultsForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
1190
- /**
1191
- * Additional parameters for the operation
1192
- */
1359
+ /** Contains response data for the listDeploymentsAtManagementGroup operation. */
1360
+ export type RemediationsListDeploymentsAtManagementGroupResponse = RemediationDeploymentsListResult;
1361
+
1362
+ /** Optional parameters. */
1363
+ export interface RemediationsCancelAtManagementGroupOptionalParams
1364
+ extends coreClient.OperationOptions {}
1365
+
1366
+ /** Contains response data for the cancelAtManagementGroup operation. */
1367
+ export type RemediationsCancelAtManagementGroupResponse = Remediation;
1368
+
1369
+ /** Optional parameters. */
1370
+ export interface RemediationsListForManagementGroupOptionalParams
1371
+ extends coreClient.OperationOptions {
1372
+ /** Parameter group */
1193
1373
  queryOptions?: QueryOptions;
1194
1374
  }
1195
1375
 
1196
- /**
1197
- * Optional Parameters.
1198
- */
1199
- export interface PolicyEventsListQueryResultsForResourceOptionalParams extends msRest.RequestOptionsBase {
1200
- /**
1201
- * Additional parameters for the operation
1202
- */
1376
+ /** Contains response data for the listForManagementGroup operation. */
1377
+ export type RemediationsListForManagementGroupResponse = RemediationListResult;
1378
+
1379
+ /** Optional parameters. */
1380
+ export interface RemediationsCreateOrUpdateAtManagementGroupOptionalParams
1381
+ extends coreClient.OperationOptions {}
1382
+
1383
+ /** Contains response data for the createOrUpdateAtManagementGroup operation. */
1384
+ export type RemediationsCreateOrUpdateAtManagementGroupResponse = Remediation;
1385
+
1386
+ /** Optional parameters. */
1387
+ export interface RemediationsGetAtManagementGroupOptionalParams
1388
+ extends coreClient.OperationOptions {}
1389
+
1390
+ /** Contains response data for the getAtManagementGroup operation. */
1391
+ export type RemediationsGetAtManagementGroupResponse = Remediation;
1392
+
1393
+ /** Optional parameters. */
1394
+ export interface RemediationsDeleteAtManagementGroupOptionalParams
1395
+ extends coreClient.OperationOptions {}
1396
+
1397
+ /** Contains response data for the deleteAtManagementGroup operation. */
1398
+ export type RemediationsDeleteAtManagementGroupResponse = Remediation;
1399
+
1400
+ /** Optional parameters. */
1401
+ export interface RemediationsListDeploymentsAtSubscriptionOptionalParams
1402
+ extends coreClient.OperationOptions {
1403
+ /** Parameter group */
1203
1404
  queryOptions?: QueryOptions;
1204
1405
  }
1205
1406
 
1206
- /**
1207
- * Optional Parameters.
1208
- */
1209
- export interface PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams extends msRest.RequestOptionsBase {
1210
- /**
1211
- * Additional parameters for the operation
1212
- */
1407
+ /** Contains response data for the listDeploymentsAtSubscription operation. */
1408
+ export type RemediationsListDeploymentsAtSubscriptionResponse = RemediationDeploymentsListResult;
1409
+
1410
+ /** Optional parameters. */
1411
+ export interface RemediationsCancelAtSubscriptionOptionalParams
1412
+ extends coreClient.OperationOptions {}
1413
+
1414
+ /** Contains response data for the cancelAtSubscription operation. */
1415
+ export type RemediationsCancelAtSubscriptionResponse = Remediation;
1416
+
1417
+ /** Optional parameters. */
1418
+ export interface RemediationsListForSubscriptionOptionalParams
1419
+ extends coreClient.OperationOptions {
1420
+ /** Parameter group */
1213
1421
  queryOptions?: QueryOptions;
1214
1422
  }
1215
1423
 
1216
- /**
1217
- * Optional Parameters.
1218
- */
1219
- export interface PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams extends msRest.RequestOptionsBase {
1220
- /**
1221
- * Additional parameters for the operation
1222
- */
1424
+ /** Contains response data for the listForSubscription operation. */
1425
+ export type RemediationsListForSubscriptionResponse = RemediationListResult;
1426
+
1427
+ /** Optional parameters. */
1428
+ export interface RemediationsCreateOrUpdateAtSubscriptionOptionalParams
1429
+ extends coreClient.OperationOptions {}
1430
+
1431
+ /** Contains response data for the createOrUpdateAtSubscription operation. */
1432
+ export type RemediationsCreateOrUpdateAtSubscriptionResponse = Remediation;
1433
+
1434
+ /** Optional parameters. */
1435
+ export interface RemediationsGetAtSubscriptionOptionalParams
1436
+ extends coreClient.OperationOptions {}
1437
+
1438
+ /** Contains response data for the getAtSubscription operation. */
1439
+ export type RemediationsGetAtSubscriptionResponse = Remediation;
1440
+
1441
+ /** Optional parameters. */
1442
+ export interface RemediationsDeleteAtSubscriptionOptionalParams
1443
+ extends coreClient.OperationOptions {}
1444
+
1445
+ /** Contains response data for the deleteAtSubscription operation. */
1446
+ export type RemediationsDeleteAtSubscriptionResponse = Remediation;
1447
+
1448
+ /** Optional parameters. */
1449
+ export interface RemediationsListDeploymentsAtResourceGroupOptionalParams
1450
+ extends coreClient.OperationOptions {
1451
+ /** Parameter group */
1223
1452
  queryOptions?: QueryOptions;
1224
1453
  }
1225
1454
 
1226
- /**
1227
- * Optional Parameters.
1228
- */
1229
- export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
1230
- /**
1231
- * Additional parameters for the operation
1232
- */
1455
+ /** Contains response data for the listDeploymentsAtResourceGroup operation. */
1456
+ export type RemediationsListDeploymentsAtResourceGroupResponse = RemediationDeploymentsListResult;
1457
+
1458
+ /** Optional parameters. */
1459
+ export interface RemediationsCancelAtResourceGroupOptionalParams
1460
+ extends coreClient.OperationOptions {}
1461
+
1462
+ /** Contains response data for the cancelAtResourceGroup operation. */
1463
+ export type RemediationsCancelAtResourceGroupResponse = Remediation;
1464
+
1465
+ /** Optional parameters. */
1466
+ export interface RemediationsListForResourceGroupOptionalParams
1467
+ extends coreClient.OperationOptions {
1468
+ /** Parameter group */
1233
1469
  queryOptions?: QueryOptions;
1234
1470
  }
1235
1471
 
1236
- /**
1237
- * Optional Parameters.
1238
- */
1239
- export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
1240
- /**
1241
- * Additional parameters for the operation
1242
- */
1472
+ /** Contains response data for the listForResourceGroup operation. */
1473
+ export type RemediationsListForResourceGroupResponse = RemediationListResult;
1474
+
1475
+ /** Optional parameters. */
1476
+ export interface RemediationsCreateOrUpdateAtResourceGroupOptionalParams
1477
+ extends coreClient.OperationOptions {}
1478
+
1479
+ /** Contains response data for the createOrUpdateAtResourceGroup operation. */
1480
+ export type RemediationsCreateOrUpdateAtResourceGroupResponse = Remediation;
1481
+
1482
+ /** Optional parameters. */
1483
+ export interface RemediationsGetAtResourceGroupOptionalParams
1484
+ extends coreClient.OperationOptions {}
1485
+
1486
+ /** Contains response data for the getAtResourceGroup operation. */
1487
+ export type RemediationsGetAtResourceGroupResponse = Remediation;
1488
+
1489
+ /** Optional parameters. */
1490
+ export interface RemediationsDeleteAtResourceGroupOptionalParams
1491
+ extends coreClient.OperationOptions {}
1492
+
1493
+ /** Contains response data for the deleteAtResourceGroup operation. */
1494
+ export type RemediationsDeleteAtResourceGroupResponse = Remediation;
1495
+
1496
+ /** Optional parameters. */
1497
+ export interface RemediationsListDeploymentsAtResourceOptionalParams
1498
+ extends coreClient.OperationOptions {
1499
+ /** Parameter group */
1243
1500
  queryOptions?: QueryOptions;
1244
1501
  }
1245
1502
 
1246
- /**
1247
- * Optional Parameters.
1248
- */
1249
- export interface PolicyStatesListQueryResultsForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
1250
- /**
1251
- * Additional parameters for the operation
1252
- */
1503
+ /** Contains response data for the listDeploymentsAtResource operation. */
1504
+ export type RemediationsListDeploymentsAtResourceResponse = RemediationDeploymentsListResult;
1505
+
1506
+ /** Optional parameters. */
1507
+ export interface RemediationsCancelAtResourceOptionalParams
1508
+ extends coreClient.OperationOptions {}
1509
+
1510
+ /** Contains response data for the cancelAtResource operation. */
1511
+ export type RemediationsCancelAtResourceResponse = Remediation;
1512
+
1513
+ /** Optional parameters. */
1514
+ export interface RemediationsListForResourceOptionalParams
1515
+ extends coreClient.OperationOptions {
1516
+ /** Parameter group */
1253
1517
  queryOptions?: QueryOptions;
1254
1518
  }
1255
1519
 
1256
- /**
1257
- * Optional Parameters.
1258
- */
1259
- export interface PolicyStatesSummarizeForManagementGroupOptionalParams extends msRest.RequestOptionsBase {
1260
- /**
1261
- * Additional parameters for the operation
1262
- */
1520
+ /** Contains response data for the listForResource operation. */
1521
+ export type RemediationsListForResourceResponse = RemediationListResult;
1522
+
1523
+ /** Optional parameters. */
1524
+ export interface RemediationsCreateOrUpdateAtResourceOptionalParams
1525
+ extends coreClient.OperationOptions {}
1526
+
1527
+ /** Contains response data for the createOrUpdateAtResource operation. */
1528
+ export type RemediationsCreateOrUpdateAtResourceResponse = Remediation;
1529
+
1530
+ /** Optional parameters. */
1531
+ export interface RemediationsGetAtResourceOptionalParams
1532
+ extends coreClient.OperationOptions {}
1533
+
1534
+ /** Contains response data for the getAtResource operation. */
1535
+ export type RemediationsGetAtResourceResponse = Remediation;
1536
+
1537
+ /** Optional parameters. */
1538
+ export interface RemediationsDeleteAtResourceOptionalParams
1539
+ extends coreClient.OperationOptions {}
1540
+
1541
+ /** Contains response data for the deleteAtResource operation. */
1542
+ export type RemediationsDeleteAtResourceResponse = Remediation;
1543
+
1544
+ /** Optional parameters. */
1545
+ export interface RemediationsListDeploymentsAtManagementGroupNextOptionalParams
1546
+ extends coreClient.OperationOptions {
1547
+ /** Parameter group */
1263
1548
  queryOptions?: QueryOptions;
1264
1549
  }
1265
1550
 
1266
- /**
1267
- * Optional Parameters.
1268
- */
1269
- export interface PolicyStatesListQueryResultsForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
1270
- /**
1271
- * Additional parameters for the operation
1272
- */
1551
+ /** Contains response data for the listDeploymentsAtManagementGroupNext operation. */
1552
+ export type RemediationsListDeploymentsAtManagementGroupNextResponse = RemediationDeploymentsListResult;
1553
+
1554
+ /** Optional parameters. */
1555
+ export interface RemediationsListForManagementGroupNextOptionalParams
1556
+ extends coreClient.OperationOptions {
1557
+ /** Parameter group */
1273
1558
  queryOptions?: QueryOptions;
1274
1559
  }
1275
1560
 
1276
- /**
1277
- * Optional Parameters.
1278
- */
1279
- export interface PolicyStatesSummarizeForSubscriptionOptionalParams extends msRest.RequestOptionsBase {
1280
- /**
1281
- * Additional parameters for the operation
1282
- */
1561
+ /** Contains response data for the listForManagementGroupNext operation. */
1562
+ export type RemediationsListForManagementGroupNextResponse = RemediationListResult;
1563
+
1564
+ /** Optional parameters. */
1565
+ export interface RemediationsListDeploymentsAtSubscriptionNextOptionalParams
1566
+ extends coreClient.OperationOptions {
1567
+ /** Parameter group */
1283
1568
  queryOptions?: QueryOptions;
1284
1569
  }
1285
1570
 
1286
- /**
1287
- * Optional Parameters.
1288
- */
1289
- export interface PolicyStatesListQueryResultsForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
1290
- /**
1291
- * Additional parameters for the operation
1292
- */
1571
+ /** Contains response data for the listDeploymentsAtSubscriptionNext operation. */
1572
+ export type RemediationsListDeploymentsAtSubscriptionNextResponse = RemediationDeploymentsListResult;
1573
+
1574
+ /** Optional parameters. */
1575
+ export interface RemediationsListForSubscriptionNextOptionalParams
1576
+ extends coreClient.OperationOptions {
1577
+ /** Parameter group */
1293
1578
  queryOptions?: QueryOptions;
1294
1579
  }
1295
1580
 
1296
- /**
1297
- * Optional Parameters.
1298
- */
1299
- export interface PolicyStatesSummarizeForResourceGroupOptionalParams extends msRest.RequestOptionsBase {
1300
- /**
1301
- * Additional parameters for the operation
1302
- */
1581
+ /** Contains response data for the listForSubscriptionNext operation. */
1582
+ export type RemediationsListForSubscriptionNextResponse = RemediationListResult;
1583
+
1584
+ /** Optional parameters. */
1585
+ export interface RemediationsListDeploymentsAtResourceGroupNextOptionalParams
1586
+ extends coreClient.OperationOptions {
1587
+ /** Parameter group */
1303
1588
  queryOptions?: QueryOptions;
1304
1589
  }
1305
1590
 
1306
- /**
1307
- * Optional Parameters.
1308
- */
1309
- export interface PolicyStatesListQueryResultsForResourceOptionalParams extends msRest.RequestOptionsBase {
1310
- /**
1311
- * Additional parameters for the operation
1312
- */
1591
+ /** Contains response data for the listDeploymentsAtResourceGroupNext operation. */
1592
+ export type RemediationsListDeploymentsAtResourceGroupNextResponse = RemediationDeploymentsListResult;
1593
+
1594
+ /** Optional parameters. */
1595
+ export interface RemediationsListForResourceGroupNextOptionalParams
1596
+ extends coreClient.OperationOptions {
1597
+ /** Parameter group */
1313
1598
  queryOptions?: QueryOptions;
1314
1599
  }
1315
1600
 
1316
- /**
1317
- * Optional Parameters.
1318
- */
1319
- export interface PolicyStatesSummarizeForResourceOptionalParams extends msRest.RequestOptionsBase {
1320
- /**
1321
- * Additional parameters for the operation
1322
- */
1601
+ /** Contains response data for the listForResourceGroupNext operation. */
1602
+ export type RemediationsListForResourceGroupNextResponse = RemediationListResult;
1603
+
1604
+ /** Optional parameters. */
1605
+ export interface RemediationsListDeploymentsAtResourceNextOptionalParams
1606
+ extends coreClient.OperationOptions {
1607
+ /** Parameter group */
1323
1608
  queryOptions?: QueryOptions;
1324
1609
  }
1325
1610
 
1326
- /**
1327
- * Optional Parameters.
1328
- */
1329
- export interface PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams extends msRest.RequestOptionsBase {
1330
- /**
1331
- * Additional parameters for the operation
1332
- */
1611
+ /** Contains response data for the listDeploymentsAtResourceNext operation. */
1612
+ export type RemediationsListDeploymentsAtResourceNextResponse = RemediationDeploymentsListResult;
1613
+
1614
+ /** Optional parameters. */
1615
+ export interface RemediationsListForResourceNextOptionalParams
1616
+ extends coreClient.OperationOptions {
1617
+ /** Parameter group */
1333
1618
  queryOptions?: QueryOptions;
1334
1619
  }
1335
1620
 
1336
- /**
1337
- * Optional Parameters.
1338
- */
1339
- export interface PolicyStatesSummarizeForPolicySetDefinitionOptionalParams extends msRest.RequestOptionsBase {
1340
- /**
1341
- * Additional parameters for the operation
1342
- */
1621
+ /** Contains response data for the listForResourceNext operation. */
1622
+ export type RemediationsListForResourceNextResponse = RemediationListResult;
1623
+
1624
+ /** Optional parameters. */
1625
+ export interface PolicyEventsListQueryResultsForManagementGroupOptionalParams
1626
+ extends coreClient.OperationOptions {
1627
+ /** Parameter group */
1343
1628
  queryOptions?: QueryOptions;
1344
1629
  }
1345
1630
 
1346
- /**
1347
- * Optional Parameters.
1348
- */
1349
- export interface PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams extends msRest.RequestOptionsBase {
1350
- /**
1351
- * Additional parameters for the operation
1352
- */
1631
+ /** Contains response data for the listQueryResultsForManagementGroup operation. */
1632
+ export type PolicyEventsListQueryResultsForManagementGroupResponse = PolicyEventsQueryResults;
1633
+
1634
+ /** Optional parameters. */
1635
+ export interface PolicyEventsListQueryResultsForSubscriptionOptionalParams
1636
+ extends coreClient.OperationOptions {
1637
+ /** Parameter group */
1353
1638
  queryOptions?: QueryOptions;
1354
1639
  }
1355
1640
 
1356
- /**
1357
- * Optional Parameters.
1358
- */
1359
- export interface PolicyStatesSummarizeForPolicyDefinitionOptionalParams extends msRest.RequestOptionsBase {
1360
- /**
1361
- * Additional parameters for the operation
1362
- */
1641
+ /** Contains response data for the listQueryResultsForSubscription operation. */
1642
+ export type PolicyEventsListQueryResultsForSubscriptionResponse = PolicyEventsQueryResults;
1643
+
1644
+ /** Optional parameters. */
1645
+ export interface PolicyEventsListQueryResultsForResourceGroupOptionalParams
1646
+ extends coreClient.OperationOptions {
1647
+ /** Parameter group */
1363
1648
  queryOptions?: QueryOptions;
1364
1649
  }
1365
1650
 
1366
- /**
1367
- * Optional Parameters.
1368
- */
1369
- export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
1370
- /**
1371
- * Additional parameters for the operation
1372
- */
1651
+ /** Contains response data for the listQueryResultsForResourceGroup operation. */
1652
+ export type PolicyEventsListQueryResultsForResourceGroupResponse = PolicyEventsQueryResults;
1653
+
1654
+ /** Optional parameters. */
1655
+ export interface PolicyEventsListQueryResultsForResourceOptionalParams
1656
+ extends coreClient.OperationOptions {
1657
+ /** Parameter group */
1373
1658
  queryOptions?: QueryOptions;
1374
1659
  }
1375
1660
 
1376
- /**
1377
- * Optional Parameters.
1378
- */
1379
- export interface PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
1380
- /**
1381
- * Additional parameters for the operation
1382
- */
1661
+ /** Contains response data for the listQueryResultsForResource operation. */
1662
+ export type PolicyEventsListQueryResultsForResourceResponse = PolicyEventsQueryResults;
1663
+
1664
+ /** Optional parameters. */
1665
+ export interface PolicyEventsListQueryResultsForPolicySetDefinitionOptionalParams
1666
+ extends coreClient.OperationOptions {
1667
+ /** Parameter group */
1383
1668
  queryOptions?: QueryOptions;
1384
1669
  }
1385
1670
 
1386
- /**
1387
- * Optional Parameters.
1388
- */
1389
- export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
1390
- /**
1391
- * Additional parameters for the operation
1392
- */
1671
+ /** Contains response data for the listQueryResultsForPolicySetDefinition operation. */
1672
+ export type PolicyEventsListQueryResultsForPolicySetDefinitionResponse = PolicyEventsQueryResults;
1673
+
1674
+ /** Optional parameters. */
1675
+ export interface PolicyEventsListQueryResultsForPolicyDefinitionOptionalParams
1676
+ extends coreClient.OperationOptions {
1677
+ /** Parameter group */
1393
1678
  queryOptions?: QueryOptions;
1394
1679
  }
1395
1680
 
1396
- /**
1397
- * Optional Parameters.
1398
- */
1399
- export interface PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams extends msRest.RequestOptionsBase {
1400
- /**
1401
- * Additional parameters for the operation
1402
- */
1681
+ /** Contains response data for the listQueryResultsForPolicyDefinition operation. */
1682
+ export type PolicyEventsListQueryResultsForPolicyDefinitionResponse = PolicyEventsQueryResults;
1683
+
1684
+ /** Optional parameters. */
1685
+ export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
1686
+ extends coreClient.OperationOptions {
1687
+ /** Parameter group */
1403
1688
  queryOptions?: QueryOptions;
1404
1689
  }
1405
1690
 
1406
- /**
1407
- * Optional Parameters.
1408
- */
1409
- export interface PolicyMetadataListOptionalParams extends msRest.RequestOptionsBase {
1410
- /**
1411
- * Additional parameters for the operation
1412
- */
1691
+ /** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation. */
1692
+ export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyEventsQueryResults;
1693
+
1694
+ /** Optional parameters. */
1695
+ export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
1696
+ extends coreClient.OperationOptions {
1697
+ /** Parameter group */
1413
1698
  queryOptions?: QueryOptions;
1414
1699
  }
1415
1700
 
1416
- /**
1417
- * An interface representing PolicyInsightsClientOptions.
1418
- */
1419
- export interface PolicyInsightsClientOptions extends AzureServiceClientOptions {
1420
- baseUri?: string;
1421
- }
1701
+ /** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation. */
1702
+ export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyEventsQueryResults;
1422
1703
 
1423
- /**
1424
- * @interface
1425
- * Query results.
1426
- * @extends Array<PolicyTrackedResource>
1427
- */
1428
- export interface PolicyTrackedResourcesQueryResults extends Array<PolicyTrackedResource> {
1429
- /**
1430
- * The URL to get the next set of results.
1431
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1432
- */
1433
- readonly nextLink?: string;
1704
+ /** Optional parameters. */
1705
+ export interface PolicyEventsListQueryResultsForManagementGroupNextOptionalParams
1706
+ extends coreClient.OperationOptions {
1707
+ /** Parameter group */
1708
+ queryOptions?: QueryOptions;
1434
1709
  }
1435
1710
 
1436
- /**
1437
- * @interface
1438
- * List of deployments for a remediation.
1439
- * @extends Array<RemediationDeployment>
1440
- */
1441
- export interface RemediationDeploymentsListResult extends Array<RemediationDeployment> {
1442
- /**
1443
- * The URL to get the next set of results.
1444
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1445
- */
1446
- readonly nextLink?: string;
1711
+ /** Contains response data for the listQueryResultsForManagementGroupNext operation. */
1712
+ export type PolicyEventsListQueryResultsForManagementGroupNextResponse = PolicyEventsQueryResults;
1713
+
1714
+ /** Optional parameters. */
1715
+ export interface PolicyEventsListQueryResultsForSubscriptionNextOptionalParams
1716
+ extends coreClient.OperationOptions {
1717
+ /** Parameter group */
1718
+ queryOptions?: QueryOptions;
1447
1719
  }
1448
1720
 
1449
- /**
1450
- * @interface
1451
- * List of remediations.
1452
- * @extends Array<Remediation>
1453
- */
1454
- export interface RemediationListResult extends Array<Remediation> {
1455
- /**
1456
- * The URL to get the next set of results.
1457
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1458
- */
1459
- readonly nextLink?: string;
1721
+ /** Contains response data for the listQueryResultsForSubscriptionNext operation. */
1722
+ export type PolicyEventsListQueryResultsForSubscriptionNextResponse = PolicyEventsQueryResults;
1723
+
1724
+ /** Optional parameters. */
1725
+ export interface PolicyEventsListQueryResultsForResourceGroupNextOptionalParams
1726
+ extends coreClient.OperationOptions {
1727
+ /** Parameter group */
1728
+ queryOptions?: QueryOptions;
1460
1729
  }
1461
1730
 
1462
- /**
1463
- * @interface
1464
- * Collection of policy metadata resources.
1465
- * @extends Array<SlimPolicyMetadata>
1466
- */
1467
- export interface PolicyMetadataCollection extends Array<SlimPolicyMetadata> {
1468
- /**
1469
- * The URL to get the next set of results.
1470
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
1471
- */
1472
- readonly nextLink?: string;
1731
+ /** Contains response data for the listQueryResultsForResourceGroupNext operation. */
1732
+ export type PolicyEventsListQueryResultsForResourceGroupNextResponse = PolicyEventsQueryResults;
1733
+
1734
+ /** Optional parameters. */
1735
+ export interface PolicyEventsListQueryResultsForResourceNextOptionalParams
1736
+ extends coreClient.OperationOptions {
1737
+ /** Parameter group */
1738
+ queryOptions?: QueryOptions;
1473
1739
  }
1474
1740
 
1475
- /**
1476
- * Defines values for ResourceDiscoveryMode.
1477
- * Possible values include: 'ExistingNonCompliant', 'ReEvaluateCompliance'
1478
- * @readonly
1479
- * @enum {string}
1480
- */
1481
- export type ResourceDiscoveryMode = 'ExistingNonCompliant' | 'ReEvaluateCompliance';
1741
+ /** Contains response data for the listQueryResultsForResourceNext operation. */
1742
+ export type PolicyEventsListQueryResultsForResourceNextResponse = PolicyEventsQueryResults;
1482
1743
 
1483
- /**
1484
- * Defines values for PolicyStatesResource.
1485
- * Possible values include: 'default', 'latest'
1486
- * @readonly
1487
- * @enum {string}
1488
- */
1489
- export type PolicyStatesResource = 'default' | 'latest';
1744
+ /** Optional parameters. */
1745
+ export interface PolicyEventsListQueryResultsForPolicySetDefinitionNextOptionalParams
1746
+ extends coreClient.OperationOptions {
1747
+ /** Parameter group */
1748
+ queryOptions?: QueryOptions;
1749
+ }
1490
1750
 
1491
- /**
1492
- * Contains response data for the listQueryResultsForManagementGroup operation.
1493
- */
1494
- export type PolicyTrackedResourcesListQueryResultsForManagementGroupResponse = PolicyTrackedResourcesQueryResults & {
1495
- /**
1496
- * The underlying HTTP response.
1497
- */
1498
- _response: msRest.HttpResponse & {
1499
- /**
1500
- * The response body as text (string format)
1501
- */
1502
- bodyAsText: string;
1751
+ /** Contains response data for the listQueryResultsForPolicySetDefinitionNext operation. */
1752
+ export type PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse = PolicyEventsQueryResults;
1503
1753
 
1504
- /**
1505
- * The response body as parsed JSON or XML
1506
- */
1507
- parsedBody: PolicyTrackedResourcesQueryResults;
1508
- };
1509
- };
1754
+ /** Optional parameters. */
1755
+ export interface PolicyEventsListQueryResultsForPolicyDefinitionNextOptionalParams
1756
+ extends coreClient.OperationOptions {
1757
+ /** Parameter group */
1758
+ queryOptions?: QueryOptions;
1759
+ }
1510
1760
 
1511
- /**
1512
- * Contains response data for the listQueryResultsForSubscription operation.
1513
- */
1514
- export type PolicyTrackedResourcesListQueryResultsForSubscriptionResponse = PolicyTrackedResourcesQueryResults & {
1515
- /**
1516
- * The underlying HTTP response.
1517
- */
1518
- _response: msRest.HttpResponse & {
1519
- /**
1520
- * The response body as text (string format)
1521
- */
1522
- bodyAsText: string;
1761
+ /** Contains response data for the listQueryResultsForPolicyDefinitionNext operation. */
1762
+ export type PolicyEventsListQueryResultsForPolicyDefinitionNextResponse = PolicyEventsQueryResults;
1523
1763
 
1524
- /**
1525
- * The response body as parsed JSON or XML
1526
- */
1527
- parsedBody: PolicyTrackedResourcesQueryResults;
1528
- };
1529
- };
1764
+ /** Optional parameters. */
1765
+ export interface PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams
1766
+ extends coreClient.OperationOptions {
1767
+ /** Parameter group */
1768
+ queryOptions?: QueryOptions;
1769
+ }
1530
1770
 
1531
- /**
1532
- * Contains response data for the listQueryResultsForResourceGroup operation.
1533
- */
1534
- export type PolicyTrackedResourcesListQueryResultsForResourceGroupResponse = PolicyTrackedResourcesQueryResults & {
1535
- /**
1536
- * The underlying HTTP response.
1537
- */
1538
- _response: msRest.HttpResponse & {
1539
- /**
1540
- * The response body as text (string format)
1541
- */
1542
- bodyAsText: string;
1771
+ /** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext operation. */
1772
+ export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults;
1543
1773
 
1544
- /**
1545
- * The response body as parsed JSON or XML
1546
- */
1547
- parsedBody: PolicyTrackedResourcesQueryResults;
1548
- };
1549
- };
1550
-
1551
- /**
1552
- * Contains response data for the listQueryResultsForResource operation.
1553
- */
1554
- export type PolicyTrackedResourcesListQueryResultsForResourceResponse = PolicyTrackedResourcesQueryResults & {
1555
- /**
1556
- * The underlying HTTP response.
1557
- */
1558
- _response: msRest.HttpResponse & {
1559
- /**
1560
- * The response body as text (string format)
1561
- */
1562
- bodyAsText: string;
1563
-
1564
- /**
1565
- * The response body as parsed JSON or XML
1566
- */
1567
- parsedBody: PolicyTrackedResourcesQueryResults;
1568
- };
1569
- };
1570
-
1571
- /**
1572
- * Contains response data for the listQueryResultsForManagementGroupNext operation.
1573
- */
1574
- export type PolicyTrackedResourcesListQueryResultsForManagementGroupNextResponse = PolicyTrackedResourcesQueryResults & {
1575
- /**
1576
- * The underlying HTTP response.
1577
- */
1578
- _response: msRest.HttpResponse & {
1579
- /**
1580
- * The response body as text (string format)
1581
- */
1582
- bodyAsText: string;
1583
-
1584
- /**
1585
- * The response body as parsed JSON or XML
1586
- */
1587
- parsedBody: PolicyTrackedResourcesQueryResults;
1588
- };
1589
- };
1590
-
1591
- /**
1592
- * Contains response data for the listQueryResultsForSubscriptionNext operation.
1593
- */
1594
- export type PolicyTrackedResourcesListQueryResultsForSubscriptionNextResponse = PolicyTrackedResourcesQueryResults & {
1595
- /**
1596
- * The underlying HTTP response.
1597
- */
1598
- _response: msRest.HttpResponse & {
1599
- /**
1600
- * The response body as text (string format)
1601
- */
1602
- bodyAsText: string;
1603
-
1604
- /**
1605
- * The response body as parsed JSON or XML
1606
- */
1607
- parsedBody: PolicyTrackedResourcesQueryResults;
1608
- };
1609
- };
1610
-
1611
- /**
1612
- * Contains response data for the listQueryResultsForResourceGroupNext operation.
1613
- */
1614
- export type PolicyTrackedResourcesListQueryResultsForResourceGroupNextResponse = PolicyTrackedResourcesQueryResults & {
1615
- /**
1616
- * The underlying HTTP response.
1617
- */
1618
- _response: msRest.HttpResponse & {
1619
- /**
1620
- * The response body as text (string format)
1621
- */
1622
- bodyAsText: string;
1623
-
1624
- /**
1625
- * The response body as parsed JSON or XML
1626
- */
1627
- parsedBody: PolicyTrackedResourcesQueryResults;
1628
- };
1629
- };
1630
-
1631
- /**
1632
- * Contains response data for the listQueryResultsForResourceNext operation.
1633
- */
1634
- export type PolicyTrackedResourcesListQueryResultsForResourceNextResponse = PolicyTrackedResourcesQueryResults & {
1635
- /**
1636
- * The underlying HTTP response.
1637
- */
1638
- _response: msRest.HttpResponse & {
1639
- /**
1640
- * The response body as text (string format)
1641
- */
1642
- bodyAsText: string;
1643
-
1644
- /**
1645
- * The response body as parsed JSON or XML
1646
- */
1647
- parsedBody: PolicyTrackedResourcesQueryResults;
1648
- };
1649
- };
1650
-
1651
- /**
1652
- * Contains response data for the listDeploymentsAtManagementGroup operation.
1653
- */
1654
- export type RemediationsListDeploymentsAtManagementGroupResponse = RemediationDeploymentsListResult & {
1655
- /**
1656
- * The underlying HTTP response.
1657
- */
1658
- _response: msRest.HttpResponse & {
1659
- /**
1660
- * The response body as text (string format)
1661
- */
1662
- bodyAsText: string;
1663
-
1664
- /**
1665
- * The response body as parsed JSON or XML
1666
- */
1667
- parsedBody: RemediationDeploymentsListResult;
1668
- };
1669
- };
1670
-
1671
- /**
1672
- * Contains response data for the cancelAtManagementGroup operation.
1673
- */
1674
- export type RemediationsCancelAtManagementGroupResponse = Remediation & {
1675
- /**
1676
- * The underlying HTTP response.
1677
- */
1678
- _response: msRest.HttpResponse & {
1679
- /**
1680
- * The response body as text (string format)
1681
- */
1682
- bodyAsText: string;
1683
-
1684
- /**
1685
- * The response body as parsed JSON or XML
1686
- */
1687
- parsedBody: Remediation;
1688
- };
1689
- };
1690
-
1691
- /**
1692
- * Contains response data for the listForManagementGroup operation.
1693
- */
1694
- export type RemediationsListForManagementGroupResponse = RemediationListResult & {
1695
- /**
1696
- * The underlying HTTP response.
1697
- */
1698
- _response: msRest.HttpResponse & {
1699
- /**
1700
- * The response body as text (string format)
1701
- */
1702
- bodyAsText: string;
1703
-
1704
- /**
1705
- * The response body as parsed JSON or XML
1706
- */
1707
- parsedBody: RemediationListResult;
1708
- };
1709
- };
1710
-
1711
- /**
1712
- * Contains response data for the createOrUpdateAtManagementGroup operation.
1713
- */
1714
- export type RemediationsCreateOrUpdateAtManagementGroupResponse = Remediation & {
1715
- /**
1716
- * The underlying HTTP response.
1717
- */
1718
- _response: msRest.HttpResponse & {
1719
- /**
1720
- * The response body as text (string format)
1721
- */
1722
- bodyAsText: string;
1723
-
1724
- /**
1725
- * The response body as parsed JSON or XML
1726
- */
1727
- parsedBody: Remediation;
1728
- };
1729
- };
1730
-
1731
- /**
1732
- * Contains response data for the getAtManagementGroup operation.
1733
- */
1734
- export type RemediationsGetAtManagementGroupResponse = Remediation & {
1735
- /**
1736
- * The underlying HTTP response.
1737
- */
1738
- _response: msRest.HttpResponse & {
1739
- /**
1740
- * The response body as text (string format)
1741
- */
1742
- bodyAsText: string;
1743
-
1744
- /**
1745
- * The response body as parsed JSON or XML
1746
- */
1747
- parsedBody: Remediation;
1748
- };
1749
- };
1750
-
1751
- /**
1752
- * Contains response data for the deleteAtManagementGroup operation.
1753
- */
1754
- export type RemediationsDeleteAtManagementGroupResponse = Remediation & {
1755
- /**
1756
- * The underlying HTTP response.
1757
- */
1758
- _response: msRest.HttpResponse & {
1759
- /**
1760
- * The response body as text (string format)
1761
- */
1762
- bodyAsText: string;
1763
-
1764
- /**
1765
- * The response body as parsed JSON or XML
1766
- */
1767
- parsedBody: Remediation;
1768
- };
1769
- };
1770
-
1771
- /**
1772
- * Contains response data for the listDeploymentsAtSubscription operation.
1773
- */
1774
- export type RemediationsListDeploymentsAtSubscriptionResponse = RemediationDeploymentsListResult & {
1775
- /**
1776
- * The underlying HTTP response.
1777
- */
1778
- _response: msRest.HttpResponse & {
1779
- /**
1780
- * The response body as text (string format)
1781
- */
1782
- bodyAsText: string;
1783
-
1784
- /**
1785
- * The response body as parsed JSON or XML
1786
- */
1787
- parsedBody: RemediationDeploymentsListResult;
1788
- };
1789
- };
1790
-
1791
- /**
1792
- * Contains response data for the cancelAtSubscription operation.
1793
- */
1794
- export type RemediationsCancelAtSubscriptionResponse = Remediation & {
1795
- /**
1796
- * The underlying HTTP response.
1797
- */
1798
- _response: msRest.HttpResponse & {
1799
- /**
1800
- * The response body as text (string format)
1801
- */
1802
- bodyAsText: string;
1803
-
1804
- /**
1805
- * The response body as parsed JSON or XML
1806
- */
1807
- parsedBody: Remediation;
1808
- };
1809
- };
1810
-
1811
- /**
1812
- * Contains response data for the listForSubscription operation.
1813
- */
1814
- export type RemediationsListForSubscriptionResponse = RemediationListResult & {
1815
- /**
1816
- * The underlying HTTP response.
1817
- */
1818
- _response: msRest.HttpResponse & {
1819
- /**
1820
- * The response body as text (string format)
1821
- */
1822
- bodyAsText: string;
1823
-
1824
- /**
1825
- * The response body as parsed JSON or XML
1826
- */
1827
- parsedBody: RemediationListResult;
1828
- };
1829
- };
1830
-
1831
- /**
1832
- * Contains response data for the createOrUpdateAtSubscription operation.
1833
- */
1834
- export type RemediationsCreateOrUpdateAtSubscriptionResponse = Remediation & {
1835
- /**
1836
- * The underlying HTTP response.
1837
- */
1838
- _response: msRest.HttpResponse & {
1839
- /**
1840
- * The response body as text (string format)
1841
- */
1842
- bodyAsText: string;
1843
-
1844
- /**
1845
- * The response body as parsed JSON or XML
1846
- */
1847
- parsedBody: Remediation;
1848
- };
1849
- };
1850
-
1851
- /**
1852
- * Contains response data for the getAtSubscription operation.
1853
- */
1854
- export type RemediationsGetAtSubscriptionResponse = Remediation & {
1855
- /**
1856
- * The underlying HTTP response.
1857
- */
1858
- _response: msRest.HttpResponse & {
1859
- /**
1860
- * The response body as text (string format)
1861
- */
1862
- bodyAsText: string;
1863
-
1864
- /**
1865
- * The response body as parsed JSON or XML
1866
- */
1867
- parsedBody: Remediation;
1868
- };
1869
- };
1870
-
1871
- /**
1872
- * Contains response data for the deleteAtSubscription operation.
1873
- */
1874
- export type RemediationsDeleteAtSubscriptionResponse = Remediation & {
1875
- /**
1876
- * The underlying HTTP response.
1877
- */
1878
- _response: msRest.HttpResponse & {
1879
- /**
1880
- * The response body as text (string format)
1881
- */
1882
- bodyAsText: string;
1883
-
1884
- /**
1885
- * The response body as parsed JSON or XML
1886
- */
1887
- parsedBody: Remediation;
1888
- };
1889
- };
1890
-
1891
- /**
1892
- * Contains response data for the listDeploymentsAtResourceGroup operation.
1893
- */
1894
- export type RemediationsListDeploymentsAtResourceGroupResponse = RemediationDeploymentsListResult & {
1895
- /**
1896
- * The underlying HTTP response.
1897
- */
1898
- _response: msRest.HttpResponse & {
1899
- /**
1900
- * The response body as text (string format)
1901
- */
1902
- bodyAsText: string;
1903
-
1904
- /**
1905
- * The response body as parsed JSON or XML
1906
- */
1907
- parsedBody: RemediationDeploymentsListResult;
1908
- };
1909
- };
1910
-
1911
- /**
1912
- * Contains response data for the cancelAtResourceGroup operation.
1913
- */
1914
- export type RemediationsCancelAtResourceGroupResponse = Remediation & {
1915
- /**
1916
- * The underlying HTTP response.
1917
- */
1918
- _response: msRest.HttpResponse & {
1919
- /**
1920
- * The response body as text (string format)
1921
- */
1922
- bodyAsText: string;
1923
-
1924
- /**
1925
- * The response body as parsed JSON or XML
1926
- */
1927
- parsedBody: Remediation;
1928
- };
1929
- };
1930
-
1931
- /**
1932
- * Contains response data for the listForResourceGroup operation.
1933
- */
1934
- export type RemediationsListForResourceGroupResponse = RemediationListResult & {
1935
- /**
1936
- * The underlying HTTP response.
1937
- */
1938
- _response: msRest.HttpResponse & {
1939
- /**
1940
- * The response body as text (string format)
1941
- */
1942
- bodyAsText: string;
1943
-
1944
- /**
1945
- * The response body as parsed JSON or XML
1946
- */
1947
- parsedBody: RemediationListResult;
1948
- };
1949
- };
1950
-
1951
- /**
1952
- * Contains response data for the createOrUpdateAtResourceGroup operation.
1953
- */
1954
- export type RemediationsCreateOrUpdateAtResourceGroupResponse = Remediation & {
1955
- /**
1956
- * The underlying HTTP response.
1957
- */
1958
- _response: msRest.HttpResponse & {
1959
- /**
1960
- * The response body as text (string format)
1961
- */
1962
- bodyAsText: string;
1963
-
1964
- /**
1965
- * The response body as parsed JSON or XML
1966
- */
1967
- parsedBody: Remediation;
1968
- };
1969
- };
1774
+ /** Optional parameters. */
1775
+ export interface PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams
1776
+ extends coreClient.OperationOptions {
1777
+ /** Parameter group */
1778
+ queryOptions?: QueryOptions;
1779
+ }
1970
1780
 
1971
- /**
1972
- * Contains response data for the getAtResourceGroup operation.
1973
- */
1974
- export type RemediationsGetAtResourceGroupResponse = Remediation & {
1975
- /**
1976
- * The underlying HTTP response.
1977
- */
1978
- _response: msRest.HttpResponse & {
1979
- /**
1980
- * The response body as text (string format)
1981
- */
1982
- bodyAsText: string;
1781
+ /** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext operation. */
1782
+ export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults;
1983
1783
 
1984
- /**
1985
- * The response body as parsed JSON or XML
1986
- */
1987
- parsedBody: Remediation;
1988
- };
1989
- };
1784
+ /** Optional parameters. */
1785
+ export interface PolicyStatesListQueryResultsForManagementGroupOptionalParams
1786
+ extends coreClient.OperationOptions {
1787
+ /** Parameter group */
1788
+ queryOptions?: QueryOptions;
1789
+ }
1990
1790
 
1991
- /**
1992
- * Contains response data for the deleteAtResourceGroup operation.
1993
- */
1994
- export type RemediationsDeleteAtResourceGroupResponse = Remediation & {
1995
- /**
1996
- * The underlying HTTP response.
1997
- */
1998
- _response: msRest.HttpResponse & {
1999
- /**
2000
- * The response body as text (string format)
2001
- */
2002
- bodyAsText: string;
1791
+ /** Contains response data for the listQueryResultsForManagementGroup operation. */
1792
+ export type PolicyStatesListQueryResultsForManagementGroupResponse = PolicyStatesQueryResults;
2003
1793
 
2004
- /**
2005
- * The response body as parsed JSON or XML
2006
- */
2007
- parsedBody: Remediation;
2008
- };
2009
- };
1794
+ /** Optional parameters. */
1795
+ export interface PolicyStatesSummarizeForManagementGroupOptionalParams
1796
+ extends coreClient.OperationOptions {
1797
+ /** Parameter group */
1798
+ queryOptions?: QueryOptions;
1799
+ }
2010
1800
 
2011
- /**
2012
- * Contains response data for the listDeploymentsAtResource operation.
2013
- */
2014
- export type RemediationsListDeploymentsAtResourceResponse = RemediationDeploymentsListResult & {
2015
- /**
2016
- * The underlying HTTP response.
2017
- */
2018
- _response: msRest.HttpResponse & {
2019
- /**
2020
- * The response body as text (string format)
2021
- */
2022
- bodyAsText: string;
1801
+ /** Contains response data for the summarizeForManagementGroup operation. */
1802
+ export type PolicyStatesSummarizeForManagementGroupResponse = SummarizeResults;
2023
1803
 
2024
- /**
2025
- * The response body as parsed JSON or XML
2026
- */
2027
- parsedBody: RemediationDeploymentsListResult;
2028
- };
2029
- };
1804
+ /** Optional parameters. */
1805
+ export interface PolicyStatesListQueryResultsForSubscriptionOptionalParams
1806
+ extends coreClient.OperationOptions {
1807
+ /** Parameter group */
1808
+ queryOptions?: QueryOptions;
1809
+ }
2030
1810
 
2031
- /**
2032
- * Contains response data for the cancelAtResource operation.
2033
- */
2034
- export type RemediationsCancelAtResourceResponse = Remediation & {
2035
- /**
2036
- * The underlying HTTP response.
2037
- */
2038
- _response: msRest.HttpResponse & {
2039
- /**
2040
- * The response body as text (string format)
2041
- */
2042
- bodyAsText: string;
1811
+ /** Contains response data for the listQueryResultsForSubscription operation. */
1812
+ export type PolicyStatesListQueryResultsForSubscriptionResponse = PolicyStatesQueryResults;
2043
1813
 
2044
- /**
2045
- * The response body as parsed JSON or XML
2046
- */
2047
- parsedBody: Remediation;
2048
- };
2049
- };
1814
+ /** Optional parameters. */
1815
+ export interface PolicyStatesSummarizeForSubscriptionOptionalParams
1816
+ extends coreClient.OperationOptions {
1817
+ /** Parameter group */
1818
+ queryOptions?: QueryOptions;
1819
+ }
2050
1820
 
2051
- /**
2052
- * Contains response data for the listForResource operation.
2053
- */
2054
- export type RemediationsListForResourceResponse = RemediationListResult & {
2055
- /**
2056
- * The underlying HTTP response.
2057
- */
2058
- _response: msRest.HttpResponse & {
2059
- /**
2060
- * The response body as text (string format)
2061
- */
2062
- bodyAsText: string;
1821
+ /** Contains response data for the summarizeForSubscription operation. */
1822
+ export type PolicyStatesSummarizeForSubscriptionResponse = SummarizeResults;
2063
1823
 
2064
- /**
2065
- * The response body as parsed JSON or XML
2066
- */
2067
- parsedBody: RemediationListResult;
2068
- };
2069
- };
1824
+ /** Optional parameters. */
1825
+ export interface PolicyStatesListQueryResultsForResourceGroupOptionalParams
1826
+ extends coreClient.OperationOptions {
1827
+ /** Parameter group */
1828
+ queryOptions?: QueryOptions;
1829
+ }
2070
1830
 
2071
- /**
2072
- * Contains response data for the createOrUpdateAtResource operation.
2073
- */
2074
- export type RemediationsCreateOrUpdateAtResourceResponse = Remediation & {
2075
- /**
2076
- * The underlying HTTP response.
2077
- */
2078
- _response: msRest.HttpResponse & {
2079
- /**
2080
- * The response body as text (string format)
2081
- */
2082
- bodyAsText: string;
1831
+ /** Contains response data for the listQueryResultsForResourceGroup operation. */
1832
+ export type PolicyStatesListQueryResultsForResourceGroupResponse = PolicyStatesQueryResults;
2083
1833
 
2084
- /**
2085
- * The response body as parsed JSON or XML
2086
- */
2087
- parsedBody: Remediation;
2088
- };
2089
- };
1834
+ /** Optional parameters. */
1835
+ export interface PolicyStatesSummarizeForResourceGroupOptionalParams
1836
+ extends coreClient.OperationOptions {
1837
+ /** Parameter group */
1838
+ queryOptions?: QueryOptions;
1839
+ }
2090
1840
 
2091
- /**
2092
- * Contains response data for the getAtResource operation.
2093
- */
2094
- export type RemediationsGetAtResourceResponse = Remediation & {
2095
- /**
2096
- * The underlying HTTP response.
2097
- */
2098
- _response: msRest.HttpResponse & {
2099
- /**
2100
- * The response body as text (string format)
2101
- */
2102
- bodyAsText: string;
1841
+ /** Contains response data for the summarizeForResourceGroup operation. */
1842
+ export type PolicyStatesSummarizeForResourceGroupResponse = SummarizeResults;
2103
1843
 
2104
- /**
2105
- * The response body as parsed JSON or XML
2106
- */
2107
- parsedBody: Remediation;
2108
- };
2109
- };
1844
+ /** Optional parameters. */
1845
+ export interface PolicyStatesListQueryResultsForResourceOptionalParams
1846
+ extends coreClient.OperationOptions {
1847
+ /** Parameter group */
1848
+ queryOptions?: QueryOptions;
1849
+ }
2110
1850
 
2111
- /**
2112
- * Contains response data for the deleteAtResource operation.
2113
- */
2114
- export type RemediationsDeleteAtResourceResponse = Remediation & {
2115
- /**
2116
- * The underlying HTTP response.
2117
- */
2118
- _response: msRest.HttpResponse & {
2119
- /**
2120
- * The response body as text (string format)
2121
- */
2122
- bodyAsText: string;
1851
+ /** Contains response data for the listQueryResultsForResource operation. */
1852
+ export type PolicyStatesListQueryResultsForResourceResponse = PolicyStatesQueryResults;
2123
1853
 
2124
- /**
2125
- * The response body as parsed JSON or XML
2126
- */
2127
- parsedBody: Remediation;
2128
- };
2129
- };
1854
+ /** Optional parameters. */
1855
+ export interface PolicyStatesSummarizeForResourceOptionalParams
1856
+ extends coreClient.OperationOptions {
1857
+ /** Parameter group */
1858
+ queryOptions?: QueryOptions;
1859
+ }
2130
1860
 
2131
- /**
2132
- * Contains response data for the listDeploymentsAtManagementGroupNext operation.
2133
- */
2134
- export type RemediationsListDeploymentsAtManagementGroupNextResponse = RemediationDeploymentsListResult & {
2135
- /**
2136
- * The underlying HTTP response.
2137
- */
2138
- _response: msRest.HttpResponse & {
2139
- /**
2140
- * The response body as text (string format)
2141
- */
2142
- bodyAsText: string;
1861
+ /** Contains response data for the summarizeForResource operation. */
1862
+ export type PolicyStatesSummarizeForResourceResponse = SummarizeResults;
2143
1863
 
2144
- /**
2145
- * The response body as parsed JSON or XML
2146
- */
2147
- parsedBody: RemediationDeploymentsListResult;
2148
- };
2149
- };
1864
+ /** Optional parameters. */
1865
+ export interface PolicyStatesTriggerSubscriptionEvaluationOptionalParams
1866
+ extends coreClient.OperationOptions {
1867
+ /** Delay to wait until next poll, in milliseconds. */
1868
+ updateIntervalInMs?: number;
1869
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1870
+ resumeFrom?: string;
1871
+ }
2150
1872
 
2151
- /**
2152
- * Contains response data for the listForManagementGroupNext operation.
2153
- */
2154
- export type RemediationsListForManagementGroupNextResponse = RemediationListResult & {
2155
- /**
2156
- * The underlying HTTP response.
2157
- */
2158
- _response: msRest.HttpResponse & {
2159
- /**
2160
- * The response body as text (string format)
2161
- */
2162
- bodyAsText: string;
1873
+ /** Optional parameters. */
1874
+ export interface PolicyStatesTriggerResourceGroupEvaluationOptionalParams
1875
+ extends coreClient.OperationOptions {
1876
+ /** Delay to wait until next poll, in milliseconds. */
1877
+ updateIntervalInMs?: number;
1878
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1879
+ resumeFrom?: string;
1880
+ }
2163
1881
 
2164
- /**
2165
- * The response body as parsed JSON or XML
2166
- */
2167
- parsedBody: RemediationListResult;
2168
- };
2169
- };
1882
+ /** Optional parameters. */
1883
+ export interface PolicyStatesListQueryResultsForPolicySetDefinitionOptionalParams
1884
+ extends coreClient.OperationOptions {
1885
+ /** Parameter group */
1886
+ queryOptions?: QueryOptions;
1887
+ }
2170
1888
 
2171
- /**
2172
- * Contains response data for the listDeploymentsAtSubscriptionNext operation.
2173
- */
2174
- export type RemediationsListDeploymentsAtSubscriptionNextResponse = RemediationDeploymentsListResult & {
2175
- /**
2176
- * The underlying HTTP response.
2177
- */
2178
- _response: msRest.HttpResponse & {
2179
- /**
2180
- * The response body as text (string format)
2181
- */
2182
- bodyAsText: string;
1889
+ /** Contains response data for the listQueryResultsForPolicySetDefinition operation. */
1890
+ export type PolicyStatesListQueryResultsForPolicySetDefinitionResponse = PolicyStatesQueryResults;
2183
1891
 
2184
- /**
2185
- * The response body as parsed JSON or XML
2186
- */
2187
- parsedBody: RemediationDeploymentsListResult;
2188
- };
2189
- };
1892
+ /** Optional parameters. */
1893
+ export interface PolicyStatesSummarizeForPolicySetDefinitionOptionalParams
1894
+ extends coreClient.OperationOptions {
1895
+ /** Parameter group */
1896
+ queryOptions?: QueryOptions;
1897
+ }
2190
1898
 
2191
- /**
2192
- * Contains response data for the listForSubscriptionNext operation.
2193
- */
2194
- export type RemediationsListForSubscriptionNextResponse = RemediationListResult & {
2195
- /**
2196
- * The underlying HTTP response.
2197
- */
2198
- _response: msRest.HttpResponse & {
2199
- /**
2200
- * The response body as text (string format)
2201
- */
2202
- bodyAsText: string;
1899
+ /** Contains response data for the summarizeForPolicySetDefinition operation. */
1900
+ export type PolicyStatesSummarizeForPolicySetDefinitionResponse = SummarizeResults;
2203
1901
 
2204
- /**
2205
- * The response body as parsed JSON or XML
2206
- */
2207
- parsedBody: RemediationListResult;
2208
- };
2209
- };
1902
+ /** Optional parameters. */
1903
+ export interface PolicyStatesListQueryResultsForPolicyDefinitionOptionalParams
1904
+ extends coreClient.OperationOptions {
1905
+ /** Parameter group */
1906
+ queryOptions?: QueryOptions;
1907
+ }
2210
1908
 
2211
- /**
2212
- * Contains response data for the listDeploymentsAtResourceGroupNext operation.
2213
- */
2214
- export type RemediationsListDeploymentsAtResourceGroupNextResponse = RemediationDeploymentsListResult & {
2215
- /**
2216
- * The underlying HTTP response.
2217
- */
2218
- _response: msRest.HttpResponse & {
2219
- /**
2220
- * The response body as text (string format)
2221
- */
2222
- bodyAsText: string;
1909
+ /** Contains response data for the listQueryResultsForPolicyDefinition operation. */
1910
+ export type PolicyStatesListQueryResultsForPolicyDefinitionResponse = PolicyStatesQueryResults;
2223
1911
 
2224
- /**
2225
- * The response body as parsed JSON or XML
2226
- */
2227
- parsedBody: RemediationDeploymentsListResult;
2228
- };
2229
- };
1912
+ /** Optional parameters. */
1913
+ export interface PolicyStatesSummarizeForPolicyDefinitionOptionalParams
1914
+ extends coreClient.OperationOptions {
1915
+ /** Parameter group */
1916
+ queryOptions?: QueryOptions;
1917
+ }
2230
1918
 
2231
- /**
2232
- * Contains response data for the listForResourceGroupNext operation.
2233
- */
2234
- export type RemediationsListForResourceGroupNextResponse = RemediationListResult & {
2235
- /**
2236
- * The underlying HTTP response.
2237
- */
2238
- _response: msRest.HttpResponse & {
2239
- /**
2240
- * The response body as text (string format)
2241
- */
2242
- bodyAsText: string;
1919
+ /** Contains response data for the summarizeForPolicyDefinition operation. */
1920
+ export type PolicyStatesSummarizeForPolicyDefinitionResponse = SummarizeResults;
2243
1921
 
2244
- /**
2245
- * The response body as parsed JSON or XML
2246
- */
2247
- parsedBody: RemediationListResult;
2248
- };
2249
- };
1922
+ /** Optional parameters. */
1923
+ export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentOptionalParams
1924
+ extends coreClient.OperationOptions {
1925
+ /** Parameter group */
1926
+ queryOptions?: QueryOptions;
1927
+ }
2250
1928
 
2251
- /**
2252
- * Contains response data for the listDeploymentsAtResourceNext operation.
2253
- */
2254
- export type RemediationsListDeploymentsAtResourceNextResponse = RemediationDeploymentsListResult & {
2255
- /**
2256
- * The underlying HTTP response.
2257
- */
2258
- _response: msRest.HttpResponse & {
2259
- /**
2260
- * The response body as text (string format)
2261
- */
2262
- bodyAsText: string;
1929
+ /** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation. */
1930
+ export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyStatesQueryResults;
2263
1931
 
2264
- /**
2265
- * The response body as parsed JSON or XML
2266
- */
2267
- parsedBody: RemediationDeploymentsListResult;
2268
- };
2269
- };
1932
+ /** Optional parameters. */
1933
+ export interface PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentOptionalParams
1934
+ extends coreClient.OperationOptions {
1935
+ /** Parameter group */
1936
+ queryOptions?: QueryOptions;
1937
+ }
2270
1938
 
2271
- /**
2272
- * Contains response data for the listForResourceNext operation.
2273
- */
2274
- export type RemediationsListForResourceNextResponse = RemediationListResult & {
2275
- /**
2276
- * The underlying HTTP response.
2277
- */
2278
- _response: msRest.HttpResponse & {
2279
- /**
2280
- * The response body as text (string format)
2281
- */
2282
- bodyAsText: string;
1939
+ /** Contains response data for the summarizeForSubscriptionLevelPolicyAssignment operation. */
1940
+ export type PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse = SummarizeResults;
2283
1941
 
2284
- /**
2285
- * The response body as parsed JSON or XML
2286
- */
2287
- parsedBody: RemediationListResult;
2288
- };
2289
- };
1942
+ /** Optional parameters. */
1943
+ export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentOptionalParams
1944
+ extends coreClient.OperationOptions {
1945
+ /** Parameter group */
1946
+ queryOptions?: QueryOptions;
1947
+ }
2290
1948
 
2291
- /**
2292
- * Contains response data for the listQueryResultsForManagementGroup operation.
2293
- */
2294
- export type PolicyEventsListQueryResultsForManagementGroupResponse = PolicyEventsQueryResults & {
2295
- /**
2296
- * The underlying HTTP response.
2297
- */
2298
- _response: msRest.HttpResponse & {
2299
- /**
2300
- * The response body as text (string format)
2301
- */
2302
- bodyAsText: string;
1949
+ /** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation. */
1950
+ export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyStatesQueryResults;
2303
1951
 
2304
- /**
2305
- * The response body as parsed JSON or XML
2306
- */
2307
- parsedBody: PolicyEventsQueryResults;
2308
- };
2309
- };
1952
+ /** Optional parameters. */
1953
+ export interface PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentOptionalParams
1954
+ extends coreClient.OperationOptions {
1955
+ /** Parameter group */
1956
+ queryOptions?: QueryOptions;
1957
+ }
2310
1958
 
2311
- /**
2312
- * Contains response data for the listQueryResultsForSubscription operation.
2313
- */
2314
- export type PolicyEventsListQueryResultsForSubscriptionResponse = PolicyEventsQueryResults & {
2315
- /**
2316
- * The underlying HTTP response.
2317
- */
2318
- _response: msRest.HttpResponse & {
2319
- /**
2320
- * The response body as text (string format)
2321
- */
2322
- bodyAsText: string;
1959
+ /** Contains response data for the summarizeForResourceGroupLevelPolicyAssignment operation. */
1960
+ export type PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse = SummarizeResults;
2323
1961
 
2324
- /**
2325
- * The response body as parsed JSON or XML
2326
- */
2327
- parsedBody: PolicyEventsQueryResults;
2328
- };
2329
- };
1962
+ /** Optional parameters. */
1963
+ export interface PolicyStatesListQueryResultsForManagementGroupNextOptionalParams
1964
+ extends coreClient.OperationOptions {
1965
+ /** Parameter group */
1966
+ queryOptions?: QueryOptions;
1967
+ }
2330
1968
 
2331
- /**
2332
- * Contains response data for the listQueryResultsForResourceGroup operation.
2333
- */
2334
- export type PolicyEventsListQueryResultsForResourceGroupResponse = PolicyEventsQueryResults & {
2335
- /**
2336
- * The underlying HTTP response.
2337
- */
2338
- _response: msRest.HttpResponse & {
2339
- /**
2340
- * The response body as text (string format)
2341
- */
2342
- bodyAsText: string;
1969
+ /** Contains response data for the listQueryResultsForManagementGroupNext operation. */
1970
+ export type PolicyStatesListQueryResultsForManagementGroupNextResponse = PolicyStatesQueryResults;
2343
1971
 
2344
- /**
2345
- * The response body as parsed JSON or XML
2346
- */
2347
- parsedBody: PolicyEventsQueryResults;
2348
- };
2349
- };
1972
+ /** Optional parameters. */
1973
+ export interface PolicyStatesListQueryResultsForSubscriptionNextOptionalParams
1974
+ extends coreClient.OperationOptions {
1975
+ /** Parameter group */
1976
+ queryOptions?: QueryOptions;
1977
+ }
2350
1978
 
2351
- /**
2352
- * Contains response data for the listQueryResultsForResource operation.
2353
- */
2354
- export type PolicyEventsListQueryResultsForResourceResponse = PolicyEventsQueryResults & {
2355
- /**
2356
- * The underlying HTTP response.
2357
- */
2358
- _response: msRest.HttpResponse & {
2359
- /**
2360
- * The response body as text (string format)
2361
- */
2362
- bodyAsText: string;
1979
+ /** Contains response data for the listQueryResultsForSubscriptionNext operation. */
1980
+ export type PolicyStatesListQueryResultsForSubscriptionNextResponse = PolicyStatesQueryResults;
2363
1981
 
2364
- /**
2365
- * The response body as parsed JSON or XML
2366
- */
2367
- parsedBody: PolicyEventsQueryResults;
2368
- };
2369
- };
1982
+ /** Optional parameters. */
1983
+ export interface PolicyStatesListQueryResultsForResourceGroupNextOptionalParams
1984
+ extends coreClient.OperationOptions {
1985
+ /** Parameter group */
1986
+ queryOptions?: QueryOptions;
1987
+ }
2370
1988
 
2371
- /**
2372
- * Contains response data for the listQueryResultsForPolicySetDefinition operation.
2373
- */
2374
- export type PolicyEventsListQueryResultsForPolicySetDefinitionResponse = PolicyEventsQueryResults & {
2375
- /**
2376
- * The underlying HTTP response.
2377
- */
2378
- _response: msRest.HttpResponse & {
2379
- /**
2380
- * The response body as text (string format)
2381
- */
2382
- bodyAsText: string;
1989
+ /** Contains response data for the listQueryResultsForResourceGroupNext operation. */
1990
+ export type PolicyStatesListQueryResultsForResourceGroupNextResponse = PolicyStatesQueryResults;
2383
1991
 
2384
- /**
2385
- * The response body as parsed JSON or XML
2386
- */
2387
- parsedBody: PolicyEventsQueryResults;
2388
- };
2389
- };
1992
+ /** Optional parameters. */
1993
+ export interface PolicyStatesListQueryResultsForResourceNextOptionalParams
1994
+ extends coreClient.OperationOptions {
1995
+ /** Parameter group */
1996
+ queryOptions?: QueryOptions;
1997
+ }
2390
1998
 
2391
- /**
2392
- * Contains response data for the listQueryResultsForPolicyDefinition operation.
2393
- */
2394
- export type PolicyEventsListQueryResultsForPolicyDefinitionResponse = PolicyEventsQueryResults & {
2395
- /**
2396
- * The underlying HTTP response.
2397
- */
2398
- _response: msRest.HttpResponse & {
2399
- /**
2400
- * The response body as text (string format)
2401
- */
2402
- bodyAsText: string;
1999
+ /** Contains response data for the listQueryResultsForResourceNext operation. */
2000
+ export type PolicyStatesListQueryResultsForResourceNextResponse = PolicyStatesQueryResults;
2403
2001
 
2404
- /**
2405
- * The response body as parsed JSON or XML
2406
- */
2407
- parsedBody: PolicyEventsQueryResults;
2408
- };
2409
- };
2002
+ /** Optional parameters. */
2003
+ export interface PolicyStatesListQueryResultsForPolicySetDefinitionNextOptionalParams
2004
+ extends coreClient.OperationOptions {
2005
+ /** Parameter group */
2006
+ queryOptions?: QueryOptions;
2007
+ }
2410
2008
 
2411
- /**
2412
- * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation.
2413
- */
2414
- export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyEventsQueryResults & {
2415
- /**
2416
- * The underlying HTTP response.
2417
- */
2418
- _response: msRest.HttpResponse & {
2419
- /**
2420
- * The response body as text (string format)
2421
- */
2422
- bodyAsText: string;
2009
+ /** Contains response data for the listQueryResultsForPolicySetDefinitionNext operation. */
2010
+ export type PolicyStatesListQueryResultsForPolicySetDefinitionNextResponse = PolicyStatesQueryResults;
2423
2011
 
2424
- /**
2425
- * The response body as parsed JSON or XML
2426
- */
2427
- parsedBody: PolicyEventsQueryResults;
2428
- };
2429
- };
2012
+ /** Optional parameters. */
2013
+ export interface PolicyStatesListQueryResultsForPolicyDefinitionNextOptionalParams
2014
+ extends coreClient.OperationOptions {
2015
+ /** Parameter group */
2016
+ queryOptions?: QueryOptions;
2017
+ }
2430
2018
 
2431
- /**
2432
- * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation.
2433
- */
2434
- export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyEventsQueryResults & {
2435
- /**
2436
- * The underlying HTTP response.
2437
- */
2438
- _response: msRest.HttpResponse & {
2439
- /**
2440
- * The response body as text (string format)
2441
- */
2442
- bodyAsText: string;
2019
+ /** Contains response data for the listQueryResultsForPolicyDefinitionNext operation. */
2020
+ export type PolicyStatesListQueryResultsForPolicyDefinitionNextResponse = PolicyStatesQueryResults;
2443
2021
 
2444
- /**
2445
- * The response body as parsed JSON or XML
2446
- */
2447
- parsedBody: PolicyEventsQueryResults;
2448
- };
2449
- };
2022
+ /** Optional parameters. */
2023
+ export interface PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextOptionalParams
2024
+ extends coreClient.OperationOptions {
2025
+ /** Parameter group */
2026
+ queryOptions?: QueryOptions;
2027
+ }
2450
2028
 
2451
- /**
2452
- * Contains response data for the getMetadata operation.
2453
- */
2454
- export type PolicyEventsGetMetadataResponse = {
2455
- /**
2456
- * The parsed response body.
2457
- */
2458
- body: string;
2029
+ /** Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext operation. */
2030
+ export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults;
2459
2031
 
2460
- /**
2461
- * The underlying HTTP response.
2462
- */
2463
- _response: msRest.HttpResponse & {
2464
- /**
2465
- * The response body as text (string format)
2466
- */
2467
- bodyAsText: string;
2032
+ /** Optional parameters. */
2033
+ export interface PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextOptionalParams
2034
+ extends coreClient.OperationOptions {
2035
+ /** Parameter group */
2036
+ queryOptions?: QueryOptions;
2037
+ }
2468
2038
 
2469
- /**
2470
- * The response body as parsed JSON or XML
2471
- */
2472
- parsedBody: string;
2473
- };
2474
- };
2039
+ /** Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext operation. */
2040
+ export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults;
2475
2041
 
2476
- /**
2477
- * Contains response data for the listQueryResultsForManagementGroup operation.
2478
- */
2479
- export type PolicyStatesListQueryResultsForManagementGroupResponse = PolicyStatesQueryResults & {
2480
- /**
2481
- * The underlying HTTP response.
2482
- */
2483
- _response: msRest.HttpResponse & {
2484
- /**
2485
- * The response body as text (string format)
2486
- */
2487
- bodyAsText: string;
2042
+ /** Optional parameters. */
2043
+ export interface OperationsListOptionalParams
2044
+ extends coreClient.OperationOptions {}
2488
2045
 
2489
- /**
2490
- * The response body as parsed JSON or XML
2491
- */
2492
- parsedBody: PolicyStatesQueryResults;
2493
- };
2494
- };
2046
+ /** Contains response data for the list operation. */
2047
+ export type OperationsListResponse = OperationsListResults;
2495
2048
 
2496
- /**
2497
- * Contains response data for the summarizeForManagementGroup operation.
2498
- */
2499
- export type PolicyStatesSummarizeForManagementGroupResponse = SummarizeResults & {
2500
- /**
2501
- * The underlying HTTP response.
2502
- */
2503
- _response: msRest.HttpResponse & {
2504
- /**
2505
- * The response body as text (string format)
2506
- */
2507
- bodyAsText: string;
2049
+ /** Optional parameters. */
2050
+ export interface PolicyMetadataGetResourceOptionalParams
2051
+ extends coreClient.OperationOptions {}
2508
2052
 
2509
- /**
2510
- * The response body as parsed JSON or XML
2511
- */
2512
- parsedBody: SummarizeResults;
2513
- };
2514
- };
2053
+ /** Contains response data for the getResource operation. */
2054
+ export type PolicyMetadataGetResourceResponse = PolicyMetadata;
2515
2055
 
2516
- /**
2517
- * Contains response data for the listQueryResultsForSubscription operation.
2518
- */
2519
- export type PolicyStatesListQueryResultsForSubscriptionResponse = PolicyStatesQueryResults & {
2520
- /**
2521
- * The underlying HTTP response.
2522
- */
2523
- _response: msRest.HttpResponse & {
2524
- /**
2525
- * The response body as text (string format)
2526
- */
2527
- bodyAsText: string;
2056
+ /** Optional parameters. */
2057
+ export interface PolicyMetadataListOptionalParams
2058
+ extends coreClient.OperationOptions {
2059
+ /** Parameter group */
2060
+ queryOptions?: QueryOptions;
2061
+ }
2528
2062
 
2529
- /**
2530
- * The response body as parsed JSON or XML
2531
- */
2532
- parsedBody: PolicyStatesQueryResults;
2533
- };
2534
- };
2063
+ /** Contains response data for the list operation. */
2064
+ export type PolicyMetadataListResponse = PolicyMetadataCollection;
2535
2065
 
2536
- /**
2537
- * Contains response data for the summarizeForSubscription operation.
2538
- */
2539
- export type PolicyStatesSummarizeForSubscriptionResponse = SummarizeResults & {
2540
- /**
2541
- * The underlying HTTP response.
2542
- */
2543
- _response: msRest.HttpResponse & {
2544
- /**
2545
- * The response body as text (string format)
2546
- */
2547
- bodyAsText: string;
2066
+ /** Optional parameters. */
2067
+ export interface PolicyMetadataListNextOptionalParams
2068
+ extends coreClient.OperationOptions {
2069
+ /** Parameter group */
2070
+ queryOptions?: QueryOptions;
2071
+ }
2548
2072
 
2549
- /**
2550
- * The response body as parsed JSON or XML
2551
- */
2552
- parsedBody: SummarizeResults;
2553
- };
2554
- };
2073
+ /** Contains response data for the listNext operation. */
2074
+ export type PolicyMetadataListNextResponse = PolicyMetadataCollection;
2555
2075
 
2556
- /**
2557
- * Contains response data for the listQueryResultsForResourceGroup operation.
2558
- */
2559
- export type PolicyStatesListQueryResultsForResourceGroupResponse = PolicyStatesQueryResults & {
2560
- /**
2561
- * The underlying HTTP response.
2562
- */
2563
- _response: msRest.HttpResponse & {
2564
- /**
2565
- * The response body as text (string format)
2566
- */
2567
- bodyAsText: string;
2076
+ /** Optional parameters. */
2077
+ export interface PolicyRestrictionsCheckAtSubscriptionScopeOptionalParams
2078
+ extends coreClient.OperationOptions {}
2568
2079
 
2569
- /**
2570
- * The response body as parsed JSON or XML
2571
- */
2572
- parsedBody: PolicyStatesQueryResults;
2573
- };
2574
- };
2080
+ /** Contains response data for the checkAtSubscriptionScope operation. */
2081
+ export type PolicyRestrictionsCheckAtSubscriptionScopeResponse = CheckRestrictionsResult;
2575
2082
 
2576
- /**
2577
- * Contains response data for the summarizeForResourceGroup operation.
2578
- */
2579
- export type PolicyStatesSummarizeForResourceGroupResponse = SummarizeResults & {
2580
- /**
2581
- * The underlying HTTP response.
2582
- */
2583
- _response: msRest.HttpResponse & {
2584
- /**
2585
- * The response body as text (string format)
2586
- */
2587
- bodyAsText: string;
2083
+ /** Optional parameters. */
2084
+ export interface PolicyRestrictionsCheckAtResourceGroupScopeOptionalParams
2085
+ extends coreClient.OperationOptions {}
2588
2086
 
2589
- /**
2590
- * The response body as parsed JSON or XML
2591
- */
2592
- parsedBody: SummarizeResults;
2593
- };
2594
- };
2087
+ /** Contains response data for the checkAtResourceGroupScope operation. */
2088
+ export type PolicyRestrictionsCheckAtResourceGroupScopeResponse = CheckRestrictionsResult;
2595
2089
 
2596
- /**
2597
- * Contains response data for the listQueryResultsForResource operation.
2598
- */
2599
- export type PolicyStatesListQueryResultsForResourceResponse = PolicyStatesQueryResults & {
2600
- /**
2601
- * The underlying HTTP response.
2602
- */
2603
- _response: msRest.HttpResponse & {
2604
- /**
2605
- * The response body as text (string format)
2606
- */
2607
- bodyAsText: string;
2090
+ /** Optional parameters. */
2091
+ export interface AttestationsListForSubscriptionOptionalParams
2092
+ extends coreClient.OperationOptions {
2093
+ /** Parameter group */
2094
+ queryOptions?: QueryOptions;
2095
+ }
2608
2096
 
2609
- /**
2610
- * The response body as parsed JSON or XML
2611
- */
2612
- parsedBody: PolicyStatesQueryResults;
2613
- };
2614
- };
2097
+ /** Contains response data for the listForSubscription operation. */
2098
+ export type AttestationsListForSubscriptionResponse = AttestationListResult;
2615
2099
 
2616
- /**
2617
- * Contains response data for the summarizeForResource operation.
2618
- */
2619
- export type PolicyStatesSummarizeForResourceResponse = SummarizeResults & {
2620
- /**
2621
- * The underlying HTTP response.
2622
- */
2623
- _response: msRest.HttpResponse & {
2624
- /**
2625
- * The response body as text (string format)
2626
- */
2627
- bodyAsText: string;
2100
+ /** Optional parameters. */
2101
+ export interface AttestationsCreateOrUpdateAtSubscriptionOptionalParams
2102
+ extends coreClient.OperationOptions {
2103
+ /** Delay to wait until next poll, in milliseconds. */
2104
+ updateIntervalInMs?: number;
2105
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2106
+ resumeFrom?: string;
2107
+ }
2628
2108
 
2629
- /**
2630
- * The response body as parsed JSON or XML
2631
- */
2632
- parsedBody: SummarizeResults;
2633
- };
2634
- };
2109
+ /** Contains response data for the createOrUpdateAtSubscription operation. */
2110
+ export type AttestationsCreateOrUpdateAtSubscriptionResponse = Attestation;
2635
2111
 
2636
- /**
2637
- * Contains response data for the listQueryResultsForPolicySetDefinition operation.
2638
- */
2639
- export type PolicyStatesListQueryResultsForPolicySetDefinitionResponse = PolicyStatesQueryResults & {
2640
- /**
2641
- * The underlying HTTP response.
2642
- */
2643
- _response: msRest.HttpResponse & {
2644
- /**
2645
- * The response body as text (string format)
2646
- */
2647
- bodyAsText: string;
2112
+ /** Optional parameters. */
2113
+ export interface AttestationsGetAtSubscriptionOptionalParams
2114
+ extends coreClient.OperationOptions {}
2648
2115
 
2649
- /**
2650
- * The response body as parsed JSON or XML
2651
- */
2652
- parsedBody: PolicyStatesQueryResults;
2653
- };
2654
- };
2116
+ /** Contains response data for the getAtSubscription operation. */
2117
+ export type AttestationsGetAtSubscriptionResponse = Attestation;
2655
2118
 
2656
- /**
2657
- * Contains response data for the summarizeForPolicySetDefinition operation.
2658
- */
2659
- export type PolicyStatesSummarizeForPolicySetDefinitionResponse = SummarizeResults & {
2660
- /**
2661
- * The underlying HTTP response.
2662
- */
2663
- _response: msRest.HttpResponse & {
2664
- /**
2665
- * The response body as text (string format)
2666
- */
2667
- bodyAsText: string;
2119
+ /** Optional parameters. */
2120
+ export interface AttestationsDeleteAtSubscriptionOptionalParams
2121
+ extends coreClient.OperationOptions {}
2668
2122
 
2669
- /**
2670
- * The response body as parsed JSON or XML
2671
- */
2672
- parsedBody: SummarizeResults;
2673
- };
2674
- };
2123
+ /** Optional parameters. */
2124
+ export interface AttestationsListForResourceGroupOptionalParams
2125
+ extends coreClient.OperationOptions {
2126
+ /** Parameter group */
2127
+ queryOptions?: QueryOptions;
2128
+ }
2675
2129
 
2676
- /**
2677
- * Contains response data for the listQueryResultsForPolicyDefinition operation.
2678
- */
2679
- export type PolicyStatesListQueryResultsForPolicyDefinitionResponse = PolicyStatesQueryResults & {
2680
- /**
2681
- * The underlying HTTP response.
2682
- */
2683
- _response: msRest.HttpResponse & {
2684
- /**
2685
- * The response body as text (string format)
2686
- */
2687
- bodyAsText: string;
2130
+ /** Contains response data for the listForResourceGroup operation. */
2131
+ export type AttestationsListForResourceGroupResponse = AttestationListResult;
2688
2132
 
2689
- /**
2690
- * The response body as parsed JSON or XML
2691
- */
2692
- parsedBody: PolicyStatesQueryResults;
2693
- };
2694
- };
2133
+ /** Optional parameters. */
2134
+ export interface AttestationsCreateOrUpdateAtResourceGroupOptionalParams
2135
+ extends coreClient.OperationOptions {
2136
+ /** Delay to wait until next poll, in milliseconds. */
2137
+ updateIntervalInMs?: number;
2138
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2139
+ resumeFrom?: string;
2140
+ }
2695
2141
 
2696
- /**
2697
- * Contains response data for the summarizeForPolicyDefinition operation.
2698
- */
2699
- export type PolicyStatesSummarizeForPolicyDefinitionResponse = SummarizeResults & {
2700
- /**
2701
- * The underlying HTTP response.
2702
- */
2703
- _response: msRest.HttpResponse & {
2704
- /**
2705
- * The response body as text (string format)
2706
- */
2707
- bodyAsText: string;
2142
+ /** Contains response data for the createOrUpdateAtResourceGroup operation. */
2143
+ export type AttestationsCreateOrUpdateAtResourceGroupResponse = Attestation;
2708
2144
 
2709
- /**
2710
- * The response body as parsed JSON or XML
2711
- */
2712
- parsedBody: SummarizeResults;
2713
- };
2714
- };
2145
+ /** Optional parameters. */
2146
+ export interface AttestationsGetAtResourceGroupOptionalParams
2147
+ extends coreClient.OperationOptions {}
2715
2148
 
2716
- /**
2717
- * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignment operation.
2718
- */
2719
- export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentResponse = PolicyStatesQueryResults & {
2720
- /**
2721
- * The underlying HTTP response.
2722
- */
2723
- _response: msRest.HttpResponse & {
2724
- /**
2725
- * The response body as text (string format)
2726
- */
2727
- bodyAsText: string;
2149
+ /** Contains response data for the getAtResourceGroup operation. */
2150
+ export type AttestationsGetAtResourceGroupResponse = Attestation;
2728
2151
 
2729
- /**
2730
- * The response body as parsed JSON or XML
2731
- */
2732
- parsedBody: PolicyStatesQueryResults;
2733
- };
2734
- };
2152
+ /** Optional parameters. */
2153
+ export interface AttestationsDeleteAtResourceGroupOptionalParams
2154
+ extends coreClient.OperationOptions {}
2735
2155
 
2736
- /**
2737
- * Contains response data for the summarizeForSubscriptionLevelPolicyAssignment operation.
2738
- */
2739
- export type PolicyStatesSummarizeForSubscriptionLevelPolicyAssignmentResponse = SummarizeResults & {
2740
- /**
2741
- * The underlying HTTP response.
2742
- */
2743
- _response: msRest.HttpResponse & {
2744
- /**
2745
- * The response body as text (string format)
2746
- */
2747
- bodyAsText: string;
2156
+ /** Optional parameters. */
2157
+ export interface AttestationsListForResourceOptionalParams
2158
+ extends coreClient.OperationOptions {
2159
+ /** Parameter group */
2160
+ queryOptions?: QueryOptions;
2161
+ }
2748
2162
 
2749
- /**
2750
- * The response body as parsed JSON or XML
2751
- */
2752
- parsedBody: SummarizeResults;
2753
- };
2754
- };
2163
+ /** Contains response data for the listForResource operation. */
2164
+ export type AttestationsListForResourceResponse = AttestationListResult;
2755
2165
 
2756
- /**
2757
- * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignment operation.
2758
- */
2759
- export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentResponse = PolicyStatesQueryResults & {
2760
- /**
2761
- * The underlying HTTP response.
2762
- */
2763
- _response: msRest.HttpResponse & {
2764
- /**
2765
- * The response body as text (string format)
2766
- */
2767
- bodyAsText: string;
2166
+ /** Optional parameters. */
2167
+ export interface AttestationsCreateOrUpdateAtResourceOptionalParams
2168
+ extends coreClient.OperationOptions {
2169
+ /** Delay to wait until next poll, in milliseconds. */
2170
+ updateIntervalInMs?: number;
2171
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2172
+ resumeFrom?: string;
2173
+ }
2768
2174
 
2769
- /**
2770
- * The response body as parsed JSON or XML
2771
- */
2772
- parsedBody: PolicyStatesQueryResults;
2773
- };
2774
- };
2175
+ /** Contains response data for the createOrUpdateAtResource operation. */
2176
+ export type AttestationsCreateOrUpdateAtResourceResponse = Attestation;
2775
2177
 
2776
- /**
2777
- * Contains response data for the summarizeForResourceGroupLevelPolicyAssignment operation.
2778
- */
2779
- export type PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse = SummarizeResults & {
2780
- /**
2781
- * The underlying HTTP response.
2782
- */
2783
- _response: msRest.HttpResponse & {
2784
- /**
2785
- * The response body as text (string format)
2786
- */
2787
- bodyAsText: string;
2178
+ /** Optional parameters. */
2179
+ export interface AttestationsGetAtResourceOptionalParams
2180
+ extends coreClient.OperationOptions {}
2788
2181
 
2789
- /**
2790
- * The response body as parsed JSON or XML
2791
- */
2792
- parsedBody: SummarizeResults;
2793
- };
2794
- };
2182
+ /** Contains response data for the getAtResource operation. */
2183
+ export type AttestationsGetAtResourceResponse = Attestation;
2795
2184
 
2796
- /**
2797
- * Contains response data for the list operation.
2798
- */
2799
- export type OperationsListResponse = OperationsListResults & {
2800
- /**
2801
- * The underlying HTTP response.
2802
- */
2803
- _response: msRest.HttpResponse & {
2804
- /**
2805
- * The response body as text (string format)
2806
- */
2807
- bodyAsText: string;
2185
+ /** Optional parameters. */
2186
+ export interface AttestationsDeleteAtResourceOptionalParams
2187
+ extends coreClient.OperationOptions {}
2808
2188
 
2809
- /**
2810
- * The response body as parsed JSON or XML
2811
- */
2812
- parsedBody: OperationsListResults;
2813
- };
2814
- };
2189
+ /** Optional parameters. */
2190
+ export interface AttestationsListForSubscriptionNextOptionalParams
2191
+ extends coreClient.OperationOptions {
2192
+ /** Parameter group */
2193
+ queryOptions?: QueryOptions;
2194
+ }
2815
2195
 
2816
- /**
2817
- * Contains response data for the getResource operation.
2818
- */
2819
- export type PolicyMetadataGetResourceResponse = PolicyMetadata & {
2820
- /**
2821
- * The underlying HTTP response.
2822
- */
2823
- _response: msRest.HttpResponse & {
2824
- /**
2825
- * The response body as text (string format)
2826
- */
2827
- bodyAsText: string;
2196
+ /** Contains response data for the listForSubscriptionNext operation. */
2197
+ export type AttestationsListForSubscriptionNextResponse = AttestationListResult;
2828
2198
 
2829
- /**
2830
- * The response body as parsed JSON or XML
2831
- */
2832
- parsedBody: PolicyMetadata;
2833
- };
2834
- };
2199
+ /** Optional parameters. */
2200
+ export interface AttestationsListForResourceGroupNextOptionalParams
2201
+ extends coreClient.OperationOptions {
2202
+ /** Parameter group */
2203
+ queryOptions?: QueryOptions;
2204
+ }
2835
2205
 
2836
- /**
2837
- * Contains response data for the list operation.
2838
- */
2839
- export type PolicyMetadataListResponse = PolicyMetadataCollection & {
2840
- /**
2841
- * The underlying HTTP response.
2842
- */
2843
- _response: msRest.HttpResponse & {
2844
- /**
2845
- * The response body as text (string format)
2846
- */
2847
- bodyAsText: string;
2206
+ /** Contains response data for the listForResourceGroupNext operation. */
2207
+ export type AttestationsListForResourceGroupNextResponse = AttestationListResult;
2848
2208
 
2849
- /**
2850
- * The response body as parsed JSON or XML
2851
- */
2852
- parsedBody: PolicyMetadataCollection;
2853
- };
2854
- };
2209
+ /** Optional parameters. */
2210
+ export interface AttestationsListForResourceNextOptionalParams
2211
+ extends coreClient.OperationOptions {
2212
+ /** Parameter group */
2213
+ queryOptions?: QueryOptions;
2214
+ }
2855
2215
 
2856
- /**
2857
- * Contains response data for the listNext operation.
2858
- */
2859
- export type PolicyMetadataListNextResponse = PolicyMetadataCollection & {
2860
- /**
2861
- * The underlying HTTP response.
2862
- */
2863
- _response: msRest.HttpResponse & {
2864
- /**
2865
- * The response body as text (string format)
2866
- */
2867
- bodyAsText: string;
2216
+ /** Contains response data for the listForResourceNext operation. */
2217
+ export type AttestationsListForResourceNextResponse = AttestationListResult;
2868
2218
 
2869
- /**
2870
- * The response body as parsed JSON or XML
2871
- */
2872
- parsedBody: PolicyMetadataCollection;
2873
- };
2874
- };
2219
+ /** Optional parameters. */
2220
+ export interface PolicyInsightsClientOptionalParams
2221
+ extends coreClient.ServiceClientOptions {
2222
+ /** server parameter */
2223
+ $host?: string;
2224
+ /** Overrides client endpoint. */
2225
+ endpoint?: string;
2226
+ }