@azure/arm-appinsights 4.0.0 → 5.0.0-alpha.20220202.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 (444) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +70 -78
  5. package/dist/index.js +7666 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/applicationInsightsManagementClient.d.ts +35 -0
  10. package/dist-esm/src/applicationInsightsManagementClient.d.ts.map +1 -0
  11. package/dist-esm/src/applicationInsightsManagementClient.js +68 -0
  12. package/dist-esm/src/applicationInsightsManagementClient.js.map +1 -0
  13. package/dist-esm/src/index.d.ts +5 -0
  14. package/dist-esm/src/index.d.ts.map +1 -0
  15. package/dist-esm/src/index.js +12 -0
  16. package/dist-esm/src/index.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +2107 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/dist-esm/src/models/index.js +133 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +88 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/{esm → dist-esm/src}/models/mappers.js +1427 -1531
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +63 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/parameters.js +259 -225
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/dist-esm/src/operations/aPIKeys.d.ts +55 -0
  30. package/dist-esm/src/operations/aPIKeys.d.ts.map +1 -0
  31. package/dist-esm/src/operations/aPIKeys.js +185 -0
  32. package/dist-esm/src/operations/aPIKeys.js.map +1 -0
  33. package/dist-esm/src/operations/analyticsItems.d.ts +51 -0
  34. package/dist-esm/src/operations/analyticsItems.d.ts.map +1 -0
  35. package/dist-esm/src/operations/analyticsItems.js +157 -0
  36. package/dist-esm/src/operations/analyticsItems.js.map +1 -0
  37. package/dist-esm/src/operations/annotations.d.ts +63 -0
  38. package/dist-esm/src/operations/annotations.d.ts.map +1 -0
  39. package/dist-esm/src/operations/annotations.js +207 -0
  40. package/dist-esm/src/operations/annotations.js.map +1 -0
  41. package/dist-esm/src/operations/componentAvailableFeatures.d.ts +20 -0
  42. package/dist-esm/src/operations/componentAvailableFeatures.d.ts.map +1 -0
  43. package/dist-esm/src/operations/componentAvailableFeatures.js +50 -0
  44. package/dist-esm/src/operations/componentAvailableFeatures.js.map +1 -0
  45. package/dist-esm/src/operations/componentCurrentBillingFeatures.d.ts +29 -0
  46. package/dist-esm/src/operations/componentCurrentBillingFeatures.d.ts.map +1 -0
  47. package/dist-esm/src/operations/componentCurrentBillingFeatures.js +81 -0
  48. package/dist-esm/src/operations/componentCurrentBillingFeatures.js.map +1 -0
  49. package/dist-esm/src/operations/componentFeatureCapabilities.d.ts +20 -0
  50. package/dist-esm/src/operations/componentFeatureCapabilities.d.ts.map +1 -0
  51. package/dist-esm/src/operations/componentFeatureCapabilities.js +50 -0
  52. package/dist-esm/src/operations/componentFeatureCapabilities.js.map +1 -0
  53. package/dist-esm/src/operations/componentLinkedStorageAccountsOperations.d.ts +53 -0
  54. package/dist-esm/src/operations/componentLinkedStorageAccountsOperations.d.ts.map +1 -0
  55. package/dist-esm/src/operations/componentLinkedStorageAccountsOperations.js +174 -0
  56. package/dist-esm/src/operations/componentLinkedStorageAccountsOperations.js.map +1 -0
  57. package/dist-esm/src/operations/componentQuotaStatus.d.ts +20 -0
  58. package/dist-esm/src/operations/componentQuotaStatus.d.ts.map +1 -0
  59. package/dist-esm/src/operations/componentQuotaStatus.js +50 -0
  60. package/dist-esm/src/operations/componentQuotaStatus.js.map +1 -0
  61. package/dist-esm/src/operations/components.d.ts +108 -0
  62. package/dist-esm/src/operations/components.d.ts.map +1 -0
  63. package/dist-esm/src/operations/components.js +430 -0
  64. package/dist-esm/src/operations/components.js.map +1 -0
  65. package/dist-esm/src/operations/exportConfigurations.d.ts +58 -0
  66. package/dist-esm/src/operations/exportConfigurations.d.ts.map +1 -0
  67. package/dist-esm/src/operations/exportConfigurations.js +195 -0
  68. package/dist-esm/src/operations/exportConfigurations.js.map +1 -0
  69. package/dist-esm/src/operations/favorites.d.ts +55 -0
  70. package/dist-esm/src/operations/favorites.d.ts.map +1 -0
  71. package/dist-esm/src/operations/favorites.js +196 -0
  72. package/dist-esm/src/operations/favorites.js.map +1 -0
  73. package/{esm → dist-esm/src}/operations/index.d.ts +0 -1
  74. package/dist-esm/src/operations/index.d.ts.map +1 -0
  75. package/{esm → dist-esm/src}/operations/index.js +1 -3
  76. package/dist-esm/src/operations/index.js.map +1 -0
  77. package/dist-esm/src/operations/liveToken.d.ts +19 -0
  78. package/dist-esm/src/operations/liveToken.d.ts.map +1 -0
  79. package/dist-esm/src/operations/liveToken.js +47 -0
  80. package/dist-esm/src/operations/liveToken.js.map +1 -0
  81. package/dist-esm/src/operations/myWorkbooks.d.ts +89 -0
  82. package/dist-esm/src/operations/myWorkbooks.d.ts.map +1 -0
  83. package/dist-esm/src/operations/myWorkbooks.js +387 -0
  84. package/dist-esm/src/operations/myWorkbooks.js.map +1 -0
  85. package/dist-esm/src/operations/proactiveDetectionConfigurations.d.ts +40 -0
  86. package/dist-esm/src/operations/proactiveDetectionConfigurations.d.ts.map +1 -0
  87. package/dist-esm/src/operations/proactiveDetectionConfigurations.js +130 -0
  88. package/dist-esm/src/operations/proactiveDetectionConfigurations.js.map +1 -0
  89. package/dist-esm/src/operations/webTestLocations.d.ts +30 -0
  90. package/dist-esm/src/operations/webTestLocations.d.ts.map +1 -0
  91. package/dist-esm/src/operations/webTestLocations.js +96 -0
  92. package/dist-esm/src/operations/webTestLocations.js.map +1 -0
  93. package/dist-esm/src/operations/webTests.d.ts +108 -0
  94. package/dist-esm/src/operations/webTests.d.ts.map +1 -0
  95. package/dist-esm/src/operations/webTests.js +435 -0
  96. package/dist-esm/src/operations/webTests.js.map +1 -0
  97. package/dist-esm/src/operations/workItemConfigurations.d.ts +75 -0
  98. package/dist-esm/src/operations/workItemConfigurations.d.ts.map +1 -0
  99. package/dist-esm/src/operations/workItemConfigurations.js +257 -0
  100. package/dist-esm/src/operations/workItemConfigurations.js.map +1 -0
  101. package/dist-esm/src/operations/workbookTemplates.d.ts +57 -0
  102. package/dist-esm/src/operations/workbookTemplates.d.ts.map +1 -0
  103. package/dist-esm/src/operations/workbookTemplates.js +223 -0
  104. package/dist-esm/src/operations/workbookTemplates.js.map +1 -0
  105. package/dist-esm/src/operations/workbooks.d.ts +120 -0
  106. package/dist-esm/src/operations/workbooks.d.ts.map +1 -0
  107. package/dist-esm/src/operations/workbooks.js +530 -0
  108. package/dist-esm/src/operations/workbooks.js.map +1 -0
  109. package/dist-esm/src/operationsInterfaces/aPIKeys.d.ts +38 -0
  110. package/dist-esm/src/operationsInterfaces/aPIKeys.d.ts.map +1 -0
  111. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/aPIKeys.js} +2 -1
  112. package/dist-esm/src/operationsInterfaces/aPIKeys.js.map +1 -0
  113. package/dist-esm/src/operationsInterfaces/analyticsItems.d.ts +43 -0
  114. package/dist-esm/src/operationsInterfaces/analyticsItems.d.ts.map +1 -0
  115. package/{src/models/favoritesMappers.ts → dist-esm/src/operationsInterfaces/analyticsItems.js} +2 -5
  116. package/dist-esm/src/operationsInterfaces/analyticsItems.js.map +1 -0
  117. package/dist-esm/src/operationsInterfaces/annotations.d.ts +43 -0
  118. package/dist-esm/src/operationsInterfaces/annotations.d.ts.map +1 -0
  119. package/{src/models/componentQuotaStatusMappers.ts → dist-esm/src/operationsInterfaces/annotations.js} +2 -5
  120. package/dist-esm/src/operationsInterfaces/annotations.js.map +1 -0
  121. package/dist-esm/src/operationsInterfaces/componentAvailableFeatures.d.ts +12 -0
  122. package/dist-esm/src/operationsInterfaces/componentAvailableFeatures.d.ts.map +1 -0
  123. package/{src/models/componentFeatureCapabilitiesMappers.ts → dist-esm/src/operationsInterfaces/componentAvailableFeatures.js} +2 -5
  124. package/dist-esm/src/operationsInterfaces/componentAvailableFeatures.js.map +1 -0
  125. package/dist-esm/src/operationsInterfaces/componentCurrentBillingFeatures.d.ts +21 -0
  126. package/dist-esm/src/operationsInterfaces/componentCurrentBillingFeatures.d.ts.map +1 -0
  127. package/dist-esm/src/operationsInterfaces/componentCurrentBillingFeatures.js +9 -0
  128. package/dist-esm/src/operationsInterfaces/componentCurrentBillingFeatures.js.map +1 -0
  129. package/dist-esm/src/operationsInterfaces/componentFeatureCapabilities.d.ts +12 -0
  130. package/dist-esm/src/operationsInterfaces/componentFeatureCapabilities.d.ts.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/componentFeatureCapabilities.js +9 -0
  132. package/dist-esm/src/operationsInterfaces/componentFeatureCapabilities.js.map +1 -0
  133. package/dist-esm/src/operationsInterfaces/componentLinkedStorageAccountsOperations.d.ts +45 -0
  134. package/dist-esm/src/operationsInterfaces/componentLinkedStorageAccountsOperations.d.ts.map +1 -0
  135. package/dist-esm/src/operationsInterfaces/componentLinkedStorageAccountsOperations.js +9 -0
  136. package/dist-esm/src/operationsInterfaces/componentLinkedStorageAccountsOperations.js.map +1 -0
  137. package/dist-esm/src/operationsInterfaces/componentQuotaStatus.d.ts +12 -0
  138. package/dist-esm/src/operationsInterfaces/componentQuotaStatus.d.ts.map +1 -0
  139. package/dist-esm/src/operationsInterfaces/componentQuotaStatus.js +9 -0
  140. package/dist-esm/src/operationsInterfaces/componentQuotaStatus.js.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/components.d.ts +72 -0
  142. package/dist-esm/src/operationsInterfaces/components.d.ts.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/components.js +9 -0
  144. package/dist-esm/src/operationsInterfaces/components.js.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/exportConfigurations.d.ts +50 -0
  146. package/dist-esm/src/operationsInterfaces/exportConfigurations.d.ts.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/exportConfigurations.js +9 -0
  148. package/dist-esm/src/operationsInterfaces/exportConfigurations.js.map +1 -0
  149. package/dist-esm/src/operationsInterfaces/favorites.d.ts +47 -0
  150. package/dist-esm/src/operationsInterfaces/favorites.d.ts.map +1 -0
  151. package/dist-esm/src/operationsInterfaces/favorites.js +9 -0
  152. package/dist-esm/src/operationsInterfaces/favorites.js.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/index.d.ts +20 -0
  154. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/index.js +27 -0
  156. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  157. package/dist-esm/src/operationsInterfaces/liveToken.d.ts +11 -0
  158. package/dist-esm/src/operationsInterfaces/liveToken.d.ts.map +1 -0
  159. package/dist-esm/src/operationsInterfaces/liveToken.js +9 -0
  160. package/dist-esm/src/operationsInterfaces/liveToken.js.map +1 -0
  161. package/dist-esm/src/operationsInterfaces/myWorkbooks.d.ts +49 -0
  162. package/dist-esm/src/operationsInterfaces/myWorkbooks.d.ts.map +1 -0
  163. package/dist-esm/src/operationsInterfaces/myWorkbooks.js +9 -0
  164. package/dist-esm/src/operationsInterfaces/myWorkbooks.js.map +1 -0
  165. package/dist-esm/src/operationsInterfaces/proactiveDetectionConfigurations.d.ts +32 -0
  166. package/dist-esm/src/operationsInterfaces/proactiveDetectionConfigurations.d.ts.map +1 -0
  167. package/dist-esm/src/operationsInterfaces/proactiveDetectionConfigurations.js +9 -0
  168. package/dist-esm/src/operationsInterfaces/proactiveDetectionConfigurations.js.map +1 -0
  169. package/dist-esm/src/operationsInterfaces/webTestLocations.d.ts +13 -0
  170. package/dist-esm/src/operationsInterfaces/webTestLocations.d.ts.map +1 -0
  171. package/dist-esm/src/operationsInterfaces/webTestLocations.js +9 -0
  172. package/dist-esm/src/operationsInterfaces/webTestLocations.js.map +1 -0
  173. package/dist-esm/src/operationsInterfaces/webTests.d.ts +55 -0
  174. package/dist-esm/src/operationsInterfaces/webTests.d.ts.map +1 -0
  175. package/dist-esm/src/operationsInterfaces/webTests.js +9 -0
  176. package/dist-esm/src/operationsInterfaces/webTests.js.map +1 -0
  177. package/dist-esm/src/operationsInterfaces/workItemConfigurations.d.ts +58 -0
  178. package/dist-esm/src/operationsInterfaces/workItemConfigurations.d.ts.map +1 -0
  179. package/dist-esm/src/operationsInterfaces/workItemConfigurations.js +9 -0
  180. package/dist-esm/src/operationsInterfaces/workItemConfigurations.js.map +1 -0
  181. package/dist-esm/src/operationsInterfaces/workbookTemplates.d.ts +41 -0
  182. package/dist-esm/src/operationsInterfaces/workbookTemplates.d.ts.map +1 -0
  183. package/dist-esm/src/operationsInterfaces/workbookTemplates.js +9 -0
  184. package/dist-esm/src/operationsInterfaces/workbookTemplates.js.map +1 -0
  185. package/dist-esm/src/operationsInterfaces/workbooks.d.ts +63 -0
  186. package/dist-esm/src/operationsInterfaces/workbooks.d.ts.map +1 -0
  187. package/dist-esm/src/operationsInterfaces/workbooks.js +9 -0
  188. package/dist-esm/src/operationsInterfaces/workbooks.js.map +1 -0
  189. package/dist-esm/test/sampleTest.d.ts +2 -0
  190. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  191. package/dist-esm/test/sampleTest.js +40 -0
  192. package/dist-esm/test/sampleTest.js.map +1 -0
  193. package/package.json +71 -22
  194. package/review/arm-appinsights.api.md +1776 -0
  195. package/rollup.config.js +181 -30
  196. package/src/applicationInsightsManagementClient.ts +142 -70
  197. package/src/{models/aPIKeysMappers.ts → index.ts} +4 -6
  198. package/src/models/index.ts +1565 -3230
  199. package/src/models/mappers.ts +1388 -1481
  200. package/src/models/parameters.ts +344 -225
  201. package/src/operations/aPIKeys.ts +153 -188
  202. package/src/operations/analyticsItems.ts +120 -237
  203. package/src/operations/annotations.ts +185 -211
  204. package/src/operations/componentAvailableFeatures.ts +38 -54
  205. package/src/operations/componentCurrentBillingFeatures.ts +64 -107
  206. package/src/operations/componentFeatureCapabilities.ts +38 -54
  207. package/src/operations/componentLinkedStorageAccountsOperations.ts +122 -175
  208. package/src/operations/componentQuotaStatus.ts +37 -54
  209. package/src/operations/components.ts +338 -428
  210. package/src/operations/exportConfigurations.ts +137 -261
  211. package/src/operations/favorites.ts +132 -239
  212. package/src/operations/index.ts +1 -3
  213. package/src/operations/liveToken.ts +27 -46
  214. package/src/operations/myWorkbooks.ts +334 -353
  215. package/src/operations/proactiveDetectionConfigurations.ts +95 -157
  216. package/src/operations/webTestLocations.ts +84 -50
  217. package/src/operations/webTests.ts +389 -417
  218. package/src/operations/workItemConfigurations.ts +200 -280
  219. package/src/operations/workbookTemplates.ts +167 -210
  220. package/src/operations/workbooks.ts +481 -470
  221. package/src/operationsInterfaces/aPIKeys.ts +76 -0
  222. package/src/operationsInterfaces/analyticsItems.ts +82 -0
  223. package/src/operationsInterfaces/annotations.ts +81 -0
  224. package/src/operationsInterfaces/componentAvailableFeatures.ts +27 -0
  225. package/src/operationsInterfaces/componentCurrentBillingFeatures.ts +44 -0
  226. package/src/operationsInterfaces/componentFeatureCapabilities.ts +27 -0
  227. package/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts +86 -0
  228. package/src/operationsInterfaces/componentQuotaStatus.ts +27 -0
  229. package/src/operationsInterfaces/components.ts +131 -0
  230. package/src/operationsInterfaces/exportConfigurations.ts +95 -0
  231. package/src/operationsInterfaces/favorites.ts +92 -0
  232. package/src/operationsInterfaces/index.ts +27 -0
  233. package/src/operationsInterfaces/liveToken.ts +22 -0
  234. package/src/operationsInterfaces/myWorkbooks.ts +95 -0
  235. package/src/operationsInterfaces/proactiveDetectionConfigurations.ts +63 -0
  236. package/src/operationsInterfaces/webTestLocations.ts +29 -0
  237. package/src/operationsInterfaces/webTests.ts +104 -0
  238. package/src/operationsInterfaces/workItemConfigurations.ts +109 -0
  239. package/src/operationsInterfaces/workbookTemplates.ts +80 -0
  240. package/src/operationsInterfaces/workbooks.ts +120 -0
  241. package/tsconfig.json +14 -6
  242. package/types/arm-appinsights.d.ts +3117 -0
  243. package/types/tsdoc-metadata.json +11 -0
  244. package/dist/arm-appinsights.js +0 -7933
  245. package/dist/arm-appinsights.js.map +0 -1
  246. package/dist/arm-appinsights.min.js +0 -1
  247. package/dist/arm-appinsights.min.js.map +0 -1
  248. package/esm/applicationInsightsManagementClient.d.ts +0 -43
  249. package/esm/applicationInsightsManagementClient.d.ts.map +0 -1
  250. package/esm/applicationInsightsManagementClient.js +0 -56
  251. package/esm/applicationInsightsManagementClient.js.map +0 -1
  252. package/esm/applicationInsightsManagementClientContext.d.ts +0 -21
  253. package/esm/applicationInsightsManagementClientContext.d.ts.map +0 -1
  254. package/esm/applicationInsightsManagementClientContext.js +0 -59
  255. package/esm/applicationInsightsManagementClientContext.js.map +0 -1
  256. package/esm/models/aPIKeysMappers.d.ts +0 -2
  257. package/esm/models/aPIKeysMappers.d.ts.map +0 -1
  258. package/esm/models/aPIKeysMappers.js +0 -9
  259. package/esm/models/aPIKeysMappers.js.map +0 -1
  260. package/esm/models/analyticsItemsMappers.d.ts +0 -2
  261. package/esm/models/analyticsItemsMappers.d.ts.map +0 -1
  262. package/esm/models/analyticsItemsMappers.js +0 -9
  263. package/esm/models/analyticsItemsMappers.js.map +0 -1
  264. package/esm/models/annotationsMappers.d.ts +0 -2
  265. package/esm/models/annotationsMappers.d.ts.map +0 -1
  266. package/esm/models/annotationsMappers.js +0 -9
  267. package/esm/models/annotationsMappers.js.map +0 -1
  268. package/esm/models/componentAvailableFeaturesMappers.d.ts +0 -2
  269. package/esm/models/componentAvailableFeaturesMappers.d.ts.map +0 -1
  270. package/esm/models/componentAvailableFeaturesMappers.js +0 -9
  271. package/esm/models/componentAvailableFeaturesMappers.js.map +0 -1
  272. package/esm/models/componentCurrentBillingFeaturesMappers.d.ts +0 -2
  273. package/esm/models/componentCurrentBillingFeaturesMappers.d.ts.map +0 -1
  274. package/esm/models/componentCurrentBillingFeaturesMappers.js +0 -9
  275. package/esm/models/componentCurrentBillingFeaturesMappers.js.map +0 -1
  276. package/esm/models/componentFeatureCapabilitiesMappers.d.ts +0 -2
  277. package/esm/models/componentFeatureCapabilitiesMappers.d.ts.map +0 -1
  278. package/esm/models/componentFeatureCapabilitiesMappers.js +0 -9
  279. package/esm/models/componentFeatureCapabilitiesMappers.js.map +0 -1
  280. package/esm/models/componentLinkedStorageAccountsOperationsMappers.d.ts +0 -2
  281. package/esm/models/componentLinkedStorageAccountsOperationsMappers.d.ts.map +0 -1
  282. package/esm/models/componentLinkedStorageAccountsOperationsMappers.js +0 -9
  283. package/esm/models/componentLinkedStorageAccountsOperationsMappers.js.map +0 -1
  284. package/esm/models/componentQuotaStatusMappers.d.ts +0 -2
  285. package/esm/models/componentQuotaStatusMappers.d.ts.map +0 -1
  286. package/esm/models/componentQuotaStatusMappers.js +0 -9
  287. package/esm/models/componentQuotaStatusMappers.js.map +0 -1
  288. package/esm/models/componentsMappers.d.ts +0 -2
  289. package/esm/models/componentsMappers.d.ts.map +0 -1
  290. package/esm/models/componentsMappers.js +0 -9
  291. package/esm/models/componentsMappers.js.map +0 -1
  292. package/esm/models/exportConfigurationsMappers.d.ts +0 -2
  293. package/esm/models/exportConfigurationsMappers.d.ts.map +0 -1
  294. package/esm/models/exportConfigurationsMappers.js +0 -9
  295. package/esm/models/exportConfigurationsMappers.js.map +0 -1
  296. package/esm/models/favoritesMappers.d.ts +0 -2
  297. package/esm/models/favoritesMappers.d.ts.map +0 -1
  298. package/esm/models/favoritesMappers.js +0 -9
  299. package/esm/models/favoritesMappers.js.map +0 -1
  300. package/esm/models/index.d.ts +0 -3793
  301. package/esm/models/index.d.ts.map +0 -1
  302. package/esm/models/index.js.map +0 -1
  303. package/esm/models/liveTokenMappers.d.ts +0 -2
  304. package/esm/models/liveTokenMappers.d.ts.map +0 -1
  305. package/esm/models/liveTokenMappers.js +0 -9
  306. package/esm/models/liveTokenMappers.js.map +0 -1
  307. package/esm/models/mappers.d.ts +0 -89
  308. package/esm/models/mappers.d.ts.map +0 -1
  309. package/esm/models/mappers.js.map +0 -1
  310. package/esm/models/myWorkbooksMappers.d.ts +0 -2
  311. package/esm/models/myWorkbooksMappers.d.ts.map +0 -1
  312. package/esm/models/myWorkbooksMappers.js +0 -9
  313. package/esm/models/myWorkbooksMappers.js.map +0 -1
  314. package/esm/models/operationsMappers.d.ts +0 -2
  315. package/esm/models/operationsMappers.d.ts.map +0 -1
  316. package/esm/models/operationsMappers.js +0 -9
  317. package/esm/models/operationsMappers.js.map +0 -1
  318. package/esm/models/parameters.d.ts +0 -41
  319. package/esm/models/parameters.d.ts.map +0 -1
  320. package/esm/models/parameters.js.map +0 -1
  321. package/esm/models/proactiveDetectionConfigurationsMappers.d.ts +0 -2
  322. package/esm/models/proactiveDetectionConfigurationsMappers.d.ts.map +0 -1
  323. package/esm/models/proactiveDetectionConfigurationsMappers.js +0 -9
  324. package/esm/models/proactiveDetectionConfigurationsMappers.js.map +0 -1
  325. package/esm/models/webTestLocationsMappers.d.ts +0 -2
  326. package/esm/models/webTestLocationsMappers.d.ts.map +0 -1
  327. package/esm/models/webTestLocationsMappers.js +0 -9
  328. package/esm/models/webTestLocationsMappers.js.map +0 -1
  329. package/esm/models/webTestsMappers.d.ts +0 -2
  330. package/esm/models/webTestsMappers.d.ts.map +0 -1
  331. package/esm/models/webTestsMappers.js +0 -9
  332. package/esm/models/webTestsMappers.js.map +0 -1
  333. package/esm/models/workItemConfigurationsMappers.d.ts +0 -2
  334. package/esm/models/workItemConfigurationsMappers.d.ts.map +0 -1
  335. package/esm/models/workItemConfigurationsMappers.js +0 -9
  336. package/esm/models/workItemConfigurationsMappers.js.map +0 -1
  337. package/esm/models/workbookTemplatesMappers.d.ts +0 -2
  338. package/esm/models/workbookTemplatesMappers.d.ts.map +0 -1
  339. package/esm/models/workbookTemplatesMappers.js +0 -9
  340. package/esm/models/workbookTemplatesMappers.js.map +0 -1
  341. package/esm/models/workbooksMappers.d.ts +0 -2
  342. package/esm/models/workbooksMappers.d.ts.map +0 -1
  343. package/esm/models/workbooksMappers.js +0 -9
  344. package/esm/models/workbooksMappers.js.map +0 -1
  345. package/esm/operations/aPIKeys.d.ts +0 -109
  346. package/esm/operations/aPIKeys.d.ts.map +0 -1
  347. package/esm/operations/aPIKeys.js +0 -160
  348. package/esm/operations/aPIKeys.js.map +0 -1
  349. package/esm/operations/analyticsItems.d.ts +0 -139
  350. package/esm/operations/analyticsItems.d.ts.map +0 -1
  351. package/esm/operations/analyticsItems.js +0 -181
  352. package/esm/operations/analyticsItems.js.map +0 -1
  353. package/esm/operations/annotations.d.ts +0 -124
  354. package/esm/operations/annotations.d.ts.map +0 -1
  355. package/esm/operations/annotations.js +0 -184
  356. package/esm/operations/annotations.js.map +0 -1
  357. package/esm/operations/componentAvailableFeatures.d.ts +0 -34
  358. package/esm/operations/componentAvailableFeatures.d.ts.map +0 -1
  359. package/esm/operations/componentAvailableFeatures.js +0 -57
  360. package/esm/operations/componentAvailableFeatures.js.map +0 -1
  361. package/esm/operations/componentCurrentBillingFeatures.d.ts +0 -61
  362. package/esm/operations/componentCurrentBillingFeatures.d.ts.map +0 -1
  363. package/esm/operations/componentCurrentBillingFeatures.js +0 -94
  364. package/esm/operations/componentCurrentBillingFeatures.js.map +0 -1
  365. package/esm/operations/componentFeatureCapabilities.d.ts +0 -34
  366. package/esm/operations/componentFeatureCapabilities.d.ts.map +0 -1
  367. package/esm/operations/componentFeatureCapabilities.js +0 -57
  368. package/esm/operations/componentFeatureCapabilities.js.map +0 -1
  369. package/esm/operations/componentLinkedStorageAccountsOperations.d.ts +0 -109
  370. package/esm/operations/componentLinkedStorageAccountsOperations.d.ts.map +0 -1
  371. package/esm/operations/componentLinkedStorageAccountsOperations.js +0 -164
  372. package/esm/operations/componentLinkedStorageAccountsOperations.js.map +0 -1
  373. package/esm/operations/componentQuotaStatus.d.ts +0 -34
  374. package/esm/operations/componentQuotaStatus.d.ts.map +0 -1
  375. package/esm/operations/componentQuotaStatus.js +0 -57
  376. package/esm/operations/componentQuotaStatus.js.map +0 -1
  377. package/esm/operations/components.d.ts +0 -236
  378. package/esm/operations/components.d.ts.map +0 -1
  379. package/esm/operations/components.js +0 -349
  380. package/esm/operations/components.js.map +0 -1
  381. package/esm/operations/exportConfigurations.d.ts +0 -148
  382. package/esm/operations/exportConfigurations.d.ts.map +0 -1
  383. package/esm/operations/exportConfigurations.js +0 -220
  384. package/esm/operations/exportConfigurations.js.map +0 -1
  385. package/esm/operations/favorites.d.ts +0 -139
  386. package/esm/operations/favorites.d.ts.map +0 -1
  387. package/esm/operations/favorites.js +0 -213
  388. package/esm/operations/favorites.js.map +0 -1
  389. package/esm/operations/index.d.ts.map +0 -1
  390. package/esm/operations/index.js.map +0 -1
  391. package/esm/operations/liveToken.d.ts +0 -31
  392. package/esm/operations/liveToken.d.ts.map +0 -1
  393. package/esm/operations/liveToken.js +0 -54
  394. package/esm/operations/liveToken.js.map +0 -1
  395. package/esm/operations/myWorkbooks.d.ts +0 -196
  396. package/esm/operations/myWorkbooks.d.ts.map +0 -1
  397. package/esm/operations/myWorkbooks.js +0 -297
  398. package/esm/operations/myWorkbooks.js.map +0 -1
  399. package/esm/operations/operations.d.ts +0 -81
  400. package/esm/operations/operations.d.ts.map +0 -1
  401. package/esm/operations/operations.js +0 -132
  402. package/esm/operations/operations.js.map +0 -1
  403. package/esm/operations/proactiveDetectionConfigurations.d.ts +0 -94
  404. package/esm/operations/proactiveDetectionConfigurations.d.ts.map +0 -1
  405. package/esm/operations/proactiveDetectionConfigurations.js +0 -140
  406. package/esm/operations/proactiveDetectionConfigurations.js.map +0 -1
  407. package/esm/operations/webTestLocations.d.ts +0 -34
  408. package/esm/operations/webTestLocations.d.ts.map +0 -1
  409. package/esm/operations/webTestLocations.js +0 -57
  410. package/esm/operations/webTestLocations.js.map +0 -1
  411. package/esm/operations/webTests.d.ts +0 -214
  412. package/esm/operations/webTests.d.ts.map +0 -1
  413. package/esm/operations/webTests.js +0 -334
  414. package/esm/operations/webTests.js.map +0 -1
  415. package/esm/operations/workItemConfigurations.d.ts +0 -169
  416. package/esm/operations/workItemConfigurations.d.ts.map +0 -1
  417. package/esm/operations/workItemConfigurations.js +0 -227
  418. package/esm/operations/workItemConfigurations.js.map +0 -1
  419. package/esm/operations/workbookTemplates.d.ts +0 -118
  420. package/esm/operations/workbookTemplates.d.ts.map +0 -1
  421. package/esm/operations/workbookTemplates.js +0 -194
  422. package/esm/operations/workbookTemplates.js.map +0 -1
  423. package/esm/operations/workbooks.d.ts +0 -256
  424. package/esm/operations/workbooks.d.ts.map +0 -1
  425. package/esm/operations/workbooks.js +0 -392
  426. package/esm/operations/workbooks.js.map +0 -1
  427. package/src/applicationInsightsManagementClientContext.ts +0 -65
  428. package/src/models/analyticsItemsMappers.ts +0 -13
  429. package/src/models/annotationsMappers.ts +0 -15
  430. package/src/models/componentAvailableFeaturesMappers.ts +0 -14
  431. package/src/models/componentCurrentBillingFeaturesMappers.ts +0 -13
  432. package/src/models/componentLinkedStorageAccountsOperationsMappers.ts +0 -42
  433. package/src/models/componentsMappers.ts +0 -46
  434. package/src/models/exportConfigurationsMappers.ts +0 -13
  435. package/src/models/liveTokenMappers.ts +0 -13
  436. package/src/models/myWorkbooksMappers.ts +0 -42
  437. package/src/models/operationsMappers.ts +0 -18
  438. package/src/models/proactiveDetectionConfigurationsMappers.ts +0 -40
  439. package/src/models/webTestLocationsMappers.ts +0 -13
  440. package/src/models/webTestsMappers.ts +0 -42
  441. package/src/models/workItemConfigurationsMappers.ts +0 -16
  442. package/src/models/workbookTemplatesMappers.ts +0 -44
  443. package/src/models/workbooksMappers.ts +0 -43
  444. package/src/operations/operations.ts +0 -223
