@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,4909 +0,0 @@
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.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmPolicyinsights = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation. All rights reserved.
16
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
17
- this file except in compliance with the License. You may obtain a copy of the
18
- License at http://www.apache.org/licenses/LICENSE-2.0
19
-
20
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
22
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
23
- MERCHANTABLITY OR NON-INFRINGEMENT.
24
-
25
- See the Apache Version 2.0 License for specific language governing permissions
26
- and limitations under the License.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation. All rights reserved.
56
- * Licensed under the MIT License. See License.txt in the project root for license information.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation. All rights reserved.
68
- * Licensed under the MIT License. See License.txt in the project root for license information.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var PolicyDetails = {
76
- serializedName: "PolicyDetails",
77
- type: {
78
- name: "Composite",
79
- className: "PolicyDetails",
80
- modelProperties: {
81
- policyDefinitionId: {
82
- readOnly: true,
83
- serializedName: "policyDefinitionId",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- policyAssignmentId: {
89
- readOnly: true,
90
- serializedName: "policyAssignmentId",
91
- type: {
92
- name: "String"
93
- }
94
- },
95
- policyAssignmentDisplayName: {
96
- readOnly: true,
97
- serializedName: "policyAssignmentDisplayName",
98
- type: {
99
- name: "String"
100
- }
101
- },
102
- policyAssignmentScope: {
103
- readOnly: true,
104
- serializedName: "policyAssignmentScope",
105
- type: {
106
- name: "String"
107
- }
108
- },
109
- policySetDefinitionId: {
110
- readOnly: true,
111
- serializedName: "policySetDefinitionId",
112
- type: {
113
- name: "String"
114
- }
115
- },
116
- policyDefinitionReferenceId: {
117
- readOnly: true,
118
- serializedName: "policyDefinitionReferenceId",
119
- type: {
120
- name: "String"
121
- }
122
- }
123
- }
124
- }
125
- };
126
- var TrackedResourceModificationDetails = {
127
- serializedName: "TrackedResourceModificationDetails",
128
- type: {
129
- name: "Composite",
130
- className: "TrackedResourceModificationDetails",
131
- modelProperties: {
132
- policyDetails: {
133
- readOnly: true,
134
- serializedName: "policyDetails",
135
- type: {
136
- name: "Composite",
137
- className: "PolicyDetails"
138
- }
139
- },
140
- deploymentId: {
141
- readOnly: true,
142
- serializedName: "deploymentId",
143
- type: {
144
- name: "String"
145
- }
146
- },
147
- deploymentTime: {
148
- readOnly: true,
149
- serializedName: "deploymentTime",
150
- type: {
151
- name: "DateTime"
152
- }
153
- }
154
- }
155
- }
156
- };
157
- var PolicyTrackedResource = {
158
- serializedName: "PolicyTrackedResource",
159
- type: {
160
- name: "Composite",
161
- className: "PolicyTrackedResource",
162
- modelProperties: {
163
- trackedResourceId: {
164
- readOnly: true,
165
- serializedName: "trackedResourceId",
166
- type: {
167
- name: "String"
168
- }
169
- },
170
- policyDetails: {
171
- readOnly: true,
172
- serializedName: "policyDetails",
173
- type: {
174
- name: "Composite",
175
- className: "PolicyDetails"
176
- }
177
- },
178
- createdBy: {
179
- readOnly: true,
180
- serializedName: "createdBy",
181
- type: {
182
- name: "Composite",
183
- className: "TrackedResourceModificationDetails"
184
- }
185
- },
186
- lastModifiedBy: {
187
- readOnly: true,
188
- serializedName: "lastModifiedBy",
189
- type: {
190
- name: "Composite",
191
- className: "TrackedResourceModificationDetails"
192
- }
193
- },
194
- lastUpdateUtc: {
195
- readOnly: true,
196
- serializedName: "lastUpdateUtc",
197
- type: {
198
- name: "DateTime"
199
- }
200
- }
201
- }
202
- }
203
- };
204
- var QueryFailureError = {
205
- serializedName: "QueryFailure_error",
206
- type: {
207
- name: "Composite",
208
- className: "QueryFailureError",
209
- modelProperties: {
210
- code: {
211
- readOnly: true,
212
- serializedName: "code",
213
- type: {
214
- name: "String"
215
- }
216
- },
217
- message: {
218
- readOnly: true,
219
- serializedName: "message",
220
- type: {
221
- name: "String"
222
- }
223
- }
224
- }
225
- }
226
- };
227
- var QueryFailure = {
228
- serializedName: "QueryFailure",
229
- type: {
230
- name: "Composite",
231
- className: "QueryFailure",
232
- modelProperties: {
233
- error: {
234
- serializedName: "error",
235
- type: {
236
- name: "Composite",
237
- className: "QueryFailureError"
238
- }
239
- }
240
- }
241
- }
242
- };
243
- var RemediationFilters = {
244
- serializedName: "RemediationFilters",
245
- type: {
246
- name: "Composite",
247
- className: "RemediationFilters",
248
- modelProperties: {
249
- locations: {
250
- serializedName: "locations",
251
- type: {
252
- name: "Sequence",
253
- element: {
254
- type: {
255
- name: "String"
256
- }
257
- }
258
- }
259
- }
260
- }
261
- }
262
- };
263
- var RemediationDeploymentSummary = {
264
- serializedName: "RemediationDeploymentSummary",
265
- type: {
266
- name: "Composite",
267
- className: "RemediationDeploymentSummary",
268
- modelProperties: {
269
- totalDeployments: {
270
- readOnly: true,
271
- serializedName: "totalDeployments",
272
- type: {
273
- name: "Number"
274
- }
275
- },
276
- successfulDeployments: {
277
- readOnly: true,
278
- serializedName: "successfulDeployments",
279
- type: {
280
- name: "Number"
281
- }
282
- },
283
- failedDeployments: {
284
- readOnly: true,
285
- serializedName: "failedDeployments",
286
- type: {
287
- name: "Number"
288
- }
289
- }
290
- }
291
- }
292
- };
293
- var Remediation = {
294
- serializedName: "Remediation",
295
- type: {
296
- name: "Composite",
297
- className: "Remediation",
298
- modelProperties: {
299
- policyAssignmentId: {
300
- serializedName: "properties.policyAssignmentId",
301
- type: {
302
- name: "String"
303
- }
304
- },
305
- policyDefinitionReferenceId: {
306
- serializedName: "properties.policyDefinitionReferenceId",
307
- type: {
308
- name: "String"
309
- }
310
- },
311
- resourceDiscoveryMode: {
312
- serializedName: "properties.resourceDiscoveryMode",
313
- type: {
314
- name: "String"
315
- }
316
- },
317
- provisioningState: {
318
- readOnly: true,
319
- serializedName: "properties.provisioningState",
320
- type: {
321
- name: "String"
322
- }
323
- },
324
- createdOn: {
325
- readOnly: true,
326
- serializedName: "properties.createdOn",
327
- type: {
328
- name: "DateTime"
329
- }
330
- },
331
- lastUpdatedOn: {
332
- readOnly: true,
333
- serializedName: "properties.lastUpdatedOn",
334
- type: {
335
- name: "DateTime"
336
- }
337
- },
338
- filters: {
339
- serializedName: "properties.filters",
340
- type: {
341
- name: "Composite",
342
- className: "RemediationFilters"
343
- }
344
- },
345
- deploymentStatus: {
346
- readOnly: true,
347
- serializedName: "properties.deploymentStatus",
348
- type: {
349
- name: "Composite",
350
- className: "RemediationDeploymentSummary"
351
- }
352
- },
353
- id: {
354
- readOnly: true,
355
- serializedName: "id",
356
- type: {
357
- name: "String"
358
- }
359
- },
360
- type: {
361
- readOnly: true,
362
- serializedName: "type",
363
- type: {
364
- name: "String"
365
- }
366
- },
367
- name: {
368
- readOnly: true,
369
- serializedName: "name",
370
- type: {
371
- name: "String"
372
- }
373
- }
374
- }
375
- }
376
- };
377
- var TypedErrorInfo = {
378
- serializedName: "TypedErrorInfo",
379
- type: {
380
- name: "Composite",
381
- className: "TypedErrorInfo",
382
- modelProperties: {
383
- type: {
384
- readOnly: true,
385
- serializedName: "type",
386
- type: {
387
- name: "String"
388
- }
389
- },
390
- info: {
391
- readOnly: true,
392
- serializedName: "info",
393
- type: {
394
- name: "Object"
395
- }
396
- }
397
- }
398
- }
399
- };
400
- var ErrorDefinition = {
401
- serializedName: "ErrorDefinition",
402
- type: {
403
- name: "Composite",
404
- className: "ErrorDefinition",
405
- modelProperties: {
406
- code: {
407
- readOnly: true,
408
- serializedName: "code",
409
- type: {
410
- name: "String"
411
- }
412
- },
413
- message: {
414
- readOnly: true,
415
- serializedName: "message",
416
- type: {
417
- name: "String"
418
- }
419
- },
420
- target: {
421
- readOnly: true,
422
- serializedName: "target",
423
- type: {
424
- name: "String"
425
- }
426
- },
427
- details: {
428
- readOnly: true,
429
- serializedName: "details",
430
- type: {
431
- name: "Sequence",
432
- element: {
433
- type: {
434
- name: "Composite",
435
- className: "ErrorDefinition"
436
- }
437
- }
438
- }
439
- },
440
- additionalInfo: {
441
- readOnly: true,
442
- serializedName: "additionalInfo",
443
- type: {
444
- name: "Sequence",
445
- element: {
446
- type: {
447
- name: "Composite",
448
- className: "TypedErrorInfo"
449
- }
450
- }
451
- }
452
- }
453
- }
454
- }
455
- };
456
- var RemediationDeployment = {
457
- serializedName: "RemediationDeployment",
458
- type: {
459
- name: "Composite",
460
- className: "RemediationDeployment",
461
- modelProperties: {
462
- remediatedResourceId: {
463
- readOnly: true,
464
- serializedName: "remediatedResourceId",
465
- type: {
466
- name: "String"
467
- }
468
- },
469
- deploymentId: {
470
- readOnly: true,
471
- serializedName: "deploymentId",
472
- type: {
473
- name: "String"
474
- }
475
- },
476
- status: {
477
- readOnly: true,
478
- serializedName: "status",
479
- type: {
480
- name: "String"
481
- }
482
- },
483
- resourceLocation: {
484
- readOnly: true,
485
- serializedName: "resourceLocation",
486
- type: {
487
- name: "String"
488
- }
489
- },
490
- error: {
491
- readOnly: true,
492
- serializedName: "error",
493
- type: {
494
- name: "Composite",
495
- className: "ErrorDefinition"
496
- }
497
- },
498
- createdOn: {
499
- readOnly: true,
500
- serializedName: "createdOn",
501
- type: {
502
- name: "DateTime"
503
- }
504
- },
505
- lastUpdatedOn: {
506
- readOnly: true,
507
- serializedName: "lastUpdatedOn",
508
- type: {
509
- name: "DateTime"
510
- }
511
- }
512
- }
513
- }
514
- };
515
- var ErrorResponse = {
516
- serializedName: "ErrorResponse",
517
- type: {
518
- name: "Composite",
519
- className: "ErrorResponse",
520
- modelProperties: {
521
- error: {
522
- serializedName: "error",
523
- type: {
524
- name: "Composite",
525
- className: "ErrorDefinition"
526
- }
527
- }
528
- }
529
- }
530
- };
531
- var PolicyEvent = {
532
- serializedName: "PolicyEvent",
533
- type: {
534
- name: "Composite",
535
- className: "PolicyEvent",
536
- modelProperties: {
537
- odataid: {
538
- serializedName: "@odata\\.id",
539
- type: {
540
- name: "String"
541
- }
542
- },
543
- odatacontext: {
544
- serializedName: "@odata\\.context",
545
- type: {
546
- name: "String"
547
- }
548
- },
549
- timestamp: {
550
- serializedName: "timestamp",
551
- type: {
552
- name: "DateTime"
553
- }
554
- },
555
- resourceId: {
556
- serializedName: "resourceId",
557
- type: {
558
- name: "String"
559
- }
560
- },
561
- policyAssignmentId: {
562
- serializedName: "policyAssignmentId",
563
- type: {
564
- name: "String"
565
- }
566
- },
567
- policyDefinitionId: {
568
- serializedName: "policyDefinitionId",
569
- type: {
570
- name: "String"
571
- }
572
- },
573
- effectiveParameters: {
574
- serializedName: "effectiveParameters",
575
- type: {
576
- name: "String"
577
- }
578
- },
579
- isCompliant: {
580
- serializedName: "isCompliant",
581
- type: {
582
- name: "Boolean"
583
- }
584
- },
585
- subscriptionId: {
586
- serializedName: "subscriptionId",
587
- type: {
588
- name: "String"
589
- }
590
- },
591
- resourceType: {
592
- serializedName: "resourceType",
593
- type: {
594
- name: "String"
595
- }
596
- },
597
- resourceLocation: {
598
- serializedName: "resourceLocation",
599
- type: {
600
- name: "String"
601
- }
602
- },
603
- resourceGroup: {
604
- serializedName: "resourceGroup",
605
- type: {
606
- name: "String"
607
- }
608
- },
609
- resourceTags: {
610
- serializedName: "resourceTags",
611
- type: {
612
- name: "String"
613
- }
614
- },
615
- policyAssignmentName: {
616
- serializedName: "policyAssignmentName",
617
- type: {
618
- name: "String"
619
- }
620
- },
621
- policyAssignmentOwner: {
622
- serializedName: "policyAssignmentOwner",
623
- type: {
624
- name: "String"
625
- }
626
- },
627
- policyAssignmentParameters: {
628
- serializedName: "policyAssignmentParameters",
629
- type: {
630
- name: "String"
631
- }
632
- },
633
- policyAssignmentScope: {
634
- serializedName: "policyAssignmentScope",
635
- type: {
636
- name: "String"
637
- }
638
- },
639
- policyDefinitionName: {
640
- serializedName: "policyDefinitionName",
641
- type: {
642
- name: "String"
643
- }
644
- },
645
- policyDefinitionAction: {
646
- serializedName: "policyDefinitionAction",
647
- type: {
648
- name: "String"
649
- }
650
- },
651
- policyDefinitionCategory: {
652
- serializedName: "policyDefinitionCategory",
653
- type: {
654
- name: "String"
655
- }
656
- },
657
- policySetDefinitionId: {
658
- serializedName: "policySetDefinitionId",
659
- type: {
660
- name: "String"
661
- }
662
- },
663
- policySetDefinitionName: {
664
- serializedName: "policySetDefinitionName",
665
- type: {
666
- name: "String"
667
- }
668
- },
669
- policySetDefinitionOwner: {
670
- serializedName: "policySetDefinitionOwner",
671
- type: {
672
- name: "String"
673
- }
674
- },
675
- policySetDefinitionCategory: {
676
- serializedName: "policySetDefinitionCategory",
677
- type: {
678
- name: "String"
679
- }
680
- },
681
- policySetDefinitionParameters: {
682
- serializedName: "policySetDefinitionParameters",
683
- type: {
684
- name: "String"
685
- }
686
- },
687
- managementGroupIds: {
688
- serializedName: "managementGroupIds",
689
- type: {
690
- name: "String"
691
- }
692
- },
693
- policyDefinitionReferenceId: {
694
- serializedName: "policyDefinitionReferenceId",
695
- type: {
696
- name: "String"
697
- }
698
- },
699
- tenantId: {
700
- serializedName: "tenantId",
701
- type: {
702
- name: "String"
703
- }
704
- },
705
- principalOid: {
706
- serializedName: "principalOid",
707
- type: {
708
- name: "String"
709
- }
710
- }
711
- },
712
- additionalProperties: {
713
- type: {
714
- name: "Object"
715
- }
716
- }
717
- }
718
- };
719
- var PolicyEventsQueryResults = {
720
- serializedName: "PolicyEventsQueryResults",
721
- type: {
722
- name: "Composite",
723
- className: "PolicyEventsQueryResults",
724
- modelProperties: {
725
- odatacontext: {
726
- serializedName: "@odata\\.context",
727
- type: {
728
- name: "String"
729
- }
730
- },
731
- odatacount: {
732
- serializedName: "@odata\\.count",
733
- constraints: {
734
- InclusiveMinimum: 0
735
- },
736
- type: {
737
- name: "Number"
738
- }
739
- },
740
- value: {
741
- serializedName: "value",
742
- type: {
743
- name: "Sequence",
744
- element: {
745
- type: {
746
- name: "Composite",
747
- className: "PolicyEvent",
748
- additionalProperties: {
749
- type: {
750
- name: "Object"
751
- }
752
- }
753
- }
754
- }
755
- }
756
- }
757
- }
758
- }
759
- };
760
- var ExpressionEvaluationDetails = {
761
- serializedName: "ExpressionEvaluationDetails",
762
- type: {
763
- name: "Composite",
764
- className: "ExpressionEvaluationDetails",
765
- modelProperties: {
766
- result: {
767
- serializedName: "result",
768
- type: {
769
- name: "String"
770
- }
771
- },
772
- expression: {
773
- serializedName: "expression",
774
- type: {
775
- name: "String"
776
- }
777
- },
778
- path: {
779
- serializedName: "path",
780
- type: {
781
- name: "String"
782
- }
783
- },
784
- expressionValue: {
785
- serializedName: "expressionValue",
786
- type: {
787
- name: "Object"
788
- }
789
- },
790
- targetValue: {
791
- serializedName: "targetValue",
792
- type: {
793
- name: "Object"
794
- }
795
- },
796
- operator: {
797
- serializedName: "operator",
798
- type: {
799
- name: "String"
800
- }
801
- }
802
- }
803
- }
804
- };
805
- var IfNotExistsEvaluationDetails = {
806
- serializedName: "IfNotExistsEvaluationDetails",
807
- type: {
808
- name: "Composite",
809
- className: "IfNotExistsEvaluationDetails",
810
- modelProperties: {
811
- resourceId: {
812
- serializedName: "resourceId",
813
- type: {
814
- name: "String"
815
- }
816
- },
817
- totalResources: {
818
- serializedName: "totalResources",
819
- type: {
820
- name: "Number"
821
- }
822
- }
823
- }
824
- }
825
- };
826
- var PolicyEvaluationDetails = {
827
- serializedName: "PolicyEvaluationDetails",
828
- type: {
829
- name: "Composite",
830
- className: "PolicyEvaluationDetails",
831
- modelProperties: {
832
- evaluatedExpressions: {
833
- serializedName: "evaluatedExpressions",
834
- type: {
835
- name: "Sequence",
836
- element: {
837
- type: {
838
- name: "Composite",
839
- className: "ExpressionEvaluationDetails"
840
- }
841
- }
842
- }
843
- },
844
- ifNotExistsDetails: {
845
- serializedName: "ifNotExistsDetails",
846
- type: {
847
- name: "Composite",
848
- className: "IfNotExistsEvaluationDetails"
849
- }
850
- }
851
- }
852
- }
853
- };
854
- var PolicyState = {
855
- serializedName: "PolicyState",
856
- type: {
857
- name: "Composite",
858
- className: "PolicyState",
859
- modelProperties: {
860
- odataid: {
861
- serializedName: "@odata\\.id",
862
- type: {
863
- name: "String"
864
- }
865
- },
866
- odatacontext: {
867
- serializedName: "@odata\\.context",
868
- type: {
869
- name: "String"
870
- }
871
- },
872
- timestamp: {
873
- serializedName: "timestamp",
874
- type: {
875
- name: "DateTime"
876
- }
877
- },
878
- resourceId: {
879
- serializedName: "resourceId",
880
- type: {
881
- name: "String"
882
- }
883
- },
884
- policyAssignmentId: {
885
- serializedName: "policyAssignmentId",
886
- type: {
887
- name: "String"
888
- }
889
- },
890
- policyDefinitionId: {
891
- serializedName: "policyDefinitionId",
892
- type: {
893
- name: "String"
894
- }
895
- },
896
- effectiveParameters: {
897
- serializedName: "effectiveParameters",
898
- type: {
899
- name: "String"
900
- }
901
- },
902
- isCompliant: {
903
- serializedName: "isCompliant",
904
- type: {
905
- name: "Boolean"
906
- }
907
- },
908
- subscriptionId: {
909
- serializedName: "subscriptionId",
910
- type: {
911
- name: "String"
912
- }
913
- },
914
- resourceType: {
915
- serializedName: "resourceType",
916
- type: {
917
- name: "String"
918
- }
919
- },
920
- resourceLocation: {
921
- serializedName: "resourceLocation",
922
- type: {
923
- name: "String"
924
- }
925
- },
926
- resourceGroup: {
927
- serializedName: "resourceGroup",
928
- type: {
929
- name: "String"
930
- }
931
- },
932
- resourceTags: {
933
- serializedName: "resourceTags",
934
- type: {
935
- name: "String"
936
- }
937
- },
938
- policyAssignmentName: {
939
- serializedName: "policyAssignmentName",
940
- type: {
941
- name: "String"
942
- }
943
- },
944
- policyAssignmentOwner: {
945
- serializedName: "policyAssignmentOwner",
946
- type: {
947
- name: "String"
948
- }
949
- },
950
- policyAssignmentParameters: {
951
- serializedName: "policyAssignmentParameters",
952
- type: {
953
- name: "String"
954
- }
955
- },
956
- policyAssignmentScope: {
957
- serializedName: "policyAssignmentScope",
958
- type: {
959
- name: "String"
960
- }
961
- },
962
- policyDefinitionName: {
963
- serializedName: "policyDefinitionName",
964
- type: {
965
- name: "String"
966
- }
967
- },
968
- policyDefinitionAction: {
969
- serializedName: "policyDefinitionAction",
970
- type: {
971
- name: "String"
972
- }
973
- },
974
- policyDefinitionCategory: {
975
- serializedName: "policyDefinitionCategory",
976
- type: {
977
- name: "String"
978
- }
979
- },
980
- policySetDefinitionId: {
981
- serializedName: "policySetDefinitionId",
982
- type: {
983
- name: "String"
984
- }
985
- },
986
- policySetDefinitionName: {
987
- serializedName: "policySetDefinitionName",
988
- type: {
989
- name: "String"
990
- }
991
- },
992
- policySetDefinitionOwner: {
993
- serializedName: "policySetDefinitionOwner",
994
- type: {
995
- name: "String"
996
- }
997
- },
998
- policySetDefinitionCategory: {
999
- serializedName: "policySetDefinitionCategory",
1000
- type: {
1001
- name: "String"
1002
- }
1003
- },
1004
- policySetDefinitionParameters: {
1005
- serializedName: "policySetDefinitionParameters",
1006
- type: {
1007
- name: "String"
1008
- }
1009
- },
1010
- managementGroupIds: {
1011
- serializedName: "managementGroupIds",
1012
- type: {
1013
- name: "String"
1014
- }
1015
- },
1016
- policyDefinitionReferenceId: {
1017
- serializedName: "policyDefinitionReferenceId",
1018
- type: {
1019
- name: "String"
1020
- }
1021
- },
1022
- complianceState: {
1023
- serializedName: "complianceState",
1024
- type: {
1025
- name: "String"
1026
- }
1027
- },
1028
- policyEvaluationDetails: {
1029
- serializedName: "policyEvaluationDetails",
1030
- type: {
1031
- name: "Composite",
1032
- className: "PolicyEvaluationDetails"
1033
- }
1034
- },
1035
- policyDefinitionGroupNames: {
1036
- serializedName: "policyDefinitionGroupNames",
1037
- type: {
1038
- name: "Sequence",
1039
- element: {
1040
- type: {
1041
- name: "String"
1042
- }
1043
- }
1044
- }
1045
- },
1046
- policyDefinitionVersion: {
1047
- readOnly: true,
1048
- serializedName: "policyDefinitionVersion",
1049
- type: {
1050
- name: "String"
1051
- }
1052
- },
1053
- policySetDefinitionVersion: {
1054
- readOnly: true,
1055
- serializedName: "policySetDefinitionVersion",
1056
- type: {
1057
- name: "String"
1058
- }
1059
- },
1060
- policyAssignmentVersion: {
1061
- readOnly: true,
1062
- serializedName: "policyAssignmentVersion",
1063
- type: {
1064
- name: "String"
1065
- }
1066
- }
1067
- },
1068
- additionalProperties: {
1069
- type: {
1070
- name: "Object"
1071
- }
1072
- }
1073
- }
1074
- };
1075
- var PolicyStatesQueryResults = {
1076
- serializedName: "PolicyStatesQueryResults",
1077
- type: {
1078
- name: "Composite",
1079
- className: "PolicyStatesQueryResults",
1080
- modelProperties: {
1081
- odatacontext: {
1082
- serializedName: "@odata\\.context",
1083
- type: {
1084
- name: "String"
1085
- }
1086
- },
1087
- odatacount: {
1088
- serializedName: "@odata\\.count",
1089
- constraints: {
1090
- InclusiveMinimum: 0
1091
- },
1092
- type: {
1093
- name: "Number"
1094
- }
1095
- },
1096
- value: {
1097
- serializedName: "value",
1098
- type: {
1099
- name: "Sequence",
1100
- element: {
1101
- type: {
1102
- name: "Composite",
1103
- className: "PolicyState",
1104
- additionalProperties: {
1105
- type: {
1106
- name: "Object"
1107
- }
1108
- }
1109
- }
1110
- }
1111
- }
1112
- }
1113
- }
1114
- }
1115
- };
1116
- var ComplianceDetail = {
1117
- serializedName: "ComplianceDetail",
1118
- type: {
1119
- name: "Composite",
1120
- className: "ComplianceDetail",
1121
- modelProperties: {
1122
- complianceState: {
1123
- serializedName: "complianceState",
1124
- type: {
1125
- name: "String"
1126
- }
1127
- },
1128
- count: {
1129
- serializedName: "count",
1130
- type: {
1131
- name: "Number"
1132
- }
1133
- }
1134
- }
1135
- }
1136
- };
1137
- var SummaryResults = {
1138
- serializedName: "SummaryResults",
1139
- type: {
1140
- name: "Composite",
1141
- className: "SummaryResults",
1142
- modelProperties: {
1143
- queryResultsUri: {
1144
- serializedName: "queryResultsUri",
1145
- type: {
1146
- name: "String"
1147
- }
1148
- },
1149
- nonCompliantResources: {
1150
- serializedName: "nonCompliantResources",
1151
- constraints: {
1152
- InclusiveMinimum: 0
1153
- },
1154
- type: {
1155
- name: "Number"
1156
- }
1157
- },
1158
- nonCompliantPolicies: {
1159
- serializedName: "nonCompliantPolicies",
1160
- constraints: {
1161
- InclusiveMinimum: 0
1162
- },
1163
- type: {
1164
- name: "Number"
1165
- }
1166
- },
1167
- resourceDetails: {
1168
- serializedName: "resourceDetails",
1169
- type: {
1170
- name: "Sequence",
1171
- element: {
1172
- type: {
1173
- name: "Composite",
1174
- className: "ComplianceDetail"
1175
- }
1176
- }
1177
- }
1178
- },
1179
- policyDetails: {
1180
- serializedName: "policyDetails",
1181
- type: {
1182
- name: "Sequence",
1183
- element: {
1184
- type: {
1185
- name: "Composite",
1186
- className: "ComplianceDetail"
1187
- }
1188
- }
1189
- }
1190
- },
1191
- policyGroupDetails: {
1192
- serializedName: "policyGroupDetails",
1193
- type: {
1194
- name: "Sequence",
1195
- element: {
1196
- type: {
1197
- name: "Composite",
1198
- className: "ComplianceDetail"
1199
- }
1200
- }
1201
- }
1202
- }
1203
- }
1204
- }
1205
- };
1206
- var PolicyDefinitionSummary = {
1207
- serializedName: "PolicyDefinitionSummary",
1208
- type: {
1209
- name: "Composite",
1210
- className: "PolicyDefinitionSummary",
1211
- modelProperties: {
1212
- policyDefinitionId: {
1213
- serializedName: "policyDefinitionId",
1214
- type: {
1215
- name: "String"
1216
- }
1217
- },
1218
- policyDefinitionReferenceId: {
1219
- serializedName: "policyDefinitionReferenceId",
1220
- type: {
1221
- name: "String"
1222
- }
1223
- },
1224
- policyDefinitionGroupNames: {
1225
- serializedName: "policyDefinitionGroupNames",
1226
- type: {
1227
- name: "Sequence",
1228
- element: {
1229
- type: {
1230
- name: "String"
1231
- }
1232
- }
1233
- }
1234
- },
1235
- effect: {
1236
- serializedName: "effect",
1237
- type: {
1238
- name: "String"
1239
- }
1240
- },
1241
- results: {
1242
- serializedName: "results",
1243
- type: {
1244
- name: "Composite",
1245
- className: "SummaryResults"
1246
- }
1247
- }
1248
- }
1249
- }
1250
- };
1251
- var PolicyGroupSummary = {
1252
- serializedName: "PolicyGroupSummary",
1253
- type: {
1254
- name: "Composite",
1255
- className: "PolicyGroupSummary",
1256
- modelProperties: {
1257
- policyGroupName: {
1258
- serializedName: "policyGroupName",
1259
- type: {
1260
- name: "String"
1261
- }
1262
- },
1263
- results: {
1264
- serializedName: "results",
1265
- type: {
1266
- name: "Composite",
1267
- className: "SummaryResults"
1268
- }
1269
- }
1270
- }
1271
- }
1272
- };
1273
- var PolicyAssignmentSummary = {
1274
- serializedName: "PolicyAssignmentSummary",
1275
- type: {
1276
- name: "Composite",
1277
- className: "PolicyAssignmentSummary",
1278
- modelProperties: {
1279
- policyAssignmentId: {
1280
- serializedName: "policyAssignmentId",
1281
- type: {
1282
- name: "String"
1283
- }
1284
- },
1285
- policySetDefinitionId: {
1286
- serializedName: "policySetDefinitionId",
1287
- type: {
1288
- name: "String"
1289
- }
1290
- },
1291
- results: {
1292
- serializedName: "results",
1293
- type: {
1294
- name: "Composite",
1295
- className: "SummaryResults"
1296
- }
1297
- },
1298
- policyDefinitions: {
1299
- serializedName: "policyDefinitions",
1300
- type: {
1301
- name: "Sequence",
1302
- element: {
1303
- type: {
1304
- name: "Composite",
1305
- className: "PolicyDefinitionSummary"
1306
- }
1307
- }
1308
- }
1309
- },
1310
- policyGroups: {
1311
- serializedName: "policyGroups",
1312
- type: {
1313
- name: "Sequence",
1314
- element: {
1315
- type: {
1316
- name: "Composite",
1317
- className: "PolicyGroupSummary"
1318
- }
1319
- }
1320
- }
1321
- }
1322
- }
1323
- }
1324
- };
1325
- var Summary = {
1326
- serializedName: "Summary",
1327
- type: {
1328
- name: "Composite",
1329
- className: "Summary",
1330
- modelProperties: {
1331
- odataid: {
1332
- serializedName: "@odata\\.id",
1333
- type: {
1334
- name: "String"
1335
- }
1336
- },
1337
- odatacontext: {
1338
- serializedName: "@odata\\.context",
1339
- type: {
1340
- name: "String"
1341
- }
1342
- },
1343
- results: {
1344
- serializedName: "results",
1345
- type: {
1346
- name: "Composite",
1347
- className: "SummaryResults"
1348
- }
1349
- },
1350
- policyAssignments: {
1351
- serializedName: "policyAssignments",
1352
- type: {
1353
- name: "Sequence",
1354
- element: {
1355
- type: {
1356
- name: "Composite",
1357
- className: "PolicyAssignmentSummary"
1358
- }
1359
- }
1360
- }
1361
- }
1362
- }
1363
- }
1364
- };
1365
- var SummarizeResults = {
1366
- serializedName: "SummarizeResults",
1367
- type: {
1368
- name: "Composite",
1369
- className: "SummarizeResults",
1370
- modelProperties: {
1371
- odatacontext: {
1372
- serializedName: "@odata\\.context",
1373
- type: {
1374
- name: "String"
1375
- }
1376
- },
1377
- odatacount: {
1378
- serializedName: "@odata\\.count",
1379
- constraints: {
1380
- InclusiveMaximum: 1,
1381
- InclusiveMinimum: 1
1382
- },
1383
- type: {
1384
- name: "Number"
1385
- }
1386
- },
1387
- value: {
1388
- serializedName: "value",
1389
- type: {
1390
- name: "Sequence",
1391
- element: {
1392
- type: {
1393
- name: "Composite",
1394
- className: "Summary"
1395
- }
1396
- }
1397
- }
1398
- }
1399
- }
1400
- }
1401
- };
1402
- var OperationDisplay = {
1403
- serializedName: "Operation_display",
1404
- type: {
1405
- name: "Composite",
1406
- className: "OperationDisplay",
1407
- modelProperties: {
1408
- provider: {
1409
- serializedName: "provider",
1410
- type: {
1411
- name: "String"
1412
- }
1413
- },
1414
- resource: {
1415
- serializedName: "resource",
1416
- type: {
1417
- name: "String"
1418
- }
1419
- },
1420
- operation: {
1421
- serializedName: "operation",
1422
- type: {
1423
- name: "String"
1424
- }
1425
- },
1426
- description: {
1427
- serializedName: "description",
1428
- type: {
1429
- name: "String"
1430
- }
1431
- }
1432
- }
1433
- }
1434
- };
1435
- var Operation = {
1436
- serializedName: "Operation",
1437
- type: {
1438
- name: "Composite",
1439
- className: "Operation",
1440
- modelProperties: {
1441
- name: {
1442
- serializedName: "name",
1443
- type: {
1444
- name: "String"
1445
- }
1446
- },
1447
- display: {
1448
- serializedName: "display",
1449
- type: {
1450
- name: "Composite",
1451
- className: "OperationDisplay"
1452
- }
1453
- }
1454
- }
1455
- }
1456
- };
1457
- var OperationsListResults = {
1458
- serializedName: "OperationsListResults",
1459
- type: {
1460
- name: "Composite",
1461
- className: "OperationsListResults",
1462
- modelProperties: {
1463
- odatacount: {
1464
- serializedName: "@odata\\.count",
1465
- constraints: {
1466
- InclusiveMinimum: 1
1467
- },
1468
- type: {
1469
- name: "Number"
1470
- }
1471
- },
1472
- value: {
1473
- serializedName: "value",
1474
- type: {
1475
- name: "Sequence",
1476
- element: {
1477
- type: {
1478
- name: "Composite",
1479
- className: "Operation"
1480
- }
1481
- }
1482
- }
1483
- }
1484
- }
1485
- }
1486
- };
1487
- var PolicyMetadata = {
1488
- serializedName: "PolicyMetadata",
1489
- type: {
1490
- name: "Composite",
1491
- className: "PolicyMetadata",
1492
- modelProperties: {
1493
- metadataId: {
1494
- readOnly: true,
1495
- serializedName: "properties.metadataId",
1496
- type: {
1497
- name: "String"
1498
- }
1499
- },
1500
- category: {
1501
- readOnly: true,
1502
- serializedName: "properties.category",
1503
- type: {
1504
- name: "String"
1505
- }
1506
- },
1507
- title: {
1508
- readOnly: true,
1509
- serializedName: "properties.title",
1510
- type: {
1511
- name: "String"
1512
- }
1513
- },
1514
- owner: {
1515
- readOnly: true,
1516
- serializedName: "properties.owner",
1517
- type: {
1518
- name: "String"
1519
- }
1520
- },
1521
- additionalContentUrl: {
1522
- readOnly: true,
1523
- serializedName: "properties.additionalContentUrl",
1524
- type: {
1525
- name: "String"
1526
- }
1527
- },
1528
- metadata: {
1529
- readOnly: true,
1530
- serializedName: "properties.metadata",
1531
- type: {
1532
- name: "Object"
1533
- }
1534
- },
1535
- description: {
1536
- readOnly: true,
1537
- serializedName: "properties.description",
1538
- type: {
1539
- name: "String"
1540
- }
1541
- },
1542
- requirements: {
1543
- readOnly: true,
1544
- serializedName: "properties.requirements",
1545
- type: {
1546
- name: "String"
1547
- }
1548
- },
1549
- id: {
1550
- readOnly: true,
1551
- serializedName: "id",
1552
- type: {
1553
- name: "String"
1554
- }
1555
- },
1556
- type: {
1557
- readOnly: true,
1558
- serializedName: "type",
1559
- type: {
1560
- name: "String"
1561
- }
1562
- },
1563
- name: {
1564
- readOnly: true,
1565
- serializedName: "name",
1566
- type: {
1567
- name: "String"
1568
- }
1569
- }
1570
- }
1571
- }
1572
- };
1573
- var SlimPolicyMetadata = {
1574
- serializedName: "SlimPolicyMetadata",
1575
- type: {
1576
- name: "Composite",
1577
- className: "SlimPolicyMetadata",
1578
- modelProperties: {
1579
- metadataId: {
1580
- readOnly: true,
1581
- serializedName: "properties.metadataId",
1582
- type: {
1583
- name: "String"
1584
- }
1585
- },
1586
- category: {
1587
- readOnly: true,
1588
- serializedName: "properties.category",
1589
- type: {
1590
- name: "String"
1591
- }
1592
- },
1593
- title: {
1594
- readOnly: true,
1595
- serializedName: "properties.title",
1596
- type: {
1597
- name: "String"
1598
- }
1599
- },
1600
- owner: {
1601
- readOnly: true,
1602
- serializedName: "properties.owner",
1603
- type: {
1604
- name: "String"
1605
- }
1606
- },
1607
- additionalContentUrl: {
1608
- readOnly: true,
1609
- serializedName: "properties.additionalContentUrl",
1610
- type: {
1611
- name: "String"
1612
- }
1613
- },
1614
- metadata: {
1615
- readOnly: true,
1616
- serializedName: "properties.metadata",
1617
- type: {
1618
- name: "Object"
1619
- }
1620
- },
1621
- id: {
1622
- readOnly: true,
1623
- serializedName: "id",
1624
- type: {
1625
- name: "String"
1626
- }
1627
- },
1628
- type: {
1629
- readOnly: true,
1630
- serializedName: "type",
1631
- type: {
1632
- name: "String"
1633
- }
1634
- },
1635
- name: {
1636
- readOnly: true,
1637
- serializedName: "name",
1638
- type: {
1639
- name: "String"
1640
- }
1641
- }
1642
- }
1643
- }
1644
- };
1645
- var QueryOptions = {
1646
- type: {
1647
- name: "Composite",
1648
- className: "QueryOptions",
1649
- modelProperties: {
1650
- top: {
1651
- type: {
1652
- name: "Number"
1653
- }
1654
- },
1655
- filter: {
1656
- type: {
1657
- name: "String"
1658
- }
1659
- },
1660
- orderBy: {
1661
- type: {
1662
- name: "String"
1663
- }
1664
- },
1665
- select: {
1666
- type: {
1667
- name: "String"
1668
- }
1669
- },
1670
- from: {
1671
- type: {
1672
- name: "DateTime"
1673
- }
1674
- },
1675
- to: {
1676
- type: {
1677
- name: "DateTime"
1678
- }
1679
- },
1680
- apply: {
1681
- type: {
1682
- name: "String"
1683
- }
1684
- },
1685
- expand: {
1686
- type: {
1687
- name: "String"
1688
- }
1689
- }
1690
- }
1691
- }
1692
- };
1693
- var PolicyTrackedResourcesQueryResults = {
1694
- serializedName: "PolicyTrackedResourcesQueryResults",
1695
- type: {
1696
- name: "Composite",
1697
- className: "PolicyTrackedResourcesQueryResults",
1698
- modelProperties: {
1699
- value: {
1700
- readOnly: true,
1701
- serializedName: "",
1702
- type: {
1703
- name: "Sequence",
1704
- element: {
1705
- type: {
1706
- name: "Composite",
1707
- className: "PolicyTrackedResource"
1708
- }
1709
- }
1710
- }
1711
- },
1712
- nextLink: {
1713
- readOnly: true,
1714
- serializedName: "nextLink",
1715
- type: {
1716
- name: "String"
1717
- }
1718
- }
1719
- }
1720
- }
1721
- };
1722
- var RemediationDeploymentsListResult = {
1723
- serializedName: "RemediationDeploymentsListResult",
1724
- type: {
1725
- name: "Composite",
1726
- className: "RemediationDeploymentsListResult",
1727
- modelProperties: {
1728
- value: {
1729
- readOnly: true,
1730
- serializedName: "",
1731
- type: {
1732
- name: "Sequence",
1733
- element: {
1734
- type: {
1735
- name: "Composite",
1736
- className: "RemediationDeployment"
1737
- }
1738
- }
1739
- }
1740
- },
1741
- nextLink: {
1742
- readOnly: true,
1743
- serializedName: "nextLink",
1744
- type: {
1745
- name: "String"
1746
- }
1747
- }
1748
- }
1749
- }
1750
- };
1751
- var RemediationListResult = {
1752
- serializedName: "RemediationListResult",
1753
- type: {
1754
- name: "Composite",
1755
- className: "RemediationListResult",
1756
- modelProperties: {
1757
- value: {
1758
- readOnly: true,
1759
- serializedName: "",
1760
- type: {
1761
- name: "Sequence",
1762
- element: {
1763
- type: {
1764
- name: "Composite",
1765
- className: "Remediation"
1766
- }
1767
- }
1768
- }
1769
- },
1770
- nextLink: {
1771
- readOnly: true,
1772
- serializedName: "nextLink",
1773
- type: {
1774
- name: "String"
1775
- }
1776
- }
1777
- }
1778
- }
1779
- };
1780
- var PolicyMetadataCollection = {
1781
- serializedName: "PolicyMetadataCollection",
1782
- type: {
1783
- name: "Composite",
1784
- className: "PolicyMetadataCollection",
1785
- modelProperties: {
1786
- value: {
1787
- readOnly: true,
1788
- serializedName: "",
1789
- type: {
1790
- name: "Sequence",
1791
- element: {
1792
- type: {
1793
- name: "Composite",
1794
- className: "SlimPolicyMetadata"
1795
- }
1796
- }
1797
- }
1798
- },
1799
- nextLink: {
1800
- readOnly: true,
1801
- serializedName: "nextLink",
1802
- type: {
1803
- name: "String"
1804
- }
1805
- }
1806
- }
1807
- }
1808
- };
1809
-
1810
- var mappers = /*#__PURE__*/Object.freeze({
1811
- __proto__: null,
1812
- CloudError: CloudError,
1813
- BaseResource: BaseResource,
1814
- PolicyDetails: PolicyDetails,
1815
- TrackedResourceModificationDetails: TrackedResourceModificationDetails,
1816
- PolicyTrackedResource: PolicyTrackedResource,
1817
- QueryFailureError: QueryFailureError,
1818
- QueryFailure: QueryFailure,
1819
- RemediationFilters: RemediationFilters,
1820
- RemediationDeploymentSummary: RemediationDeploymentSummary,
1821
- Remediation: Remediation,
1822
- TypedErrorInfo: TypedErrorInfo,
1823
- ErrorDefinition: ErrorDefinition,
1824
- RemediationDeployment: RemediationDeployment,
1825
- ErrorResponse: ErrorResponse,
1826
- PolicyEvent: PolicyEvent,
1827
- PolicyEventsQueryResults: PolicyEventsQueryResults,
1828
- ExpressionEvaluationDetails: ExpressionEvaluationDetails,
1829
- IfNotExistsEvaluationDetails: IfNotExistsEvaluationDetails,
1830
- PolicyEvaluationDetails: PolicyEvaluationDetails,
1831
- PolicyState: PolicyState,
1832
- PolicyStatesQueryResults: PolicyStatesQueryResults,
1833
- ComplianceDetail: ComplianceDetail,
1834
- SummaryResults: SummaryResults,
1835
- PolicyDefinitionSummary: PolicyDefinitionSummary,
1836
- PolicyGroupSummary: PolicyGroupSummary,
1837
- PolicyAssignmentSummary: PolicyAssignmentSummary,
1838
- Summary: Summary,
1839
- SummarizeResults: SummarizeResults,
1840
- OperationDisplay: OperationDisplay,
1841
- Operation: Operation,
1842
- OperationsListResults: OperationsListResults,
1843
- PolicyMetadata: PolicyMetadata,
1844
- SlimPolicyMetadata: SlimPolicyMetadata,
1845
- QueryOptions: QueryOptions,
1846
- PolicyTrackedResourcesQueryResults: PolicyTrackedResourcesQueryResults,
1847
- RemediationDeploymentsListResult: RemediationDeploymentsListResult,
1848
- RemediationListResult: RemediationListResult,
1849
- PolicyMetadataCollection: PolicyMetadataCollection
1850
- });
1851
-
1852
- /*
1853
- * Copyright (c) Microsoft Corporation. All rights reserved.
1854
- * Licensed under the MIT License. See License.txt in the project root for license information.
1855
- *
1856
- * Code generated by Microsoft (R) AutoRest Code Generator.
1857
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1858
- */
1859
-
1860
- var Mappers = /*#__PURE__*/Object.freeze({
1861
- __proto__: null,
1862
- PolicyDetails: PolicyDetails,
1863
- PolicyTrackedResource: PolicyTrackedResource,
1864
- PolicyTrackedResourcesQueryResults: PolicyTrackedResourcesQueryResults,
1865
- QueryFailure: QueryFailure,
1866
- QueryFailureError: QueryFailureError,
1867
- TrackedResourceModificationDetails: TrackedResourceModificationDetails
1868
- });
1869
-
1870
- /*
1871
- * Copyright (c) Microsoft Corporation. All rights reserved.
1872
- * Licensed under the MIT License. See License.txt in the project root for
1873
- * license information.
1874
- *
1875
- * Code generated by Microsoft (R) AutoRest Code Generator.
1876
- * Changes may cause incorrect behavior and will be lost if the code is
1877
- * regenerated.
1878
- */
1879
- var acceptLanguage = {
1880
- parameterPath: "acceptLanguage",
1881
- mapper: {
1882
- serializedName: "accept-language",
1883
- defaultValue: 'en-US',
1884
- type: {
1885
- name: "String"
1886
- }
1887
- }
1888
- };
1889
- var apiVersion0 = {
1890
- parameterPath: "apiVersion",
1891
- mapper: {
1892
- required: true,
1893
- isConstant: true,
1894
- serializedName: "api-version",
1895
- defaultValue: '2018-07-01-preview',
1896
- type: {
1897
- name: "String"
1898
- }
1899
- }
1900
- };
1901
- var apiVersion1 = {
1902
- parameterPath: "apiVersion",
1903
- mapper: {
1904
- required: true,
1905
- isConstant: true,
1906
- serializedName: "api-version",
1907
- defaultValue: '2019-07-01',
1908
- type: {
1909
- name: "String"
1910
- }
1911
- }
1912
- };
1913
- var apiVersion2 = {
1914
- parameterPath: "apiVersion",
1915
- mapper: {
1916
- required: true,
1917
- isConstant: true,
1918
- serializedName: "api-version",
1919
- defaultValue: '2018-04-04',
1920
- type: {
1921
- name: "String"
1922
- }
1923
- }
1924
- };
1925
- var apiVersion3 = {
1926
- parameterPath: "apiVersion",
1927
- mapper: {
1928
- required: true,
1929
- isConstant: true,
1930
- serializedName: "api-version",
1931
- defaultValue: '2019-10-01',
1932
- type: {
1933
- name: "String"
1934
- }
1935
- }
1936
- };
1937
- var apply = {
1938
- parameterPath: [
1939
- "options",
1940
- "queryOptions",
1941
- "apply"
1942
- ],
1943
- mapper: {
1944
- serializedName: "$apply",
1945
- type: {
1946
- name: "String"
1947
- }
1948
- }
1949
- };
1950
- var authorizationNamespace = {
1951
- parameterPath: "authorizationNamespace",
1952
- mapper: {
1953
- required: true,
1954
- isConstant: true,
1955
- serializedName: "authorizationNamespace",
1956
- defaultValue: 'Microsoft.Authorization',
1957
- type: {
1958
- name: "String"
1959
- }
1960
- }
1961
- };
1962
- var expand = {
1963
- parameterPath: [
1964
- "options",
1965
- "queryOptions",
1966
- "expand"
1967
- ],
1968
- mapper: {
1969
- serializedName: "$expand",
1970
- type: {
1971
- name: "String"
1972
- }
1973
- }
1974
- };
1975
- var filter = {
1976
- parameterPath: [
1977
- "options",
1978
- "queryOptions",
1979
- "filter"
1980
- ],
1981
- mapper: {
1982
- serializedName: "$filter",
1983
- type: {
1984
- name: "String"
1985
- }
1986
- }
1987
- };
1988
- var from = {
1989
- parameterPath: [
1990
- "options",
1991
- "queryOptions",
1992
- "from"
1993
- ],
1994
- mapper: {
1995
- serializedName: "$from",
1996
- type: {
1997
- name: "DateTime"
1998
- }
1999
- }
2000
- };
2001
- var managementGroupId = {
2002
- parameterPath: "managementGroupId",
2003
- mapper: {
2004
- required: true,
2005
- serializedName: "managementGroupId",
2006
- type: {
2007
- name: "String"
2008
- }
2009
- }
2010
- };
2011
- var managementGroupName = {
2012
- parameterPath: "managementGroupName",
2013
- mapper: {
2014
- required: true,
2015
- serializedName: "managementGroupName",
2016
- type: {
2017
- name: "String"
2018
- }
2019
- }
2020
- };
2021
- var managementGroupsNamespace = {
2022
- parameterPath: "managementGroupsNamespace",
2023
- mapper: {
2024
- required: true,
2025
- isConstant: true,
2026
- serializedName: "managementGroupsNamespace",
2027
- defaultValue: 'Microsoft.Management',
2028
- type: {
2029
- name: "String"
2030
- }
2031
- }
2032
- };
2033
- var nextPageLink = {
2034
- parameterPath: "nextPageLink",
2035
- mapper: {
2036
- required: true,
2037
- serializedName: "nextLink",
2038
- type: {
2039
- name: "String"
2040
- }
2041
- },
2042
- skipEncoding: true
2043
- };
2044
- var orderBy = {
2045
- parameterPath: [
2046
- "options",
2047
- "queryOptions",
2048
- "orderBy"
2049
- ],
2050
- mapper: {
2051
- serializedName: "$orderby",
2052
- type: {
2053
- name: "String"
2054
- }
2055
- }
2056
- };
2057
- var policyAssignmentName = {
2058
- parameterPath: "policyAssignmentName",
2059
- mapper: {
2060
- required: true,
2061
- serializedName: "policyAssignmentName",
2062
- type: {
2063
- name: "String"
2064
- }
2065
- }
2066
- };
2067
- var policyDefinitionName = {
2068
- parameterPath: "policyDefinitionName",
2069
- mapper: {
2070
- required: true,
2071
- serializedName: "policyDefinitionName",
2072
- type: {
2073
- name: "String"
2074
- }
2075
- }
2076
- };
2077
- var policyEventsResource = {
2078
- parameterPath: "policyEventsResource",
2079
- mapper: {
2080
- required: true,
2081
- isConstant: true,
2082
- serializedName: "policyEventsResource",
2083
- defaultValue: 'default',
2084
- type: {
2085
- name: "String"
2086
- }
2087
- }
2088
- };
2089
- var policySetDefinitionName = {
2090
- parameterPath: "policySetDefinitionName",
2091
- mapper: {
2092
- required: true,
2093
- serializedName: "policySetDefinitionName",
2094
- type: {
2095
- name: "String"
2096
- }
2097
- }
2098
- };
2099
- var policyStatesResource = {
2100
- parameterPath: "policyStatesResource",
2101
- mapper: {
2102
- required: true,
2103
- serializedName: "policyStatesResource",
2104
- type: {
2105
- name: "String"
2106
- }
2107
- }
2108
- };
2109
- var policyStatesSummaryResource = {
2110
- parameterPath: "policyStatesSummaryResource",
2111
- mapper: {
2112
- required: true,
2113
- isConstant: true,
2114
- serializedName: "policyStatesSummaryResource",
2115
- defaultValue: 'latest',
2116
- type: {
2117
- name: "String"
2118
- }
2119
- }
2120
- };
2121
- var policyTrackedResourcesResource = {
2122
- parameterPath: "policyTrackedResourcesResource",
2123
- mapper: {
2124
- required: true,
2125
- isConstant: true,
2126
- serializedName: "policyTrackedResourcesResource",
2127
- defaultValue: 'default',
2128
- type: {
2129
- name: "String"
2130
- }
2131
- }
2132
- };
2133
- var remediationName = {
2134
- parameterPath: "remediationName",
2135
- mapper: {
2136
- required: true,
2137
- serializedName: "remediationName",
2138
- type: {
2139
- name: "String"
2140
- }
2141
- }
2142
- };
2143
- var resourceGroupName = {
2144
- parameterPath: "resourceGroupName",
2145
- mapper: {
2146
- required: true,
2147
- serializedName: "resourceGroupName",
2148
- type: {
2149
- name: "String"
2150
- }
2151
- }
2152
- };
2153
- var resourceId = {
2154
- parameterPath: "resourceId",
2155
- mapper: {
2156
- required: true,
2157
- serializedName: "resourceId",
2158
- type: {
2159
- name: "String"
2160
- }
2161
- },
2162
- skipEncoding: true
2163
- };
2164
- var resourceName = {
2165
- parameterPath: "resourceName",
2166
- mapper: {
2167
- required: true,
2168
- serializedName: "resourceName",
2169
- type: {
2170
- name: "String"
2171
- }
2172
- },
2173
- skipEncoding: true
2174
- };
2175
- var scope = {
2176
- parameterPath: "scope",
2177
- mapper: {
2178
- required: true,
2179
- serializedName: "scope",
2180
- type: {
2181
- name: "String"
2182
- }
2183
- },
2184
- skipEncoding: true
2185
- };
2186
- var select = {
2187
- parameterPath: [
2188
- "options",
2189
- "queryOptions",
2190
- "select"
2191
- ],
2192
- mapper: {
2193
- serializedName: "$select",
2194
- type: {
2195
- name: "String"
2196
- }
2197
- }
2198
- };
2199
- var subscriptionId = {
2200
- parameterPath: "subscriptionId",
2201
- mapper: {
2202
- required: true,
2203
- serializedName: "subscriptionId",
2204
- type: {
2205
- name: "String"
2206
- }
2207
- }
2208
- };
2209
- var to = {
2210
- parameterPath: [
2211
- "options",
2212
- "queryOptions",
2213
- "to"
2214
- ],
2215
- mapper: {
2216
- serializedName: "$to",
2217
- type: {
2218
- name: "DateTime"
2219
- }
2220
- }
2221
- };
2222
- var top = {
2223
- parameterPath: [
2224
- "options",
2225
- "queryOptions",
2226
- "top"
2227
- ],
2228
- mapper: {
2229
- serializedName: "$top",
2230
- constraints: {
2231
- InclusiveMinimum: 0
2232
- },
2233
- type: {
2234
- name: "Number"
2235
- }
2236
- }
2237
- };
2238
-
2239
- /*
2240
- * Copyright (c) Microsoft Corporation. All rights reserved.
2241
- * Licensed under the MIT License. See License.txt in the project root for
2242
- * license information.
2243
- *
2244
- * Code generated by Microsoft (R) AutoRest Code Generator.
2245
- * Changes may cause incorrect behavior and will be lost if the code is
2246
- * regenerated.
2247
- */
2248
- /** Class representing a PolicyTrackedResources. */
2249
- var PolicyTrackedResources = /** @class */ (function () {
2250
- /**
2251
- * Create a PolicyTrackedResources.
2252
- * @param {PolicyInsightsClientContext} client Reference to the service client.
2253
- */
2254
- function PolicyTrackedResources(client) {
2255
- this.client = client;
2256
- }
2257
- PolicyTrackedResources.prototype.listQueryResultsForManagementGroup = function (managementGroupName, options, callback) {
2258
- return this.client.sendOperationRequest({
2259
- managementGroupName: managementGroupName,
2260
- options: options
2261
- }, listQueryResultsForManagementGroupOperationSpec, callback);
2262
- };
2263
- PolicyTrackedResources.prototype.listQueryResultsForSubscription = function (subscriptionId, options, callback) {
2264
- return this.client.sendOperationRequest({
2265
- subscriptionId: subscriptionId,
2266
- options: options
2267
- }, listQueryResultsForSubscriptionOperationSpec, callback);
2268
- };
2269
- PolicyTrackedResources.prototype.listQueryResultsForResourceGroup = function (resourceGroupName, subscriptionId, options, callback) {
2270
- return this.client.sendOperationRequest({
2271
- resourceGroupName: resourceGroupName,
2272
- subscriptionId: subscriptionId,
2273
- options: options
2274
- }, listQueryResultsForResourceGroupOperationSpec, callback);
2275
- };
2276
- PolicyTrackedResources.prototype.listQueryResultsForResource = function (resourceId, options, callback) {
2277
- return this.client.sendOperationRequest({
2278
- resourceId: resourceId,
2279
- options: options
2280
- }, listQueryResultsForResourceOperationSpec, callback);
2281
- };
2282
- PolicyTrackedResources.prototype.listQueryResultsForManagementGroupNext = function (nextPageLink, options, callback) {
2283
- return this.client.sendOperationRequest({
2284
- nextPageLink: nextPageLink,
2285
- options: options
2286
- }, listQueryResultsForManagementGroupNextOperationSpec, callback);
2287
- };
2288
- PolicyTrackedResources.prototype.listQueryResultsForSubscriptionNext = function (nextPageLink, options, callback) {
2289
- return this.client.sendOperationRequest({
2290
- nextPageLink: nextPageLink,
2291
- options: options
2292
- }, listQueryResultsForSubscriptionNextOperationSpec, callback);
2293
- };
2294
- PolicyTrackedResources.prototype.listQueryResultsForResourceGroupNext = function (nextPageLink, options, callback) {
2295
- return this.client.sendOperationRequest({
2296
- nextPageLink: nextPageLink,
2297
- options: options
2298
- }, listQueryResultsForResourceGroupNextOperationSpec, callback);
2299
- };
2300
- PolicyTrackedResources.prototype.listQueryResultsForResourceNext = function (nextPageLink, options, callback) {
2301
- return this.client.sendOperationRequest({
2302
- nextPageLink: nextPageLink,
2303
- options: options
2304
- }, listQueryResultsForResourceNextOperationSpec, callback);
2305
- };
2306
- return PolicyTrackedResources;
2307
- }());
2308
- // Operation Specifications
2309
- var serializer = new msRest.Serializer(Mappers);
2310
- var listQueryResultsForManagementGroupOperationSpec = {
2311
- httpMethod: "POST",
2312
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults",
2313
- urlParameters: [
2314
- managementGroupsNamespace,
2315
- managementGroupName,
2316
- policyTrackedResourcesResource
2317
- ],
2318
- queryParameters: [
2319
- apiVersion0,
2320
- top,
2321
- filter
2322
- ],
2323
- headerParameters: [
2324
- acceptLanguage
2325
- ],
2326
- responses: {
2327
- 200: {
2328
- bodyMapper: PolicyTrackedResourcesQueryResults
2329
- },
2330
- default: {
2331
- bodyMapper: QueryFailure
2332
- }
2333
- },
2334
- serializer: serializer
2335
- };
2336
- var listQueryResultsForSubscriptionOperationSpec = {
2337
- httpMethod: "POST",
2338
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults",
2339
- urlParameters: [
2340
- policyTrackedResourcesResource,
2341
- subscriptionId
2342
- ],
2343
- queryParameters: [
2344
- apiVersion0,
2345
- top,
2346
- filter
2347
- ],
2348
- headerParameters: [
2349
- acceptLanguage
2350
- ],
2351
- responses: {
2352
- 200: {
2353
- bodyMapper: PolicyTrackedResourcesQueryResults
2354
- },
2355
- default: {
2356
- bodyMapper: QueryFailure
2357
- }
2358
- },
2359
- serializer: serializer
2360
- };
2361
- var listQueryResultsForResourceGroupOperationSpec = {
2362
- httpMethod: "POST",
2363
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults",
2364
- urlParameters: [
2365
- resourceGroupName,
2366
- policyTrackedResourcesResource,
2367
- subscriptionId
2368
- ],
2369
- queryParameters: [
2370
- apiVersion0,
2371
- top,
2372
- filter
2373
- ],
2374
- headerParameters: [
2375
- acceptLanguage
2376
- ],
2377
- responses: {
2378
- 200: {
2379
- bodyMapper: PolicyTrackedResourcesQueryResults
2380
- },
2381
- default: {
2382
- bodyMapper: QueryFailure
2383
- }
2384
- },
2385
- serializer: serializer
2386
- };
2387
- var listQueryResultsForResourceOperationSpec = {
2388
- httpMethod: "POST",
2389
- path: "{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults",
2390
- urlParameters: [
2391
- resourceId,
2392
- policyTrackedResourcesResource
2393
- ],
2394
- queryParameters: [
2395
- apiVersion0,
2396
- top,
2397
- filter
2398
- ],
2399
- headerParameters: [
2400
- acceptLanguage
2401
- ],
2402
- responses: {
2403
- 200: {
2404
- bodyMapper: PolicyTrackedResourcesQueryResults
2405
- },
2406
- default: {
2407
- bodyMapper: QueryFailure
2408
- }
2409
- },
2410
- serializer: serializer
2411
- };
2412
- var listQueryResultsForManagementGroupNextOperationSpec = {
2413
- httpMethod: "POST",
2414
- baseUrl: "https://management.azure.com",
2415
- path: "{nextLink}",
2416
- urlParameters: [
2417
- nextPageLink
2418
- ],
2419
- headerParameters: [
2420
- acceptLanguage
2421
- ],
2422
- responses: {
2423
- 200: {
2424
- bodyMapper: PolicyTrackedResourcesQueryResults
2425
- },
2426
- default: {
2427
- bodyMapper: QueryFailure
2428
- }
2429
- },
2430
- serializer: serializer
2431
- };
2432
- var listQueryResultsForSubscriptionNextOperationSpec = {
2433
- httpMethod: "POST",
2434
- baseUrl: "https://management.azure.com",
2435
- path: "{nextLink}",
2436
- urlParameters: [
2437
- nextPageLink
2438
- ],
2439
- headerParameters: [
2440
- acceptLanguage
2441
- ],
2442
- responses: {
2443
- 200: {
2444
- bodyMapper: PolicyTrackedResourcesQueryResults
2445
- },
2446
- default: {
2447
- bodyMapper: QueryFailure
2448
- }
2449
- },
2450
- serializer: serializer
2451
- };
2452
- var listQueryResultsForResourceGroupNextOperationSpec = {
2453
- httpMethod: "POST",
2454
- baseUrl: "https://management.azure.com",
2455
- path: "{nextLink}",
2456
- urlParameters: [
2457
- nextPageLink
2458
- ],
2459
- headerParameters: [
2460
- acceptLanguage
2461
- ],
2462
- responses: {
2463
- 200: {
2464
- bodyMapper: PolicyTrackedResourcesQueryResults
2465
- },
2466
- default: {
2467
- bodyMapper: QueryFailure
2468
- }
2469
- },
2470
- serializer: serializer
2471
- };
2472
- var listQueryResultsForResourceNextOperationSpec = {
2473
- httpMethod: "POST",
2474
- baseUrl: "https://management.azure.com",
2475
- path: "{nextLink}",
2476
- urlParameters: [
2477
- nextPageLink
2478
- ],
2479
- headerParameters: [
2480
- acceptLanguage
2481
- ],
2482
- responses: {
2483
- 200: {
2484
- bodyMapper: PolicyTrackedResourcesQueryResults
2485
- },
2486
- default: {
2487
- bodyMapper: QueryFailure
2488
- }
2489
- },
2490
- serializer: serializer
2491
- };
2492
-
2493
- /*
2494
- * Copyright (c) Microsoft Corporation. All rights reserved.
2495
- * Licensed under the MIT License. See License.txt in the project root for license information.
2496
- *
2497
- * Code generated by Microsoft (R) AutoRest Code Generator.
2498
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2499
- */
2500
-
2501
- var Mappers$1 = /*#__PURE__*/Object.freeze({
2502
- __proto__: null,
2503
- BaseResource: BaseResource,
2504
- ErrorDefinition: ErrorDefinition,
2505
- ErrorResponse: ErrorResponse,
2506
- Remediation: Remediation,
2507
- RemediationDeployment: RemediationDeployment,
2508
- RemediationDeploymentsListResult: RemediationDeploymentsListResult,
2509
- RemediationDeploymentSummary: RemediationDeploymentSummary,
2510
- RemediationFilters: RemediationFilters,
2511
- RemediationListResult: RemediationListResult,
2512
- TypedErrorInfo: TypedErrorInfo
2513
- });
2514
-
2515
- /*
2516
- * Copyright (c) Microsoft Corporation. All rights reserved.
2517
- * Licensed under the MIT License. See License.txt in the project root for
2518
- * license information.
2519
- *
2520
- * Code generated by Microsoft (R) AutoRest Code Generator.
2521
- * Changes may cause incorrect behavior and will be lost if the code is
2522
- * regenerated.
2523
- */
2524
- /** Class representing a Remediations. */
2525
- var Remediations = /** @class */ (function () {
2526
- /**
2527
- * Create a Remediations.
2528
- * @param {PolicyInsightsClientContext} client Reference to the service client.
2529
- */
2530
- function Remediations(client) {
2531
- this.client = client;
2532
- }
2533
- Remediations.prototype.listDeploymentsAtManagementGroup = function (managementGroupId, remediationName, options, callback) {
2534
- return this.client.sendOperationRequest({
2535
- managementGroupId: managementGroupId,
2536
- remediationName: remediationName,
2537
- options: options
2538
- }, listDeploymentsAtManagementGroupOperationSpec, callback);
2539
- };
2540
- Remediations.prototype.cancelAtManagementGroup = function (managementGroupId, remediationName, options, callback) {
2541
- return this.client.sendOperationRequest({
2542
- managementGroupId: managementGroupId,
2543
- remediationName: remediationName,
2544
- options: options
2545
- }, cancelAtManagementGroupOperationSpec, callback);
2546
- };
2547
- Remediations.prototype.listForManagementGroup = function (managementGroupId, options, callback) {
2548
- return this.client.sendOperationRequest({
2549
- managementGroupId: managementGroupId,
2550
- options: options
2551
- }, listForManagementGroupOperationSpec, callback);
2552
- };
2553
- Remediations.prototype.createOrUpdateAtManagementGroup = function (managementGroupId, remediationName, parameters, options, callback) {
2554
- return this.client.sendOperationRequest({
2555
- managementGroupId: managementGroupId,
2556
- remediationName: remediationName,
2557
- parameters: parameters,
2558
- options: options
2559
- }, createOrUpdateAtManagementGroupOperationSpec, callback);
2560
- };
2561
- Remediations.prototype.getAtManagementGroup = function (managementGroupId, remediationName, options, callback) {
2562
- return this.client.sendOperationRequest({
2563
- managementGroupId: managementGroupId,
2564
- remediationName: remediationName,
2565
- options: options
2566
- }, getAtManagementGroupOperationSpec, callback);
2567
- };
2568
- Remediations.prototype.deleteAtManagementGroup = function (managementGroupId, remediationName, options, callback) {
2569
- return this.client.sendOperationRequest({
2570
- managementGroupId: managementGroupId,
2571
- remediationName: remediationName,
2572
- options: options
2573
- }, deleteAtManagementGroupOperationSpec, callback);
2574
- };
2575
- Remediations.prototype.listDeploymentsAtSubscription = function (subscriptionId, remediationName, options, callback) {
2576
- return this.client.sendOperationRequest({
2577
- subscriptionId: subscriptionId,
2578
- remediationName: remediationName,
2579
- options: options
2580
- }, listDeploymentsAtSubscriptionOperationSpec, callback);
2581
- };
2582
- Remediations.prototype.cancelAtSubscription = function (subscriptionId, remediationName, options, callback) {
2583
- return this.client.sendOperationRequest({
2584
- subscriptionId: subscriptionId,
2585
- remediationName: remediationName,
2586
- options: options
2587
- }, cancelAtSubscriptionOperationSpec, callback);
2588
- };
2589
- Remediations.prototype.listForSubscription = function (subscriptionId, options, callback) {
2590
- return this.client.sendOperationRequest({
2591
- subscriptionId: subscriptionId,
2592
- options: options
2593
- }, listForSubscriptionOperationSpec, callback);
2594
- };
2595
- Remediations.prototype.createOrUpdateAtSubscription = function (subscriptionId, remediationName, parameters, options, callback) {
2596
- return this.client.sendOperationRequest({
2597
- subscriptionId: subscriptionId,
2598
- remediationName: remediationName,
2599
- parameters: parameters,
2600
- options: options
2601
- }, createOrUpdateAtSubscriptionOperationSpec, callback);
2602
- };
2603
- Remediations.prototype.getAtSubscription = function (subscriptionId, remediationName, options, callback) {
2604
- return this.client.sendOperationRequest({
2605
- subscriptionId: subscriptionId,
2606
- remediationName: remediationName,
2607
- options: options
2608
- }, getAtSubscriptionOperationSpec, callback);
2609
- };
2610
- Remediations.prototype.deleteAtSubscription = function (subscriptionId, remediationName, options, callback) {
2611
- return this.client.sendOperationRequest({
2612
- subscriptionId: subscriptionId,
2613
- remediationName: remediationName,
2614
- options: options
2615
- }, deleteAtSubscriptionOperationSpec, callback);
2616
- };
2617
- Remediations.prototype.listDeploymentsAtResourceGroup = function (subscriptionId, resourceGroupName, remediationName, options, callback) {
2618
- return this.client.sendOperationRequest({
2619
- subscriptionId: subscriptionId,
2620
- resourceGroupName: resourceGroupName,
2621
- remediationName: remediationName,
2622
- options: options
2623
- }, listDeploymentsAtResourceGroupOperationSpec, callback);
2624
- };
2625
- Remediations.prototype.cancelAtResourceGroup = function (subscriptionId, resourceGroupName, remediationName, options, callback) {
2626
- return this.client.sendOperationRequest({
2627
- subscriptionId: subscriptionId,
2628
- resourceGroupName: resourceGroupName,
2629
- remediationName: remediationName,
2630
- options: options
2631
- }, cancelAtResourceGroupOperationSpec, callback);
2632
- };
2633
- Remediations.prototype.listForResourceGroup = function (subscriptionId, resourceGroupName, options, callback) {
2634
- return this.client.sendOperationRequest({
2635
- subscriptionId: subscriptionId,
2636
- resourceGroupName: resourceGroupName,
2637
- options: options
2638
- }, listForResourceGroupOperationSpec, callback);
2639
- };
2640
- Remediations.prototype.createOrUpdateAtResourceGroup = function (subscriptionId, resourceGroupName, remediationName, parameters, options, callback) {
2641
- return this.client.sendOperationRequest({
2642
- subscriptionId: subscriptionId,
2643
- resourceGroupName: resourceGroupName,
2644
- remediationName: remediationName,
2645
- parameters: parameters,
2646
- options: options
2647
- }, createOrUpdateAtResourceGroupOperationSpec, callback);
2648
- };
2649
- Remediations.prototype.getAtResourceGroup = function (subscriptionId, resourceGroupName, remediationName, options, callback) {
2650
- return this.client.sendOperationRequest({
2651
- subscriptionId: subscriptionId,
2652
- resourceGroupName: resourceGroupName,
2653
- remediationName: remediationName,
2654
- options: options
2655
- }, getAtResourceGroupOperationSpec, callback);
2656
- };
2657
- Remediations.prototype.deleteAtResourceGroup = function (subscriptionId, resourceGroupName, remediationName, options, callback) {
2658
- return this.client.sendOperationRequest({
2659
- subscriptionId: subscriptionId,
2660
- resourceGroupName: resourceGroupName,
2661
- remediationName: remediationName,
2662
- options: options
2663
- }, deleteAtResourceGroupOperationSpec, callback);
2664
- };
2665
- Remediations.prototype.listDeploymentsAtResource = function (resourceId, remediationName, options, callback) {
2666
- return this.client.sendOperationRequest({
2667
- resourceId: resourceId,
2668
- remediationName: remediationName,
2669
- options: options
2670
- }, listDeploymentsAtResourceOperationSpec, callback);
2671
- };
2672
- Remediations.prototype.cancelAtResource = function (resourceId, remediationName, options, callback) {
2673
- return this.client.sendOperationRequest({
2674
- resourceId: resourceId,
2675
- remediationName: remediationName,
2676
- options: options
2677
- }, cancelAtResourceOperationSpec, callback);
2678
- };
2679
- Remediations.prototype.listForResource = function (resourceId, options, callback) {
2680
- return this.client.sendOperationRequest({
2681
- resourceId: resourceId,
2682
- options: options
2683
- }, listForResourceOperationSpec, callback);
2684
- };
2685
- Remediations.prototype.createOrUpdateAtResource = function (resourceId, remediationName, parameters, options, callback) {
2686
- return this.client.sendOperationRequest({
2687
- resourceId: resourceId,
2688
- remediationName: remediationName,
2689
- parameters: parameters,
2690
- options: options
2691
- }, createOrUpdateAtResourceOperationSpec, callback);
2692
- };
2693
- Remediations.prototype.getAtResource = function (resourceId, remediationName, options, callback) {
2694
- return this.client.sendOperationRequest({
2695
- resourceId: resourceId,
2696
- remediationName: remediationName,
2697
- options: options
2698
- }, getAtResourceOperationSpec, callback);
2699
- };
2700
- Remediations.prototype.deleteAtResource = function (resourceId, remediationName, options, callback) {
2701
- return this.client.sendOperationRequest({
2702
- resourceId: resourceId,
2703
- remediationName: remediationName,
2704
- options: options
2705
- }, deleteAtResourceOperationSpec, callback);
2706
- };
2707
- Remediations.prototype.listDeploymentsAtManagementGroupNext = function (nextPageLink, options, callback) {
2708
- return this.client.sendOperationRequest({
2709
- nextPageLink: nextPageLink,
2710
- options: options
2711
- }, listDeploymentsAtManagementGroupNextOperationSpec, callback);
2712
- };
2713
- Remediations.prototype.listForManagementGroupNext = function (nextPageLink, options, callback) {
2714
- return this.client.sendOperationRequest({
2715
- nextPageLink: nextPageLink,
2716
- options: options
2717
- }, listForManagementGroupNextOperationSpec, callback);
2718
- };
2719
- Remediations.prototype.listDeploymentsAtSubscriptionNext = function (nextPageLink, options, callback) {
2720
- return this.client.sendOperationRequest({
2721
- nextPageLink: nextPageLink,
2722
- options: options
2723
- }, listDeploymentsAtSubscriptionNextOperationSpec, callback);
2724
- };
2725
- Remediations.prototype.listForSubscriptionNext = function (nextPageLink, options, callback) {
2726
- return this.client.sendOperationRequest({
2727
- nextPageLink: nextPageLink,
2728
- options: options
2729
- }, listForSubscriptionNextOperationSpec, callback);
2730
- };
2731
- Remediations.prototype.listDeploymentsAtResourceGroupNext = function (nextPageLink, options, callback) {
2732
- return this.client.sendOperationRequest({
2733
- nextPageLink: nextPageLink,
2734
- options: options
2735
- }, listDeploymentsAtResourceGroupNextOperationSpec, callback);
2736
- };
2737
- Remediations.prototype.listForResourceGroupNext = function (nextPageLink, options, callback) {
2738
- return this.client.sendOperationRequest({
2739
- nextPageLink: nextPageLink,
2740
- options: options
2741
- }, listForResourceGroupNextOperationSpec, callback);
2742
- };
2743
- Remediations.prototype.listDeploymentsAtResourceNext = function (nextPageLink, options, callback) {
2744
- return this.client.sendOperationRequest({
2745
- nextPageLink: nextPageLink,
2746
- options: options
2747
- }, listDeploymentsAtResourceNextOperationSpec, callback);
2748
- };
2749
- Remediations.prototype.listForResourceNext = function (nextPageLink, options, callback) {
2750
- return this.client.sendOperationRequest({
2751
- nextPageLink: nextPageLink,
2752
- options: options
2753
- }, listForResourceNextOperationSpec, callback);
2754
- };
2755
- return Remediations;
2756
- }());
2757
- // Operation Specifications
2758
- var serializer$1 = new msRest.Serializer(Mappers$1);
2759
- var listDeploymentsAtManagementGroupOperationSpec = {
2760
- httpMethod: "POST",
2761
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
2762
- urlParameters: [
2763
- managementGroupsNamespace,
2764
- managementGroupId,
2765
- remediationName
2766
- ],
2767
- queryParameters: [
2768
- apiVersion1,
2769
- top
2770
- ],
2771
- headerParameters: [
2772
- acceptLanguage
2773
- ],
2774
- responses: {
2775
- 200: {
2776
- bodyMapper: RemediationDeploymentsListResult
2777
- },
2778
- default: {
2779
- bodyMapper: ErrorResponse
2780
- }
2781
- },
2782
- serializer: serializer$1
2783
- };
2784
- var cancelAtManagementGroupOperationSpec = {
2785
- httpMethod: "POST",
2786
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
2787
- urlParameters: [
2788
- managementGroupsNamespace,
2789
- managementGroupId,
2790
- remediationName
2791
- ],
2792
- queryParameters: [
2793
- apiVersion1
2794
- ],
2795
- headerParameters: [
2796
- acceptLanguage
2797
- ],
2798
- responses: {
2799
- 200: {
2800
- bodyMapper: Remediation
2801
- },
2802
- default: {
2803
- bodyMapper: ErrorResponse
2804
- }
2805
- },
2806
- serializer: serializer$1
2807
- };
2808
- var listForManagementGroupOperationSpec = {
2809
- httpMethod: "GET",
2810
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations",
2811
- urlParameters: [
2812
- managementGroupsNamespace,
2813
- managementGroupId
2814
- ],
2815
- queryParameters: [
2816
- apiVersion1,
2817
- top,
2818
- filter
2819
- ],
2820
- headerParameters: [
2821
- acceptLanguage
2822
- ],
2823
- responses: {
2824
- 200: {
2825
- bodyMapper: RemediationListResult
2826
- },
2827
- default: {
2828
- bodyMapper: ErrorResponse
2829
- }
2830
- },
2831
- serializer: serializer$1
2832
- };
2833
- var createOrUpdateAtManagementGroupOperationSpec = {
2834
- httpMethod: "PUT",
2835
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
2836
- urlParameters: [
2837
- managementGroupsNamespace,
2838
- managementGroupId,
2839
- remediationName
2840
- ],
2841
- queryParameters: [
2842
- apiVersion1
2843
- ],
2844
- headerParameters: [
2845
- acceptLanguage
2846
- ],
2847
- requestBody: {
2848
- parameterPath: "parameters",
2849
- mapper: __assign(__assign({}, Remediation), { required: true })
2850
- },
2851
- responses: {
2852
- 200: {
2853
- bodyMapper: Remediation
2854
- },
2855
- 201: {
2856
- bodyMapper: Remediation
2857
- },
2858
- default: {
2859
- bodyMapper: ErrorResponse
2860
- }
2861
- },
2862
- serializer: serializer$1
2863
- };
2864
- var getAtManagementGroupOperationSpec = {
2865
- httpMethod: "GET",
2866
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
2867
- urlParameters: [
2868
- managementGroupsNamespace,
2869
- managementGroupId,
2870
- remediationName
2871
- ],
2872
- queryParameters: [
2873
- apiVersion1
2874
- ],
2875
- headerParameters: [
2876
- acceptLanguage
2877
- ],
2878
- responses: {
2879
- 200: {
2880
- bodyMapper: Remediation
2881
- },
2882
- default: {
2883
- bodyMapper: ErrorResponse
2884
- }
2885
- },
2886
- serializer: serializer$1
2887
- };
2888
- var deleteAtManagementGroupOperationSpec = {
2889
- httpMethod: "DELETE",
2890
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
2891
- urlParameters: [
2892
- managementGroupsNamespace,
2893
- managementGroupId,
2894
- remediationName
2895
- ],
2896
- queryParameters: [
2897
- apiVersion1
2898
- ],
2899
- headerParameters: [
2900
- acceptLanguage
2901
- ],
2902
- responses: {
2903
- 200: {
2904
- bodyMapper: Remediation
2905
- },
2906
- 204: {},
2907
- default: {
2908
- bodyMapper: ErrorResponse
2909
- }
2910
- },
2911
- serializer: serializer$1
2912
- };
2913
- var listDeploymentsAtSubscriptionOperationSpec = {
2914
- httpMethod: "POST",
2915
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
2916
- urlParameters: [
2917
- subscriptionId,
2918
- remediationName
2919
- ],
2920
- queryParameters: [
2921
- apiVersion1,
2922
- top
2923
- ],
2924
- headerParameters: [
2925
- acceptLanguage
2926
- ],
2927
- responses: {
2928
- 200: {
2929
- bodyMapper: RemediationDeploymentsListResult
2930
- },
2931
- default: {
2932
- bodyMapper: ErrorResponse
2933
- }
2934
- },
2935
- serializer: serializer$1
2936
- };
2937
- var cancelAtSubscriptionOperationSpec = {
2938
- httpMethod: "POST",
2939
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
2940
- urlParameters: [
2941
- subscriptionId,
2942
- remediationName
2943
- ],
2944
- queryParameters: [
2945
- apiVersion1
2946
- ],
2947
- headerParameters: [
2948
- acceptLanguage
2949
- ],
2950
- responses: {
2951
- 200: {
2952
- bodyMapper: Remediation
2953
- },
2954
- default: {
2955
- bodyMapper: ErrorResponse
2956
- }
2957
- },
2958
- serializer: serializer$1
2959
- };
2960
- var listForSubscriptionOperationSpec = {
2961
- httpMethod: "GET",
2962
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations",
2963
- urlParameters: [
2964
- subscriptionId
2965
- ],
2966
- queryParameters: [
2967
- apiVersion1,
2968
- top,
2969
- filter
2970
- ],
2971
- headerParameters: [
2972
- acceptLanguage
2973
- ],
2974
- responses: {
2975
- 200: {
2976
- bodyMapper: RemediationListResult
2977
- },
2978
- default: {
2979
- bodyMapper: ErrorResponse
2980
- }
2981
- },
2982
- serializer: serializer$1
2983
- };
2984
- var createOrUpdateAtSubscriptionOperationSpec = {
2985
- httpMethod: "PUT",
2986
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
2987
- urlParameters: [
2988
- subscriptionId,
2989
- remediationName
2990
- ],
2991
- queryParameters: [
2992
- apiVersion1
2993
- ],
2994
- headerParameters: [
2995
- acceptLanguage
2996
- ],
2997
- requestBody: {
2998
- parameterPath: "parameters",
2999
- mapper: __assign(__assign({}, Remediation), { required: true })
3000
- },
3001
- responses: {
3002
- 200: {
3003
- bodyMapper: Remediation
3004
- },
3005
- 201: {
3006
- bodyMapper: Remediation
3007
- },
3008
- default: {
3009
- bodyMapper: ErrorResponse
3010
- }
3011
- },
3012
- serializer: serializer$1
3013
- };
3014
- var getAtSubscriptionOperationSpec = {
3015
- httpMethod: "GET",
3016
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3017
- urlParameters: [
3018
- subscriptionId,
3019
- remediationName
3020
- ],
3021
- queryParameters: [
3022
- apiVersion1
3023
- ],
3024
- headerParameters: [
3025
- acceptLanguage
3026
- ],
3027
- responses: {
3028
- 200: {
3029
- bodyMapper: Remediation
3030
- },
3031
- default: {
3032
- bodyMapper: ErrorResponse
3033
- }
3034
- },
3035
- serializer: serializer$1
3036
- };
3037
- var deleteAtSubscriptionOperationSpec = {
3038
- httpMethod: "DELETE",
3039
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3040
- urlParameters: [
3041
- subscriptionId,
3042
- remediationName
3043
- ],
3044
- queryParameters: [
3045
- apiVersion1
3046
- ],
3047
- headerParameters: [
3048
- acceptLanguage
3049
- ],
3050
- responses: {
3051
- 200: {
3052
- bodyMapper: Remediation
3053
- },
3054
- 204: {},
3055
- default: {
3056
- bodyMapper: ErrorResponse
3057
- }
3058
- },
3059
- serializer: serializer$1
3060
- };
3061
- var listDeploymentsAtResourceGroupOperationSpec = {
3062
- httpMethod: "POST",
3063
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
3064
- urlParameters: [
3065
- subscriptionId,
3066
- resourceGroupName,
3067
- remediationName
3068
- ],
3069
- queryParameters: [
3070
- apiVersion1,
3071
- top
3072
- ],
3073
- headerParameters: [
3074
- acceptLanguage
3075
- ],
3076
- responses: {
3077
- 200: {
3078
- bodyMapper: RemediationDeploymentsListResult
3079
- },
3080
- default: {
3081
- bodyMapper: ErrorResponse
3082
- }
3083
- },
3084
- serializer: serializer$1
3085
- };
3086
- var cancelAtResourceGroupOperationSpec = {
3087
- httpMethod: "POST",
3088
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
3089
- urlParameters: [
3090
- subscriptionId,
3091
- resourceGroupName,
3092
- remediationName
3093
- ],
3094
- queryParameters: [
3095
- apiVersion1
3096
- ],
3097
- headerParameters: [
3098
- acceptLanguage
3099
- ],
3100
- responses: {
3101
- 200: {
3102
- bodyMapper: Remediation
3103
- },
3104
- default: {
3105
- bodyMapper: ErrorResponse
3106
- }
3107
- },
3108
- serializer: serializer$1
3109
- };
3110
- var listForResourceGroupOperationSpec = {
3111
- httpMethod: "GET",
3112
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations",
3113
- urlParameters: [
3114
- subscriptionId,
3115
- resourceGroupName
3116
- ],
3117
- queryParameters: [
3118
- apiVersion1,
3119
- top,
3120
- filter
3121
- ],
3122
- headerParameters: [
3123
- acceptLanguage
3124
- ],
3125
- responses: {
3126
- 200: {
3127
- bodyMapper: RemediationListResult
3128
- },
3129
- default: {
3130
- bodyMapper: ErrorResponse
3131
- }
3132
- },
3133
- serializer: serializer$1
3134
- };
3135
- var createOrUpdateAtResourceGroupOperationSpec = {
3136
- httpMethod: "PUT",
3137
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3138
- urlParameters: [
3139
- subscriptionId,
3140
- resourceGroupName,
3141
- remediationName
3142
- ],
3143
- queryParameters: [
3144
- apiVersion1
3145
- ],
3146
- headerParameters: [
3147
- acceptLanguage
3148
- ],
3149
- requestBody: {
3150
- parameterPath: "parameters",
3151
- mapper: __assign(__assign({}, Remediation), { required: true })
3152
- },
3153
- responses: {
3154
- 200: {
3155
- bodyMapper: Remediation
3156
- },
3157
- 201: {
3158
- bodyMapper: Remediation
3159
- },
3160
- default: {
3161
- bodyMapper: ErrorResponse
3162
- }
3163
- },
3164
- serializer: serializer$1
3165
- };
3166
- var getAtResourceGroupOperationSpec = {
3167
- httpMethod: "GET",
3168
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3169
- urlParameters: [
3170
- subscriptionId,
3171
- resourceGroupName,
3172
- remediationName
3173
- ],
3174
- queryParameters: [
3175
- apiVersion1
3176
- ],
3177
- headerParameters: [
3178
- acceptLanguage
3179
- ],
3180
- responses: {
3181
- 200: {
3182
- bodyMapper: Remediation
3183
- },
3184
- default: {
3185
- bodyMapper: ErrorResponse
3186
- }
3187
- },
3188
- serializer: serializer$1
3189
- };
3190
- var deleteAtResourceGroupOperationSpec = {
3191
- httpMethod: "DELETE",
3192
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3193
- urlParameters: [
3194
- subscriptionId,
3195
- resourceGroupName,
3196
- remediationName
3197
- ],
3198
- queryParameters: [
3199
- apiVersion1
3200
- ],
3201
- headerParameters: [
3202
- acceptLanguage
3203
- ],
3204
- responses: {
3205
- 200: {
3206
- bodyMapper: Remediation
3207
- },
3208
- 204: {},
3209
- default: {
3210
- bodyMapper: ErrorResponse
3211
- }
3212
- },
3213
- serializer: serializer$1
3214
- };
3215
- var listDeploymentsAtResourceOperationSpec = {
3216
- httpMethod: "POST",
3217
- path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments",
3218
- urlParameters: [
3219
- resourceId,
3220
- remediationName
3221
- ],
3222
- queryParameters: [
3223
- apiVersion1,
3224
- top
3225
- ],
3226
- headerParameters: [
3227
- acceptLanguage
3228
- ],
3229
- responses: {
3230
- 200: {
3231
- bodyMapper: RemediationDeploymentsListResult
3232
- },
3233
- default: {
3234
- bodyMapper: ErrorResponse
3235
- }
3236
- },
3237
- serializer: serializer$1
3238
- };
3239
- var cancelAtResourceOperationSpec = {
3240
- httpMethod: "POST",
3241
- path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel",
3242
- urlParameters: [
3243
- resourceId,
3244
- remediationName
3245
- ],
3246
- queryParameters: [
3247
- apiVersion1
3248
- ],
3249
- headerParameters: [
3250
- acceptLanguage
3251
- ],
3252
- responses: {
3253
- 200: {
3254
- bodyMapper: Remediation
3255
- },
3256
- default: {
3257
- bodyMapper: ErrorResponse
3258
- }
3259
- },
3260
- serializer: serializer$1
3261
- };
3262
- var listForResourceOperationSpec = {
3263
- httpMethod: "GET",
3264
- path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations",
3265
- urlParameters: [
3266
- resourceId
3267
- ],
3268
- queryParameters: [
3269
- apiVersion1,
3270
- top,
3271
- filter
3272
- ],
3273
- headerParameters: [
3274
- acceptLanguage
3275
- ],
3276
- responses: {
3277
- 200: {
3278
- bodyMapper: RemediationListResult
3279
- },
3280
- default: {
3281
- bodyMapper: ErrorResponse
3282
- }
3283
- },
3284
- serializer: serializer$1
3285
- };
3286
- var createOrUpdateAtResourceOperationSpec = {
3287
- httpMethod: "PUT",
3288
- path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3289
- urlParameters: [
3290
- resourceId,
3291
- remediationName
3292
- ],
3293
- queryParameters: [
3294
- apiVersion1
3295
- ],
3296
- headerParameters: [
3297
- acceptLanguage
3298
- ],
3299
- requestBody: {
3300
- parameterPath: "parameters",
3301
- mapper: __assign(__assign({}, Remediation), { required: true })
3302
- },
3303
- responses: {
3304
- 200: {
3305
- bodyMapper: Remediation
3306
- },
3307
- 201: {
3308
- bodyMapper: Remediation
3309
- },
3310
- default: {
3311
- bodyMapper: ErrorResponse
3312
- }
3313
- },
3314
- serializer: serializer$1
3315
- };
3316
- var getAtResourceOperationSpec = {
3317
- httpMethod: "GET",
3318
- path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3319
- urlParameters: [
3320
- resourceId,
3321
- remediationName
3322
- ],
3323
- queryParameters: [
3324
- apiVersion1
3325
- ],
3326
- headerParameters: [
3327
- acceptLanguage
3328
- ],
3329
- responses: {
3330
- 200: {
3331
- bodyMapper: Remediation
3332
- },
3333
- default: {
3334
- bodyMapper: ErrorResponse
3335
- }
3336
- },
3337
- serializer: serializer$1
3338
- };
3339
- var deleteAtResourceOperationSpec = {
3340
- httpMethod: "DELETE",
3341
- path: "{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}",
3342
- urlParameters: [
3343
- resourceId,
3344
- remediationName
3345
- ],
3346
- queryParameters: [
3347
- apiVersion1
3348
- ],
3349
- headerParameters: [
3350
- acceptLanguage
3351
- ],
3352
- responses: {
3353
- 200: {
3354
- bodyMapper: Remediation
3355
- },
3356
- 204: {},
3357
- default: {
3358
- bodyMapper: ErrorResponse
3359
- }
3360
- },
3361
- serializer: serializer$1
3362
- };
3363
- var listDeploymentsAtManagementGroupNextOperationSpec = {
3364
- httpMethod: "POST",
3365
- baseUrl: "https://management.azure.com",
3366
- path: "{nextLink}",
3367
- urlParameters: [
3368
- nextPageLink
3369
- ],
3370
- headerParameters: [
3371
- acceptLanguage
3372
- ],
3373
- responses: {
3374
- 200: {
3375
- bodyMapper: RemediationDeploymentsListResult
3376
- },
3377
- default: {
3378
- bodyMapper: ErrorResponse
3379
- }
3380
- },
3381
- serializer: serializer$1
3382
- };
3383
- var listForManagementGroupNextOperationSpec = {
3384
- httpMethod: "GET",
3385
- baseUrl: "https://management.azure.com",
3386
- path: "{nextLink}",
3387
- urlParameters: [
3388
- nextPageLink
3389
- ],
3390
- headerParameters: [
3391
- acceptLanguage
3392
- ],
3393
- responses: {
3394
- 200: {
3395
- bodyMapper: RemediationListResult
3396
- },
3397
- default: {
3398
- bodyMapper: ErrorResponse
3399
- }
3400
- },
3401
- serializer: serializer$1
3402
- };
3403
- var listDeploymentsAtSubscriptionNextOperationSpec = {
3404
- httpMethod: "POST",
3405
- baseUrl: "https://management.azure.com",
3406
- path: "{nextLink}",
3407
- urlParameters: [
3408
- nextPageLink
3409
- ],
3410
- headerParameters: [
3411
- acceptLanguage
3412
- ],
3413
- responses: {
3414
- 200: {
3415
- bodyMapper: RemediationDeploymentsListResult
3416
- },
3417
- default: {
3418
- bodyMapper: ErrorResponse
3419
- }
3420
- },
3421
- serializer: serializer$1
3422
- };
3423
- var listForSubscriptionNextOperationSpec = {
3424
- httpMethod: "GET",
3425
- baseUrl: "https://management.azure.com",
3426
- path: "{nextLink}",
3427
- urlParameters: [
3428
- nextPageLink
3429
- ],
3430
- headerParameters: [
3431
- acceptLanguage
3432
- ],
3433
- responses: {
3434
- 200: {
3435
- bodyMapper: RemediationListResult
3436
- },
3437
- default: {
3438
- bodyMapper: ErrorResponse
3439
- }
3440
- },
3441
- serializer: serializer$1
3442
- };
3443
- var listDeploymentsAtResourceGroupNextOperationSpec = {
3444
- httpMethod: "POST",
3445
- baseUrl: "https://management.azure.com",
3446
- path: "{nextLink}",
3447
- urlParameters: [
3448
- nextPageLink
3449
- ],
3450
- headerParameters: [
3451
- acceptLanguage
3452
- ],
3453
- responses: {
3454
- 200: {
3455
- bodyMapper: RemediationDeploymentsListResult
3456
- },
3457
- default: {
3458
- bodyMapper: ErrorResponse
3459
- }
3460
- },
3461
- serializer: serializer$1
3462
- };
3463
- var listForResourceGroupNextOperationSpec = {
3464
- httpMethod: "GET",
3465
- baseUrl: "https://management.azure.com",
3466
- path: "{nextLink}",
3467
- urlParameters: [
3468
- nextPageLink
3469
- ],
3470
- headerParameters: [
3471
- acceptLanguage
3472
- ],
3473
- responses: {
3474
- 200: {
3475
- bodyMapper: RemediationListResult
3476
- },
3477
- default: {
3478
- bodyMapper: ErrorResponse
3479
- }
3480
- },
3481
- serializer: serializer$1
3482
- };
3483
- var listDeploymentsAtResourceNextOperationSpec = {
3484
- httpMethod: "POST",
3485
- baseUrl: "https://management.azure.com",
3486
- path: "{nextLink}",
3487
- urlParameters: [
3488
- nextPageLink
3489
- ],
3490
- headerParameters: [
3491
- acceptLanguage
3492
- ],
3493
- responses: {
3494
- 200: {
3495
- bodyMapper: RemediationDeploymentsListResult
3496
- },
3497
- default: {
3498
- bodyMapper: ErrorResponse
3499
- }
3500
- },
3501
- serializer: serializer$1
3502
- };
3503
- var listForResourceNextOperationSpec = {
3504
- httpMethod: "GET",
3505
- baseUrl: "https://management.azure.com",
3506
- path: "{nextLink}",
3507
- urlParameters: [
3508
- nextPageLink
3509
- ],
3510
- headerParameters: [
3511
- acceptLanguage
3512
- ],
3513
- responses: {
3514
- 200: {
3515
- bodyMapper: RemediationListResult
3516
- },
3517
- default: {
3518
- bodyMapper: ErrorResponse
3519
- }
3520
- },
3521
- serializer: serializer$1
3522
- };
3523
-
3524
- /*
3525
- * Copyright (c) Microsoft Corporation. All rights reserved.
3526
- * Licensed under the MIT License. See License.txt in the project root for license information.
3527
- *
3528
- * Code generated by Microsoft (R) AutoRest Code Generator.
3529
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3530
- */
3531
-
3532
- var Mappers$2 = /*#__PURE__*/Object.freeze({
3533
- __proto__: null,
3534
- PolicyEvent: PolicyEvent,
3535
- PolicyEventsQueryResults: PolicyEventsQueryResults,
3536
- QueryFailure: QueryFailure,
3537
- QueryFailureError: QueryFailureError
3538
- });
3539
-
3540
- /*
3541
- * Copyright (c) Microsoft Corporation. All rights reserved.
3542
- * Licensed under the MIT License. See License.txt in the project root for
3543
- * license information.
3544
- *
3545
- * Code generated by Microsoft (R) AutoRest Code Generator.
3546
- * Changes may cause incorrect behavior and will be lost if the code is
3547
- * regenerated.
3548
- */
3549
- /** Class representing a PolicyEvents. */
3550
- var PolicyEvents = /** @class */ (function () {
3551
- /**
3552
- * Create a PolicyEvents.
3553
- * @param {PolicyInsightsClientContext} client Reference to the service client.
3554
- */
3555
- function PolicyEvents(client) {
3556
- this.client = client;
3557
- }
3558
- PolicyEvents.prototype.listQueryResultsForManagementGroup = function (managementGroupName, options, callback) {
3559
- return this.client.sendOperationRequest({
3560
- managementGroupName: managementGroupName,
3561
- options: options
3562
- }, listQueryResultsForManagementGroupOperationSpec$1, callback);
3563
- };
3564
- PolicyEvents.prototype.listQueryResultsForSubscription = function (subscriptionId, options, callback) {
3565
- return this.client.sendOperationRequest({
3566
- subscriptionId: subscriptionId,
3567
- options: options
3568
- }, listQueryResultsForSubscriptionOperationSpec$1, callback);
3569
- };
3570
- PolicyEvents.prototype.listQueryResultsForResourceGroup = function (subscriptionId, resourceGroupName, options, callback) {
3571
- return this.client.sendOperationRequest({
3572
- subscriptionId: subscriptionId,
3573
- resourceGroupName: resourceGroupName,
3574
- options: options
3575
- }, listQueryResultsForResourceGroupOperationSpec$1, callback);
3576
- };
3577
- PolicyEvents.prototype.listQueryResultsForResource = function (resourceId, options, callback) {
3578
- return this.client.sendOperationRequest({
3579
- resourceId: resourceId,
3580
- options: options
3581
- }, listQueryResultsForResourceOperationSpec$1, callback);
3582
- };
3583
- PolicyEvents.prototype.listQueryResultsForPolicySetDefinition = function (subscriptionId, policySetDefinitionName, options, callback) {
3584
- return this.client.sendOperationRequest({
3585
- subscriptionId: subscriptionId,
3586
- policySetDefinitionName: policySetDefinitionName,
3587
- options: options
3588
- }, listQueryResultsForPolicySetDefinitionOperationSpec, callback);
3589
- };
3590
- PolicyEvents.prototype.listQueryResultsForPolicyDefinition = function (subscriptionId, policyDefinitionName, options, callback) {
3591
- return this.client.sendOperationRequest({
3592
- subscriptionId: subscriptionId,
3593
- policyDefinitionName: policyDefinitionName,
3594
- options: options
3595
- }, listQueryResultsForPolicyDefinitionOperationSpec, callback);
3596
- };
3597
- PolicyEvents.prototype.listQueryResultsForSubscriptionLevelPolicyAssignment = function (subscriptionId, policyAssignmentName, options, callback) {
3598
- return this.client.sendOperationRequest({
3599
- subscriptionId: subscriptionId,
3600
- policyAssignmentName: policyAssignmentName,
3601
- options: options
3602
- }, listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec, callback);
3603
- };
3604
- PolicyEvents.prototype.listQueryResultsForResourceGroupLevelPolicyAssignment = function (subscriptionId, resourceGroupName, policyAssignmentName, options, callback) {
3605
- return this.client.sendOperationRequest({
3606
- subscriptionId: subscriptionId,
3607
- resourceGroupName: resourceGroupName,
3608
- policyAssignmentName: policyAssignmentName,
3609
- options: options
3610
- }, listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec, callback);
3611
- };
3612
- PolicyEvents.prototype.getMetadata = function (scope, options, callback) {
3613
- return this.client.sendOperationRequest({
3614
- scope: scope,
3615
- options: options
3616
- }, getMetadataOperationSpec, callback);
3617
- };
3618
- return PolicyEvents;
3619
- }());
3620
- // Operation Specifications
3621
- var serializer$2 = new msRest.Serializer(Mappers$2);
3622
- var listQueryResultsForManagementGroupOperationSpec$1 = {
3623
- httpMethod: "POST",
3624
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3625
- urlParameters: [
3626
- policyEventsResource,
3627
- managementGroupsNamespace,
3628
- managementGroupName
3629
- ],
3630
- queryParameters: [
3631
- apiVersion2,
3632
- top,
3633
- orderBy,
3634
- select,
3635
- from,
3636
- to,
3637
- filter,
3638
- apply
3639
- ],
3640
- headerParameters: [
3641
- acceptLanguage
3642
- ],
3643
- responses: {
3644
- 200: {
3645
- bodyMapper: PolicyEventsQueryResults
3646
- },
3647
- default: {
3648
- bodyMapper: QueryFailure
3649
- }
3650
- },
3651
- serializer: serializer$2
3652
- };
3653
- var listQueryResultsForSubscriptionOperationSpec$1 = {
3654
- httpMethod: "POST",
3655
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3656
- urlParameters: [
3657
- policyEventsResource,
3658
- subscriptionId
3659
- ],
3660
- queryParameters: [
3661
- apiVersion2,
3662
- top,
3663
- orderBy,
3664
- select,
3665
- from,
3666
- to,
3667
- filter,
3668
- apply
3669
- ],
3670
- headerParameters: [
3671
- acceptLanguage
3672
- ],
3673
- responses: {
3674
- 200: {
3675
- bodyMapper: PolicyEventsQueryResults
3676
- },
3677
- default: {
3678
- bodyMapper: QueryFailure
3679
- }
3680
- },
3681
- serializer: serializer$2
3682
- };
3683
- var listQueryResultsForResourceGroupOperationSpec$1 = {
3684
- httpMethod: "POST",
3685
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3686
- urlParameters: [
3687
- policyEventsResource,
3688
- subscriptionId,
3689
- resourceGroupName
3690
- ],
3691
- queryParameters: [
3692
- apiVersion2,
3693
- top,
3694
- orderBy,
3695
- select,
3696
- from,
3697
- to,
3698
- filter,
3699
- apply
3700
- ],
3701
- headerParameters: [
3702
- acceptLanguage
3703
- ],
3704
- responses: {
3705
- 200: {
3706
- bodyMapper: PolicyEventsQueryResults
3707
- },
3708
- default: {
3709
- bodyMapper: QueryFailure
3710
- }
3711
- },
3712
- serializer: serializer$2
3713
- };
3714
- var listQueryResultsForResourceOperationSpec$1 = {
3715
- httpMethod: "POST",
3716
- path: "{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3717
- urlParameters: [
3718
- policyEventsResource,
3719
- resourceId
3720
- ],
3721
- queryParameters: [
3722
- apiVersion2,
3723
- top,
3724
- orderBy,
3725
- select,
3726
- from,
3727
- to,
3728
- filter,
3729
- apply
3730
- ],
3731
- headerParameters: [
3732
- acceptLanguage
3733
- ],
3734
- responses: {
3735
- 200: {
3736
- bodyMapper: PolicyEventsQueryResults
3737
- },
3738
- default: {
3739
- bodyMapper: QueryFailure
3740
- }
3741
- },
3742
- serializer: serializer$2
3743
- };
3744
- var listQueryResultsForPolicySetDefinitionOperationSpec = {
3745
- httpMethod: "POST",
3746
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3747
- urlParameters: [
3748
- policyEventsResource,
3749
- subscriptionId,
3750
- authorizationNamespace,
3751
- policySetDefinitionName
3752
- ],
3753
- queryParameters: [
3754
- apiVersion2,
3755
- top,
3756
- orderBy,
3757
- select,
3758
- from,
3759
- to,
3760
- filter,
3761
- apply
3762
- ],
3763
- headerParameters: [
3764
- acceptLanguage
3765
- ],
3766
- responses: {
3767
- 200: {
3768
- bodyMapper: PolicyEventsQueryResults
3769
- },
3770
- default: {
3771
- bodyMapper: QueryFailure
3772
- }
3773
- },
3774
- serializer: serializer$2
3775
- };
3776
- var listQueryResultsForPolicyDefinitionOperationSpec = {
3777
- httpMethod: "POST",
3778
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3779
- urlParameters: [
3780
- policyEventsResource,
3781
- subscriptionId,
3782
- authorizationNamespace,
3783
- policyDefinitionName
3784
- ],
3785
- queryParameters: [
3786
- apiVersion2,
3787
- top,
3788
- orderBy,
3789
- select,
3790
- from,
3791
- to,
3792
- filter,
3793
- apply
3794
- ],
3795
- headerParameters: [
3796
- acceptLanguage
3797
- ],
3798
- responses: {
3799
- 200: {
3800
- bodyMapper: PolicyEventsQueryResults
3801
- },
3802
- default: {
3803
- bodyMapper: QueryFailure
3804
- }
3805
- },
3806
- serializer: serializer$2
3807
- };
3808
- var listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec = {
3809
- httpMethod: "POST",
3810
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3811
- urlParameters: [
3812
- policyEventsResource,
3813
- subscriptionId,
3814
- authorizationNamespace,
3815
- policyAssignmentName
3816
- ],
3817
- queryParameters: [
3818
- apiVersion2,
3819
- top,
3820
- orderBy,
3821
- select,
3822
- from,
3823
- to,
3824
- filter,
3825
- apply
3826
- ],
3827
- headerParameters: [
3828
- acceptLanguage
3829
- ],
3830
- responses: {
3831
- 200: {
3832
- bodyMapper: PolicyEventsQueryResults
3833
- },
3834
- default: {
3835
- bodyMapper: QueryFailure
3836
- }
3837
- },
3838
- serializer: serializer$2
3839
- };
3840
- var listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec = {
3841
- httpMethod: "POST",
3842
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
3843
- urlParameters: [
3844
- policyEventsResource,
3845
- subscriptionId,
3846
- resourceGroupName,
3847
- authorizationNamespace,
3848
- policyAssignmentName
3849
- ],
3850
- queryParameters: [
3851
- apiVersion2,
3852
- top,
3853
- orderBy,
3854
- select,
3855
- from,
3856
- to,
3857
- filter,
3858
- apply
3859
- ],
3860
- headerParameters: [
3861
- acceptLanguage
3862
- ],
3863
- responses: {
3864
- 200: {
3865
- bodyMapper: PolicyEventsQueryResults
3866
- },
3867
- default: {
3868
- bodyMapper: QueryFailure
3869
- }
3870
- },
3871
- serializer: serializer$2
3872
- };
3873
- var getMetadataOperationSpec = {
3874
- httpMethod: "GET",
3875
- path: "{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata",
3876
- urlParameters: [
3877
- scope
3878
- ],
3879
- queryParameters: [
3880
- apiVersion2
3881
- ],
3882
- headerParameters: [
3883
- acceptLanguage
3884
- ],
3885
- responses: {
3886
- 200: {
3887
- bodyMapper: {
3888
- serializedName: "parsedResponse",
3889
- type: {
3890
- name: "String"
3891
- }
3892
- }
3893
- },
3894
- default: {
3895
- bodyMapper: QueryFailure
3896
- }
3897
- },
3898
- serializer: serializer$2
3899
- };
3900
-
3901
- /*
3902
- * Copyright (c) Microsoft Corporation. All rights reserved.
3903
- * Licensed under the MIT License. See License.txt in the project root for license information.
3904
- *
3905
- * Code generated by Microsoft (R) AutoRest Code Generator.
3906
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3907
- */
3908
-
3909
- var Mappers$3 = /*#__PURE__*/Object.freeze({
3910
- __proto__: null,
3911
- ComplianceDetail: ComplianceDetail,
3912
- ExpressionEvaluationDetails: ExpressionEvaluationDetails,
3913
- IfNotExistsEvaluationDetails: IfNotExistsEvaluationDetails,
3914
- PolicyAssignmentSummary: PolicyAssignmentSummary,
3915
- PolicyDefinitionSummary: PolicyDefinitionSummary,
3916
- PolicyEvaluationDetails: PolicyEvaluationDetails,
3917
- PolicyGroupSummary: PolicyGroupSummary,
3918
- PolicyState: PolicyState,
3919
- PolicyStatesQueryResults: PolicyStatesQueryResults,
3920
- QueryFailure: QueryFailure,
3921
- QueryFailureError: QueryFailureError,
3922
- SummarizeResults: SummarizeResults,
3923
- Summary: Summary,
3924
- SummaryResults: SummaryResults
3925
- });
3926
-
3927
- /*
3928
- * Copyright (c) Microsoft Corporation. All rights reserved.
3929
- * Licensed under the MIT License. See License.txt in the project root for
3930
- * license information.
3931
- *
3932
- * Code generated by Microsoft (R) AutoRest Code Generator.
3933
- * Changes may cause incorrect behavior and will be lost if the code is
3934
- * regenerated.
3935
- */
3936
- /** Class representing a PolicyStates. */
3937
- var PolicyStates = /** @class */ (function () {
3938
- /**
3939
- * Create a PolicyStates.
3940
- * @param {PolicyInsightsClientContext} client Reference to the service client.
3941
- */
3942
- function PolicyStates(client) {
3943
- this.client = client;
3944
- }
3945
- PolicyStates.prototype.listQueryResultsForManagementGroup = function (policyStatesResource, managementGroupName, options, callback) {
3946
- return this.client.sendOperationRequest({
3947
- policyStatesResource: policyStatesResource,
3948
- managementGroupName: managementGroupName,
3949
- options: options
3950
- }, listQueryResultsForManagementGroupOperationSpec$2, callback);
3951
- };
3952
- PolicyStates.prototype.summarizeForManagementGroup = function (managementGroupName, options, callback) {
3953
- return this.client.sendOperationRequest({
3954
- managementGroupName: managementGroupName,
3955
- options: options
3956
- }, summarizeForManagementGroupOperationSpec, callback);
3957
- };
3958
- PolicyStates.prototype.listQueryResultsForSubscription = function (policyStatesResource, subscriptionId, options, callback) {
3959
- return this.client.sendOperationRequest({
3960
- policyStatesResource: policyStatesResource,
3961
- subscriptionId: subscriptionId,
3962
- options: options
3963
- }, listQueryResultsForSubscriptionOperationSpec$2, callback);
3964
- };
3965
- PolicyStates.prototype.summarizeForSubscription = function (subscriptionId, options, callback) {
3966
- return this.client.sendOperationRequest({
3967
- subscriptionId: subscriptionId,
3968
- options: options
3969
- }, summarizeForSubscriptionOperationSpec, callback);
3970
- };
3971
- PolicyStates.prototype.listQueryResultsForResourceGroup = function (policyStatesResource, subscriptionId, resourceGroupName, options, callback) {
3972
- return this.client.sendOperationRequest({
3973
- policyStatesResource: policyStatesResource,
3974
- subscriptionId: subscriptionId,
3975
- resourceGroupName: resourceGroupName,
3976
- options: options
3977
- }, listQueryResultsForResourceGroupOperationSpec$2, callback);
3978
- };
3979
- PolicyStates.prototype.summarizeForResourceGroup = function (subscriptionId, resourceGroupName, options, callback) {
3980
- return this.client.sendOperationRequest({
3981
- subscriptionId: subscriptionId,
3982
- resourceGroupName: resourceGroupName,
3983
- options: options
3984
- }, summarizeForResourceGroupOperationSpec, callback);
3985
- };
3986
- PolicyStates.prototype.listQueryResultsForResource = function (policyStatesResource, resourceId, options, callback) {
3987
- return this.client.sendOperationRequest({
3988
- policyStatesResource: policyStatesResource,
3989
- resourceId: resourceId,
3990
- options: options
3991
- }, listQueryResultsForResourceOperationSpec$2, callback);
3992
- };
3993
- PolicyStates.prototype.summarizeForResource = function (resourceId, options, callback) {
3994
- return this.client.sendOperationRequest({
3995
- resourceId: resourceId,
3996
- options: options
3997
- }, summarizeForResourceOperationSpec, callback);
3998
- };
3999
- /**
4000
- * Triggers a policy evaluation scan for all the resources under the subscription
4001
- * @param subscriptionId Microsoft Azure subscription ID.
4002
- * @param [options] The optional parameters
4003
- * @returns Promise<msRest.RestResponse>
4004
- */
4005
- PolicyStates.prototype.triggerSubscriptionEvaluation = function (subscriptionId, options) {
4006
- return this.beginTriggerSubscriptionEvaluation(subscriptionId, options)
4007
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
4008
- };
4009
- /**
4010
- * Triggers a policy evaluation scan for all the resources under the resource group.
4011
- * @param subscriptionId Microsoft Azure subscription ID.
4012
- * @param resourceGroupName Resource group name.
4013
- * @param [options] The optional parameters
4014
- * @returns Promise<msRest.RestResponse>
4015
- */
4016
- PolicyStates.prototype.triggerResourceGroupEvaluation = function (subscriptionId, resourceGroupName, options) {
4017
- return this.beginTriggerResourceGroupEvaluation(subscriptionId, resourceGroupName, options)
4018
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
4019
- };
4020
- PolicyStates.prototype.listQueryResultsForPolicySetDefinition = function (policyStatesResource, subscriptionId, policySetDefinitionName, options, callback) {
4021
- return this.client.sendOperationRequest({
4022
- policyStatesResource: policyStatesResource,
4023
- subscriptionId: subscriptionId,
4024
- policySetDefinitionName: policySetDefinitionName,
4025
- options: options
4026
- }, listQueryResultsForPolicySetDefinitionOperationSpec$1, callback);
4027
- };
4028
- PolicyStates.prototype.summarizeForPolicySetDefinition = function (subscriptionId, policySetDefinitionName, options, callback) {
4029
- return this.client.sendOperationRequest({
4030
- subscriptionId: subscriptionId,
4031
- policySetDefinitionName: policySetDefinitionName,
4032
- options: options
4033
- }, summarizeForPolicySetDefinitionOperationSpec, callback);
4034
- };
4035
- PolicyStates.prototype.listQueryResultsForPolicyDefinition = function (policyStatesResource, subscriptionId, policyDefinitionName, options, callback) {
4036
- return this.client.sendOperationRequest({
4037
- policyStatesResource: policyStatesResource,
4038
- subscriptionId: subscriptionId,
4039
- policyDefinitionName: policyDefinitionName,
4040
- options: options
4041
- }, listQueryResultsForPolicyDefinitionOperationSpec$1, callback);
4042
- };
4043
- PolicyStates.prototype.summarizeForPolicyDefinition = function (subscriptionId, policyDefinitionName, options, callback) {
4044
- return this.client.sendOperationRequest({
4045
- subscriptionId: subscriptionId,
4046
- policyDefinitionName: policyDefinitionName,
4047
- options: options
4048
- }, summarizeForPolicyDefinitionOperationSpec, callback);
4049
- };
4050
- PolicyStates.prototype.listQueryResultsForSubscriptionLevelPolicyAssignment = function (policyStatesResource, subscriptionId, policyAssignmentName, options, callback) {
4051
- return this.client.sendOperationRequest({
4052
- policyStatesResource: policyStatesResource,
4053
- subscriptionId: subscriptionId,
4054
- policyAssignmentName: policyAssignmentName,
4055
- options: options
4056
- }, listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec$1, callback);
4057
- };
4058
- PolicyStates.prototype.summarizeForSubscriptionLevelPolicyAssignment = function (subscriptionId, policyAssignmentName, options, callback) {
4059
- return this.client.sendOperationRequest({
4060
- subscriptionId: subscriptionId,
4061
- policyAssignmentName: policyAssignmentName,
4062
- options: options
4063
- }, summarizeForSubscriptionLevelPolicyAssignmentOperationSpec, callback);
4064
- };
4065
- PolicyStates.prototype.listQueryResultsForResourceGroupLevelPolicyAssignment = function (policyStatesResource, subscriptionId, resourceGroupName, policyAssignmentName, options, callback) {
4066
- return this.client.sendOperationRequest({
4067
- policyStatesResource: policyStatesResource,
4068
- subscriptionId: subscriptionId,
4069
- resourceGroupName: resourceGroupName,
4070
- policyAssignmentName: policyAssignmentName,
4071
- options: options
4072
- }, listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec$1, callback);
4073
- };
4074
- PolicyStates.prototype.summarizeForResourceGroupLevelPolicyAssignment = function (subscriptionId, resourceGroupName, policyAssignmentName, options, callback) {
4075
- return this.client.sendOperationRequest({
4076
- subscriptionId: subscriptionId,
4077
- resourceGroupName: resourceGroupName,
4078
- policyAssignmentName: policyAssignmentName,
4079
- options: options
4080
- }, summarizeForResourceGroupLevelPolicyAssignmentOperationSpec, callback);
4081
- };
4082
- /**
4083
- * Triggers a policy evaluation scan for all the resources under the subscription
4084
- * @param subscriptionId Microsoft Azure subscription ID.
4085
- * @param [options] The optional parameters
4086
- * @returns Promise<msRestAzure.LROPoller>
4087
- */
4088
- PolicyStates.prototype.beginTriggerSubscriptionEvaluation = function (subscriptionId, options) {
4089
- return this.client.sendLRORequest({
4090
- subscriptionId: subscriptionId,
4091
- options: options
4092
- }, beginTriggerSubscriptionEvaluationOperationSpec, options);
4093
- };
4094
- /**
4095
- * Triggers a policy evaluation scan for all the resources under the resource group.
4096
- * @param subscriptionId Microsoft Azure subscription ID.
4097
- * @param resourceGroupName Resource group name.
4098
- * @param [options] The optional parameters
4099
- * @returns Promise<msRestAzure.LROPoller>
4100
- */
4101
- PolicyStates.prototype.beginTriggerResourceGroupEvaluation = function (subscriptionId, resourceGroupName, options) {
4102
- return this.client.sendLRORequest({
4103
- subscriptionId: subscriptionId,
4104
- resourceGroupName: resourceGroupName,
4105
- options: options
4106
- }, beginTriggerResourceGroupEvaluationOperationSpec, options);
4107
- };
4108
- return PolicyStates;
4109
- }());
4110
- // Operation Specifications
4111
- var serializer$3 = new msRest.Serializer(Mappers$3);
4112
- var listQueryResultsForManagementGroupOperationSpec$2 = {
4113
- httpMethod: "POST",
4114
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4115
- urlParameters: [
4116
- policyStatesResource,
4117
- managementGroupsNamespace,
4118
- managementGroupName
4119
- ],
4120
- queryParameters: [
4121
- apiVersion3,
4122
- top,
4123
- orderBy,
4124
- select,
4125
- from,
4126
- to,
4127
- filter,
4128
- apply
4129
- ],
4130
- headerParameters: [
4131
- acceptLanguage
4132
- ],
4133
- responses: {
4134
- 200: {
4135
- bodyMapper: PolicyStatesQueryResults
4136
- },
4137
- default: {
4138
- bodyMapper: QueryFailure
4139
- }
4140
- },
4141
- serializer: serializer$3
4142
- };
4143
- var summarizeForManagementGroupOperationSpec = {
4144
- httpMethod: "POST",
4145
- path: "providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4146
- urlParameters: [
4147
- policyStatesSummaryResource,
4148
- managementGroupsNamespace,
4149
- managementGroupName
4150
- ],
4151
- queryParameters: [
4152
- apiVersion3,
4153
- top,
4154
- from,
4155
- to,
4156
- filter
4157
- ],
4158
- headerParameters: [
4159
- acceptLanguage
4160
- ],
4161
- responses: {
4162
- 200: {
4163
- bodyMapper: SummarizeResults
4164
- },
4165
- default: {
4166
- bodyMapper: QueryFailure
4167
- }
4168
- },
4169
- serializer: serializer$3
4170
- };
4171
- var listQueryResultsForSubscriptionOperationSpec$2 = {
4172
- httpMethod: "POST",
4173
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4174
- urlParameters: [
4175
- policyStatesResource,
4176
- subscriptionId
4177
- ],
4178
- queryParameters: [
4179
- apiVersion3,
4180
- top,
4181
- orderBy,
4182
- select,
4183
- from,
4184
- to,
4185
- filter,
4186
- apply
4187
- ],
4188
- headerParameters: [
4189
- acceptLanguage
4190
- ],
4191
- responses: {
4192
- 200: {
4193
- bodyMapper: PolicyStatesQueryResults
4194
- },
4195
- default: {
4196
- bodyMapper: QueryFailure
4197
- }
4198
- },
4199
- serializer: serializer$3
4200
- };
4201
- var summarizeForSubscriptionOperationSpec = {
4202
- httpMethod: "POST",
4203
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4204
- urlParameters: [
4205
- policyStatesSummaryResource,
4206
- subscriptionId
4207
- ],
4208
- queryParameters: [
4209
- apiVersion3,
4210
- top,
4211
- from,
4212
- to,
4213
- filter
4214
- ],
4215
- headerParameters: [
4216
- acceptLanguage
4217
- ],
4218
- responses: {
4219
- 200: {
4220
- bodyMapper: SummarizeResults
4221
- },
4222
- default: {
4223
- bodyMapper: QueryFailure
4224
- }
4225
- },
4226
- serializer: serializer$3
4227
- };
4228
- var listQueryResultsForResourceGroupOperationSpec$2 = {
4229
- httpMethod: "POST",
4230
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4231
- urlParameters: [
4232
- policyStatesResource,
4233
- subscriptionId,
4234
- resourceGroupName
4235
- ],
4236
- queryParameters: [
4237
- apiVersion3,
4238
- top,
4239
- orderBy,
4240
- select,
4241
- from,
4242
- to,
4243
- filter,
4244
- apply
4245
- ],
4246
- headerParameters: [
4247
- acceptLanguage
4248
- ],
4249
- responses: {
4250
- 200: {
4251
- bodyMapper: PolicyStatesQueryResults
4252
- },
4253
- default: {
4254
- bodyMapper: QueryFailure
4255
- }
4256
- },
4257
- serializer: serializer$3
4258
- };
4259
- var summarizeForResourceGroupOperationSpec = {
4260
- httpMethod: "POST",
4261
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4262
- urlParameters: [
4263
- policyStatesSummaryResource,
4264
- subscriptionId,
4265
- resourceGroupName
4266
- ],
4267
- queryParameters: [
4268
- apiVersion3,
4269
- top,
4270
- from,
4271
- to,
4272
- filter
4273
- ],
4274
- headerParameters: [
4275
- acceptLanguage
4276
- ],
4277
- responses: {
4278
- 200: {
4279
- bodyMapper: SummarizeResults
4280
- },
4281
- default: {
4282
- bodyMapper: QueryFailure
4283
- }
4284
- },
4285
- serializer: serializer$3
4286
- };
4287
- var listQueryResultsForResourceOperationSpec$2 = {
4288
- httpMethod: "POST",
4289
- path: "{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4290
- urlParameters: [
4291
- policyStatesResource,
4292
- resourceId
4293
- ],
4294
- queryParameters: [
4295
- apiVersion3,
4296
- top,
4297
- orderBy,
4298
- select,
4299
- from,
4300
- to,
4301
- filter,
4302
- apply,
4303
- expand
4304
- ],
4305
- headerParameters: [
4306
- acceptLanguage
4307
- ],
4308
- responses: {
4309
- 200: {
4310
- bodyMapper: PolicyStatesQueryResults
4311
- },
4312
- default: {
4313
- bodyMapper: QueryFailure
4314
- }
4315
- },
4316
- serializer: serializer$3
4317
- };
4318
- var summarizeForResourceOperationSpec = {
4319
- httpMethod: "POST",
4320
- path: "{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4321
- urlParameters: [
4322
- policyStatesSummaryResource,
4323
- resourceId
4324
- ],
4325
- queryParameters: [
4326
- apiVersion3,
4327
- top,
4328
- from,
4329
- to,
4330
- filter
4331
- ],
4332
- headerParameters: [
4333
- acceptLanguage
4334
- ],
4335
- responses: {
4336
- 200: {
4337
- bodyMapper: SummarizeResults
4338
- },
4339
- default: {
4340
- bodyMapper: QueryFailure
4341
- }
4342
- },
4343
- serializer: serializer$3
4344
- };
4345
- var listQueryResultsForPolicySetDefinitionOperationSpec$1 = {
4346
- httpMethod: "POST",
4347
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4348
- urlParameters: [
4349
- policyStatesResource,
4350
- subscriptionId,
4351
- authorizationNamespace,
4352
- policySetDefinitionName
4353
- ],
4354
- queryParameters: [
4355
- apiVersion3,
4356
- top,
4357
- orderBy,
4358
- select,
4359
- from,
4360
- to,
4361
- filter,
4362
- apply
4363
- ],
4364
- headerParameters: [
4365
- acceptLanguage
4366
- ],
4367
- responses: {
4368
- 200: {
4369
- bodyMapper: PolicyStatesQueryResults
4370
- },
4371
- default: {
4372
- bodyMapper: QueryFailure
4373
- }
4374
- },
4375
- serializer: serializer$3
4376
- };
4377
- var summarizeForPolicySetDefinitionOperationSpec = {
4378
- httpMethod: "POST",
4379
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4380
- urlParameters: [
4381
- policyStatesSummaryResource,
4382
- subscriptionId,
4383
- authorizationNamespace,
4384
- policySetDefinitionName
4385
- ],
4386
- queryParameters: [
4387
- apiVersion3,
4388
- top,
4389
- from,
4390
- to,
4391
- filter
4392
- ],
4393
- headerParameters: [
4394
- acceptLanguage
4395
- ],
4396
- responses: {
4397
- 200: {
4398
- bodyMapper: SummarizeResults
4399
- },
4400
- default: {
4401
- bodyMapper: QueryFailure
4402
- }
4403
- },
4404
- serializer: serializer$3
4405
- };
4406
- var listQueryResultsForPolicyDefinitionOperationSpec$1 = {
4407
- httpMethod: "POST",
4408
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4409
- urlParameters: [
4410
- policyStatesResource,
4411
- subscriptionId,
4412
- authorizationNamespace,
4413
- policyDefinitionName
4414
- ],
4415
- queryParameters: [
4416
- apiVersion3,
4417
- top,
4418
- orderBy,
4419
- select,
4420
- from,
4421
- to,
4422
- filter,
4423
- apply
4424
- ],
4425
- headerParameters: [
4426
- acceptLanguage
4427
- ],
4428
- responses: {
4429
- 200: {
4430
- bodyMapper: PolicyStatesQueryResults
4431
- },
4432
- default: {
4433
- bodyMapper: QueryFailure
4434
- }
4435
- },
4436
- serializer: serializer$3
4437
- };
4438
- var summarizeForPolicyDefinitionOperationSpec = {
4439
- httpMethod: "POST",
4440
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4441
- urlParameters: [
4442
- policyStatesSummaryResource,
4443
- subscriptionId,
4444
- authorizationNamespace,
4445
- policyDefinitionName
4446
- ],
4447
- queryParameters: [
4448
- apiVersion3,
4449
- top,
4450
- from,
4451
- to,
4452
- filter
4453
- ],
4454
- headerParameters: [
4455
- acceptLanguage
4456
- ],
4457
- responses: {
4458
- 200: {
4459
- bodyMapper: SummarizeResults
4460
- },
4461
- default: {
4462
- bodyMapper: QueryFailure
4463
- }
4464
- },
4465
- serializer: serializer$3
4466
- };
4467
- var listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec$1 = {
4468
- httpMethod: "POST",
4469
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4470
- urlParameters: [
4471
- policyStatesResource,
4472
- subscriptionId,
4473
- authorizationNamespace,
4474
- policyAssignmentName
4475
- ],
4476
- queryParameters: [
4477
- apiVersion3,
4478
- top,
4479
- orderBy,
4480
- select,
4481
- from,
4482
- to,
4483
- filter,
4484
- apply
4485
- ],
4486
- headerParameters: [
4487
- acceptLanguage
4488
- ],
4489
- responses: {
4490
- 200: {
4491
- bodyMapper: PolicyStatesQueryResults
4492
- },
4493
- default: {
4494
- bodyMapper: QueryFailure
4495
- }
4496
- },
4497
- serializer: serializer$3
4498
- };
4499
- var summarizeForSubscriptionLevelPolicyAssignmentOperationSpec = {
4500
- httpMethod: "POST",
4501
- path: "subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4502
- urlParameters: [
4503
- policyStatesSummaryResource,
4504
- subscriptionId,
4505
- authorizationNamespace,
4506
- policyAssignmentName
4507
- ],
4508
- queryParameters: [
4509
- apiVersion3,
4510
- top,
4511
- from,
4512
- to,
4513
- filter
4514
- ],
4515
- headerParameters: [
4516
- acceptLanguage
4517
- ],
4518
- responses: {
4519
- 200: {
4520
- bodyMapper: SummarizeResults
4521
- },
4522
- default: {
4523
- bodyMapper: QueryFailure
4524
- }
4525
- },
4526
- serializer: serializer$3
4527
- };
4528
- var listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec$1 = {
4529
- httpMethod: "POST",
4530
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults",
4531
- urlParameters: [
4532
- policyStatesResource,
4533
- subscriptionId,
4534
- resourceGroupName,
4535
- authorizationNamespace,
4536
- policyAssignmentName
4537
- ],
4538
- queryParameters: [
4539
- apiVersion3,
4540
- top,
4541
- orderBy,
4542
- select,
4543
- from,
4544
- to,
4545
- filter,
4546
- apply
4547
- ],
4548
- headerParameters: [
4549
- acceptLanguage
4550
- ],
4551
- responses: {
4552
- 200: {
4553
- bodyMapper: PolicyStatesQueryResults
4554
- },
4555
- default: {
4556
- bodyMapper: QueryFailure
4557
- }
4558
- },
4559
- serializer: serializer$3
4560
- };
4561
- var summarizeForResourceGroupLevelPolicyAssignmentOperationSpec = {
4562
- httpMethod: "POST",
4563
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize",
4564
- urlParameters: [
4565
- policyStatesSummaryResource,
4566
- subscriptionId,
4567
- resourceGroupName,
4568
- authorizationNamespace,
4569
- policyAssignmentName
4570
- ],
4571
- queryParameters: [
4572
- apiVersion3,
4573
- top,
4574
- from,
4575
- to,
4576
- filter
4577
- ],
4578
- headerParameters: [
4579
- acceptLanguage
4580
- ],
4581
- responses: {
4582
- 200: {
4583
- bodyMapper: SummarizeResults
4584
- },
4585
- default: {
4586
- bodyMapper: QueryFailure
4587
- }
4588
- },
4589
- serializer: serializer$3
4590
- };
4591
- var beginTriggerSubscriptionEvaluationOperationSpec = {
4592
- httpMethod: "POST",
4593
- path: "subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation",
4594
- urlParameters: [
4595
- subscriptionId
4596
- ],
4597
- queryParameters: [
4598
- apiVersion3
4599
- ],
4600
- headerParameters: [
4601
- acceptLanguage
4602
- ],
4603
- responses: {
4604
- 200: {},
4605
- 202: {},
4606
- default: {
4607
- bodyMapper: QueryFailure
4608
- }
4609
- },
4610
- serializer: serializer$3
4611
- };
4612
- var beginTriggerResourceGroupEvaluationOperationSpec = {
4613
- httpMethod: "POST",
4614
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation",
4615
- urlParameters: [
4616
- subscriptionId,
4617
- resourceGroupName
4618
- ],
4619
- queryParameters: [
4620
- apiVersion3
4621
- ],
4622
- headerParameters: [
4623
- acceptLanguage
4624
- ],
4625
- responses: {
4626
- 200: {},
4627
- 202: {},
4628
- default: {
4629
- bodyMapper: QueryFailure
4630
- }
4631
- },
4632
- serializer: serializer$3
4633
- };
4634
-
4635
- /*
4636
- * Copyright (c) Microsoft Corporation. All rights reserved.
4637
- * Licensed under the MIT License. See License.txt in the project root for license information.
4638
- *
4639
- * Code generated by Microsoft (R) AutoRest Code Generator.
4640
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4641
- */
4642
-
4643
- var Mappers$4 = /*#__PURE__*/Object.freeze({
4644
- __proto__: null,
4645
- Operation: Operation,
4646
- OperationDisplay: OperationDisplay,
4647
- OperationsListResults: OperationsListResults,
4648
- QueryFailure: QueryFailure,
4649
- QueryFailureError: QueryFailureError
4650
- });
4651
-
4652
- /*
4653
- * Copyright (c) Microsoft Corporation. All rights reserved.
4654
- * Licensed under the MIT License. See License.txt in the project root for
4655
- * license information.
4656
- *
4657
- * Code generated by Microsoft (R) AutoRest Code Generator.
4658
- * Changes may cause incorrect behavior and will be lost if the code is
4659
- * regenerated.
4660
- */
4661
- /** Class representing a Operations. */
4662
- var Operations = /** @class */ (function () {
4663
- /**
4664
- * Create a Operations.
4665
- * @param {PolicyInsightsClientContext} client Reference to the service client.
4666
- */
4667
- function Operations(client) {
4668
- this.client = client;
4669
- }
4670
- Operations.prototype.list = function (options, callback) {
4671
- return this.client.sendOperationRequest({
4672
- options: options
4673
- }, listOperationSpec, callback);
4674
- };
4675
- return Operations;
4676
- }());
4677
- // Operation Specifications
4678
- var serializer$4 = new msRest.Serializer(Mappers$4);
4679
- var listOperationSpec = {
4680
- httpMethod: "GET",
4681
- path: "providers/Microsoft.PolicyInsights/operations",
4682
- queryParameters: [
4683
- apiVersion3
4684
- ],
4685
- headerParameters: [
4686
- acceptLanguage
4687
- ],
4688
- responses: {
4689
- 200: {
4690
- bodyMapper: OperationsListResults
4691
- },
4692
- default: {
4693
- bodyMapper: QueryFailure
4694
- }
4695
- },
4696
- serializer: serializer$4
4697
- };
4698
-
4699
- /*
4700
- * Copyright (c) Microsoft Corporation. All rights reserved.
4701
- * Licensed under the MIT License. See License.txt in the project root for license information.
4702
- *
4703
- * Code generated by Microsoft (R) AutoRest Code Generator.
4704
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4705
- */
4706
-
4707
- var Mappers$5 = /*#__PURE__*/Object.freeze({
4708
- __proto__: null,
4709
- ErrorDefinition: ErrorDefinition,
4710
- ErrorResponse: ErrorResponse,
4711
- PolicyMetadata: PolicyMetadata,
4712
- PolicyMetadataCollection: PolicyMetadataCollection,
4713
- SlimPolicyMetadata: SlimPolicyMetadata,
4714
- TypedErrorInfo: TypedErrorInfo
4715
- });
4716
-
4717
- /*
4718
- * Copyright (c) Microsoft Corporation. All rights reserved.
4719
- * Licensed under the MIT License. See License.txt in the project root for
4720
- * license information.
4721
- *
4722
- * Code generated by Microsoft (R) AutoRest Code Generator.
4723
- * Changes may cause incorrect behavior and will be lost if the code is
4724
- * regenerated.
4725
- */
4726
- /** Class representing a PolicyMetadataOperations. */
4727
- var PolicyMetadataOperations = /** @class */ (function () {
4728
- /**
4729
- * Create a PolicyMetadataOperations.
4730
- * @param {PolicyInsightsClientContext} client Reference to the service client.
4731
- */
4732
- function PolicyMetadataOperations(client) {
4733
- this.client = client;
4734
- }
4735
- PolicyMetadataOperations.prototype.getResource = function (resourceName, options, callback) {
4736
- return this.client.sendOperationRequest({
4737
- resourceName: resourceName,
4738
- options: options
4739
- }, getResourceOperationSpec, callback);
4740
- };
4741
- PolicyMetadataOperations.prototype.list = function (options, callback) {
4742
- return this.client.sendOperationRequest({
4743
- options: options
4744
- }, listOperationSpec$1, callback);
4745
- };
4746
- PolicyMetadataOperations.prototype.listNext = function (nextPageLink, options, callback) {
4747
- return this.client.sendOperationRequest({
4748
- nextPageLink: nextPageLink,
4749
- options: options
4750
- }, listNextOperationSpec, callback);
4751
- };
4752
- return PolicyMetadataOperations;
4753
- }());
4754
- // Operation Specifications
4755
- var serializer$5 = new msRest.Serializer(Mappers$5);
4756
- var getResourceOperationSpec = {
4757
- httpMethod: "GET",
4758
- path: "providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}",
4759
- urlParameters: [
4760
- resourceName
4761
- ],
4762
- queryParameters: [
4763
- apiVersion3
4764
- ],
4765
- headerParameters: [
4766
- acceptLanguage
4767
- ],
4768
- responses: {
4769
- 200: {
4770
- bodyMapper: PolicyMetadata
4771
- },
4772
- default: {
4773
- bodyMapper: ErrorResponse
4774
- }
4775
- },
4776
- serializer: serializer$5
4777
- };
4778
- var listOperationSpec$1 = {
4779
- httpMethod: "GET",
4780
- path: "providers/Microsoft.PolicyInsights/policyMetadata",
4781
- queryParameters: [
4782
- apiVersion3,
4783
- top
4784
- ],
4785
- headerParameters: [
4786
- acceptLanguage
4787
- ],
4788
- responses: {
4789
- 200: {
4790
- bodyMapper: PolicyMetadataCollection
4791
- },
4792
- default: {
4793
- bodyMapper: ErrorResponse
4794
- }
4795
- },
4796
- serializer: serializer$5
4797
- };
4798
- var listNextOperationSpec = {
4799
- httpMethod: "GET",
4800
- baseUrl: "https://management.azure.com",
4801
- path: "{nextLink}",
4802
- urlParameters: [
4803
- nextPageLink
4804
- ],
4805
- headerParameters: [
4806
- acceptLanguage
4807
- ],
4808
- responses: {
4809
- 200: {
4810
- bodyMapper: PolicyMetadataCollection
4811
- },
4812
- default: {
4813
- bodyMapper: ErrorResponse
4814
- }
4815
- },
4816
- serializer: serializer$5
4817
- };
4818
-
4819
- /*
4820
- * Copyright (c) Microsoft Corporation. All rights reserved.
4821
- * Licensed under the MIT License. See License.txt in the project root for
4822
- * license information.
4823
- *
4824
- * Code generated by Microsoft (R) AutoRest Code Generator.
4825
- * Changes may cause incorrect behavior and will be lost if the code is
4826
- * regenerated.
4827
- */
4828
- var packageName = "@azure/arm-policyinsights";
4829
- var packageVersion = "3.2.0";
4830
- var PolicyInsightsClientContext = /** @class */ (function (_super) {
4831
- __extends(PolicyInsightsClientContext, _super);
4832
- /**
4833
- * Initializes a new instance of the PolicyInsightsClient class.
4834
- * @param credentials Credentials needed for the client to connect to Azure.
4835
- * @param [options] The parameter options
4836
- */
4837
- function PolicyInsightsClientContext(credentials, options) {
4838
- var _this = this;
4839
- if (credentials == undefined) {
4840
- throw new Error('\'credentials\' cannot be null.');
4841
- }
4842
- if (!options) {
4843
- options = {};
4844
- }
4845
- if (!options.userAgent) {
4846
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4847
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
4848
- }
4849
- _this = _super.call(this, credentials, options) || this;
4850
- _this.acceptLanguage = 'en-US';
4851
- _this.longRunningOperationRetryTimeout = 30;
4852
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
4853
- _this.requestContentType = "application/json; charset=utf-8";
4854
- _this.credentials = credentials;
4855
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
4856
- _this.acceptLanguage = options.acceptLanguage;
4857
- }
4858
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
4859
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
4860
- }
4861
- return _this;
4862
- }
4863
- return PolicyInsightsClientContext;
4864
- }(msRestAzure.AzureServiceClient));
4865
-
4866
- /*
4867
- * Copyright (c) Microsoft Corporation. All rights reserved.
4868
- * Licensed under the MIT License. See License.txt in the project root for
4869
- * license information.
4870
- *
4871
- * Code generated by Microsoft (R) AutoRest Code Generator.
4872
- * Changes may cause incorrect behavior and will be lost if the code is
4873
- * regenerated.
4874
- */
4875
- var PolicyInsightsClient = /** @class */ (function (_super) {
4876
- __extends(PolicyInsightsClient, _super);
4877
- /**
4878
- * Initializes a new instance of the PolicyInsightsClient class.
4879
- * @param credentials Credentials needed for the client to connect to Azure.
4880
- * @param [options] The parameter options
4881
- */
4882
- function PolicyInsightsClient(credentials, options) {
4883
- var _this = _super.call(this, credentials, options) || this;
4884
- _this.policyTrackedResources = new PolicyTrackedResources(_this);
4885
- _this.remediations = new Remediations(_this);
4886
- _this.policyEvents = new PolicyEvents(_this);
4887
- _this.policyStates = new PolicyStates(_this);
4888
- _this.operations = new Operations(_this);
4889
- _this.policyMetadata = new PolicyMetadataOperations(_this);
4890
- return _this;
4891
- }
4892
- return PolicyInsightsClient;
4893
- }(PolicyInsightsClientContext));
4894
-
4895
- exports.Operations = Operations;
4896
- exports.PolicyEvents = PolicyEvents;
4897
- exports.PolicyInsightsClient = PolicyInsightsClient;
4898
- exports.PolicyInsightsClientContext = PolicyInsightsClientContext;
4899
- exports.PolicyInsightsMappers = mappers;
4900
- exports.PolicyInsightsModels = index;
4901
- exports.PolicyMetadataOperations = PolicyMetadataOperations;
4902
- exports.PolicyStates = PolicyStates;
4903
- exports.PolicyTrackedResources = PolicyTrackedResources;
4904
- exports.Remediations = Remediations;
4905
-
4906
- Object.defineProperty(exports, '__esModule', { value: true });
4907
-
4908
- })));
4909
- //# sourceMappingURL=arm-policyinsights.js.map