@azure/arm-security 6.0.0-alpha.20250718.1 → 6.0.0-alpha.20250730.1

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 (595) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +1479 -655
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/aPICollections.js +78 -124
  6. package/dist/browser/operations/aPICollections.js.map +1 -1
  7. package/dist/browser/operations/adaptiveApplicationControls.js +1 -0
  8. package/dist/browser/operations/adaptiveApplicationControls.js.map +1 -1
  9. package/dist/browser/operations/adaptiveNetworkHardenings.js +34 -46
  10. package/dist/browser/operations/adaptiveNetworkHardenings.js.map +1 -1
  11. package/dist/browser/operations/advancedThreatProtection.js +1 -0
  12. package/dist/browser/operations/advancedThreatProtection.js.map +1 -1
  13. package/dist/browser/operations/alerts.js +104 -167
  14. package/dist/browser/operations/alerts.js.map +1 -1
  15. package/dist/browser/operations/alertsSuppressionRules.js +23 -40
  16. package/dist/browser/operations/alertsSuppressionRules.js.map +1 -1
  17. package/dist/browser/operations/allowedConnections.js +45 -79
  18. package/dist/browser/operations/allowedConnections.js.map +1 -1
  19. package/dist/browser/operations/applicationOperations.js +1 -0
  20. package/dist/browser/operations/applicationOperations.js.map +1 -1
  21. package/dist/browser/operations/applications.js +23 -40
  22. package/dist/browser/operations/applications.js.map +1 -1
  23. package/dist/browser/operations/assessments.js +23 -40
  24. package/dist/browser/operations/assessments.js.map +1 -1
  25. package/dist/browser/operations/assessmentsMetadata.js +45 -79
  26. package/dist/browser/operations/assessmentsMetadata.js.map +1 -1
  27. package/dist/browser/operations/autoProvisioningSettings.js +23 -40
  28. package/dist/browser/operations/autoProvisioningSettings.js.map +1 -1
  29. package/dist/browser/operations/automations.js +45 -79
  30. package/dist/browser/operations/automations.js.map +1 -1
  31. package/dist/browser/operations/azureDevOpsOrgs.js +45 -52
  32. package/dist/browser/operations/azureDevOpsOrgs.js.map +1 -1
  33. package/dist/browser/operations/azureDevOpsProjects.js +45 -52
  34. package/dist/browser/operations/azureDevOpsProjects.js.map +1 -1
  35. package/dist/browser/operations/azureDevOpsRepos.js +45 -52
  36. package/dist/browser/operations/azureDevOpsRepos.js.map +1 -1
  37. package/dist/browser/operations/complianceResults.js +23 -40
  38. package/dist/browser/operations/complianceResults.js.map +1 -1
  39. package/dist/browser/operations/compliances.js +23 -40
  40. package/dist/browser/operations/compliances.js.map +1 -1
  41. package/dist/browser/operations/connectors.js +23 -40
  42. package/dist/browser/operations/connectors.js.map +1 -1
  43. package/dist/browser/operations/customAssessmentAutomations.js +45 -79
  44. package/dist/browser/operations/customAssessmentAutomations.js.map +1 -1
  45. package/dist/browser/operations/customEntityStoreAssignments.js +45 -79
  46. package/dist/browser/operations/customEntityStoreAssignments.js.map +1 -1
  47. package/dist/browser/operations/defenderForStorage.js +1 -0
  48. package/dist/browser/operations/defenderForStorage.js.map +1 -1
  49. package/dist/browser/operations/devOpsConfigurations.js +56 -58
  50. package/dist/browser/operations/devOpsConfigurations.js.map +1 -1
  51. package/dist/browser/operations/devOpsOperationResults.js +1 -0
  52. package/dist/browser/operations/devOpsOperationResults.js.map +1 -1
  53. package/dist/browser/operations/deviceSecurityGroups.js +23 -40
  54. package/dist/browser/operations/deviceSecurityGroups.js.map +1 -1
  55. package/dist/browser/operations/discoveredSecuritySolutions.js +45 -79
  56. package/dist/browser/operations/discoveredSecuritySolutions.js.map +1 -1
  57. package/dist/browser/operations/externalSecuritySolutions.js +45 -79
  58. package/dist/browser/operations/externalSecuritySolutions.js.map +1 -1
  59. package/dist/browser/operations/gitHubOwners.js +23 -40
  60. package/dist/browser/operations/gitHubOwners.js.map +1 -1
  61. package/dist/browser/operations/gitHubRepos.js +23 -40
  62. package/dist/browser/operations/gitHubRepos.js.map +1 -1
  63. package/dist/browser/operations/gitLabGroups.js +23 -40
  64. package/dist/browser/operations/gitLabGroups.js.map +1 -1
  65. package/dist/browser/operations/gitLabProjects.js +23 -40
  66. package/dist/browser/operations/gitLabProjects.js.map +1 -1
  67. package/dist/browser/operations/gitLabSubgroups.js +1 -0
  68. package/dist/browser/operations/gitLabSubgroups.js.map +1 -1
  69. package/dist/browser/operations/governanceAssignments.js +23 -40
  70. package/dist/browser/operations/governanceAssignments.js.map +1 -1
  71. package/dist/browser/operations/governanceRules.js +45 -52
  72. package/dist/browser/operations/governanceRules.js.map +1 -1
  73. package/dist/browser/operations/healthReports.js +23 -40
  74. package/dist/browser/operations/healthReports.js.map +1 -1
  75. package/dist/browser/operations/informationProtectionPolicies.js +23 -40
  76. package/dist/browser/operations/informationProtectionPolicies.js.map +1 -1
  77. package/dist/browser/operations/iotSecuritySolution.js +45 -79
  78. package/dist/browser/operations/iotSecuritySolution.js.map +1 -1
  79. package/dist/browser/operations/iotSecuritySolutionAnalytics.js +1 -0
  80. package/dist/browser/operations/iotSecuritySolutionAnalytics.js.map +1 -1
  81. package/dist/browser/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
  82. package/dist/browser/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
  83. package/dist/browser/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
  84. package/dist/browser/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
  85. package/dist/browser/operations/jitNetworkAccessPolicies.js +89 -157
  86. package/dist/browser/operations/jitNetworkAccessPolicies.js.map +1 -1
  87. package/dist/browser/operations/locations.js +23 -40
  88. package/dist/browser/operations/locations.js.map +1 -1
  89. package/dist/browser/operations/mdeOnboardings.js +1 -0
  90. package/dist/browser/operations/mdeOnboardings.js.map +1 -1
  91. package/dist/browser/operations/operations.js +23 -40
  92. package/dist/browser/operations/operations.js.map +1 -1
  93. package/dist/browser/operations/pricings.js +1 -0
  94. package/dist/browser/operations/pricings.js.map +1 -1
  95. package/dist/browser/operations/regulatoryComplianceAssessments.js +23 -40
  96. package/dist/browser/operations/regulatoryComplianceAssessments.js.map +1 -1
  97. package/dist/browser/operations/regulatoryComplianceControls.js +23 -40
  98. package/dist/browser/operations/regulatoryComplianceControls.js.map +1 -1
  99. package/dist/browser/operations/regulatoryComplianceStandards.js +23 -40
  100. package/dist/browser/operations/regulatoryComplianceStandards.js.map +1 -1
  101. package/dist/browser/operations/secureScoreControlDefinitions.js +45 -79
  102. package/dist/browser/operations/secureScoreControlDefinitions.js.map +1 -1
  103. package/dist/browser/operations/secureScoreControls.js +45 -79
  104. package/dist/browser/operations/secureScoreControls.js.map +1 -1
  105. package/dist/browser/operations/secureScores.js +23 -40
  106. package/dist/browser/operations/secureScores.js.map +1 -1
  107. package/dist/browser/operations/securityConnectorApplication.js +1 -0
  108. package/dist/browser/operations/securityConnectorApplication.js.map +1 -1
  109. package/dist/browser/operations/securityConnectorApplications.js +23 -40
  110. package/dist/browser/operations/securityConnectorApplications.js.map +1 -1
  111. package/dist/browser/operations/securityConnectors.js +45 -79
  112. package/dist/browser/operations/securityConnectors.js.map +1 -1
  113. package/dist/browser/operations/securityContacts.js +23 -40
  114. package/dist/browser/operations/securityContacts.js.map +1 -1
  115. package/dist/browser/operations/securityOperators.js +1 -0
  116. package/dist/browser/operations/securityOperators.js.map +1 -1
  117. package/dist/browser/operations/securitySolutions.js +23 -40
  118. package/dist/browser/operations/securitySolutions.js.map +1 -1
  119. package/dist/browser/operations/securitySolutionsReferenceDataOperations.js +1 -0
  120. package/dist/browser/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
  121. package/dist/browser/operations/sensitivitySettings.js +1 -0
  122. package/dist/browser/operations/sensitivitySettings.js.map +1 -1
  123. package/dist/browser/operations/serverVulnerabilityAssessmentOperations.js +12 -6
  124. package/dist/browser/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
  125. package/dist/browser/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
  126. package/dist/browser/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
  127. package/dist/browser/operations/settings.js +23 -40
  128. package/dist/browser/operations/settings.js.map +1 -1
  129. package/dist/browser/operations/softwareInventories.js +45 -79
  130. package/dist/browser/operations/softwareInventories.js.map +1 -1
  131. package/dist/browser/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
  132. package/dist/browser/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
  133. package/dist/browser/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
  134. package/dist/browser/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
  135. package/dist/browser/operations/sqlVulnerabilityAssessmentScans.js +1 -0
  136. package/dist/browser/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
  137. package/dist/browser/operations/subAssessments.js +45 -79
  138. package/dist/browser/operations/subAssessments.js.map +1 -1
  139. package/dist/browser/operations/tasks.js +67 -118
  140. package/dist/browser/operations/tasks.js.map +1 -1
  141. package/dist/browser/operations/topology.js +45 -79
  142. package/dist/browser/operations/topology.js.map +1 -1
  143. package/dist/browser/operations/workspaceSettings.js +23 -40
  144. package/dist/browser/operations/workspaceSettings.js.map +1 -1
  145. package/dist/browser/pagingHelper.js +2 -4
  146. package/dist/browser/pagingHelper.js.map +1 -1
  147. package/dist/browser/securityCenter.js +82 -5
  148. package/dist/browser/securityCenter.js.map +1 -1
  149. package/dist/commonjs/lroImpl.js +7 -3
  150. package/dist/commonjs/lroImpl.js.map +1 -1
  151. package/dist/commonjs/models/mappers.js +1479 -655
  152. package/dist/commonjs/models/mappers.js.map +1 -1
  153. package/dist/commonjs/operations/aPICollections.js +78 -123
  154. package/dist/commonjs/operations/aPICollections.js.map +1 -1
  155. package/dist/commonjs/operations/adaptiveApplicationControls.js +1 -0
  156. package/dist/commonjs/operations/adaptiveApplicationControls.js.map +1 -1
  157. package/dist/commonjs/operations/adaptiveNetworkHardenings.js +34 -45
  158. package/dist/commonjs/operations/adaptiveNetworkHardenings.js.map +1 -1
  159. package/dist/commonjs/operations/advancedThreatProtection.js +1 -0
  160. package/dist/commonjs/operations/advancedThreatProtection.js.map +1 -1
  161. package/dist/commonjs/operations/alerts.js +104 -166
  162. package/dist/commonjs/operations/alerts.js.map +1 -1
  163. package/dist/commonjs/operations/alertsSuppressionRules.js +23 -39
  164. package/dist/commonjs/operations/alertsSuppressionRules.js.map +1 -1
  165. package/dist/commonjs/operations/allowedConnections.js +45 -78
  166. package/dist/commonjs/operations/allowedConnections.js.map +1 -1
  167. package/dist/commonjs/operations/applicationOperations.js +1 -0
  168. package/dist/commonjs/operations/applicationOperations.js.map +1 -1
  169. package/dist/commonjs/operations/applications.js +23 -39
  170. package/dist/commonjs/operations/applications.js.map +1 -1
  171. package/dist/commonjs/operations/assessments.js +23 -39
  172. package/dist/commonjs/operations/assessments.js.map +1 -1
  173. package/dist/commonjs/operations/assessmentsMetadata.js +45 -78
  174. package/dist/commonjs/operations/assessmentsMetadata.js.map +1 -1
  175. package/dist/commonjs/operations/autoProvisioningSettings.js +23 -39
  176. package/dist/commonjs/operations/autoProvisioningSettings.js.map +1 -1
  177. package/dist/commonjs/operations/automations.js +45 -78
  178. package/dist/commonjs/operations/automations.js.map +1 -1
  179. package/dist/commonjs/operations/azureDevOpsOrgs.js +45 -51
  180. package/dist/commonjs/operations/azureDevOpsOrgs.js.map +1 -1
  181. package/dist/commonjs/operations/azureDevOpsProjects.js +45 -51
  182. package/dist/commonjs/operations/azureDevOpsProjects.js.map +1 -1
  183. package/dist/commonjs/operations/azureDevOpsRepos.js +45 -51
  184. package/dist/commonjs/operations/azureDevOpsRepos.js.map +1 -1
  185. package/dist/commonjs/operations/complianceResults.js +23 -39
  186. package/dist/commonjs/operations/complianceResults.js.map +1 -1
  187. package/dist/commonjs/operations/compliances.js +23 -39
  188. package/dist/commonjs/operations/compliances.js.map +1 -1
  189. package/dist/commonjs/operations/connectors.js +23 -39
  190. package/dist/commonjs/operations/connectors.js.map +1 -1
  191. package/dist/commonjs/operations/customAssessmentAutomations.js +45 -78
  192. package/dist/commonjs/operations/customAssessmentAutomations.js.map +1 -1
  193. package/dist/commonjs/operations/customEntityStoreAssignments.js +45 -78
  194. package/dist/commonjs/operations/customEntityStoreAssignments.js.map +1 -1
  195. package/dist/commonjs/operations/defenderForStorage.js +1 -0
  196. package/dist/commonjs/operations/defenderForStorage.js.map +1 -1
  197. package/dist/commonjs/operations/devOpsConfigurations.js +56 -57
  198. package/dist/commonjs/operations/devOpsConfigurations.js.map +1 -1
  199. package/dist/commonjs/operations/devOpsOperationResults.js +1 -0
  200. package/dist/commonjs/operations/devOpsOperationResults.js.map +1 -1
  201. package/dist/commonjs/operations/deviceSecurityGroups.js +23 -39
  202. package/dist/commonjs/operations/deviceSecurityGroups.js.map +1 -1
  203. package/dist/commonjs/operations/discoveredSecuritySolutions.js +45 -78
  204. package/dist/commonjs/operations/discoveredSecuritySolutions.js.map +1 -1
  205. package/dist/commonjs/operations/externalSecuritySolutions.js +45 -78
  206. package/dist/commonjs/operations/externalSecuritySolutions.js.map +1 -1
  207. package/dist/commonjs/operations/gitHubOwners.js +23 -39
  208. package/dist/commonjs/operations/gitHubOwners.js.map +1 -1
  209. package/dist/commonjs/operations/gitHubRepos.js +23 -39
  210. package/dist/commonjs/operations/gitHubRepos.js.map +1 -1
  211. package/dist/commonjs/operations/gitLabGroups.js +23 -39
  212. package/dist/commonjs/operations/gitLabGroups.js.map +1 -1
  213. package/dist/commonjs/operations/gitLabProjects.js +23 -39
  214. package/dist/commonjs/operations/gitLabProjects.js.map +1 -1
  215. package/dist/commonjs/operations/gitLabSubgroups.js +1 -0
  216. package/dist/commonjs/operations/gitLabSubgroups.js.map +1 -1
  217. package/dist/commonjs/operations/governanceAssignments.js +23 -39
  218. package/dist/commonjs/operations/governanceAssignments.js.map +1 -1
  219. package/dist/commonjs/operations/governanceRules.js +45 -51
  220. package/dist/commonjs/operations/governanceRules.js.map +1 -1
  221. package/dist/commonjs/operations/healthReports.js +23 -39
  222. package/dist/commonjs/operations/healthReports.js.map +1 -1
  223. package/dist/commonjs/operations/informationProtectionPolicies.js +23 -39
  224. package/dist/commonjs/operations/informationProtectionPolicies.js.map +1 -1
  225. package/dist/commonjs/operations/iotSecuritySolution.js +45 -78
  226. package/dist/commonjs/operations/iotSecuritySolution.js.map +1 -1
  227. package/dist/commonjs/operations/iotSecuritySolutionAnalytics.js +1 -0
  228. package/dist/commonjs/operations/iotSecuritySolutionAnalytics.js.map +1 -1
  229. package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -39
  230. package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
  231. package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -39
  232. package/dist/commonjs/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
  233. package/dist/commonjs/operations/jitNetworkAccessPolicies.js +89 -156
  234. package/dist/commonjs/operations/jitNetworkAccessPolicies.js.map +1 -1
  235. package/dist/commonjs/operations/locations.js +23 -39
  236. package/dist/commonjs/operations/locations.js.map +1 -1
  237. package/dist/commonjs/operations/mdeOnboardings.js +1 -0
  238. package/dist/commonjs/operations/mdeOnboardings.js.map +1 -1
  239. package/dist/commonjs/operations/operations.js +23 -39
  240. package/dist/commonjs/operations/operations.js.map +1 -1
  241. package/dist/commonjs/operations/pricings.js +1 -0
  242. package/dist/commonjs/operations/pricings.js.map +1 -1
  243. package/dist/commonjs/operations/regulatoryComplianceAssessments.js +23 -39
  244. package/dist/commonjs/operations/regulatoryComplianceAssessments.js.map +1 -1
  245. package/dist/commonjs/operations/regulatoryComplianceControls.js +23 -39
  246. package/dist/commonjs/operations/regulatoryComplianceControls.js.map +1 -1
  247. package/dist/commonjs/operations/regulatoryComplianceStandards.js +23 -39
  248. package/dist/commonjs/operations/regulatoryComplianceStandards.js.map +1 -1
  249. package/dist/commonjs/operations/secureScoreControlDefinitions.js +45 -78
  250. package/dist/commonjs/operations/secureScoreControlDefinitions.js.map +1 -1
  251. package/dist/commonjs/operations/secureScoreControls.js +45 -78
  252. package/dist/commonjs/operations/secureScoreControls.js.map +1 -1
  253. package/dist/commonjs/operations/secureScores.js +23 -39
  254. package/dist/commonjs/operations/secureScores.js.map +1 -1
  255. package/dist/commonjs/operations/securityConnectorApplication.js +1 -0
  256. package/dist/commonjs/operations/securityConnectorApplication.js.map +1 -1
  257. package/dist/commonjs/operations/securityConnectorApplications.js +23 -39
  258. package/dist/commonjs/operations/securityConnectorApplications.js.map +1 -1
  259. package/dist/commonjs/operations/securityConnectors.js +45 -78
  260. package/dist/commonjs/operations/securityConnectors.js.map +1 -1
  261. package/dist/commonjs/operations/securityContacts.js +23 -39
  262. package/dist/commonjs/operations/securityContacts.js.map +1 -1
  263. package/dist/commonjs/operations/securityOperators.js +1 -0
  264. package/dist/commonjs/operations/securityOperators.js.map +1 -1
  265. package/dist/commonjs/operations/securitySolutions.js +23 -39
  266. package/dist/commonjs/operations/securitySolutions.js.map +1 -1
  267. package/dist/commonjs/operations/securitySolutionsReferenceDataOperations.js +1 -0
  268. package/dist/commonjs/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
  269. package/dist/commonjs/operations/sensitivitySettings.js +1 -0
  270. package/dist/commonjs/operations/sensitivitySettings.js.map +1 -1
  271. package/dist/commonjs/operations/serverVulnerabilityAssessmentOperations.js +12 -6
  272. package/dist/commonjs/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
  273. package/dist/commonjs/operations/serverVulnerabilityAssessmentsSettings.js +23 -39
  274. package/dist/commonjs/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
  275. package/dist/commonjs/operations/settings.js +23 -39
  276. package/dist/commonjs/operations/settings.js.map +1 -1
  277. package/dist/commonjs/operations/softwareInventories.js +45 -78
  278. package/dist/commonjs/operations/softwareInventories.js.map +1 -1
  279. package/dist/commonjs/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
  280. package/dist/commonjs/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
  281. package/dist/commonjs/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
  282. package/dist/commonjs/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
  283. package/dist/commonjs/operations/sqlVulnerabilityAssessmentScans.js +1 -0
  284. package/dist/commonjs/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
  285. package/dist/commonjs/operations/subAssessments.js +45 -78
  286. package/dist/commonjs/operations/subAssessments.js.map +1 -1
  287. package/dist/commonjs/operations/tasks.js +67 -117
  288. package/dist/commonjs/operations/tasks.js.map +1 -1
  289. package/dist/commonjs/operations/topology.js +45 -78
  290. package/dist/commonjs/operations/topology.js.map +1 -1
  291. package/dist/commonjs/operations/workspaceSettings.js +23 -39
  292. package/dist/commonjs/operations/workspaceSettings.js.map +1 -1
  293. package/dist/commonjs/pagingHelper.js +2 -4
  294. package/dist/commonjs/pagingHelper.js.map +1 -1
  295. package/dist/commonjs/securityCenter.js +82 -5
  296. package/dist/commonjs/securityCenter.js.map +1 -1
  297. package/dist/commonjs/tsdoc-metadata.json +11 -11
  298. package/dist/esm/lroImpl.js +7 -3
  299. package/dist/esm/lroImpl.js.map +1 -1
  300. package/dist/esm/models/mappers.js +1479 -655
  301. package/dist/esm/models/mappers.js.map +1 -1
  302. package/dist/esm/operations/aPICollections.js +78 -124
  303. package/dist/esm/operations/aPICollections.js.map +1 -1
  304. package/dist/esm/operations/adaptiveApplicationControls.js +1 -0
  305. package/dist/esm/operations/adaptiveApplicationControls.js.map +1 -1
  306. package/dist/esm/operations/adaptiveNetworkHardenings.js +34 -46
  307. package/dist/esm/operations/adaptiveNetworkHardenings.js.map +1 -1
  308. package/dist/esm/operations/advancedThreatProtection.js +1 -0
  309. package/dist/esm/operations/advancedThreatProtection.js.map +1 -1
  310. package/dist/esm/operations/alerts.js +104 -167
  311. package/dist/esm/operations/alerts.js.map +1 -1
  312. package/dist/esm/operations/alertsSuppressionRules.js +23 -40
  313. package/dist/esm/operations/alertsSuppressionRules.js.map +1 -1
  314. package/dist/esm/operations/allowedConnections.js +45 -79
  315. package/dist/esm/operations/allowedConnections.js.map +1 -1
  316. package/dist/esm/operations/applicationOperations.js +1 -0
  317. package/dist/esm/operations/applicationOperations.js.map +1 -1
  318. package/dist/esm/operations/applications.js +23 -40
  319. package/dist/esm/operations/applications.js.map +1 -1
  320. package/dist/esm/operations/assessments.js +23 -40
  321. package/dist/esm/operations/assessments.js.map +1 -1
  322. package/dist/esm/operations/assessmentsMetadata.js +45 -79
  323. package/dist/esm/operations/assessmentsMetadata.js.map +1 -1
  324. package/dist/esm/operations/autoProvisioningSettings.js +23 -40
  325. package/dist/esm/operations/autoProvisioningSettings.js.map +1 -1
  326. package/dist/esm/operations/automations.js +45 -79
  327. package/dist/esm/operations/automations.js.map +1 -1
  328. package/dist/esm/operations/azureDevOpsOrgs.js +45 -52
  329. package/dist/esm/operations/azureDevOpsOrgs.js.map +1 -1
  330. package/dist/esm/operations/azureDevOpsProjects.js +45 -52
  331. package/dist/esm/operations/azureDevOpsProjects.js.map +1 -1
  332. package/dist/esm/operations/azureDevOpsRepos.js +45 -52
  333. package/dist/esm/operations/azureDevOpsRepos.js.map +1 -1
  334. package/dist/esm/operations/complianceResults.js +23 -40
  335. package/dist/esm/operations/complianceResults.js.map +1 -1
  336. package/dist/esm/operations/compliances.js +23 -40
  337. package/dist/esm/operations/compliances.js.map +1 -1
  338. package/dist/esm/operations/connectors.js +23 -40
  339. package/dist/esm/operations/connectors.js.map +1 -1
  340. package/dist/esm/operations/customAssessmentAutomations.js +45 -79
  341. package/dist/esm/operations/customAssessmentAutomations.js.map +1 -1
  342. package/dist/esm/operations/customEntityStoreAssignments.js +45 -79
  343. package/dist/esm/operations/customEntityStoreAssignments.js.map +1 -1
  344. package/dist/esm/operations/defenderForStorage.js +1 -0
  345. package/dist/esm/operations/defenderForStorage.js.map +1 -1
  346. package/dist/esm/operations/devOpsConfigurations.js +56 -58
  347. package/dist/esm/operations/devOpsConfigurations.js.map +1 -1
  348. package/dist/esm/operations/devOpsOperationResults.js +1 -0
  349. package/dist/esm/operations/devOpsOperationResults.js.map +1 -1
  350. package/dist/esm/operations/deviceSecurityGroups.js +23 -40
  351. package/dist/esm/operations/deviceSecurityGroups.js.map +1 -1
  352. package/dist/esm/operations/discoveredSecuritySolutions.js +45 -79
  353. package/dist/esm/operations/discoveredSecuritySolutions.js.map +1 -1
  354. package/dist/esm/operations/externalSecuritySolutions.js +45 -79
  355. package/dist/esm/operations/externalSecuritySolutions.js.map +1 -1
  356. package/dist/esm/operations/gitHubOwners.js +23 -40
  357. package/dist/esm/operations/gitHubOwners.js.map +1 -1
  358. package/dist/esm/operations/gitHubRepos.js +23 -40
  359. package/dist/esm/operations/gitHubRepos.js.map +1 -1
  360. package/dist/esm/operations/gitLabGroups.js +23 -40
  361. package/dist/esm/operations/gitLabGroups.js.map +1 -1
  362. package/dist/esm/operations/gitLabProjects.js +23 -40
  363. package/dist/esm/operations/gitLabProjects.js.map +1 -1
  364. package/dist/esm/operations/gitLabSubgroups.js +1 -0
  365. package/dist/esm/operations/gitLabSubgroups.js.map +1 -1
  366. package/dist/esm/operations/governanceAssignments.js +23 -40
  367. package/dist/esm/operations/governanceAssignments.js.map +1 -1
  368. package/dist/esm/operations/governanceRules.js +45 -52
  369. package/dist/esm/operations/governanceRules.js.map +1 -1
  370. package/dist/esm/operations/healthReports.js +23 -40
  371. package/dist/esm/operations/healthReports.js.map +1 -1
  372. package/dist/esm/operations/informationProtectionPolicies.js +23 -40
  373. package/dist/esm/operations/informationProtectionPolicies.js.map +1 -1
  374. package/dist/esm/operations/iotSecuritySolution.js +45 -79
  375. package/dist/esm/operations/iotSecuritySolution.js.map +1 -1
  376. package/dist/esm/operations/iotSecuritySolutionAnalytics.js +1 -0
  377. package/dist/esm/operations/iotSecuritySolutionAnalytics.js.map +1 -1
  378. package/dist/esm/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
  379. package/dist/esm/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
  380. package/dist/esm/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
  381. package/dist/esm/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
  382. package/dist/esm/operations/jitNetworkAccessPolicies.js +89 -157
  383. package/dist/esm/operations/jitNetworkAccessPolicies.js.map +1 -1
  384. package/dist/esm/operations/locations.js +23 -40
  385. package/dist/esm/operations/locations.js.map +1 -1
  386. package/dist/esm/operations/mdeOnboardings.js +1 -0
  387. package/dist/esm/operations/mdeOnboardings.js.map +1 -1
  388. package/dist/esm/operations/operations.js +23 -40
  389. package/dist/esm/operations/operations.js.map +1 -1
  390. package/dist/esm/operations/pricings.js +1 -0
  391. package/dist/esm/operations/pricings.js.map +1 -1
  392. package/dist/esm/operations/regulatoryComplianceAssessments.js +23 -40
  393. package/dist/esm/operations/regulatoryComplianceAssessments.js.map +1 -1
  394. package/dist/esm/operations/regulatoryComplianceControls.js +23 -40
  395. package/dist/esm/operations/regulatoryComplianceControls.js.map +1 -1
  396. package/dist/esm/operations/regulatoryComplianceStandards.js +23 -40
  397. package/dist/esm/operations/regulatoryComplianceStandards.js.map +1 -1
  398. package/dist/esm/operations/secureScoreControlDefinitions.js +45 -79
  399. package/dist/esm/operations/secureScoreControlDefinitions.js.map +1 -1
  400. package/dist/esm/operations/secureScoreControls.js +45 -79
  401. package/dist/esm/operations/secureScoreControls.js.map +1 -1
  402. package/dist/esm/operations/secureScores.js +23 -40
  403. package/dist/esm/operations/secureScores.js.map +1 -1
  404. package/dist/esm/operations/securityConnectorApplication.js +1 -0
  405. package/dist/esm/operations/securityConnectorApplication.js.map +1 -1
  406. package/dist/esm/operations/securityConnectorApplications.js +23 -40
  407. package/dist/esm/operations/securityConnectorApplications.js.map +1 -1
  408. package/dist/esm/operations/securityConnectors.js +45 -79
  409. package/dist/esm/operations/securityConnectors.js.map +1 -1
  410. package/dist/esm/operations/securityContacts.js +23 -40
  411. package/dist/esm/operations/securityContacts.js.map +1 -1
  412. package/dist/esm/operations/securityOperators.js +1 -0
  413. package/dist/esm/operations/securityOperators.js.map +1 -1
  414. package/dist/esm/operations/securitySolutions.js +23 -40
  415. package/dist/esm/operations/securitySolutions.js.map +1 -1
  416. package/dist/esm/operations/securitySolutionsReferenceDataOperations.js +1 -0
  417. package/dist/esm/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
  418. package/dist/esm/operations/sensitivitySettings.js +1 -0
  419. package/dist/esm/operations/sensitivitySettings.js.map +1 -1
  420. package/dist/esm/operations/serverVulnerabilityAssessmentOperations.js +12 -6
  421. package/dist/esm/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
  422. package/dist/esm/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
  423. package/dist/esm/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
  424. package/dist/esm/operations/settings.js +23 -40
  425. package/dist/esm/operations/settings.js.map +1 -1
  426. package/dist/esm/operations/softwareInventories.js +45 -79
  427. package/dist/esm/operations/softwareInventories.js.map +1 -1
  428. package/dist/esm/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
  429. package/dist/esm/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
  430. package/dist/esm/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
  431. package/dist/esm/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
  432. package/dist/esm/operations/sqlVulnerabilityAssessmentScans.js +1 -0
  433. package/dist/esm/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
  434. package/dist/esm/operations/subAssessments.js +45 -79
  435. package/dist/esm/operations/subAssessments.js.map +1 -1
  436. package/dist/esm/operations/tasks.js +67 -118
  437. package/dist/esm/operations/tasks.js.map +1 -1
  438. package/dist/esm/operations/topology.js +45 -79
  439. package/dist/esm/operations/topology.js.map +1 -1
  440. package/dist/esm/operations/workspaceSettings.js +23 -40
  441. package/dist/esm/operations/workspaceSettings.js.map +1 -1
  442. package/dist/esm/pagingHelper.js +2 -4
  443. package/dist/esm/pagingHelper.js.map +1 -1
  444. package/dist/esm/securityCenter.js +82 -5
  445. package/dist/esm/securityCenter.js.map +1 -1
  446. package/dist/react-native/lroImpl.js +7 -3
  447. package/dist/react-native/lroImpl.js.map +1 -1
  448. package/dist/react-native/models/mappers.js +1479 -655
  449. package/dist/react-native/models/mappers.js.map +1 -1
  450. package/dist/react-native/operations/aPICollections.js +78 -124
  451. package/dist/react-native/operations/aPICollections.js.map +1 -1
  452. package/dist/react-native/operations/adaptiveApplicationControls.js +1 -0
  453. package/dist/react-native/operations/adaptiveApplicationControls.js.map +1 -1
  454. package/dist/react-native/operations/adaptiveNetworkHardenings.js +34 -46
  455. package/dist/react-native/operations/adaptiveNetworkHardenings.js.map +1 -1
  456. package/dist/react-native/operations/advancedThreatProtection.js +1 -0
  457. package/dist/react-native/operations/advancedThreatProtection.js.map +1 -1
  458. package/dist/react-native/operations/alerts.js +104 -167
  459. package/dist/react-native/operations/alerts.js.map +1 -1
  460. package/dist/react-native/operations/alertsSuppressionRules.js +23 -40
  461. package/dist/react-native/operations/alertsSuppressionRules.js.map +1 -1
  462. package/dist/react-native/operations/allowedConnections.js +45 -79
  463. package/dist/react-native/operations/allowedConnections.js.map +1 -1
  464. package/dist/react-native/operations/applicationOperations.js +1 -0
  465. package/dist/react-native/operations/applicationOperations.js.map +1 -1
  466. package/dist/react-native/operations/applications.js +23 -40
  467. package/dist/react-native/operations/applications.js.map +1 -1
  468. package/dist/react-native/operations/assessments.js +23 -40
  469. package/dist/react-native/operations/assessments.js.map +1 -1
  470. package/dist/react-native/operations/assessmentsMetadata.js +45 -79
  471. package/dist/react-native/operations/assessmentsMetadata.js.map +1 -1
  472. package/dist/react-native/operations/autoProvisioningSettings.js +23 -40
  473. package/dist/react-native/operations/autoProvisioningSettings.js.map +1 -1
  474. package/dist/react-native/operations/automations.js +45 -79
  475. package/dist/react-native/operations/automations.js.map +1 -1
  476. package/dist/react-native/operations/azureDevOpsOrgs.js +45 -52
  477. package/dist/react-native/operations/azureDevOpsOrgs.js.map +1 -1
  478. package/dist/react-native/operations/azureDevOpsProjects.js +45 -52
  479. package/dist/react-native/operations/azureDevOpsProjects.js.map +1 -1
  480. package/dist/react-native/operations/azureDevOpsRepos.js +45 -52
  481. package/dist/react-native/operations/azureDevOpsRepos.js.map +1 -1
  482. package/dist/react-native/operations/complianceResults.js +23 -40
  483. package/dist/react-native/operations/complianceResults.js.map +1 -1
  484. package/dist/react-native/operations/compliances.js +23 -40
  485. package/dist/react-native/operations/compliances.js.map +1 -1
  486. package/dist/react-native/operations/connectors.js +23 -40
  487. package/dist/react-native/operations/connectors.js.map +1 -1
  488. package/dist/react-native/operations/customAssessmentAutomations.js +45 -79
  489. package/dist/react-native/operations/customAssessmentAutomations.js.map +1 -1
  490. package/dist/react-native/operations/customEntityStoreAssignments.js +45 -79
  491. package/dist/react-native/operations/customEntityStoreAssignments.js.map +1 -1
  492. package/dist/react-native/operations/defenderForStorage.js +1 -0
  493. package/dist/react-native/operations/defenderForStorage.js.map +1 -1
  494. package/dist/react-native/operations/devOpsConfigurations.js +56 -58
  495. package/dist/react-native/operations/devOpsConfigurations.js.map +1 -1
  496. package/dist/react-native/operations/devOpsOperationResults.js +1 -0
  497. package/dist/react-native/operations/devOpsOperationResults.js.map +1 -1
  498. package/dist/react-native/operations/deviceSecurityGroups.js +23 -40
  499. package/dist/react-native/operations/deviceSecurityGroups.js.map +1 -1
  500. package/dist/react-native/operations/discoveredSecuritySolutions.js +45 -79
  501. package/dist/react-native/operations/discoveredSecuritySolutions.js.map +1 -1
  502. package/dist/react-native/operations/externalSecuritySolutions.js +45 -79
  503. package/dist/react-native/operations/externalSecuritySolutions.js.map +1 -1
  504. package/dist/react-native/operations/gitHubOwners.js +23 -40
  505. package/dist/react-native/operations/gitHubOwners.js.map +1 -1
  506. package/dist/react-native/operations/gitHubRepos.js +23 -40
  507. package/dist/react-native/operations/gitHubRepos.js.map +1 -1
  508. package/dist/react-native/operations/gitLabGroups.js +23 -40
  509. package/dist/react-native/operations/gitLabGroups.js.map +1 -1
  510. package/dist/react-native/operations/gitLabProjects.js +23 -40
  511. package/dist/react-native/operations/gitLabProjects.js.map +1 -1
  512. package/dist/react-native/operations/gitLabSubgroups.js +1 -0
  513. package/dist/react-native/operations/gitLabSubgroups.js.map +1 -1
  514. package/dist/react-native/operations/governanceAssignments.js +23 -40
  515. package/dist/react-native/operations/governanceAssignments.js.map +1 -1
  516. package/dist/react-native/operations/governanceRules.js +45 -52
  517. package/dist/react-native/operations/governanceRules.js.map +1 -1
  518. package/dist/react-native/operations/healthReports.js +23 -40
  519. package/dist/react-native/operations/healthReports.js.map +1 -1
  520. package/dist/react-native/operations/informationProtectionPolicies.js +23 -40
  521. package/dist/react-native/operations/informationProtectionPolicies.js.map +1 -1
  522. package/dist/react-native/operations/iotSecuritySolution.js +45 -79
  523. package/dist/react-native/operations/iotSecuritySolution.js.map +1 -1
  524. package/dist/react-native/operations/iotSecuritySolutionAnalytics.js +1 -0
  525. package/dist/react-native/operations/iotSecuritySolutionAnalytics.js.map +1 -1
  526. package/dist/react-native/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js +23 -40
  527. package/dist/react-native/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.js.map +1 -1
  528. package/dist/react-native/operations/iotSecuritySolutionsAnalyticsRecommendation.js +23 -40
  529. package/dist/react-native/operations/iotSecuritySolutionsAnalyticsRecommendation.js.map +1 -1
  530. package/dist/react-native/operations/jitNetworkAccessPolicies.js +89 -157
  531. package/dist/react-native/operations/jitNetworkAccessPolicies.js.map +1 -1
  532. package/dist/react-native/operations/locations.js +23 -40
  533. package/dist/react-native/operations/locations.js.map +1 -1
  534. package/dist/react-native/operations/mdeOnboardings.js +1 -0
  535. package/dist/react-native/operations/mdeOnboardings.js.map +1 -1
  536. package/dist/react-native/operations/operations.js +23 -40
  537. package/dist/react-native/operations/operations.js.map +1 -1
  538. package/dist/react-native/operations/pricings.js +1 -0
  539. package/dist/react-native/operations/pricings.js.map +1 -1
  540. package/dist/react-native/operations/regulatoryComplianceAssessments.js +23 -40
  541. package/dist/react-native/operations/regulatoryComplianceAssessments.js.map +1 -1
  542. package/dist/react-native/operations/regulatoryComplianceControls.js +23 -40
  543. package/dist/react-native/operations/regulatoryComplianceControls.js.map +1 -1
  544. package/dist/react-native/operations/regulatoryComplianceStandards.js +23 -40
  545. package/dist/react-native/operations/regulatoryComplianceStandards.js.map +1 -1
  546. package/dist/react-native/operations/secureScoreControlDefinitions.js +45 -79
  547. package/dist/react-native/operations/secureScoreControlDefinitions.js.map +1 -1
  548. package/dist/react-native/operations/secureScoreControls.js +45 -79
  549. package/dist/react-native/operations/secureScoreControls.js.map +1 -1
  550. package/dist/react-native/operations/secureScores.js +23 -40
  551. package/dist/react-native/operations/secureScores.js.map +1 -1
  552. package/dist/react-native/operations/securityConnectorApplication.js +1 -0
  553. package/dist/react-native/operations/securityConnectorApplication.js.map +1 -1
  554. package/dist/react-native/operations/securityConnectorApplications.js +23 -40
  555. package/dist/react-native/operations/securityConnectorApplications.js.map +1 -1
  556. package/dist/react-native/operations/securityConnectors.js +45 -79
  557. package/dist/react-native/operations/securityConnectors.js.map +1 -1
  558. package/dist/react-native/operations/securityContacts.js +23 -40
  559. package/dist/react-native/operations/securityContacts.js.map +1 -1
  560. package/dist/react-native/operations/securityOperators.js +1 -0
  561. package/dist/react-native/operations/securityOperators.js.map +1 -1
  562. package/dist/react-native/operations/securitySolutions.js +23 -40
  563. package/dist/react-native/operations/securitySolutions.js.map +1 -1
  564. package/dist/react-native/operations/securitySolutionsReferenceDataOperations.js +1 -0
  565. package/dist/react-native/operations/securitySolutionsReferenceDataOperations.js.map +1 -1
  566. package/dist/react-native/operations/sensitivitySettings.js +1 -0
  567. package/dist/react-native/operations/sensitivitySettings.js.map +1 -1
  568. package/dist/react-native/operations/serverVulnerabilityAssessmentOperations.js +12 -6
  569. package/dist/react-native/operations/serverVulnerabilityAssessmentOperations.js.map +1 -1
  570. package/dist/react-native/operations/serverVulnerabilityAssessmentsSettings.js +23 -40
  571. package/dist/react-native/operations/serverVulnerabilityAssessmentsSettings.js.map +1 -1
  572. package/dist/react-native/operations/settings.js +23 -40
  573. package/dist/react-native/operations/settings.js.map +1 -1
  574. package/dist/react-native/operations/softwareInventories.js +45 -79
  575. package/dist/react-native/operations/softwareInventories.js.map +1 -1
  576. package/dist/react-native/operations/sqlVulnerabilityAssessmentBaselineRules.js +1 -0
  577. package/dist/react-native/operations/sqlVulnerabilityAssessmentBaselineRules.js.map +1 -1
  578. package/dist/react-native/operations/sqlVulnerabilityAssessmentScanResults.js +1 -0
  579. package/dist/react-native/operations/sqlVulnerabilityAssessmentScanResults.js.map +1 -1
  580. package/dist/react-native/operations/sqlVulnerabilityAssessmentScans.js +1 -0
  581. package/dist/react-native/operations/sqlVulnerabilityAssessmentScans.js.map +1 -1
  582. package/dist/react-native/operations/subAssessments.js +45 -79
  583. package/dist/react-native/operations/subAssessments.js.map +1 -1
  584. package/dist/react-native/operations/tasks.js +67 -118
  585. package/dist/react-native/operations/tasks.js.map +1 -1
  586. package/dist/react-native/operations/topology.js +45 -79
  587. package/dist/react-native/operations/topology.js.map +1 -1
  588. package/dist/react-native/operations/workspaceSettings.js +23 -40
  589. package/dist/react-native/operations/workspaceSettings.js.map +1 -1
  590. package/dist/react-native/pagingHelper.js +2 -4
  591. package/dist/react-native/pagingHelper.js.map +1 -1
  592. package/dist/react-native/securityCenter.js +82 -5
  593. package/dist/react-native/securityCenter.js.map +1 -1
  594. package/package.json +2 -2
  595. package/review/arm-security-node.api.md +7369 -7369
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing HealthReports operations. */
15
14
  export class HealthReportsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class HealthReports class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class HealthReportsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listPagingPage(scope, options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listPagingPage(scope, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(scope, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(scope, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listPagingPage(scope, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._list(scope, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listNext(scope, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listPagingAll(scope, options) {
68
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listPagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listPagingAll(scope, options) {
66
+ for await (const page of this.listPagingPage(scope, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:
@@ -1 +1 @@
1
- {"version":3,"file":"healthReports.js","sourceRoot":"","sources":["../../../src/operations/healthReports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,KAAa,EACb,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM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ACjD,IAAI,EAAE,6EAA6E;IACnF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC1C,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC;IACzE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { HealthReports } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityCenter } from \"../securityCenter.js\";\nimport {\n HealthReport,\n HealthReportsListNextOptionalParams,\n HealthReportsListOptionalParams,\n HealthReportsListResponse,\n HealthReportsGetOptionalParams,\n HealthReportsGetResponse,\n HealthReportsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing HealthReports operations. */\nexport class HealthReportsImpl implements HealthReports {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class HealthReports class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:\n * 'subscriptions/{subscriptionId}'), or security connector (format:\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'\n * @param scope The scope at which the operation is performed.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: HealthReportsListOptionalParams,\n ): PagedAsyncIterableIterator<HealthReport> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: HealthReportsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<HealthReport[]> {\n let result: HealthReportsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: HealthReportsListOptionalParams,\n ): AsyncIterableIterator<HealthReport> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:\n * 'subscriptions/{subscriptionId}'), or security connector (format:\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'\n * @param scope The scope at which the operation is performed.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: HealthReportsListOptionalParams,\n ): Promise<HealthReportsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get health report of resource\n * @param resourceId The identifier of the resource.\n * @param healthReportName The health report Key - Unique key for the health report type\n * @param options The options parameters.\n */\n get(\n resourceId: string,\n healthReportName: string,\n options?: HealthReportsGetOptionalParams,\n ): Promise<HealthReportsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceId, healthReportName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope The scope at which the operation is performed.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: HealthReportsListNextOptionalParams,\n ): Promise<HealthReportsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/healthReports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthReportsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [Parameters.$host, Parameters.scope2],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/healthReports/{healthReportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthReport,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceId,\n Parameters.healthReportName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthReportsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope2],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"healthReports.js","sourceRoot":"","sources":["../../../src/operations/healthReports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,KAAa,EACb,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CA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AU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC;IACzE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { HealthReports } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityCenter } from \"../securityCenter.js\";\nimport {\n HealthReport,\n HealthReportsListNextOptionalParams,\n HealthReportsListOptionalParams,\n HealthReportsListResponse,\n HealthReportsGetOptionalParams,\n HealthReportsGetResponse,\n HealthReportsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing HealthReports operations. */\nexport class HealthReportsImpl implements HealthReports {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class HealthReports class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:\n * 'subscriptions/{subscriptionId}'), or security connector (format:\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'\n * @param scope The scope at which the operation is performed.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: HealthReportsListOptionalParams,\n ): PagedAsyncIterableIterator<HealthReport> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: HealthReportsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<HealthReport[]> {\n let result: HealthReportsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: HealthReportsListOptionalParams,\n ): AsyncIterableIterator<HealthReport> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get a list of all health reports inside a scope. Valid scopes are: subscription (format:\n * 'subscriptions/{subscriptionId}'), or security connector (format:\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'\n * @param scope The scope at which the operation is performed.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: HealthReportsListOptionalParams,\n ): Promise<HealthReportsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get health report of resource\n * @param resourceId The identifier of the resource.\n * @param healthReportName The health report Key - Unique key for the health report type\n * @param options The options parameters.\n */\n get(\n resourceId: string,\n healthReportName: string,\n options?: HealthReportsGetOptionalParams,\n ): Promise<HealthReportsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceId, healthReportName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope The scope at which the operation is performed.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: HealthReportsListNextOptionalParams,\n ): Promise<HealthReportsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/healthReports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthReportsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [Parameters.$host, Parameters.scope2],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceId}/providers/Microsoft.Security/healthReports/{healthReportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthReport,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion14],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceId,\n Parameters.healthReportName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HealthReportsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope2],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing InformationProtectionPolicies operations. */
15
14
  export class InformationProtectionPoliciesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class InformationProtectionPolicies class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class InformationProtectionPoliciesImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listPagingPage(scope, options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listPagingPage(scope, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(scope, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(scope, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listPagingPage(scope, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._list(scope, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listNext(scope, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listPagingAll(scope, options) {
68
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listPagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listPagingAll(scope, options) {
66
+ for await (const page of this.listPagingPage(scope, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * Details of the information protection policy.
@@ -1 +1 @@
1
- {"version":3,"file":"informationProtectionPolicies.js","sourceRoot":"","sources":["../../../src/operations/informationProtectionPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAM,OAAO,iCAAiC;IAK5C;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,KAAa,EACb,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,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AAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { InformationProtectionPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityCenter } from \"../securityCenter.js\";\nimport {\n InformationProtectionPolicy,\n InformationProtectionPoliciesListNextOptionalParams,\n InformationProtectionPoliciesListOptionalParams,\n InformationProtectionPoliciesListResponse,\n InformationProtectionPolicyName,\n InformationProtectionPoliciesGetOptionalParams,\n InformationProtectionPoliciesGetResponse,\n InformationProtectionPoliciesCreateOrUpdateOptionalParams,\n InformationProtectionPoliciesCreateOrUpdateResponse,\n InformationProtectionPoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing InformationProtectionPolicies operations. */\nexport class InformationProtectionPoliciesImpl\n implements InformationProtectionPolicies\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class InformationProtectionPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Information protection policies of a specific management group.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<InformationProtectionPolicy> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<InformationProtectionPolicy[]> {\n let result: InformationProtectionPoliciesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n ): AsyncIterableIterator<InformationProtectionPolicy> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Details of the information protection policy.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param informationProtectionPolicyName Name of the information protection policy.\n * @param options The options parameters.\n */\n get(\n scope: string,\n informationProtectionPolicyName: InformationProtectionPolicyName,\n options?: InformationProtectionPoliciesGetOptionalParams,\n ): Promise<InformationProtectionPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { scope, informationProtectionPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Details of the information protection policy.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param informationProtectionPolicyName Name of the information protection policy.\n * @param informationProtectionPolicy Information protection policy.\n * @param options The options parameters.\n */\n createOrUpdate(\n scope: string,\n informationProtectionPolicyName: InformationProtectionPolicyName,\n informationProtectionPolicy: InformationProtectionPolicy,\n options?: InformationProtectionPoliciesCreateOrUpdateOptionalParams,\n ): Promise<InformationProtectionPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n scope,\n informationProtectionPolicyName,\n informationProtectionPolicy,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Information protection policies of a specific management group.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n ): Promise<InformationProtectionPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: InformationProtectionPoliciesListNextOptionalParams,\n ): Promise<InformationProtectionPoliciesListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.informationProtectionPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicy,\n },\n 201: {\n bodyMapper: Mappers.InformationProtectionPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.informationProtectionPolicy,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.informationProtectionPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/informationProtectionPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"informationProtectionPolicies.js","sourceRoot":"","sources":["../../../src/operations/informationProtectionPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAM,OAAO,iCAAiC;IAG3B,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,KAAa,EACb,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACvD,CAAC;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AAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { InformationProtectionPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityCenter } from \"../securityCenter.js\";\nimport {\n InformationProtectionPolicy,\n InformationProtectionPoliciesListNextOptionalParams,\n InformationProtectionPoliciesListOptionalParams,\n InformationProtectionPoliciesListResponse,\n InformationProtectionPolicyName,\n InformationProtectionPoliciesGetOptionalParams,\n InformationProtectionPoliciesGetResponse,\n InformationProtectionPoliciesCreateOrUpdateOptionalParams,\n InformationProtectionPoliciesCreateOrUpdateResponse,\n InformationProtectionPoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing InformationProtectionPolicies operations. */\nexport class InformationProtectionPoliciesImpl\n implements InformationProtectionPolicies\n{\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class InformationProtectionPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Information protection policies of a specific management group.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<InformationProtectionPolicy> {\n const iter = this.listPagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(scope, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<InformationProtectionPolicy[]> {\n let result: InformationProtectionPoliciesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n ): AsyncIterableIterator<InformationProtectionPolicy> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Details of the information protection policy.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param informationProtectionPolicyName Name of the information protection policy.\n * @param options The options parameters.\n */\n get(\n scope: string,\n informationProtectionPolicyName: InformationProtectionPolicyName,\n options?: InformationProtectionPoliciesGetOptionalParams,\n ): Promise<InformationProtectionPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { scope, informationProtectionPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Details of the information protection policy.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param informationProtectionPolicyName Name of the information protection policy.\n * @param informationProtectionPolicy Information protection policy.\n * @param options The options parameters.\n */\n createOrUpdate(\n scope: string,\n informationProtectionPolicyName: InformationProtectionPolicyName,\n informationProtectionPolicy: InformationProtectionPolicy,\n options?: InformationProtectionPoliciesCreateOrUpdateOptionalParams,\n ): Promise<InformationProtectionPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n scope,\n informationProtectionPolicyName,\n informationProtectionPolicy,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Information protection policies of a specific management group.\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: InformationProtectionPoliciesListOptionalParams,\n ): Promise<InformationProtectionPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param scope Scope of the query, can be subscription\n * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group\n * (/providers/Microsoft.Management/managementGroups/mgName).\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: InformationProtectionPoliciesListNextOptionalParams,\n ): Promise<InformationProtectionPoliciesListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.informationProtectionPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicy,\n },\n 201: {\n bodyMapper: Mappers.InformationProtectionPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.informationProtectionPolicy,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.informationProtectionPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Security/informationProtectionPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformationProtectionPolicyList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing IotSecuritySolution operations. */
15
14
  export class IotSecuritySolutionImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class IotSecuritySolution class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class IotSecuritySolutionImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listBySubscriptionPagingPage(options, settings);
41
41
  },
42
42
  };
43
43
  }
44
- listBySubscriptionPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._listBySubscription(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listBySubscriptionNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listBySubscriptionPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._listBySubscription(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listBySubscriptionNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listBySubscriptionPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listBySubscriptionPagingAll(options) {
63
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * Use this method to get the list IoT Security solutions organized by resource group.
@@ -97,52 +80,35 @@ export class IotSecuritySolutionImpl {
97
80
  return this;
98
81
  },
99
82
  byPage: (settings) => {
100
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
83
+ if (settings?.maxPageSize) {
101
84
  throw new Error("maxPageSize is not supported by this operation.");
102
85
  }
103
86
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
104
87
  },
105
88
  };
106
89
  }
107
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
108
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
109
- let result;
110
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
111
- if (!continuationToken) {
112
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
113
- let page = result.value || [];
114
- continuationToken = result.nextLink;
115
- setContinuationToken(page, continuationToken);
116
- yield yield __await(page);
117
- }
118
- while (continuationToken) {
119
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
120
- continuationToken = result.nextLink;
121
- let page = result.value || [];
122
- setContinuationToken(page, continuationToken);
123
- yield yield __await(page);
124
- }
125
- });
90
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
91
+ let result;
92
+ let continuationToken = settings?.continuationToken;
93
+ if (!continuationToken) {
94
+ result = await this._listByResourceGroup(resourceGroupName, options);
95
+ let page = result.value || [];
96
+ continuationToken = result.nextLink;
97
+ setContinuationToken(page, continuationToken);
98
+ yield page;
99
+ }
100
+ while (continuationToken) {
101
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
102
+ continuationToken = result.nextLink;
103
+ let page = result.value || [];
104
+ setContinuationToken(page, continuationToken);
105
+ yield page;
106
+ }
126
107
  }
127
- listByResourceGroupPagingAll(resourceGroupName, options) {
128
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
129
- var _a, e_2, _b, _c;
130
- try {
131
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
132
- _c = _f.value;
133
- _d = false;
134
- const page = _c;
135
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
136
- }
137
- }
138
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
139
- finally {
140
- try {
141
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
142
- }
143
- finally { if (e_2) throw e_2.error; }
144
- }
145
- });
108
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
109
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
110
+ yield* page;
111
+ }
146
112
  }
147
113
  /**
148
114
  * Use this method to get the list of IoT Security solutions by subscription.
@@ -1 +1 @@
1
- {"version":3,"file":"iotSecuritySolution.js","sourceRoot":"","sources":["../../../src/operations/iotSecuritySolution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAsBtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MA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;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { IotSecuritySolution } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityCenter } from \"../securityCenter.js\";\nimport {\n IoTSecuritySolutionModel,\n IotSecuritySolutionListBySubscriptionNextOptionalParams,\n IotSecuritySolutionListBySubscriptionOptionalParams,\n IotSecuritySolutionListBySubscriptionResponse,\n IotSecuritySolutionListByResourceGroupNextOptionalParams,\n IotSecuritySolutionListByResourceGroupOptionalParams,\n IotSecuritySolutionListByResourceGroupResponse,\n IotSecuritySolutionGetOptionalParams,\n IotSecuritySolutionGetResponse,\n IotSecuritySolutionCreateOrUpdateOptionalParams,\n IotSecuritySolutionCreateOrUpdateResponse,\n UpdateIotSecuritySolutionData,\n IotSecuritySolutionUpdateOptionalParams,\n IotSecuritySolutionUpdateResponse,\n IotSecuritySolutionDeleteOptionalParams,\n IotSecuritySolutionListBySubscriptionNextResponse,\n IotSecuritySolutionListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing IotSecuritySolution operations. */\nexport class IotSecuritySolutionImpl implements IotSecuritySolution {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class IotSecuritySolution class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Use this method to get the list of IoT Security solutions by subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<IoTSecuritySolutionModel> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IoTSecuritySolutionModel[]> {\n let result: IotSecuritySolutionListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<IoTSecuritySolutionModel> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Use this method to get the list IoT Security solutions organized by resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<IoTSecuritySolutionModel> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IoTSecuritySolutionModel[]> {\n let result: IotSecuritySolutionListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<IoTSecuritySolutionModel> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Use this method to get the list of IoT Security solutions by subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n ): Promise<IotSecuritySolutionListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Use this method to get the list IoT Security solutions organized by resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n ): Promise<IotSecuritySolutionListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * User this method to get details of a specific IoT Security solution based on solution name\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n solutionName: string,\n options?: IotSecuritySolutionGetOptionalParams,\n ): Promise<IotSecuritySolutionGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, solutionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Use this method to create or update yours IoT Security solution\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param iotSecuritySolutionData The security solution data\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n solutionName: string,\n iotSecuritySolutionData: IoTSecuritySolutionModel,\n options?: IotSecuritySolutionCreateOrUpdateOptionalParams,\n ): Promise<IotSecuritySolutionCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, solutionName, iotSecuritySolutionData, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Use this method to update existing IoT Security solution tags or user defined resources. To update\n * other fields use the CreateOrUpdate method.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param updateIotSecuritySolutionData The security solution data\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n solutionName: string,\n updateIotSecuritySolutionData: UpdateIotSecuritySolutionData,\n options?: IotSecuritySolutionUpdateOptionalParams,\n ): Promise<IotSecuritySolutionUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n solutionName,\n updateIotSecuritySolutionData,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Use this method to delete yours IoT Security solution\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n solutionName: string,\n options?: IotSecuritySolutionDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, solutionName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: IotSecuritySolutionListBySubscriptionNextOptionalParams,\n ): Promise<IotSecuritySolutionListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: IotSecuritySolutionListByResourceGroupNextOptionalParams,\n ): Promise<IotSecuritySolutionListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotSecuritySolutions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion19],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n 201: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.iotSecuritySolutionData,\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.updateIotSecuritySolutionData,\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"iotSecuritySolution.js","sourceRoot":"","sources":["../../../src/operations/iotSecuritySolution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CA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,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { IotSecuritySolution } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SecurityCenter } from \"../securityCenter.js\";\nimport {\n IoTSecuritySolutionModel,\n IotSecuritySolutionListBySubscriptionNextOptionalParams,\n IotSecuritySolutionListBySubscriptionOptionalParams,\n IotSecuritySolutionListBySubscriptionResponse,\n IotSecuritySolutionListByResourceGroupNextOptionalParams,\n IotSecuritySolutionListByResourceGroupOptionalParams,\n IotSecuritySolutionListByResourceGroupResponse,\n IotSecuritySolutionGetOptionalParams,\n IotSecuritySolutionGetResponse,\n IotSecuritySolutionCreateOrUpdateOptionalParams,\n IotSecuritySolutionCreateOrUpdateResponse,\n UpdateIotSecuritySolutionData,\n IotSecuritySolutionUpdateOptionalParams,\n IotSecuritySolutionUpdateResponse,\n IotSecuritySolutionDeleteOptionalParams,\n IotSecuritySolutionListBySubscriptionNextResponse,\n IotSecuritySolutionListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing IotSecuritySolution operations. */\nexport class IotSecuritySolutionImpl implements IotSecuritySolution {\n private readonly client: SecurityCenter;\n\n /**\n * Initialize a new instance of the class IotSecuritySolution class.\n * @param client Reference to the service client\n */\n constructor(client: SecurityCenter) {\n this.client = client;\n }\n\n /**\n * Use this method to get the list of IoT Security solutions by subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<IoTSecuritySolutionModel> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IoTSecuritySolutionModel[]> {\n let result: IotSecuritySolutionListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<IoTSecuritySolutionModel> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Use this method to get the list IoT Security solutions organized by resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<IoTSecuritySolutionModel> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IoTSecuritySolutionModel[]> {\n let result: IotSecuritySolutionListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<IoTSecuritySolutionModel> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Use this method to get the list of IoT Security solutions by subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: IotSecuritySolutionListBySubscriptionOptionalParams,\n ): Promise<IotSecuritySolutionListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Use this method to get the list IoT Security solutions organized by resource group.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: IotSecuritySolutionListByResourceGroupOptionalParams,\n ): Promise<IotSecuritySolutionListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * User this method to get details of a specific IoT Security solution based on solution name\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n solutionName: string,\n options?: IotSecuritySolutionGetOptionalParams,\n ): Promise<IotSecuritySolutionGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, solutionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Use this method to create or update yours IoT Security solution\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param iotSecuritySolutionData The security solution data\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n solutionName: string,\n iotSecuritySolutionData: IoTSecuritySolutionModel,\n options?: IotSecuritySolutionCreateOrUpdateOptionalParams,\n ): Promise<IotSecuritySolutionCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, solutionName, iotSecuritySolutionData, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Use this method to update existing IoT Security solution tags or user defined resources. To update\n * other fields use the CreateOrUpdate method.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param updateIotSecuritySolutionData The security solution data\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n solutionName: string,\n updateIotSecuritySolutionData: UpdateIotSecuritySolutionData,\n options?: IotSecuritySolutionUpdateOptionalParams,\n ): Promise<IotSecuritySolutionUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n solutionName,\n updateIotSecuritySolutionData,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Use this method to delete yours IoT Security solution\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param solutionName The name of the IoT Security solution.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n solutionName: string,\n options?: IotSecuritySolutionDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, solutionName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: IotSecuritySolutionListBySubscriptionNextOptionalParams,\n ): Promise<IotSecuritySolutionListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: IotSecuritySolutionListByResourceGroupNextOptionalParams,\n ): Promise<IotSecuritySolutionListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotSecuritySolutions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion19],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n 201: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.iotSecuritySolutionData,\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionModel,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.updateIotSecuritySolutionData,\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion19],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.solutionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IoTSecuritySolutionsList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing IotSecuritySolutionAnalytics operations. */
12
12
  export class IotSecuritySolutionAnalyticsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class IotSecuritySolutionAnalytics class.
15
16
  * @param client Reference to the service client