@@ -3,182 +3,226 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/componentsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Components } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext";
14
+ import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
15
+ import {
16
+ ApplicationInsightsComponent,
17
+ ComponentsListNextOptionalParams,
18
+ ComponentsListOptionalParams,
19
+ ComponentsListByResourceGroupNextOptionalParams,
20
+ ComponentsListByResourceGroupOptionalParams,
21
+ ComponentsListResponse,
22
+ ComponentsListByResourceGroupResponse,
23
+ ComponentsDeleteOptionalParams,
24
+ ComponentsGetOptionalParams,
25
+ ComponentsGetResponse,
26
+ ComponentsCreateOrUpdateOptionalParams,
27
+ ComponentsCreateOrUpdateResponse,
28
+ TagsResource,
29
+ ComponentsUpdateTagsOptionalParams,
30
+ ComponentsUpdateTagsResponse,
31
+ ComponentPurgeBody,
32
+ ComponentsPurgeOptionalParams,
33
+ ComponentsPurgeResponse,
34
+ ComponentsGetPurgeStatusOptionalParams,
35
+ ComponentsGetPurgeStatusResponse,
36
+ ComponentsListNextResponse,
37
+ ComponentsListByResourceGroupNextResponse
38
+ } from "../models";
15
39
 
16
- /** Class representing a Components. */
17
- export class Components {
18
- private readonly client: ApplicationInsightsManagementClientContext;
40
+ /// <reference lib="esnext.asynciterable" />
41
+ /** Class containing Components operations. */
42
+ export class ComponentsImpl implements Components {
43
+ private readonly client: ApplicationInsightsManagementClient;
19
44
 
20
45
  /**
21
- * Create a Components.
22
- * @param {ApplicationInsightsManagementClientContext} client Reference to the service client.
46
+ * Initialize a new instance of the class Components class.
47
+ * @param client Reference to the service client
23
48
  */
24
- constructor(client: ApplicationInsightsManagementClientContext) {
49
+ constructor(client: ApplicationInsightsManagementClient) {
25
50
  this.client = client;
26
51
  }
27
52
 
28
53
  /**
29
54
  * Gets a list of all Application Insights components within a subscription.
30
- * @param [options] The optional parameters
31
- * @returns Promise<Models.ComponentsListResponse>
55
+ * @param options The options parameters.
32
56
  */
33
- list(options?: msRest.RequestOptionsBase): Promise<Models.ComponentsListResponse>;
34
- /**
35
- * @param callback The callback
36
- */
37
- list(callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
38
- /**
39
- * @param options The optional parameters
40
- * @param callback The callback
41
- */
42
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
43
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>, callback?: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): Promise<Models.ComponentsListResponse> {
44
- return this.client.sendOperationRequest(
45
- {
46
- options
57
+ public list(
58
+ options?: ComponentsListOptionalParams
59
+ ): PagedAsyncIterableIterator<ApplicationInsightsComponent> {
60
+ const iter = this.listPagingAll(options);
61
+ return {
62
+ next() {
63
+ return iter.next();
47
64
  },
48
- listOperationSpec,
49
- callback) as Promise<Models.ComponentsListResponse>;
65
+ [Symbol.asyncIterator]() {
66
+ return this;
67
+ },
68
+ byPage: () => {
69
+ return this.listPagingPage(options);
70
+ }
71
+ };
72
+ }
73
+
74
+ private async *listPagingPage(
75
+ options?: ComponentsListOptionalParams
76
+ ): AsyncIterableIterator<ApplicationInsightsComponent[]> {
77
+ let result = await this._list(options);
78
+ yield result.value || [];
79
+ let continuationToken = result.nextLink;
80
+ while (continuationToken) {
81
+ result = await this._listNext(continuationToken, options);
82
+ continuationToken = result.nextLink;
83
+ yield result.value || [];
84
+ }
85
+ }
86
+
87
+ private async *listPagingAll(
88
+ options?: ComponentsListOptionalParams
89
+ ): AsyncIterableIterator<ApplicationInsightsComponent> {
90
+ for await (const page of this.listPagingPage(options)) {
91
+ yield* page;
92
+ }
50
93
  }
51
94
 
52
95
  /**
53
96
  * Gets a list of Application Insights components within a resource group.
54
97
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
55
- * @param [options] The optional parameters
56
- * @returns Promise<Models.ComponentsListByResourceGroupResponse>
57
- */
58
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsListByResourceGroupResponse>;
59
- /**
60
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
61
- * @param callback The callback
62
- */
63
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
64
- /**
65
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
66
- * @param options The optional parameters
67
- * @param callback The callback
98
+ * @param options The options parameters.
68
99
  */
69
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
70
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>, callback?: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): Promise<Models.ComponentsListByResourceGroupResponse> {
71
- return this.client.sendOperationRequest(
72
- {
100
+ public listByResourceGroup(
101
+ resourceGroupName: string,
102
+ options?: ComponentsListByResourceGroupOptionalParams
103
+ ): PagedAsyncIterableIterator<ApplicationInsightsComponent> {
104
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
105
+ return {
106
+ next() {
107
+ return iter.next();
108
+ },
109
+ [Symbol.asyncIterator]() {
110
+ return this;
111
+ },
112
+ byPage: () => {
113
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
114
+ }
115
+ };
116
+ }
117
+
118
+ private async *listByResourceGroupPagingPage(
119
+ resourceGroupName: string,
120
+ options?: ComponentsListByResourceGroupOptionalParams
121
+ ): AsyncIterableIterator<ApplicationInsightsComponent[]> {
122
+ let result = await this._listByResourceGroup(resourceGroupName, options);
123
+ yield result.value || [];
124
+ let continuationToken = result.nextLink;
125
+ while (continuationToken) {
126
+ result = await this._listByResourceGroupNext(
73
127
  resourceGroupName,
128
+ continuationToken,
74
129
  options
75
- },
76
- listByResourceGroupOperationSpec,
77
- callback) as Promise<Models.ComponentsListByResourceGroupResponse>;
130
+ );
131
+ continuationToken = result.nextLink;
132
+ yield result.value || [];
133
+ }
134
+ }
135
+
136
+ private async *listByResourceGroupPagingAll(
137
+ resourceGroupName: string,
138
+ options?: ComponentsListByResourceGroupOptionalParams
139
+ ): AsyncIterableIterator<ApplicationInsightsComponent> {
140
+ for await (const page of this.listByResourceGroupPagingPage(
141
+ resourceGroupName,
142
+ options
143
+ )) {
144
+ yield* page;
145
+ }
78
146
  }
79
147
 
80
148
  /**
81
- * Deletes an Application Insights component.
82
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
83
- * @param resourceName The name of the Application Insights component resource.
84
- * @param [options] The optional parameters
85
- * @returns Promise<msRest.RestResponse>
149
+ * Gets a list of all Application Insights components within a subscription.
150
+ * @param options The options parameters.
86
151
  */
87
- deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
152
+ private _list(
153
+ options?: ComponentsListOptionalParams
154
+ ): Promise<ComponentsListResponse> {
155
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
156
+ }
157
+
88
158
  /**
159
+ * Gets a list of Application Insights components within a resource group.
89
160
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
90
- * @param resourceName The name of the Application Insights component resource.
91
- * @param callback The callback
161
+ * @param options The options parameters.
92
162
  */
93
- deleteMethod(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<void>): void;
163
+ private _listByResourceGroup(
164
+ resourceGroupName: string,
165
+ options?: ComponentsListByResourceGroupOptionalParams
166
+ ): Promise<ComponentsListByResourceGroupResponse> {
167
+ return this.client.sendOperationRequest(
168
+ { resourceGroupName, options },
169
+ listByResourceGroupOperationSpec
170
+ );
171
+ }
172
+
94
173
  /**
174
+ * Deletes an Application Insights component.
95
175
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
96
176
  * @param resourceName The name of the Application Insights component resource.
97
- * @param options The optional parameters
98
- * @param callback The callback
177
+ * @param options The options parameters.
99
178
  */
100
- deleteMethod(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
101
- deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
179
+ delete(
180
+ resourceGroupName: string,
181
+ resourceName: string,
182
+ options?: ComponentsDeleteOptionalParams
183
+ ): Promise<void> {
102
184
  return this.client.sendOperationRequest(
103
- {
104
- resourceGroupName,
105
- resourceName,
106
- options
107
- },
108
- deleteMethodOperationSpec,
109
- callback);
185
+ { resourceGroupName, resourceName, options },
186
+ deleteOperationSpec
187
+ );
110
188
  }
111
189
 
112
190
  /**
113
191
  * Returns an Application Insights component.
114
192
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
115
193
  * @param resourceName The name of the Application Insights component resource.
116
- * @param [options] The optional parameters
117
- * @returns Promise<Models.ComponentsGetResponse>
194
+ * @param options The options parameters.
118
195
  */
119
- get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsGetResponse>;
120
- /**
121
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
122
- * @param resourceName The name of the Application Insights component resource.
123
- * @param callback The callback
124
- */
125
- get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): void;
126
- /**
127
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
128
- * @param resourceName The name of the Application Insights component resource.
129
- * @param options The optional parameters
130
- * @param callback The callback
131
- */
132
- get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): void;
133
- get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationInsightsComponent>, callback?: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): Promise<Models.ComponentsGetResponse> {
196
+ get(
197
+ resourceGroupName: string,
198
+ resourceName: string,
199
+ options?: ComponentsGetOptionalParams
200
+ ): Promise<ComponentsGetResponse> {
134
201
  return this.client.sendOperationRequest(
135
- {
136
- resourceGroupName,
137
- resourceName,
138
- options
139
- },
140
- getOperationSpec,
141
- callback) as Promise<Models.ComponentsGetResponse>;
202
+ { resourceGroupName, resourceName, options },
203
+ getOperationSpec
204
+ );
142
205
  }
143
206
 
144
207
  /**
145
- * Creates (or updates) an Application Insights component. Note: You cannot specify a different
146
- * value for InstrumentationKey nor AppId in the Put operation.
208
+ * Creates (or updates) an Application Insights component. Note: You cannot specify a different value
209
+ * for InstrumentationKey nor AppId in the Put operation.
147
210
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
148
211
  * @param resourceName The name of the Application Insights component resource.
149
212
  * @param insightProperties Properties that need to be specified to create an Application Insights
150
- * component.
151
- * @param [options] The optional parameters
152
- * @returns Promise<Models.ComponentsCreateOrUpdateResponse>
213
+ * component.
214
+ * @param options The options parameters.
153
215
  */
154
- createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsCreateOrUpdateResponse>;
155
- /**
156
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
157
- * @param resourceName The name of the Application Insights component resource.
158
- * @param insightProperties Properties that need to be specified to create an Application Insights
159
- * component.
160
- * @param callback The callback
161
- */
162
- createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): void;
163
- /**
164
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
165
- * @param resourceName The name of the Application Insights component resource.
166
- * @param insightProperties Properties that need to be specified to create an Application Insights
167
- * component.
168
- * @param options The optional parameters
169
- * @param callback The callback
170
- */
171
- createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): void;
172
- createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationInsightsComponent>, callback?: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): Promise<Models.ComponentsCreateOrUpdateResponse> {
216
+ createOrUpdate(
217
+ resourceGroupName: string,
218
+ resourceName: string,
219
+ insightProperties: ApplicationInsightsComponent,
220
+ options?: ComponentsCreateOrUpdateOptionalParams
221
+ ): Promise<ComponentsCreateOrUpdateResponse> {
173
222
  return this.client.sendOperationRequest(
174
- {
175
- resourceGroupName,
176
- resourceName,
177
- insightProperties,
178
- options
179
- },
180
- createOrUpdateOperationSpec,
181
- callback) as Promise<Models.ComponentsCreateOrUpdateResponse>;
223
+ { resourceGroupName, resourceName, insightProperties, options },
224
+ createOrUpdateOperationSpec
225
+ );
182
226
  }
