@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
@@ -0,0 +1,1097 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing PolicyEvents operations. */
14
+ export class PolicyEventsImpl {
15
+ /**
16
+ * Initialize a new instance of the class PolicyEvents class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Queries policy events for the resources under the management group.
24
+ * @param managementGroupName Management group name.
25
+ * @param options The options parameters.
26
+ */
27
+ listQueryResultsForManagementGroup(managementGroupName, options) {
28
+ const iter = this.listQueryResultsForManagementGroupPagingAll(managementGroupName, options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: () => {
37
+ return this.listQueryResultsForManagementGroupPagingPage(managementGroupName, options);
38
+ }
39
+ };
40
+ }
41
+ listQueryResultsForManagementGroupPagingPage(managementGroupName, options) {
42
+ return __asyncGenerator(this, arguments, function* listQueryResultsForManagementGroupPagingPage_1() {
43
+ let result = yield __await(this._listQueryResultsForManagementGroup(managementGroupName, options));
44
+ yield yield __await(result.value || []);
45
+ let continuationToken = result.odataNextLink;
46
+ while (continuationToken) {
47
+ result = yield __await(this._listQueryResultsForManagementGroupNext(managementGroupName, continuationToken, options));
48
+ continuationToken = result.odataNextLink;
49
+ yield yield __await(result.value || []);
50
+ }
51
+ });
52
+ }
53
+ listQueryResultsForManagementGroupPagingAll(managementGroupName, options) {
54
+ return __asyncGenerator(this, arguments, function* listQueryResultsForManagementGroupPagingAll_1() {
55
+ var e_1, _a;
56
+ try {
57
+ for (var _b = __asyncValues(this.listQueryResultsForManagementGroupPagingPage(managementGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
58
+ const page = _c.value;
59
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
60
+ }
61
+ }
62
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
63
+ finally {
64
+ try {
65
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
66
+ }
67
+ finally { if (e_1) throw e_1.error; }
68
+ }
69
+ });
70
+ }
71
+ /**
72
+ * Queries policy events for the resources under the subscription.
73
+ * @param subscriptionId Microsoft Azure subscription ID.
74
+ * @param options The options parameters.
75
+ */
76
+ listQueryResultsForSubscription(subscriptionId, options) {
77
+ const iter = this.listQueryResultsForSubscriptionPagingAll(subscriptionId, options);
78
+ return {
79
+ next() {
80
+ return iter.next();
81
+ },
82
+ [Symbol.asyncIterator]() {
83
+ return this;
84
+ },
85
+ byPage: () => {
86
+ return this.listQueryResultsForSubscriptionPagingPage(subscriptionId, options);
87
+ }
88
+ };
89
+ }
90
+ listQueryResultsForSubscriptionPagingPage(subscriptionId, options) {
91
+ return __asyncGenerator(this, arguments, function* listQueryResultsForSubscriptionPagingPage_1() {
92
+ let result = yield __await(this._listQueryResultsForSubscription(subscriptionId, options));
93
+ yield yield __await(result.value || []);
94
+ let continuationToken = result.odataNextLink;
95
+ while (continuationToken) {
96
+ result = yield __await(this._listQueryResultsForSubscriptionNext(subscriptionId, continuationToken, options));
97
+ continuationToken = result.odataNextLink;
98
+ yield yield __await(result.value || []);
99
+ }
100
+ });
101
+ }
102
+ listQueryResultsForSubscriptionPagingAll(subscriptionId, options) {
103
+ return __asyncGenerator(this, arguments, function* listQueryResultsForSubscriptionPagingAll_1() {
104
+ var e_2, _a;
105
+ try {
106
+ for (var _b = __asyncValues(this.listQueryResultsForSubscriptionPagingPage(subscriptionId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
107
+ const page = _c.value;
108
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
109
+ }
110
+ }
111
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
112
+ finally {
113
+ try {
114
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
115
+ }
116
+ finally { if (e_2) throw e_2.error; }
117
+ }
118
+ });
119
+ }
120
+ /**
121
+ * Queries policy events for the resources under the resource group.
122
+ * @param subscriptionId Microsoft Azure subscription ID.
123
+ * @param resourceGroupName Resource group name.
124
+ * @param options The options parameters.
125
+ */
126
+ listQueryResultsForResourceGroup(subscriptionId, resourceGroupName, options) {
127
+ const iter = this.listQueryResultsForResourceGroupPagingAll(subscriptionId, resourceGroupName, options);
128
+ return {
129
+ next() {
130
+ return iter.next();
131
+ },
132
+ [Symbol.asyncIterator]() {
133
+ return this;
134
+ },
135
+ byPage: () => {
136
+ return this.listQueryResultsForResourceGroupPagingPage(subscriptionId, resourceGroupName, options);
137
+ }
138
+ };
139
+ }
140
+ listQueryResultsForResourceGroupPagingPage(subscriptionId, resourceGroupName, options) {
141
+ return __asyncGenerator(this, arguments, function* listQueryResultsForResourceGroupPagingPage_1() {
142
+ let result = yield __await(this._listQueryResultsForResourceGroup(subscriptionId, resourceGroupName, options));
143
+ yield yield __await(result.value || []);
144
+ let continuationToken = result.odataNextLink;
145
+ while (continuationToken) {
146
+ result = yield __await(this._listQueryResultsForResourceGroupNext(subscriptionId, resourceGroupName, continuationToken, options));
147
+ continuationToken = result.odataNextLink;
148
+ yield yield __await(result.value || []);
149
+ }
150
+ });
151
+ }
152
+ listQueryResultsForResourceGroupPagingAll(subscriptionId, resourceGroupName, options) {
153
+ return __asyncGenerator(this, arguments, function* listQueryResultsForResourceGroupPagingAll_1() {
154
+ var e_3, _a;
155
+ try {
156
+ for (var _b = __asyncValues(this.listQueryResultsForResourceGroupPagingPage(subscriptionId, resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
157
+ const page = _c.value;
158
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
159
+ }
160
+ }
161
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
162
+ finally {
163
+ try {
164
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
165
+ }
166
+ finally { if (e_3) throw e_3.error; }
167
+ }
168
+ });
169
+ }
170
+ /**
171
+ * Queries policy events for the resource.
172
+ * @param resourceId Resource ID.
173
+ * @param options The options parameters.
174
+ */
175
+ listQueryResultsForResource(resourceId, options) {
176
+ const iter = this.listQueryResultsForResourcePagingAll(resourceId, options);
177
+ return {
178
+ next() {
179
+ return iter.next();
180
+ },
181
+ [Symbol.asyncIterator]() {
182
+ return this;
183
+ },
184
+ byPage: () => {
185
+ return this.listQueryResultsForResourcePagingPage(resourceId, options);
186
+ }
187
+ };
188
+ }
189
+ listQueryResultsForResourcePagingPage(resourceId, options) {
190
+ return __asyncGenerator(this, arguments, function* listQueryResultsForResourcePagingPage_1() {
191
+ let result = yield __await(this._listQueryResultsForResource(resourceId, options));
192
+ yield yield __await(result.value || []);
193
+ let continuationToken = result.odataNextLink;
194
+ while (continuationToken) {
195
+ result = yield __await(this._listQueryResultsForResourceNext(resourceId, continuationToken, options));
196
+ continuationToken = result.odataNextLink;
197
+ yield yield __await(result.value || []);
198
+ }
199
+ });
200
+ }
201
+ listQueryResultsForResourcePagingAll(resourceId, options) {
202
+ return __asyncGenerator(this, arguments, function* listQueryResultsForResourcePagingAll_1() {
203
+ var e_4, _a;
204
+ try {
205
+ for (var _b = __asyncValues(this.listQueryResultsForResourcePagingPage(resourceId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
206
+ const page = _c.value;
207
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
208
+ }
209
+ }
210
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
211
+ finally {
212
+ try {
213
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
214
+ }
215
+ finally { if (e_4) throw e_4.error; }
216
+ }
217
+ });
218
+ }
219
+ /**
220
+ * Queries policy events for the subscription level policy set definition.
221
+ * @param subscriptionId Microsoft Azure subscription ID.
222
+ * @param policySetDefinitionName Policy set definition name.
223
+ * @param options The options parameters.
224
+ */
225
+ listQueryResultsForPolicySetDefinition(subscriptionId, policySetDefinitionName, options) {
226
+ const iter = this.listQueryResultsForPolicySetDefinitionPagingAll(subscriptionId, policySetDefinitionName, options);
227
+ return {
228
+ next() {
229
+ return iter.next();
230
+ },
231
+ [Symbol.asyncIterator]() {
232
+ return this;
233
+ },
234
+ byPage: () => {
235
+ return this.listQueryResultsForPolicySetDefinitionPagingPage(subscriptionId, policySetDefinitionName, options);
236
+ }
237
+ };
238
+ }
239
+ listQueryResultsForPolicySetDefinitionPagingPage(subscriptionId, policySetDefinitionName, options) {
240
+ return __asyncGenerator(this, arguments, function* listQueryResultsForPolicySetDefinitionPagingPage_1() {
241
+ let result = yield __await(this._listQueryResultsForPolicySetDefinition(subscriptionId, policySetDefinitionName, options));
242
+ yield yield __await(result.value || []);
243
+ let continuationToken = result.odataNextLink;
244
+ while (continuationToken) {
245
+ result = yield __await(this._listQueryResultsForPolicySetDefinitionNext(subscriptionId, policySetDefinitionName, continuationToken, options));
246
+ continuationToken = result.odataNextLink;
247
+ yield yield __await(result.value || []);
248
+ }
249
+ });
250
+ }
251
+ listQueryResultsForPolicySetDefinitionPagingAll(subscriptionId, policySetDefinitionName, options) {
252
+ return __asyncGenerator(this, arguments, function* listQueryResultsForPolicySetDefinitionPagingAll_1() {
253
+ var e_5, _a;
254
+ try {
255
+ for (var _b = __asyncValues(this.listQueryResultsForPolicySetDefinitionPagingPage(subscriptionId, policySetDefinitionName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
256
+ const page = _c.value;
257
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
258
+ }
259
+ }
260
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
261
+ finally {
262
+ try {
263
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
264
+ }
265
+ finally { if (e_5) throw e_5.error; }
266
+ }
267
+ });
268
+ }
269
+ /**
270
+ * Queries policy events for the subscription level policy definition.
271
+ * @param subscriptionId Microsoft Azure subscription ID.
272
+ * @param policyDefinitionName Policy definition name.
273
+ * @param options The options parameters.
274
+ */
275
+ listQueryResultsForPolicyDefinition(subscriptionId, policyDefinitionName, options) {
276
+ const iter = this.listQueryResultsForPolicyDefinitionPagingAll(subscriptionId, policyDefinitionName, options);
277
+ return {
278
+ next() {
279
+ return iter.next();
280
+ },
281
+ [Symbol.asyncIterator]() {
282
+ return this;
283
+ },
284
+ byPage: () => {
285
+ return this.listQueryResultsForPolicyDefinitionPagingPage(subscriptionId, policyDefinitionName, options);
286
+ }
287
+ };
288
+ }
289
+ listQueryResultsForPolicyDefinitionPagingPage(subscriptionId, policyDefinitionName, options) {
290
+ return __asyncGenerator(this, arguments, function* listQueryResultsForPolicyDefinitionPagingPage_1() {
291
+ let result = yield __await(this._listQueryResultsForPolicyDefinition(subscriptionId, policyDefinitionName, options));
292
+ yield yield __await(result.value || []);
293
+ let continuationToken = result.odataNextLink;
294
+ while (continuationToken) {
295
+ result = yield __await(this._listQueryResultsForPolicyDefinitionNext(subscriptionId, policyDefinitionName, continuationToken, options));
296
+ continuationToken = result.odataNextLink;
297
+ yield yield __await(result.value || []);
298
+ }
299
+ });
300
+ }
301
+ listQueryResultsForPolicyDefinitionPagingAll(subscriptionId, policyDefinitionName, options) {
302
+ return __asyncGenerator(this, arguments, function* listQueryResultsForPolicyDefinitionPagingAll_1() {
303
+ var e_6, _a;
304
+ try {
305
+ for (var _b = __asyncValues(this.listQueryResultsForPolicyDefinitionPagingPage(subscriptionId, policyDefinitionName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
306
+ const page = _c.value;
307
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
308
+ }
309
+ }
310
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
311
+ finally {
312
+ try {
313
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
314
+ }
315
+ finally { if (e_6) throw e_6.error; }
316
+ }
317
+ });
318
+ }
319
+ /**
320
+ * Queries policy events for the subscription level policy assignment.
321
+ * @param subscriptionId Microsoft Azure subscription ID.
322
+ * @param policyAssignmentName Policy assignment name.
323
+ * @param options The options parameters.
324
+ */
325
+ listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId, policyAssignmentName, options) {
326
+ const iter = this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(subscriptionId, policyAssignmentName, options);
327
+ return {
328
+ next() {
329
+ return iter.next();
330
+ },
331
+ [Symbol.asyncIterator]() {
332
+ return this;
333
+ },
334
+ byPage: () => {
335
+ return this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(subscriptionId, policyAssignmentName, options);
336
+ }
337
+ };
338
+ }
339
+ listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(subscriptionId, policyAssignmentName, options) {
340
+ return __asyncGenerator(this, arguments, function* listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage_1() {
341
+ let result = yield __await(this._listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId, policyAssignmentName, options));
342
+ yield yield __await(result.value || []);
343
+ let continuationToken = result.odataNextLink;
344
+ while (continuationToken) {
345
+ result = yield __await(this._listQueryResultsForSubscriptionLevelPolicyAssignmentNext(subscriptionId, policyAssignmentName, continuationToken, options));
346
+ continuationToken = result.odataNextLink;
347
+ yield yield __await(result.value || []);
348
+ }
349
+ });
350
+ }
351
+ listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll(subscriptionId, policyAssignmentName, options) {
352
+ return __asyncGenerator(this, arguments, function* listQueryResultsForSubscriptionLevelPolicyAssignmentPagingAll_1() {
353
+ var e_7, _a;
354
+ try {
355
+ for (var _b = __asyncValues(this.listQueryResultsForSubscriptionLevelPolicyAssignmentPagingPage(subscriptionId, policyAssignmentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
356
+ const page = _c.value;
357
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
358
+ }
359
+ }
360
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
361
+ finally {
362
+ try {
363
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
364
+ }
365
+ finally { if (e_7) throw e_7.error; }
366
+ }
367
+ });
368
+ }
369
+ /**
370
+ * Queries policy events for the resource group level policy assignment.
371
+ * @param subscriptionId Microsoft Azure subscription ID.
372
+ * @param resourceGroupName Resource group name.
373
+ * @param policyAssignmentName Policy assignment name.
374
+ * @param options The options parameters.
375
+ */
376
+ listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId, resourceGroupName, policyAssignmentName, options) {
377
+ const iter = this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(subscriptionId, resourceGroupName, policyAssignmentName, options);
378
+ return {
379
+ next() {
380
+ return iter.next();
381
+ },
382
+ [Symbol.asyncIterator]() {
383
+ return this;
384
+ },
385
+ byPage: () => {
386
+ return this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(subscriptionId, resourceGroupName, policyAssignmentName, options);
387
+ }
388
+ };
389
+ }
390
+ listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(subscriptionId, resourceGroupName, policyAssignmentName, options) {
391
+ return __asyncGenerator(this, arguments, function* listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage_1() {
392
+ let result = yield __await(this._listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId, resourceGroupName, policyAssignmentName, options));
393
+ yield yield __await(result.value || []);
394
+ let continuationToken = result.odataNextLink;
395
+ while (continuationToken) {
396
+ result = yield __await(this._listQueryResultsForResourceGroupLevelPolicyAssignmentNext(subscriptionId, resourceGroupName, policyAssignmentName, continuationToken, options));
397
+ continuationToken = result.odataNextLink;
398
+ yield yield __await(result.value || []);
399
+ }
400
+ });
401
+ }
402
+ listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll(subscriptionId, resourceGroupName, policyAssignmentName, options) {
403
+ return __asyncGenerator(this, arguments, function* listQueryResultsForResourceGroupLevelPolicyAssignmentPagingAll_1() {
404
+ var e_8, _a;
405
+ try {
406
+ for (var _b = __asyncValues(this.listQueryResultsForResourceGroupLevelPolicyAssignmentPagingPage(subscriptionId, resourceGroupName, policyAssignmentName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
407
+ const page = _c.value;
408
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
409
+ }
410
+ }
411
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
412
+ finally {
413
+ try {
414
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
415
+ }
416
+ finally { if (e_8) throw e_8.error; }
417
+ }
418
+ });
419
+ }
420
+ /**
421
+ * Queries policy events for the resources under the management group.
422
+ * @param managementGroupName Management group name.
423
+ * @param options The options parameters.
424
+ */
425
+ _listQueryResultsForManagementGroup(managementGroupName, options) {
426
+ return this.client.sendOperationRequest({ managementGroupName, options }, listQueryResultsForManagementGroupOperationSpec);
427
+ }
428
+ /**
429
+ * Queries policy events for the resources under the subscription.
430
+ * @param subscriptionId Microsoft Azure subscription ID.
431
+ * @param options The options parameters.
432
+ */
433
+ _listQueryResultsForSubscription(subscriptionId, options) {
434
+ return this.client.sendOperationRequest({ subscriptionId, options }, listQueryResultsForSubscriptionOperationSpec);
435
+ }
436
+ /**
437
+ * Queries policy events for the resources under the resource group.
438
+ * @param subscriptionId Microsoft Azure subscription ID.
439
+ * @param resourceGroupName Resource group name.
440
+ * @param options The options parameters.
441
+ */
442
+ _listQueryResultsForResourceGroup(subscriptionId, resourceGroupName, options) {
443
+ return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, options }, listQueryResultsForResourceGroupOperationSpec);
444
+ }
445
+ /**
446
+ * Queries policy events for the resource.
447
+ * @param resourceId Resource ID.
448
+ * @param options The options parameters.
449
+ */
450
+ _listQueryResultsForResource(resourceId, options) {
451
+ return this.client.sendOperationRequest({ resourceId, options }, listQueryResultsForResourceOperationSpec);
452
+ }
453
+ /**
454
+ * Queries policy events for the subscription level policy set definition.
455
+ * @param subscriptionId Microsoft Azure subscription ID.
456
+ * @param policySetDefinitionName Policy set definition name.
457
+ * @param options The options parameters.
458
+ */
459
+ _listQueryResultsForPolicySetDefinition(subscriptionId, policySetDefinitionName, options) {
460
+ return this.client.sendOperationRequest({ subscriptionId, policySetDefinitionName, options }, listQueryResultsForPolicySetDefinitionOperationSpec);
461
+ }
462
+ /**
463
+ * Queries policy events for the subscription level policy definition.
464
+ * @param subscriptionId Microsoft Azure subscription ID.
465
+ * @param policyDefinitionName Policy definition name.
466
+ * @param options The options parameters.
467
+ */
468
+ _listQueryResultsForPolicyDefinition(subscriptionId, policyDefinitionName, options) {
469
+ return this.client.sendOperationRequest({ subscriptionId, policyDefinitionName, options }, listQueryResultsForPolicyDefinitionOperationSpec);
470
+ }
471
+ /**
472
+ * Queries policy events for the subscription level policy assignment.
473
+ * @param subscriptionId Microsoft Azure subscription ID.
474
+ * @param policyAssignmentName Policy assignment name.
475
+ * @param options The options parameters.
476
+ */
477
+ _listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId, policyAssignmentName, options) {
478
+ return this.client.sendOperationRequest({ subscriptionId, policyAssignmentName, options }, listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec);
479
+ }
480
+ /**
481
+ * Queries policy events for the resource group level policy assignment.
482
+ * @param subscriptionId Microsoft Azure subscription ID.
483
+ * @param resourceGroupName Resource group name.
484
+ * @param policyAssignmentName Policy assignment name.
485
+ * @param options The options parameters.
486
+ */
487
+ _listQueryResultsForResourceGroupLevelPolicyAssignment(subscriptionId, resourceGroupName, policyAssignmentName, options) {
488
+ return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, policyAssignmentName, options }, listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec);
489
+ }
490
+ /**
491
+ * ListQueryResultsForManagementGroupNext
492
+ * @param managementGroupName Management group name.
493
+ * @param nextLink The nextLink from the previous successful call to the
494
+ * ListQueryResultsForManagementGroup method.
495
+ * @param options The options parameters.
496
+ */
497
+ _listQueryResultsForManagementGroupNext(managementGroupName, nextLink, options) {
498
+ return this.client.sendOperationRequest({ managementGroupName, nextLink, options }, listQueryResultsForManagementGroupNextOperationSpec);
499
+ }
500
+ /**
501
+ * ListQueryResultsForSubscriptionNext
502
+ * @param subscriptionId Microsoft Azure subscription ID.
503
+ * @param nextLink The nextLink from the previous successful call to the
504
+ * ListQueryResultsForSubscription method.
505
+ * @param options The options parameters.
506
+ */
507
+ _listQueryResultsForSubscriptionNext(subscriptionId, nextLink, options) {
508
+ return this.client.sendOperationRequest({ subscriptionId, nextLink, options }, listQueryResultsForSubscriptionNextOperationSpec);
509
+ }
510
+ /**
511
+ * ListQueryResultsForResourceGroupNext
512
+ * @param subscriptionId Microsoft Azure subscription ID.
513
+ * @param resourceGroupName Resource group name.
514
+ * @param nextLink The nextLink from the previous successful call to the
515
+ * ListQueryResultsForResourceGroup method.
516
+ * @param options The options parameters.
517
+ */
518
+ _listQueryResultsForResourceGroupNext(subscriptionId, resourceGroupName, nextLink, options) {
519
+ return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, nextLink, options }, listQueryResultsForResourceGroupNextOperationSpec);
520
+ }
521
+ /**
522
+ * ListQueryResultsForResourceNext
523
+ * @param resourceId Resource ID.
524
+ * @param nextLink The nextLink from the previous successful call to the ListQueryResultsForResource
525
+ * method.
526
+ * @param options The options parameters.
527
+ */
528
+ _listQueryResultsForResourceNext(resourceId, nextLink, options) {
529
+ return this.client.sendOperationRequest({ resourceId, nextLink, options }, listQueryResultsForResourceNextOperationSpec);
530
+ }
531
+ /**
532
+ * ListQueryResultsForPolicySetDefinitionNext
533
+ * @param subscriptionId Microsoft Azure subscription ID.
534
+ * @param policySetDefinitionName Policy set definition name.
535
+ * @param nextLink The nextLink from the previous successful call to the
536
+ * ListQueryResultsForPolicySetDefinition method.
537
+ * @param options The options parameters.
538
+ */
539
+ _listQueryResultsForPolicySetDefinitionNext(subscriptionId, policySetDefinitionName, nextLink, options) {
540
+ return this.client.sendOperationRequest({ subscriptionId, policySetDefinitionName, nextLink, options }, listQueryResultsForPolicySetDefinitionNextOperationSpec);
541
+ }
542
+ /**
543
+ * ListQueryResultsForPolicyDefinitionNext
544
+ * @param subscriptionId Microsoft Azure subscription ID.
545
+ * @param policyDefinitionName Policy definition name.
546
+ * @param nextLink The nextLink from the previous successful call to the
547
+ * ListQueryResultsForPolicyDefinition method.
548
+ * @param options The options parameters.
549
+ */
550
+ _listQueryResultsForPolicyDefinitionNext(subscriptionId, policyDefinitionName, nextLink, options) {
551
+ return this.client.sendOperationRequest({ subscriptionId, policyDefinitionName, nextLink, options }, listQueryResultsForPolicyDefinitionNextOperationSpec);
552
+ }
553
+ /**
554
+ * ListQueryResultsForSubscriptionLevelPolicyAssignmentNext
555
+ * @param subscriptionId Microsoft Azure subscription ID.
556
+ * @param policyAssignmentName Policy assignment name.
557
+ * @param nextLink The nextLink from the previous successful call to the
558
+ * ListQueryResultsForSubscriptionLevelPolicyAssignment method.
559
+ * @param options The options parameters.
560
+ */
561
+ _listQueryResultsForSubscriptionLevelPolicyAssignmentNext(subscriptionId, policyAssignmentName, nextLink, options) {
562
+ return this.client.sendOperationRequest({ subscriptionId, policyAssignmentName, nextLink, options }, listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec);
563
+ }
564
+ /**
565
+ * ListQueryResultsForResourceGroupLevelPolicyAssignmentNext
566
+ * @param subscriptionId Microsoft Azure subscription ID.
567
+ * @param resourceGroupName Resource group name.
568
+ * @param policyAssignmentName Policy assignment name.
569
+ * @param nextLink The nextLink from the previous successful call to the
570
+ * ListQueryResultsForResourceGroupLevelPolicyAssignment method.
571
+ * @param options The options parameters.
572
+ */
573
+ _listQueryResultsForResourceGroupLevelPolicyAssignmentNext(subscriptionId, resourceGroupName, policyAssignmentName, nextLink, options) {
574
+ return this.client.sendOperationRequest({
575
+ subscriptionId,
576
+ resourceGroupName,
577
+ policyAssignmentName,
578
+ nextLink,
579
+ options
580
+ }, listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec);
581
+ }
582
+ }
583
+ // Operation Specifications
584
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
585
+ const listQueryResultsForManagementGroupOperationSpec = {
586
+ path: "/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
587
+ httpMethod: "POST",
588
+ responses: {
589
+ 200: {
590
+ bodyMapper: Mappers.PolicyEventsQueryResults
591
+ },
592
+ default: {
593
+ bodyMapper: Mappers.QueryFailure
594
+ }
595
+ },
596
+ queryParameters: [
597
+ Parameters.top,
598
+ Parameters.filter,
599
+ Parameters.apiVersion2,
600
+ Parameters.orderBy,
601
+ Parameters.select,
602
+ Parameters.fromParam,
603
+ Parameters.to,
604
+ Parameters.apply,
605
+ Parameters.skipToken
606
+ ],
607
+ urlParameters: [
608
+ Parameters.$host,
609
+ Parameters.managementGroupsNamespace,
610
+ Parameters.managementGroupName,
611
+ Parameters.policyEventsResource
612
+ ],
613
+ headerParameters: [Parameters.accept],
614
+ serializer
615
+ };
616
+ const listQueryResultsForSubscriptionOperationSpec = {
617
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
618
+ httpMethod: "POST",
619
+ responses: {
620
+ 200: {
621
+ bodyMapper: Mappers.PolicyEventsQueryResults
622
+ },
623
+ default: {
624
+ bodyMapper: Mappers.QueryFailure
625
+ }
626
+ },
627
+ queryParameters: [
628
+ Parameters.top,
629
+ Parameters.filter,
630
+ Parameters.apiVersion2,
631
+ Parameters.orderBy,
632
+ Parameters.select,
633
+ Parameters.fromParam,
634
+ Parameters.to,
635
+ Parameters.apply,
636
+ Parameters.skipToken
637
+ ],
638
+ urlParameters: [
639
+ Parameters.$host,
640
+ Parameters.policyEventsResource,
641
+ Parameters.subscriptionId1
642
+ ],
643
+ headerParameters: [Parameters.accept],
644
+ serializer
645
+ };
646
+ const listQueryResultsForResourceGroupOperationSpec = {
647
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
648
+ httpMethod: "POST",
649
+ responses: {
650
+ 200: {
651
+ bodyMapper: Mappers.PolicyEventsQueryResults
652
+ },
653
+ default: {
654
+ bodyMapper: Mappers.QueryFailure
655
+ }
656
+ },
657
+ queryParameters: [
658
+ Parameters.top,
659
+ Parameters.filter,
660
+ Parameters.apiVersion2,
661
+ Parameters.orderBy,
662
+ Parameters.select,
663
+ Parameters.fromParam,
664
+ Parameters.to,
665
+ Parameters.apply,
666
+ Parameters.skipToken
667
+ ],
668
+ urlParameters: [
669
+ Parameters.$host,
670
+ Parameters.resourceGroupName,
671
+ Parameters.policyEventsResource,
672
+ Parameters.subscriptionId1
673
+ ],
674
+ headerParameters: [Parameters.accept],
675
+ serializer
676
+ };
677
+ const listQueryResultsForResourceOperationSpec = {
678
+ path: "/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
679
+ httpMethod: "POST",
680
+ responses: {
681
+ 200: {
682
+ bodyMapper: Mappers.PolicyEventsQueryResults
683
+ },
684
+ default: {
685
+ bodyMapper: Mappers.QueryFailure
686
+ }
687
+ },
688
+ queryParameters: [
689
+ Parameters.top,
690
+ Parameters.filter,
691
+ Parameters.apiVersion2,
692
+ Parameters.orderBy,
693
+ Parameters.select,
694
+ Parameters.fromParam,
695
+ Parameters.to,
696
+ Parameters.apply,
697
+ Parameters.skipToken,
698
+ Parameters.expand
699
+ ],
700
+ urlParameters: [
701
+ Parameters.$host,
702
+ Parameters.resourceId,
703
+ Parameters.policyEventsResource
704
+ ],
705
+ headerParameters: [Parameters.accept],
706
+ serializer
707
+ };
708
+ const listQueryResultsForPolicySetDefinitionOperationSpec = {
709
+ path: "/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
710
+ httpMethod: "POST",
711
+ responses: {
712
+ 200: {
713
+ bodyMapper: Mappers.PolicyEventsQueryResults
714
+ },
715
+ default: {
716
+ bodyMapper: Mappers.QueryFailure
717
+ }
718
+ },
719
+ queryParameters: [
720
+ Parameters.top,
721
+ Parameters.filter,
722
+ Parameters.apiVersion2,
723
+ Parameters.orderBy,
724
+ Parameters.select,
725
+ Parameters.fromParam,
726
+ Parameters.to,
727
+ Parameters.apply,
728
+ Parameters.skipToken
729
+ ],
730
+ urlParameters: [
731
+ Parameters.$host,
732
+ Parameters.policyEventsResource,
733
+ Parameters.subscriptionId1,
734
+ Parameters.authorizationNamespace,
735
+ Parameters.policySetDefinitionName
736
+ ],
737
+ headerParameters: [Parameters.accept],
738
+ serializer
739
+ };
740
+ const listQueryResultsForPolicyDefinitionOperationSpec = {
741
+ path: "/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
742
+ httpMethod: "POST",
743
+ responses: {
744
+ 200: {
745
+ bodyMapper: Mappers.PolicyEventsQueryResults
746
+ },
747
+ default: {
748
+ bodyMapper: Mappers.QueryFailure
749
+ }
750
+ },
751
+ queryParameters: [
752
+ Parameters.top,
753
+ Parameters.filter,
754
+ Parameters.apiVersion2,
755
+ Parameters.orderBy,
756
+ Parameters.select,
757
+ Parameters.fromParam,
758
+ Parameters.to,
759
+ Parameters.apply,
760
+ Parameters.skipToken
761
+ ],
762
+ urlParameters: [
763
+ Parameters.$host,
764
+ Parameters.policyEventsResource,
765
+ Parameters.subscriptionId1,
766
+ Parameters.authorizationNamespace,
767
+ Parameters.policyDefinitionName
768
+ ],
769
+ headerParameters: [Parameters.accept],
770
+ serializer
771
+ };
772
+ const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec = {
773
+ path: "/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
774
+ httpMethod: "POST",
775
+ responses: {
776
+ 200: {
777
+ bodyMapper: Mappers.PolicyEventsQueryResults
778
+ },
779
+ default: {
780
+ bodyMapper: Mappers.QueryFailure
781
+ }
782
+ },
783
+ queryParameters: [
784
+ Parameters.top,
785
+ Parameters.filter,
786
+ Parameters.apiVersion2,
787
+ Parameters.orderBy,
788
+ Parameters.select,
789
+ Parameters.fromParam,
790
+ Parameters.to,
791
+ Parameters.apply,
792
+ Parameters.skipToken
793
+ ],
794
+ urlParameters: [
795
+ Parameters.$host,
796
+ Parameters.policyEventsResource,
797
+ Parameters.subscriptionId1,
798
+ Parameters.authorizationNamespace,
799
+ Parameters.policyAssignmentName
800
+ ],
801
+ headerParameters: [Parameters.accept],
802
+ serializer
803
+ };
804
+ const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec = {
805
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults",
806
+ httpMethod: "POST",
807
+ responses: {
808
+ 200: {
809
+ bodyMapper: Mappers.PolicyEventsQueryResults
810
+ },
811
+ default: {
812
+ bodyMapper: Mappers.QueryFailure
813
+ }
814
+ },
815
+ queryParameters: [
816
+ Parameters.top,
817
+ Parameters.filter,
818
+ Parameters.apiVersion2,
819
+ Parameters.orderBy,
820
+ Parameters.select,
821
+ Parameters.fromParam,
822
+ Parameters.to,
823
+ Parameters.apply,
824
+ Parameters.skipToken
825
+ ],
826
+ urlParameters: [
827
+ Parameters.$host,
828
+ Parameters.resourceGroupName,
829
+ Parameters.policyEventsResource,
830
+ Parameters.subscriptionId1,
831
+ Parameters.authorizationNamespace,
832
+ Parameters.policyAssignmentName
833
+ ],
834
+ headerParameters: [Parameters.accept],
835
+ serializer
836
+ };
837
+ const listQueryResultsForManagementGroupNextOperationSpec = {
838
+ path: "{nextLink}",
839
+ httpMethod: "GET",
840
+ responses: {
841
+ 200: {
842
+ bodyMapper: Mappers.PolicyEventsQueryResults
843
+ },
844
+ default: {
845
+ bodyMapper: Mappers.QueryFailure
846
+ }
847
+ },
848
+ queryParameters: [
849
+ Parameters.top,
850
+ Parameters.filter,
851
+ Parameters.apiVersion2,
852
+ Parameters.orderBy,
853
+ Parameters.select,
854
+ Parameters.fromParam,
855
+ Parameters.to,
856
+ Parameters.apply,
857
+ Parameters.skipToken
858
+ ],
859
+ urlParameters: [
860
+ Parameters.$host,
861
+ Parameters.managementGroupsNamespace,
862
+ Parameters.managementGroupName,
863
+ Parameters.nextLink,
864
+ Parameters.policyEventsResource
865
+ ],
866
+ headerParameters: [Parameters.accept],
867
+ serializer
868
+ };
869
+ const listQueryResultsForSubscriptionNextOperationSpec = {
870
+ path: "{nextLink}",
871
+ httpMethod: "GET",
872
+ responses: {
873
+ 200: {
874
+ bodyMapper: Mappers.PolicyEventsQueryResults
875
+ },
876
+ default: {
877
+ bodyMapper: Mappers.QueryFailure
878
+ }
879
+ },
880
+ queryParameters: [
881
+ Parameters.top,
882
+ Parameters.filter,
883
+ Parameters.apiVersion2,
884
+ Parameters.orderBy,
885
+ Parameters.select,
886
+ Parameters.fromParam,
887
+ Parameters.to,
888
+ Parameters.apply,
889
+ Parameters.skipToken
890
+ ],
891
+ urlParameters: [
892
+ Parameters.$host,
893
+ Parameters.nextLink,
894
+ Parameters.policyEventsResource,
895
+ Parameters.subscriptionId1
896
+ ],
897
+ headerParameters: [Parameters.accept],
898
+ serializer
899
+ };
900
+ const listQueryResultsForResourceGroupNextOperationSpec = {
901
+ path: "{nextLink}",
902
+ httpMethod: "GET",
903
+ responses: {
904
+ 200: {
905
+ bodyMapper: Mappers.PolicyEventsQueryResults
906
+ },
907
+ default: {
908
+ bodyMapper: Mappers.QueryFailure
909
+ }
910
+ },
911
+ queryParameters: [
912
+ Parameters.top,
913
+ Parameters.filter,
914
+ Parameters.apiVersion2,
915
+ Parameters.orderBy,
916
+ Parameters.select,
917
+ Parameters.fromParam,
918
+ Parameters.to,
919
+ Parameters.apply,
920
+ Parameters.skipToken
921
+ ],
922
+ urlParameters: [
923
+ Parameters.$host,
924
+ Parameters.resourceGroupName,
925
+ Parameters.nextLink,
926
+ Parameters.policyEventsResource,
927
+ Parameters.subscriptionId1
928
+ ],
929
+ headerParameters: [Parameters.accept],
930
+ serializer
931
+ };
932
+ const listQueryResultsForResourceNextOperationSpec = {
933
+ path: "{nextLink}",
934
+ httpMethod: "GET",
935
+ responses: {
936
+ 200: {
937
+ bodyMapper: Mappers.PolicyEventsQueryResults
938
+ },
939
+ default: {
940
+ bodyMapper: Mappers.QueryFailure
941
+ }
942
+ },
943
+ queryParameters: [
944
+ Parameters.top,
945
+ Parameters.filter,
946
+ Parameters.apiVersion2,
947
+ Parameters.orderBy,
948
+ Parameters.select,
949
+ Parameters.fromParam,
950
+ Parameters.to,
951
+ Parameters.apply,
952
+ Parameters.skipToken,
953
+ Parameters.expand
954
+ ],
955
+ urlParameters: [
956
+ Parameters.$host,
957
+ Parameters.resourceId,
958
+ Parameters.nextLink,
959
+ Parameters.policyEventsResource
960
+ ],
961
+ headerParameters: [Parameters.accept],
962
+ serializer
963
+ };
964
+ const listQueryResultsForPolicySetDefinitionNextOperationSpec = {
965
+ path: "{nextLink}",
966
+ httpMethod: "GET",
967
+ responses: {
968
+ 200: {
969
+ bodyMapper: Mappers.PolicyEventsQueryResults
970
+ },
971
+ default: {
972
+ bodyMapper: Mappers.QueryFailure
973
+ }
974
+ },
975
+ queryParameters: [
976
+ Parameters.top,
977
+ Parameters.filter,
978
+ Parameters.apiVersion2,
979
+ Parameters.orderBy,
980
+ Parameters.select,
981
+ Parameters.fromParam,
982
+ Parameters.to,
983
+ Parameters.apply,
984
+ Parameters.skipToken
985
+ ],
986
+ urlParameters: [
987
+ Parameters.$host,
988
+ Parameters.nextLink,
989
+ Parameters.policyEventsResource,
990
+ Parameters.subscriptionId1,
991
+ Parameters.authorizationNamespace,
992
+ Parameters.policySetDefinitionName
993
+ ],
994
+ headerParameters: [Parameters.accept],
995
+ serializer
996
+ };
997
+ const listQueryResultsForPolicyDefinitionNextOperationSpec = {
998
+ path: "{nextLink}",
999
+ httpMethod: "GET",
1000
+ responses: {
1001
+ 200: {
1002
+ bodyMapper: Mappers.PolicyEventsQueryResults
1003
+ },
1004
+ default: {
1005
+ bodyMapper: Mappers.QueryFailure
1006
+ }
1007
+ },
1008
+ queryParameters: [
1009
+ Parameters.top,
1010
+ Parameters.filter,
1011
+ Parameters.apiVersion2,
1012
+ Parameters.orderBy,
1013
+ Parameters.select,
1014
+ Parameters.fromParam,
1015
+ Parameters.to,
1016
+ Parameters.apply,
1017
+ Parameters.skipToken
1018
+ ],
1019
+ urlParameters: [
1020
+ Parameters.$host,
1021
+ Parameters.nextLink,
1022
+ Parameters.policyEventsResource,
1023
+ Parameters.subscriptionId1,
1024
+ Parameters.authorizationNamespace,
1025
+ Parameters.policyDefinitionName
1026
+ ],
1027
+ headerParameters: [Parameters.accept],
1028
+ serializer
1029
+ };
1030
+ const listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec = {
1031
+ path: "{nextLink}",
1032
+ httpMethod: "GET",
1033
+ responses: {
1034
+ 200: {
1035
+ bodyMapper: Mappers.PolicyEventsQueryResults
1036
+ },
1037
+ default: {
1038
+ bodyMapper: Mappers.QueryFailure
1039
+ }
1040
+ },
1041
+ queryParameters: [
1042
+ Parameters.top,
1043
+ Parameters.filter,
1044
+ Parameters.apiVersion2,
1045
+ Parameters.orderBy,
1046
+ Parameters.select,
1047
+ Parameters.fromParam,
1048
+ Parameters.to,
1049
+ Parameters.apply,
1050
+ Parameters.skipToken
1051
+ ],
1052
+ urlParameters: [
1053
+ Parameters.$host,
1054
+ Parameters.nextLink,
1055
+ Parameters.policyEventsResource,
1056
+ Parameters.subscriptionId1,
1057
+ Parameters.authorizationNamespace,
1058
+ Parameters.policyAssignmentName
1059
+ ],
1060
+ headerParameters: [Parameters.accept],
1061
+ serializer
1062
+ };
1063
+ const listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec = {
1064
+ path: "{nextLink}",
1065
+ httpMethod: "GET",
1066
+ responses: {
1067
+ 200: {
1068
+ bodyMapper: Mappers.PolicyEventsQueryResults
1069
+ },
1070
+ default: {
1071
+ bodyMapper: Mappers.QueryFailure
1072
+ }
1073
+ },
1074
+ queryParameters: [
1075
+ Parameters.top,
1076
+ Parameters.filter,
1077
+ Parameters.apiVersion2,
1078
+ Parameters.orderBy,
1079
+ Parameters.select,
1080
+ Parameters.fromParam,
1081
+ Parameters.to,
1082
+ Parameters.apply,
1083
+ Parameters.skipToken
1084
+ ],
1085
+ urlParameters: [
1086
+ Parameters.$host,
1087
+ Parameters.resourceGroupName,
1088
+ Parameters.nextLink,
1089
+ Parameters.policyEventsResource,
1090
+ Parameters.subscriptionId1,
1091
+ Parameters.authorizationNamespace,
1092
+ Parameters.policyAssignmentName
1093
+ ],
1094
+ headerParameters: [Parameters.accept],
1095
+ serializer
1096
+ };
1097
+ //# sourceMappingURL=policyEvents.js.map