183
227
 
184
228
  /**
@@ -186,80 +230,43 @@ export class Components {
186
230
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
187
231
  * @param resourceName The name of the Application Insights component resource.
188
232
  * @param componentTags Updated tag information to set into the component instance.
189
- * @param [options] The optional parameters
190
- * @returns Promise<Models.ComponentsUpdateTagsResponse>
233
+ * @param options The options parameters.
191
234
  */
192
- updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsUpdateTagsResponse>;
193
- /**
194
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
195
- * @param resourceName The name of the Application Insights component resource.
196
- * @param componentTags Updated tag information to set into the component instance.
197
- * @param callback The callback
198
- */
199
- updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): void;
200
- /**
201
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
202
- * @param resourceName The name of the Application Insights component resource.
203
- * @param componentTags Updated tag information to set into the component instance.
204
- * @param options The optional parameters
205
- * @param callback The callback
206
- */
207
- updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): void;
208
- updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationInsightsComponent>, callback?: msRest.ServiceCallback<Models.ApplicationInsightsComponent>): Promise<Models.ComponentsUpdateTagsResponse> {
235
+ updateTags(
236
+ resourceGroupName: string,
237
+ resourceName: string,
238
+ componentTags: TagsResource,
239
+ options?: ComponentsUpdateTagsOptionalParams
240
+ ): Promise<ComponentsUpdateTagsResponse> {
209
241
  return this.client.sendOperationRequest(
210
- {
211
- resourceGroupName,
212
- resourceName,
213
- componentTags,
214
- options
215
- },
216
- updateTagsOperationSpec,
217
- callback) as Promise<Models.ComponentsUpdateTagsResponse>;
242
+ { resourceGroupName, resourceName, componentTags, options },
243
+ updateTagsOperationSpec
244
+ );
218
245
  }
219
246
 
220
247
  /**
221
248
  * Purges data in an Application Insights component by a set of user-defined filters.
222
249
  *
223
250
  * In order to manage system resources, purge requests are throttled at 50 requests per hour. You
224
- * should batch the execution of purge requests by sending a single command whose predicate
225
- * includes all user identities that require purging. Use the in operator to specify multiple
226
- * identities. You should run the query prior to using for a purge request to verify that the
227
- * results are expected.
228
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
229
- * @param resourceName The name of the Application Insights component resource.
230
- * @param body Describes the body of a request to purge data in a single table of an Application
231
- * Insights component
232
- * @param [options] The optional parameters
233
- * @returns Promise<Models.ComponentsPurgeResponse>
234
- */
235
- purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsPurgeResponse>;
236
- /**
237
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
- * @param resourceName The name of the Application Insights component resource.
239
- * @param body Describes the body of a request to purge data in a single table of an Application
240
- * Insights component
241
- * @param callback The callback
242
- */
243
- purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, callback: msRest.ServiceCallback<Models.ComponentPurgeResponse>): void;
244
- /**
251
+ * should batch the execution of purge requests by sending a single command whose predicate includes
252
+ * all user identities that require purging. Use the in operator to specify multiple identities. You
253
+ * should run the query prior to using for a purge request to verify that the results are expected.
245
254
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
246
255
  * @param resourceName The name of the Application Insights component resource.
247
256
  * @param body Describes the body of a request to purge data in a single table of an Application
248
- * Insights component
249
- * @param options The optional parameters
250
- * @param callback The callback
257
+ * Insights component
258
+ * @param options The options parameters.
251
259
  */
252
- purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ComponentPurgeResponse>): void;
253
- purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ComponentPurgeResponse>, callback?: msRest.ServiceCallback<Models.ComponentPurgeResponse>): Promise<Models.ComponentsPurgeResponse> {
260
+ purge(
261
+ resourceGroupName: string,
262
+ resourceName: string,
263
+ body: ComponentPurgeBody,
264
+ options?: ComponentsPurgeOptionalParams
265
+ ): Promise<ComponentsPurgeResponse> {
254
266
  return this.client.sendOperationRequest(
255
- {
256
- resourceGroupName,
257
- resourceName,
258
- body,
259
- options
260
- },
261
- purgeOperationSpec,
262
- callback) as Promise<Models.ComponentsPurgeResponse>;
267
+ { resourceGroupName, resourceName, body, options },
268
+ purgeOperationSpec
269
+ );
263
270
  }
264
271
 
265
272
  /**
@@ -267,367 +274,270 @@ export class Components {
267
274
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
268
275
  * @param resourceName The name of the Application Insights component resource.
269
276
  * @param purgeId In a purge status request, this is the Id of the operation the status of which is
270
- * returned.
271
- * @param [options] The optional parameters
272
- * @returns Promise<Models.ComponentsGetPurgeStatusResponse>
277
+ * returned.
278
+ * @param options The options parameters.
273
279
  */
274
- getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsGetPurgeStatusResponse>;
275
- /**
276
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
277
- * @param resourceName The name of the Application Insights component resource.
278
- * @param purgeId In a purge status request, this is the Id of the operation the status of which is
279
- * returned.
280
- * @param callback The callback
281
- */
282
- getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, callback: msRest.ServiceCallback<Models.ComponentPurgeStatusResponse>): void;
283
- /**
284
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
285
- * @param resourceName The name of the Application Insights component resource.
286
- * @param purgeId In a purge status request, this is the Id of the operation the status of which is
287
- * returned.
288
- * @param options The optional parameters
289
- * @param callback The callback
290
- */
291
- getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ComponentPurgeStatusResponse>): void;
292
- getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ComponentPurgeStatusResponse>, callback?: msRest.ServiceCallback<Models.ComponentPurgeStatusResponse>): Promise<Models.ComponentsGetPurgeStatusResponse> {
280
+ getPurgeStatus(
281
+ resourceGroupName: string,
282
+ resourceName: string,
283
+ purgeId: string,
284
+ options?: ComponentsGetPurgeStatusOptionalParams
285
+ ): Promise<ComponentsGetPurgeStatusResponse> {
293
286
  return this.client.sendOperationRequest(
294
- {
295
- resourceGroupName,
296
- resourceName,
297
- purgeId,
298
- options
299
- },
300
- getPurgeStatusOperationSpec,
301
- callback) as Promise<Models.ComponentsGetPurgeStatusResponse>;
287
+ { resourceGroupName, resourceName, purgeId, options },
288
+ getPurgeStatusOperationSpec
289
+ );
302
290
  }
303
291
 
304
292
  /**
305
- * Gets a list of all Application Insights components within a subscription.
306
- * @param nextPageLink The NextLink from the previous successful call to List operation.
307
- * @param [options] The optional parameters
308
- * @returns Promise<Models.ComponentsListNextResponse>
309
- */
310
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsListNextResponse>;
311
- /**
312
- * @param nextPageLink The NextLink from the previous successful call to List operation.
313
- * @param callback The callback
293
+ * ListNext
294
+ * @param nextLink The nextLink from the previous successful call to the List method.
295
+ * @param options The options parameters.
314
296
  */
315
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
316
- /**
317
- * @param nextPageLink The NextLink from the previous successful call to List operation.
318
- * @param options The optional parameters
319
- * @param callback The callback
320
- */
321
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
322
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>, callback?: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): Promise<Models.ComponentsListNextResponse> {
297
+ private _listNext(
298
+ nextLink: string,
299
+ options?: ComponentsListNextOptionalParams
300
+ ): Promise<ComponentsListNextResponse> {
323
301
  return this.client.sendOperationRequest(
324
- {
325
- nextPageLink,
326
- options
327
- },
328
- listNextOperationSpec,
329
- callback) as Promise<Models.ComponentsListNextResponse>;
302
+ { nextLink, options },
303
+ listNextOperationSpec
304
+ );
330
305
  }
331
306
 
332
307
  /**
333
- * Gets a list of Application Insights components within a resource group.
334
- * @param nextPageLink The NextLink from the previous successful call to List operation.
335
- * @param [options] The optional parameters
336
- * @returns Promise<Models.ComponentsListByResourceGroupNextResponse>
337
- */
338
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ComponentsListByResourceGroupNextResponse>;
339
- /**
340
- * @param nextPageLink The NextLink from the previous successful call to List operation.
341
- * @param callback The callback
342
- */
343
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
344
- /**
345
- * @param nextPageLink The NextLink from the previous successful call to List operation.
346
- * @param options The optional parameters
347
- * @param callback The callback
308
+ * ListByResourceGroupNext
309
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
310
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
311
+ * @param options The options parameters.
348
312
  */
349
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): void;
350
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>, callback?: msRest.ServiceCallback<Models.ApplicationInsightsComponentListResult>): Promise<Models.ComponentsListByResourceGroupNextResponse> {
313
+ private _listByResourceGroupNext(
314
+ resourceGroupName: string,
315
+ nextLink: string,
316
+ options?: ComponentsListByResourceGroupNextOptionalParams
317
+ ): Promise<ComponentsListByResourceGroupNextResponse> {
351
318
  return this.client.sendOperationRequest(
352
- {
353
- nextPageLink,
354
- options
355
- },
356
- listByResourceGroupNextOperationSpec,
357
- callback) as Promise<Models.ComponentsListByResourceGroupNextResponse>;
319
+ { resourceGroupName, nextLink, options },
320
+ listByResourceGroupNextOperationSpec
321
+ );
358
322
  }
359
323
  }
360
-
361
324
  // Operation Specifications
362
- const serializer = new msRest.Serializer(Mappers);
363
- const listOperationSpec: msRest.OperationSpec = {
325
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
326
+
327
+ const listOperationSpec: coreClient.OperationSpec = {
328
+ path:
329
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components",
364
330
  httpMethod: "GET",
365
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/components",
366
- urlParameters: [
367
- Parameters.subscriptionId
368
- ],
369
- queryParameters: [
370
- Parameters.apiVersion5
371
- ],
372
- headerParameters: [
373
- Parameters.acceptLanguage
374
- ],
375
331
  responses: {
376
332
  200: {
377
333
  bodyMapper: Mappers.ApplicationInsightsComponentListResult
378
334
  },
379
335
  default: {
380
- bodyMapper: Mappers.CloudError
336
+ bodyMapper: Mappers.ErrorResponseComponents
381
337
  }
382
338
  },
339
+ queryParameters: [Parameters.apiVersion4],
340
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
341
+ headerParameters: [Parameters.accept],
383
342
  serializer
384
343
  };
385
-
386
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
344
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
345
+ path:
346
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components",
387
347
  httpMethod: "GET",
388
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components",
389
- urlParameters: [
390
- Parameters.resourceGroupName,
391
- Parameters.subscriptionId
392
- ],
393
- queryParameters: [
394
- Parameters.apiVersion5
395
- ],
396
- headerParameters: [
397
- Parameters.acceptLanguage
398
- ],
399
348
  responses: {
400
349
  200: {
401
350
  bodyMapper: Mappers.ApplicationInsightsComponentListResult
402
351
  },
403
352
  default: {
404
- bodyMapper: Mappers.CloudError
353
+ bodyMapper: Mappers.ErrorResponseComponents
405
354
  }
406
355
  },
407
- serializer
408
- };
409
-
410
- const deleteMethodOperationSpec: msRest.OperationSpec = {
411
- httpMethod: "DELETE",
412
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
356
+ queryParameters: [Parameters.apiVersion4],
413
357
  urlParameters: [
358
+ Parameters.$host,
414
359
  Parameters.resourceGroupName,
415
- Parameters.subscriptionId,
416
- Parameters.resourceName
417
- ],
418
- queryParameters: [
419
- Parameters.apiVersion5
420
- ],
421
- headerParameters: [
422
- Parameters.acceptLanguage
360
+ Parameters.subscriptionId
423
361
  ],
362
+ headerParameters: [Parameters.accept],
363
+ serializer
364
+ };
365
+ const deleteOperationSpec: coreClient.OperationSpec = {
366
+ path:
367
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
368
+ httpMethod: "DELETE",
424
369
  responses: {
425
370
  200: {},
426
371
  204: {},
427
372
  default: {
428
- bodyMapper: Mappers.CloudError
373
+ bodyMapper: Mappers.ErrorResponseComponents
429
374
  }
430
375
  },
431
- serializer
432
- };
433
-
434
- const getOperationSpec: msRest.OperationSpec = {
435
- httpMethod: "GET",
436
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
376
+ queryParameters: [Parameters.apiVersion4],
437
377
  urlParameters: [
378
+ Parameters.$host,
438
379
  Parameters.resourceGroupName,
439
380
  Parameters.subscriptionId,
440
381
  Parameters.resourceName
441
382
  ],
442
- queryParameters: [
443
- Parameters.apiVersion5
444
- ],
445
- headerParameters: [
446
- Parameters.acceptLanguage
447
- ],
383
+ headerParameters: [Parameters.accept],
384
+ serializer
385
+ };
386
+ const getOperationSpec: coreClient.OperationSpec = {
387
+ path:
388
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
389
+ httpMethod: "GET",
448
390
  responses: {
449
391
  200: {
450
392
  bodyMapper: Mappers.ApplicationInsightsComponent
451
393
  },
452
394
  default: {
453
- bodyMapper: Mappers.CloudError
395
+ bodyMapper: Mappers.ErrorResponseComponents
454
396
  }
455
397
  },
456
- serializer
457
- };
458
-
459
- const createOrUpdateOperationSpec: msRest.OperationSpec = {
460
- httpMethod: "PUT",
461
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
398
+ queryParameters: [Parameters.apiVersion4],
462
399
  urlParameters: [
400
+ Parameters.$host,
463
401
  Parameters.resourceGroupName,
464
402
  Parameters.subscriptionId,
465
403
  Parameters.resourceName
466
404
  ],
467
- queryParameters: [
468
- Parameters.apiVersion5
469
- ],
470
- headerParameters: [
471
- Parameters.acceptLanguage
472
- ],
473
- requestBody: {
474
- parameterPath: "insightProperties",
475
- mapper: {
476
- ...Mappers.ApplicationInsightsComponent,
477
- required: true
478
- }
479
- },
405
+ headerParameters: [Parameters.accept],
406
+ serializer
407
+ };
408
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
409
+ path:
410
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
411
+ httpMethod: "PUT",
480
412
  responses: {
481
413
  200: {
482
414
  bodyMapper: Mappers.ApplicationInsightsComponent
483
415
  },
484
- 201: {
485
- bodyMapper: Mappers.ApplicationInsightsComponent
486
- },
487
416
  default: {
488
- bodyMapper: Mappers.CloudError
417
+ bodyMapper: Mappers.ErrorResponseComponents
489
418
  }
490
419
  },
491
- serializer
492
- };
493
-
494
- const updateTagsOperationSpec: msRest.OperationSpec = {
495
- httpMethod: "PATCH",
496
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
420
+ requestBody: Parameters.insightProperties,
421
+ queryParameters: [Parameters.apiVersion4],
497
422
  urlParameters: [
423
+ Parameters.$host,
498
424
  Parameters.resourceGroupName,
499
425
  Parameters.subscriptionId,
500
426
  Parameters.resourceName
501
427
  ],
502
- queryParameters: [
503
- Parameters.apiVersion5
504
- ],
505
- headerParameters: [
506
- Parameters.acceptLanguage
507
- ],
508
- requestBody: {
509
- parameterPath: "componentTags",
510
- mapper: {
511
- ...Mappers.TagsResource,
512
- required: true
513
- }
514
- },
428
+ headerParameters: [Parameters.accept, Parameters.contentType],
429
+ mediaType: "json",
430
+ serializer
431
+ };
432
+ const updateTagsOperationSpec: coreClient.OperationSpec = {
433
+ path:
434
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
435
+ httpMethod: "PATCH",
515
436
  responses: {
516
437
  200: {
517
438
  bodyMapper: Mappers.ApplicationInsightsComponent
518
439
  },
519
- 201: {
520
- bodyMapper: Mappers.ApplicationInsightsComponent
521
- },
522
440
  default: {
523
- bodyMapper: Mappers.CloudError
441
+ bodyMapper: Mappers.ErrorResponseComponents
524
442
  }
525
443
  },
526
- serializer
527
- };
528
-
529
- const purgeOperationSpec: msRest.OperationSpec = {
530
- httpMethod: "POST",
531
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge",
444
+ requestBody: Parameters.componentTags,
445
+ queryParameters: [Parameters.apiVersion4],
532
446
  urlParameters: [
447
+ Parameters.$host,
533
448
  Parameters.resourceGroupName,
534
449
  Parameters.subscriptionId,
535
450
  Parameters.resourceName
536
451
  ],
537
- queryParameters: [
538
- Parameters.apiVersion5
539
- ],
540
- headerParameters: [
541
- Parameters.acceptLanguage
542
- ],
543
- requestBody: {
544
- parameterPath: "body",
545
- mapper: {
546
- ...Mappers.ComponentPurgeBody,
547
- required: true
548
- }
549
- },
452
+ headerParameters: [Parameters.accept, Parameters.contentType],
453
+ mediaType: "json",
454
+ serializer
455
+ };
456
+ const purgeOperationSpec: coreClient.OperationSpec = {
457
+ path:
458
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge",
459
+ httpMethod: "POST",
550
460
  responses: {
551
461
  202: {
552
462
  bodyMapper: Mappers.ComponentPurgeResponse
553
463
  },
554
464
  default: {
555
- bodyMapper: Mappers.CloudError
465
+ bodyMapper: Mappers.ErrorResponseComponents
556
466
  }
557
467
  },
558
- serializer
559
- };
560
-
561
- const getPurgeStatusOperationSpec: msRest.OperationSpec = {
562
- httpMethod: "GET",
563
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}",
468
+ requestBody: Parameters.body,
469
+ queryParameters: [Parameters.apiVersion4],
564
470
  urlParameters: [
471
+ Parameters.$host,
565
472
  Parameters.resourceGroupName,
566
473
  Parameters.subscriptionId,
567
- Parameters.resourceName,
568
- Parameters.purgeId
569
- ],
570
- queryParameters: [
571
- Parameters.apiVersion5
572
- ],
573
- headerParameters: [
574
- Parameters.acceptLanguage
474
+ Parameters.resourceName
575
475
  ],
476
+ headerParameters: [Parameters.accept, Parameters.contentType],
477
+ mediaType: "json",
478
+ serializer
479
+ };
480
+ const getPurgeStatusOperationSpec: coreClient.OperationSpec = {
481
+ path:
482
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}",
483
+ httpMethod: "GET",
576
484
  responses: {
577
485
  200: {
578
486
  bodyMapper: Mappers.ComponentPurgeStatusResponse
579
487
  },
580
488
  default: {
581
- bodyMapper: Mappers.CloudError
489
+ bodyMapper: Mappers.ErrorResponseComponents
582
490
  }
583
491
  },
492
+ queryParameters: [Parameters.apiVersion4],
493
+ urlParameters: [
494
+ Parameters.$host,
495
+ Parameters.resourceGroupName,
496
+ Parameters.subscriptionId,
497
+ Parameters.resourceName,
498
+ Parameters.purgeId
499
+ ],
500
+ headerParameters: [Parameters.accept],
584
501
  serializer
585
502
  };
586
-
587
- const listNextOperationSpec: msRest.OperationSpec = {
588
- httpMethod: "GET",
589
- baseUrl: "https://management.azure.com",
503
+ const listNextOperationSpec: coreClient.OperationSpec = {
590
504
  path: "{nextLink}",
591
- urlParameters: [
592
- Parameters.nextPageLink
593
- ],
594
- queryParameters: [
595
- Parameters.apiVersion5
596
- ],
597
- headerParameters: [
598
- Parameters.acceptLanguage
599
- ],
505
+ httpMethod: "GET",
600
506
  responses: {
601
507
  200: {
602
508
  bodyMapper: Mappers.ApplicationInsightsComponentListResult
603
509
  },
604
510
  default: {
605
- bodyMapper: Mappers.CloudError
511
+ bodyMapper: Mappers.ErrorResponseComponents
606
512
  }
607
513
  },
514
+ queryParameters: [Parameters.apiVersion4],
515
+ urlParameters: [
516
+ Parameters.$host,
517
+ Parameters.subscriptionId,
518
+ Parameters.nextLink
519
+ ],
520
+ headerParameters: [Parameters.accept],
608
521
  serializer
609
522
  };
610
-
611
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
612
- httpMethod: "GET",
613
- baseUrl: "https://management.azure.com",
523
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
614
524
  path: "{nextLink}",
615
- urlParameters: [
616
- Parameters.nextPageLink
617
- ],
618
- queryParameters: [
619
- Parameters.apiVersion5
620
- ],
621
- headerParameters: [
622
- Parameters.acceptLanguage
623
- ],
525
+ httpMethod: "GET",
624
526
  responses: {
625
527
  200: {
626
528
  bodyMapper: Mappers.ApplicationInsightsComponentListResult
627
529
  },
628
530
  default: {
629
- bodyMapper: Mappers.CloudError
531
+ bodyMapper: Mappers.ErrorResponseComponents
630
532
  }
631
533
  },
534
+ queryParameters: [Parameters.apiVersion4],
535
+ urlParameters: [
536
+ Parameters.$host,
537
+ Parameters.resourceGroupName,
538
+ Parameters.subscriptionId,
539
+ Parameters.nextLink
540
+ ],
541
+ headerParameters: [Parameters.accept],
632
542
  serializer
633
543
  };