@azure/arm-maintenance 1.0.0-beta.2 → 1.0.0-beta.3

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 (768) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/LICENSE +4 -4
  3. package/README.md +25 -18
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -4
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/maintenanceManagementClient.d.ts +2 -2
  9. package/dist/browser/maintenanceManagementClient.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/maintenanceManagementClient.js +41 -24
  11. package/dist/browser/maintenanceManagementClient.js.map +1 -0
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/mappers.js +47 -22
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  16. package/dist/browser/models/parameters.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/applyUpdateForResourceGroup.d.ts +3 -3
  18. package/dist/browser/operations/applyUpdateForResourceGroup.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/applyUpdateForResourceGroup.js +12 -29
  20. package/dist/browser/operations/applyUpdateForResourceGroup.js.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/applyUpdates.d.ts +3 -3
  22. package/dist/browser/operations/applyUpdates.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/applyUpdates.js +12 -29
  24. package/dist/browser/operations/applyUpdates.js.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operations/configurationAssignments.d.ts +3 -3
  26. package/dist/browser/operations/configurationAssignments.d.ts.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/configurationAssignments.js +21 -55
  28. package/dist/browser/operations/configurationAssignments.js.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/configurationAssignmentsForResourceGroup.d.ts +3 -3
  30. package/dist/browser/operations/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/configurationAssignmentsForResourceGroup.js +3 -2
  32. package/dist/browser/operations/configurationAssignmentsForResourceGroup.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/configurationAssignmentsForSubscriptions.d.ts +3 -3
  34. package/dist/browser/operations/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/configurationAssignmentsForSubscriptions.js +3 -2
  36. package/dist/browser/operations/configurationAssignmentsForSubscriptions.js.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/configurationAssignmentsWithinSubscription.d.ts +3 -3
  38. package/dist/browser/operations/configurationAssignmentsWithinSubscription.d.ts.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/configurationAssignmentsWithinSubscription.js +12 -29
  40. package/dist/browser/operations/configurationAssignmentsWithinSubscription.js.map +1 -0
  41. package/dist/browser/operations/index.d.ts +13 -0
  42. package/dist/browser/operations/index.d.ts.map +1 -0
  43. package/dist/browser/operations/index.js +20 -0
  44. package/dist/browser/operations/index.js.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operations/maintenanceConfigurations.d.ts +3 -3
  46. package/dist/browser/operations/maintenanceConfigurations.d.ts.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operations/maintenanceConfigurations.js +12 -29
  48. package/dist/browser/operations/maintenanceConfigurations.js.map +1 -0
  49. package/{dist-esm/src → dist/browser}/operations/maintenanceConfigurationsForResourceGroup.d.ts +3 -3
  50. package/dist/browser/operations/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -0
  51. package/{dist-esm/src → dist/browser}/operations/maintenanceConfigurationsForResourceGroup.js +12 -29
  52. package/dist/browser/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  53. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  54. package/dist/browser/operations/operations.d.ts.map +1 -0
  55. package/{dist-esm/src → dist/browser}/operations/operations.js +12 -29
  56. package/dist/browser/operations/operations.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/operations/publicMaintenanceConfigurations.d.ts +3 -3
  58. package/dist/browser/operations/publicMaintenanceConfigurations.d.ts.map +1 -0
  59. package/{dist-esm/src → dist/browser}/operations/publicMaintenanceConfigurations.js +12 -29
  60. package/dist/browser/operations/publicMaintenanceConfigurations.js.map +1 -0
  61. package/{dist-esm/src → dist/browser}/operations/scheduledEvent.d.ts +3 -3
  62. package/dist/browser/operations/scheduledEvent.d.ts.map +1 -0
  63. package/{dist-esm/src → dist/browser}/operations/scheduledEvent.js +3 -2
  64. package/dist/browser/operations/scheduledEvent.js.map +1 -0
  65. package/{dist-esm/src → dist/browser}/operations/updates.d.ts +3 -3
  66. package/dist/browser/operations/updates.d.ts.map +1 -0
  67. package/{dist-esm/src → dist/browser}/operations/updates.js +21 -55
  68. package/dist/browser/operations/updates.js.map +1 -0
  69. package/{dist-esm/src → dist/browser}/operationsInterfaces/applyUpdateForResourceGroup.d.ts +1 -1
  70. package/{dist-esm/src → dist/browser}/operationsInterfaces/applyUpdateForResourceGroup.d.ts.map +1 -1
  71. package/dist/browser/operationsInterfaces/applyUpdateForResourceGroup.js.map +1 -0
  72. package/{dist-esm/src → dist/browser}/operationsInterfaces/applyUpdates.d.ts +1 -1
  73. package/dist/browser/operationsInterfaces/applyUpdates.d.ts.map +1 -0
  74. package/dist/browser/operationsInterfaces/applyUpdates.js.map +1 -0
  75. package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignments.d.ts +1 -1
  76. package/dist/browser/operationsInterfaces/configurationAssignments.d.ts.map +1 -0
  77. package/dist/browser/operationsInterfaces/configurationAssignments.js.map +1 -0
  78. package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts +1 -1
  79. package/dist/browser/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  80. package/dist/browser/operationsInterfaces/configurationAssignmentsForResourceGroup.js.map +1 -0
  81. package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts +1 -1
  82. package/dist/browser/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  83. package/dist/browser/operationsInterfaces/configurationAssignmentsForSubscriptions.js.map +1 -0
  84. package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts +1 -1
  85. package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts.map +1 -1
  86. package/dist/browser/operationsInterfaces/configurationAssignmentsWithinSubscription.js.map +1 -0
  87. package/dist/browser/operationsInterfaces/index.d.ts +13 -0
  88. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  89. package/dist/browser/operationsInterfaces/index.js +20 -0
  90. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  91. package/{dist-esm/src → dist/browser}/operationsInterfaces/maintenanceConfigurations.d.ts +1 -1
  92. package/dist/browser/operationsInterfaces/maintenanceConfigurations.d.ts.map +1 -0
  93. package/dist/browser/operationsInterfaces/maintenanceConfigurations.js.map +1 -0
  94. package/{dist-esm/src → dist/browser}/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts +1 -1
  95. package/{dist-esm/src → dist/browser}/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -1
  96. package/dist/browser/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  97. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  98. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  99. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  100. package/{dist-esm/src → dist/browser}/operationsInterfaces/publicMaintenanceConfigurations.d.ts +1 -1
  101. package/dist/browser/operationsInterfaces/publicMaintenanceConfigurations.d.ts.map +1 -0
  102. package/dist/browser/operationsInterfaces/publicMaintenanceConfigurations.js.map +1 -0
  103. package/{dist-esm/src → dist/browser}/operationsInterfaces/scheduledEvent.d.ts +1 -1
  104. package/dist/browser/operationsInterfaces/scheduledEvent.d.ts.map +1 -0
  105. package/dist/browser/operationsInterfaces/scheduledEvent.js.map +1 -0
  106. package/{dist-esm/src → dist/browser}/operationsInterfaces/updates.d.ts +1 -1
  107. package/dist/browser/operationsInterfaces/updates.d.ts.map +1 -0
  108. package/dist/browser/operationsInterfaces/updates.js.map +1 -0
  109. package/dist/browser/package.json +3 -0
  110. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  111. package/dist/browser/pagingHelper.js.map +1 -0
  112. package/dist/commonjs/index.d.ts +5 -0
  113. package/dist/commonjs/index.d.ts.map +1 -0
  114. package/dist/commonjs/index.js +19 -0
  115. package/dist/commonjs/index.js.map +1 -0
  116. package/dist/commonjs/maintenanceManagementClient.d.ts +31 -0
  117. package/dist/commonjs/maintenanceManagementClient.d.ts.map +1 -0
  118. package/dist/commonjs/maintenanceManagementClient.js +138 -0
  119. package/dist/commonjs/maintenanceManagementClient.js.map +1 -0
  120. package/dist/commonjs/models/index.d.ts +558 -0
  121. package/dist/commonjs/models/index.d.ts.map +1 -0
  122. package/dist/commonjs/models/index.js +91 -0
  123. package/dist/commonjs/models/index.js.map +1 -0
  124. package/dist/commonjs/models/mappers.d.ts +23 -0
  125. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  126. package/dist/commonjs/models/mappers.js +701 -0
  127. package/dist/commonjs/models/mappers.js.map +1 -0
  128. package/dist/commonjs/models/parameters.d.ts +21 -0
  129. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  130. package/dist/commonjs/models/parameters.js +195 -0
  131. package/dist/commonjs/models/parameters.js.map +1 -0
  132. package/dist/commonjs/operations/applyUpdateForResourceGroup.d.ts +28 -0
  133. package/dist/commonjs/operations/applyUpdateForResourceGroup.d.ts.map +1 -0
  134. package/dist/commonjs/operations/applyUpdateForResourceGroup.js +90 -0
  135. package/dist/commonjs/operations/applyUpdateForResourceGroup.js.map +1 -0
  136. package/dist/commonjs/operations/applyUpdates.d.ts +79 -0
  137. package/dist/commonjs/operations/applyUpdates.d.ts.map +1 -0
  138. package/dist/commonjs/operations/applyUpdates.js +312 -0
  139. package/dist/commonjs/operations/applyUpdates.js.map +1 -0
  140. package/dist/commonjs/operations/configurationAssignments.d.ts +126 -0
  141. package/dist/commonjs/operations/configurationAssignments.d.ts.map +1 -0
  142. package/dist/commonjs/operations/configurationAssignments.js +474 -0
  143. package/dist/commonjs/operations/configurationAssignments.js.map +1 -0
  144. package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.d.ts +43 -0
  145. package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  146. package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.js +169 -0
  147. package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.js.map +1 -0
  148. package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.d.ts +39 -0
  149. package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  150. package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.js +151 -0
  151. package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.js.map +1 -0
  152. package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.d.ts +26 -0
  153. package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.d.ts.map +1 -0
  154. package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.js +84 -0
  155. package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.js.map +1 -0
  156. package/dist/commonjs/operations/index.d.ts +13 -0
  157. package/dist/commonjs/operations/index.d.ts.map +1 -0
  158. package/dist/commonjs/operations/index.js +23 -0
  159. package/dist/commonjs/operations/index.js.map +1 -0
  160. package/dist/commonjs/operations/maintenanceConfigurations.d.ts +56 -0
  161. package/dist/commonjs/operations/maintenanceConfigurations.d.ts.map +1 -0
  162. package/dist/commonjs/operations/maintenanceConfigurations.js +214 -0
  163. package/dist/commonjs/operations/maintenanceConfigurations.js.map +1 -0
  164. package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.d.ts +28 -0
  165. package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -0
  166. package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.js +90 -0
  167. package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  168. package/dist/commonjs/operations/operations.d.ts +26 -0
  169. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  170. package/dist/commonjs/operations/operations.js +84 -0
  171. package/dist/commonjs/operations/operations.js.map +1 -0
  172. package/dist/commonjs/operations/publicMaintenanceConfigurations.d.ts +32 -0
  173. package/dist/commonjs/operations/publicMaintenanceConfigurations.d.ts.map +1 -0
  174. package/dist/commonjs/operations/publicMaintenanceConfigurations.js +112 -0
  175. package/dist/commonjs/operations/publicMaintenanceConfigurations.js.map +1 -0
  176. package/dist/commonjs/operations/scheduledEvent.d.ts +23 -0
  177. package/dist/commonjs/operations/scheduledEvent.d.ts.map +1 -0
  178. package/dist/commonjs/operations/scheduledEvent.js +70 -0
  179. package/dist/commonjs/operations/scheduledEvent.js.map +1 -0
  180. package/dist/commonjs/operations/updates.d.ts +58 -0
  181. package/dist/commonjs/operations/updates.d.ts.map +1 -0
  182. package/dist/commonjs/operations/updates.js +182 -0
  183. package/dist/commonjs/operations/updates.js.map +1 -0
  184. package/dist/commonjs/operationsInterfaces/applyUpdateForResourceGroup.d.ts +12 -0
  185. package/dist/commonjs/operationsInterfaces/applyUpdateForResourceGroup.d.ts.map +1 -0
  186. package/dist/commonjs/operationsInterfaces/applyUpdateForResourceGroup.js +10 -0
  187. package/dist/commonjs/operationsInterfaces/applyUpdateForResourceGroup.js.map +1 -0
  188. package/dist/commonjs/operationsInterfaces/applyUpdates.d.ts +64 -0
  189. package/dist/commonjs/operationsInterfaces/applyUpdates.d.ts.map +1 -0
  190. package/dist/commonjs/operationsInterfaces/applyUpdates.js +10 -0
  191. package/dist/commonjs/operationsInterfaces/applyUpdates.js.map +1 -0
  192. package/dist/commonjs/operationsInterfaces/configurationAssignments.d.ts +94 -0
  193. package/dist/commonjs/operationsInterfaces/configurationAssignments.d.ts.map +1 -0
  194. package/dist/commonjs/operationsInterfaces/configurationAssignments.js +10 -0
  195. package/dist/commonjs/operationsInterfaces/configurationAssignments.js.map +1 -0
  196. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts +35 -0
  197. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  198. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForResourceGroup.js +10 -0
  199. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForResourceGroup.js.map +1 -0
  200. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts +31 -0
  201. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  202. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForSubscriptions.js +10 -0
  203. package/dist/commonjs/operationsInterfaces/configurationAssignmentsForSubscriptions.js.map +1 -0
  204. package/dist/commonjs/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts +11 -0
  205. package/dist/commonjs/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts.map +1 -0
  206. package/dist/commonjs/operationsInterfaces/configurationAssignmentsWithinSubscription.js +10 -0
  207. package/dist/commonjs/operationsInterfaces/configurationAssignmentsWithinSubscription.js.map +1 -0
  208. package/dist/commonjs/operationsInterfaces/index.d.ts +13 -0
  209. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  210. package/dist/commonjs/operationsInterfaces/index.js +23 -0
  211. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  212. package/dist/commonjs/operationsInterfaces/maintenanceConfigurations.d.ts +41 -0
  213. package/dist/commonjs/operationsInterfaces/maintenanceConfigurations.d.ts.map +1 -0
  214. package/dist/commonjs/operationsInterfaces/maintenanceConfigurations.js +10 -0
  215. package/dist/commonjs/operationsInterfaces/maintenanceConfigurations.js.map +1 -0
  216. package/dist/commonjs/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts +12 -0
  217. package/dist/commonjs/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -0
  218. package/dist/commonjs/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js +10 -0
  219. package/dist/commonjs/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  220. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  221. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  222. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  223. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  224. package/dist/commonjs/operationsInterfaces/publicMaintenanceConfigurations.d.ts +17 -0
  225. package/dist/commonjs/operationsInterfaces/publicMaintenanceConfigurations.d.ts.map +1 -0
  226. package/dist/commonjs/operationsInterfaces/publicMaintenanceConfigurations.js +10 -0
  227. package/dist/commonjs/operationsInterfaces/publicMaintenanceConfigurations.js.map +1 -0
  228. package/dist/commonjs/operationsInterfaces/scheduledEvent.d.ts +15 -0
  229. package/dist/commonjs/operationsInterfaces/scheduledEvent.d.ts.map +1 -0
  230. package/dist/commonjs/operationsInterfaces/scheduledEvent.js +10 -0
  231. package/dist/commonjs/operationsInterfaces/scheduledEvent.js.map +1 -0
  232. package/dist/commonjs/operationsInterfaces/updates.d.ts +26 -0
  233. package/dist/commonjs/operationsInterfaces/updates.d.ts.map +1 -0
  234. package/dist/commonjs/operationsInterfaces/updates.js +10 -0
  235. package/dist/commonjs/operationsInterfaces/updates.js.map +1 -0
  236. package/dist/commonjs/package.json +3 -0
  237. package/dist/commonjs/pagingHelper.d.ts +13 -0
  238. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  239. package/dist/commonjs/pagingHelper.js +34 -0
  240. package/dist/commonjs/pagingHelper.js.map +1 -0
  241. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  242. package/dist/esm/index.d.ts +5 -0
  243. package/dist/esm/index.d.ts.map +1 -0
  244. package/{src/index.ts → dist/esm/index.js} +5 -5
  245. package/dist/esm/index.js.map +1 -0
  246. package/dist/esm/maintenanceManagementClient.d.ts +31 -0
  247. package/dist/esm/maintenanceManagementClient.d.ts.map +1 -0
  248. package/dist/esm/maintenanceManagementClient.js +133 -0
  249. package/dist/esm/maintenanceManagementClient.js.map +1 -0
  250. package/dist/esm/models/index.d.ts +558 -0
  251. package/dist/esm/models/index.d.ts.map +1 -0
  252. package/dist/esm/models/index.js +88 -0
  253. package/dist/esm/models/index.js.map +1 -0
  254. package/dist/esm/models/mappers.d.ts +23 -0
  255. package/dist/esm/models/mappers.d.ts.map +1 -0
  256. package/dist/esm/models/mappers.js +698 -0
  257. package/dist/esm/models/mappers.js.map +1 -0
  258. package/dist/esm/models/parameters.d.ts +21 -0
  259. package/dist/esm/models/parameters.d.ts.map +1 -0
  260. package/dist/esm/models/parameters.js +192 -0
  261. package/dist/esm/models/parameters.js.map +1 -0
  262. package/dist/esm/operations/applyUpdateForResourceGroup.d.ts +28 -0
  263. package/dist/esm/operations/applyUpdateForResourceGroup.d.ts.map +1 -0
  264. package/dist/esm/operations/applyUpdateForResourceGroup.js +85 -0
  265. package/dist/esm/operations/applyUpdateForResourceGroup.js.map +1 -0
  266. package/dist/esm/operations/applyUpdates.d.ts +79 -0
  267. package/dist/esm/operations/applyUpdates.d.ts.map +1 -0
  268. package/dist/esm/operations/applyUpdates.js +307 -0
  269. package/dist/esm/operations/applyUpdates.js.map +1 -0
  270. package/dist/esm/operations/configurationAssignments.d.ts +126 -0
  271. package/dist/esm/operations/configurationAssignments.d.ts.map +1 -0
  272. package/dist/esm/operations/configurationAssignments.js +469 -0
  273. package/dist/esm/operations/configurationAssignments.js.map +1 -0
  274. package/dist/esm/operations/configurationAssignmentsForResourceGroup.d.ts +43 -0
  275. package/dist/esm/operations/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  276. package/dist/esm/operations/configurationAssignmentsForResourceGroup.js +164 -0
  277. package/dist/esm/operations/configurationAssignmentsForResourceGroup.js.map +1 -0
  278. package/dist/esm/operations/configurationAssignmentsForSubscriptions.d.ts +39 -0
  279. package/dist/esm/operations/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  280. package/dist/esm/operations/configurationAssignmentsForSubscriptions.js +146 -0
  281. package/dist/esm/operations/configurationAssignmentsForSubscriptions.js.map +1 -0
  282. package/dist/esm/operations/configurationAssignmentsWithinSubscription.d.ts +26 -0
  283. package/dist/esm/operations/configurationAssignmentsWithinSubscription.d.ts.map +1 -0
  284. package/dist/esm/operations/configurationAssignmentsWithinSubscription.js +79 -0
  285. package/dist/esm/operations/configurationAssignmentsWithinSubscription.js.map +1 -0
  286. package/dist/esm/operations/index.d.ts +13 -0
  287. package/dist/esm/operations/index.d.ts.map +1 -0
  288. package/dist/esm/operations/index.js +20 -0
  289. package/dist/esm/operations/index.js.map +1 -0
  290. package/dist/esm/operations/maintenanceConfigurations.d.ts +56 -0
  291. package/dist/esm/operations/maintenanceConfigurations.d.ts.map +1 -0
  292. package/dist/esm/operations/maintenanceConfigurations.js +209 -0
  293. package/dist/esm/operations/maintenanceConfigurations.js.map +1 -0
  294. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.d.ts +28 -0
  295. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -0
  296. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.js +85 -0
  297. package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  298. package/dist/esm/operations/operations.d.ts +26 -0
  299. package/dist/esm/operations/operations.d.ts.map +1 -0
  300. package/dist/esm/operations/operations.js +79 -0
  301. package/dist/esm/operations/operations.js.map +1 -0
  302. package/dist/esm/operations/publicMaintenanceConfigurations.d.ts +32 -0
  303. package/dist/esm/operations/publicMaintenanceConfigurations.d.ts.map +1 -0
  304. package/dist/esm/operations/publicMaintenanceConfigurations.js +107 -0
  305. package/dist/esm/operations/publicMaintenanceConfigurations.js.map +1 -0
  306. package/dist/esm/operations/scheduledEvent.d.ts +23 -0
  307. package/dist/esm/operations/scheduledEvent.d.ts.map +1 -0
  308. package/dist/esm/operations/scheduledEvent.js +65 -0
  309. package/dist/esm/operations/scheduledEvent.js.map +1 -0
  310. package/dist/esm/operations/updates.d.ts +58 -0
  311. package/dist/esm/operations/updates.d.ts.map +1 -0
  312. package/dist/esm/operations/updates.js +177 -0
  313. package/dist/esm/operations/updates.js.map +1 -0
  314. package/dist/esm/operationsInterfaces/applyUpdateForResourceGroup.d.ts +12 -0
  315. package/dist/esm/operationsInterfaces/applyUpdateForResourceGroup.d.ts.map +1 -0
  316. package/dist/esm/operationsInterfaces/applyUpdateForResourceGroup.js +9 -0
  317. package/dist/esm/operationsInterfaces/applyUpdateForResourceGroup.js.map +1 -0
  318. package/dist/esm/operationsInterfaces/applyUpdates.d.ts +64 -0
  319. package/dist/esm/operationsInterfaces/applyUpdates.d.ts.map +1 -0
  320. package/dist/esm/operationsInterfaces/applyUpdates.js +9 -0
  321. package/dist/esm/operationsInterfaces/applyUpdates.js.map +1 -0
  322. package/dist/esm/operationsInterfaces/configurationAssignments.d.ts +94 -0
  323. package/dist/esm/operationsInterfaces/configurationAssignments.d.ts.map +1 -0
  324. package/dist/esm/operationsInterfaces/configurationAssignments.js +9 -0
  325. package/dist/esm/operationsInterfaces/configurationAssignments.js.map +1 -0
  326. package/dist/esm/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts +35 -0
  327. package/dist/esm/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  328. package/dist/esm/operationsInterfaces/configurationAssignmentsForResourceGroup.js +9 -0
  329. package/dist/esm/operationsInterfaces/configurationAssignmentsForResourceGroup.js.map +1 -0
  330. package/dist/esm/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts +31 -0
  331. package/dist/esm/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  332. package/dist/esm/operationsInterfaces/configurationAssignmentsForSubscriptions.js +9 -0
  333. package/dist/esm/operationsInterfaces/configurationAssignmentsForSubscriptions.js.map +1 -0
  334. package/dist/esm/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts +11 -0
  335. package/dist/esm/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts.map +1 -0
  336. package/dist/esm/operationsInterfaces/configurationAssignmentsWithinSubscription.js +9 -0
  337. package/dist/esm/operationsInterfaces/configurationAssignmentsWithinSubscription.js.map +1 -0
  338. package/dist/esm/operationsInterfaces/index.d.ts +13 -0
  339. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  340. package/dist/esm/operationsInterfaces/index.js +20 -0
  341. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  342. package/dist/esm/operationsInterfaces/maintenanceConfigurations.d.ts +41 -0
  343. package/dist/esm/operationsInterfaces/maintenanceConfigurations.d.ts.map +1 -0
  344. package/dist/esm/operationsInterfaces/maintenanceConfigurations.js +9 -0
  345. package/dist/esm/operationsInterfaces/maintenanceConfigurations.js.map +1 -0
  346. package/dist/esm/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts +12 -0
  347. package/dist/esm/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -0
  348. package/dist/esm/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js +9 -0
  349. package/dist/esm/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  350. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  351. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  352. package/dist/esm/operationsInterfaces/operations.js +9 -0
  353. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  354. package/dist/esm/operationsInterfaces/publicMaintenanceConfigurations.d.ts +17 -0
  355. package/dist/esm/operationsInterfaces/publicMaintenanceConfigurations.d.ts.map +1 -0
  356. package/dist/esm/operationsInterfaces/publicMaintenanceConfigurations.js +9 -0
  357. package/dist/esm/operationsInterfaces/publicMaintenanceConfigurations.js.map +1 -0
  358. package/dist/esm/operationsInterfaces/scheduledEvent.d.ts +15 -0
  359. package/dist/esm/operationsInterfaces/scheduledEvent.d.ts.map +1 -0
  360. package/dist/esm/operationsInterfaces/scheduledEvent.js +9 -0
  361. package/dist/esm/operationsInterfaces/scheduledEvent.js.map +1 -0
  362. package/dist/esm/operationsInterfaces/updates.d.ts +26 -0
  363. package/dist/esm/operationsInterfaces/updates.d.ts.map +1 -0
  364. package/dist/esm/operationsInterfaces/updates.js +9 -0
  365. package/dist/esm/operationsInterfaces/updates.js.map +1 -0
  366. package/dist/esm/package.json +3 -0
  367. package/dist/esm/pagingHelper.d.ts +13 -0
  368. package/dist/esm/pagingHelper.d.ts.map +1 -0
  369. package/dist/esm/pagingHelper.js +30 -0
  370. package/dist/esm/pagingHelper.js.map +1 -0
  371. package/dist/react-native/index.d.ts +5 -0
  372. package/dist/react-native/index.d.ts.map +1 -0
  373. package/dist/react-native/index.js +13 -0
  374. package/dist/react-native/index.js.map +1 -0
  375. package/dist/react-native/maintenanceManagementClient.d.ts +31 -0
  376. package/dist/react-native/maintenanceManagementClient.d.ts.map +1 -0
  377. package/dist/react-native/maintenanceManagementClient.js +133 -0
  378. package/dist/react-native/maintenanceManagementClient.js.map +1 -0
  379. package/dist/react-native/models/index.d.ts +558 -0
  380. package/dist/react-native/models/index.d.ts.map +1 -0
  381. package/dist/react-native/models/index.js +88 -0
  382. package/dist/react-native/models/index.js.map +1 -0
  383. package/dist/react-native/models/mappers.d.ts +23 -0
  384. package/dist/react-native/models/mappers.d.ts.map +1 -0
  385. package/dist/react-native/models/mappers.js +698 -0
  386. package/dist/react-native/models/mappers.js.map +1 -0
  387. package/dist/react-native/models/parameters.d.ts +21 -0
  388. package/dist/react-native/models/parameters.d.ts.map +1 -0
  389. package/dist/react-native/models/parameters.js +192 -0
  390. package/dist/react-native/models/parameters.js.map +1 -0
  391. package/dist/react-native/operations/applyUpdateForResourceGroup.d.ts +28 -0
  392. package/dist/react-native/operations/applyUpdateForResourceGroup.d.ts.map +1 -0
  393. package/dist/react-native/operations/applyUpdateForResourceGroup.js +85 -0
  394. package/dist/react-native/operations/applyUpdateForResourceGroup.js.map +1 -0
  395. package/dist/react-native/operations/applyUpdates.d.ts +79 -0
  396. package/dist/react-native/operations/applyUpdates.d.ts.map +1 -0
  397. package/dist/react-native/operations/applyUpdates.js +307 -0
  398. package/dist/react-native/operations/applyUpdates.js.map +1 -0
  399. package/dist/react-native/operations/configurationAssignments.d.ts +126 -0
  400. package/dist/react-native/operations/configurationAssignments.d.ts.map +1 -0
  401. package/dist/react-native/operations/configurationAssignments.js +469 -0
  402. package/dist/react-native/operations/configurationAssignments.js.map +1 -0
  403. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.d.ts +43 -0
  404. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  405. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js +164 -0
  406. package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js.map +1 -0
  407. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.d.ts +39 -0
  408. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  409. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js +146 -0
  410. package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js.map +1 -0
  411. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.d.ts +26 -0
  412. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.d.ts.map +1 -0
  413. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js +79 -0
  414. package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js.map +1 -0
  415. package/dist/react-native/operations/index.d.ts +13 -0
  416. package/dist/react-native/operations/index.d.ts.map +1 -0
  417. package/dist/react-native/operations/index.js +20 -0
  418. package/dist/react-native/operations/index.js.map +1 -0
  419. package/dist/react-native/operations/maintenanceConfigurations.d.ts +56 -0
  420. package/dist/react-native/operations/maintenanceConfigurations.d.ts.map +1 -0
  421. package/dist/react-native/operations/maintenanceConfigurations.js +209 -0
  422. package/dist/react-native/operations/maintenanceConfigurations.js.map +1 -0
  423. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.d.ts +28 -0
  424. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -0
  425. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.js +85 -0
  426. package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  427. package/dist/react-native/operations/operations.d.ts +26 -0
  428. package/dist/react-native/operations/operations.d.ts.map +1 -0
  429. package/dist/react-native/operations/operations.js +79 -0
  430. package/dist/react-native/operations/operations.js.map +1 -0
  431. package/dist/react-native/operations/publicMaintenanceConfigurations.d.ts +32 -0
  432. package/dist/react-native/operations/publicMaintenanceConfigurations.d.ts.map +1 -0
  433. package/dist/react-native/operations/publicMaintenanceConfigurations.js +107 -0
  434. package/dist/react-native/operations/publicMaintenanceConfigurations.js.map +1 -0
  435. package/dist/react-native/operations/scheduledEvent.d.ts +23 -0
  436. package/dist/react-native/operations/scheduledEvent.d.ts.map +1 -0
  437. package/dist/react-native/operations/scheduledEvent.js +65 -0
  438. package/dist/react-native/operations/scheduledEvent.js.map +1 -0
  439. package/dist/react-native/operations/updates.d.ts +58 -0
  440. package/dist/react-native/operations/updates.d.ts.map +1 -0
  441. package/dist/react-native/operations/updates.js +177 -0
  442. package/dist/react-native/operations/updates.js.map +1 -0
  443. package/dist/react-native/operationsInterfaces/applyUpdateForResourceGroup.d.ts +12 -0
  444. package/dist/react-native/operationsInterfaces/applyUpdateForResourceGroup.d.ts.map +1 -0
  445. package/dist/react-native/operationsInterfaces/applyUpdateForResourceGroup.js +9 -0
  446. package/dist/react-native/operationsInterfaces/applyUpdateForResourceGroup.js.map +1 -0
  447. package/dist/react-native/operationsInterfaces/applyUpdates.d.ts +64 -0
  448. package/dist/react-native/operationsInterfaces/applyUpdates.d.ts.map +1 -0
  449. package/dist/react-native/operationsInterfaces/applyUpdates.js +9 -0
  450. package/dist/react-native/operationsInterfaces/applyUpdates.js.map +1 -0
  451. package/dist/react-native/operationsInterfaces/configurationAssignments.d.ts +94 -0
  452. package/dist/react-native/operationsInterfaces/configurationAssignments.d.ts.map +1 -0
  453. package/dist/react-native/operationsInterfaces/configurationAssignments.js +9 -0
  454. package/dist/react-native/operationsInterfaces/configurationAssignments.js.map +1 -0
  455. package/dist/react-native/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts +35 -0
  456. package/dist/react-native/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts.map +1 -0
  457. package/dist/react-native/operationsInterfaces/configurationAssignmentsForResourceGroup.js +9 -0
  458. package/dist/react-native/operationsInterfaces/configurationAssignmentsForResourceGroup.js.map +1 -0
  459. package/dist/react-native/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts +31 -0
  460. package/dist/react-native/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts.map +1 -0
  461. package/dist/react-native/operationsInterfaces/configurationAssignmentsForSubscriptions.js +9 -0
  462. package/dist/react-native/operationsInterfaces/configurationAssignmentsForSubscriptions.js.map +1 -0
  463. package/dist/react-native/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts +11 -0
  464. package/dist/react-native/operationsInterfaces/configurationAssignmentsWithinSubscription.d.ts.map +1 -0
  465. package/dist/react-native/operationsInterfaces/configurationAssignmentsWithinSubscription.js +9 -0
  466. package/dist/react-native/operationsInterfaces/configurationAssignmentsWithinSubscription.js.map +1 -0
  467. package/dist/react-native/operationsInterfaces/index.d.ts +13 -0
  468. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  469. package/dist/react-native/operationsInterfaces/index.js +20 -0
  470. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  471. package/dist/react-native/operationsInterfaces/maintenanceConfigurations.d.ts +41 -0
  472. package/dist/react-native/operationsInterfaces/maintenanceConfigurations.d.ts.map +1 -0
  473. package/dist/react-native/operationsInterfaces/maintenanceConfigurations.js +9 -0
  474. package/dist/react-native/operationsInterfaces/maintenanceConfigurations.js.map +1 -0
  475. package/dist/react-native/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts +12 -0
  476. package/dist/react-native/operationsInterfaces/maintenanceConfigurationsForResourceGroup.d.ts.map +1 -0
  477. package/dist/react-native/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js +9 -0
  478. package/dist/react-native/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js.map +1 -0
  479. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  480. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  481. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  482. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  483. package/dist/react-native/operationsInterfaces/publicMaintenanceConfigurations.d.ts +17 -0
  484. package/dist/react-native/operationsInterfaces/publicMaintenanceConfigurations.d.ts.map +1 -0
  485. package/dist/react-native/operationsInterfaces/publicMaintenanceConfigurations.js +9 -0
  486. package/dist/react-native/operationsInterfaces/publicMaintenanceConfigurations.js.map +1 -0
  487. package/dist/react-native/operationsInterfaces/scheduledEvent.d.ts +15 -0
  488. package/dist/react-native/operationsInterfaces/scheduledEvent.d.ts.map +1 -0
  489. package/dist/react-native/operationsInterfaces/scheduledEvent.js +9 -0
  490. package/dist/react-native/operationsInterfaces/scheduledEvent.js.map +1 -0
  491. package/dist/react-native/operationsInterfaces/updates.d.ts +26 -0
  492. package/dist/react-native/operationsInterfaces/updates.d.ts.map +1 -0
  493. package/dist/react-native/operationsInterfaces/updates.js +9 -0
  494. package/dist/react-native/operationsInterfaces/updates.js.map +1 -0
  495. package/dist/react-native/package.json +3 -0
  496. package/dist/react-native/pagingHelper.d.ts +13 -0
  497. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  498. package/dist/react-native/pagingHelper.js +30 -0
  499. package/dist/react-native/pagingHelper.js.map +1 -0
  500. package/package.json +86 -72
  501. package/dist/index.js +0 -3254
  502. package/dist/index.js.map +0 -1
  503. package/dist/index.min.js +0 -1
  504. package/dist/index.min.js.map +0 -1
  505. package/dist-esm/samples-dev/applyUpdateForResourceGroupListSample.d.ts +0 -2
  506. package/dist-esm/samples-dev/applyUpdateForResourceGroupListSample.d.ts.map +0 -1
  507. package/dist-esm/samples-dev/applyUpdateForResourceGroupListSample.js +0 -54
  508. package/dist-esm/samples-dev/applyUpdateForResourceGroupListSample.js.map +0 -1
  509. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.d.ts +0 -2
  510. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.d.ts.map +0 -1
  511. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.js +0 -66
  512. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateOrCancelSample.js.map +0 -1
  513. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateParentSample.d.ts +0 -2
  514. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateParentSample.d.ts.map +0 -1
  515. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateParentSample.js +0 -43
  516. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateParentSample.js.map +0 -1
  517. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateSample.d.ts +0 -2
  518. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateSample.d.ts.map +0 -1
  519. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateSample.js +0 -41
  520. package/dist-esm/samples-dev/applyUpdatesCreateOrUpdateSample.js.map +0 -1
  521. package/dist-esm/samples-dev/applyUpdatesGetParentSample.d.ts +0 -2
  522. package/dist-esm/samples-dev/applyUpdatesGetParentSample.d.ts.map +0 -1
  523. package/dist-esm/samples-dev/applyUpdatesGetParentSample.js +0 -44
  524. package/dist-esm/samples-dev/applyUpdatesGetParentSample.js.map +0 -1
  525. package/dist-esm/samples-dev/applyUpdatesGetSample.d.ts +0 -2
  526. package/dist-esm/samples-dev/applyUpdatesGetSample.d.ts.map +0 -1
  527. package/dist-esm/samples-dev/applyUpdatesGetSample.js +0 -42
  528. package/dist-esm/samples-dev/applyUpdatesGetSample.js.map +0 -1
  529. package/dist-esm/samples-dev/applyUpdatesListSample.d.ts +0 -2
  530. package/dist-esm/samples-dev/applyUpdatesListSample.d.ts.map +0 -1
  531. package/dist-esm/samples-dev/applyUpdatesListSample.js +0 -53
  532. package/dist-esm/samples-dev/applyUpdatesListSample.js.map +0 -1
  533. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateParentSample.d.ts +0 -2
  534. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateParentSample.d.ts.map +0 -1
  535. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateParentSample.js +0 -47
  536. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateParentSample.js.map +0 -1
  537. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateSample.d.ts +0 -2
  538. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateSample.d.ts.map +0 -1
  539. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateSample.js +0 -45
  540. package/dist-esm/samples-dev/configurationAssignmentsCreateOrUpdateSample.js.map +0 -1
  541. package/dist-esm/samples-dev/configurationAssignmentsDeleteParentSample.d.ts +0 -2
  542. package/dist-esm/samples-dev/configurationAssignmentsDeleteParentSample.d.ts.map +0 -1
  543. package/dist-esm/samples-dev/configurationAssignmentsDeleteParentSample.js +0 -44
  544. package/dist-esm/samples-dev/configurationAssignmentsDeleteParentSample.js.map +0 -1
  545. package/dist-esm/samples-dev/configurationAssignmentsDeleteSample.d.ts +0 -2
  546. package/dist-esm/samples-dev/configurationAssignmentsDeleteSample.d.ts.map +0 -1
  547. package/dist-esm/samples-dev/configurationAssignmentsDeleteSample.js +0 -42
  548. package/dist-esm/samples-dev/configurationAssignmentsDeleteSample.js.map +0 -1
  549. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupCreateOrUpdateSample.d.ts +0 -2
  550. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupCreateOrUpdateSample.d.ts.map +0 -1
  551. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupCreateOrUpdateSample.js +0 -56
  552. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupCreateOrUpdateSample.js.map +0 -1
  553. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupDeleteSample.d.ts +0 -2
  554. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupDeleteSample.d.ts.map +0 -1
  555. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupDeleteSample.js +0 -39
  556. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupDeleteSample.js.map +0 -1
  557. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupGetSample.d.ts +0 -2
  558. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupGetSample.d.ts.map +0 -1
  559. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupGetSample.js +0 -39
  560. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupGetSample.js.map +0 -1
  561. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupUpdateSample.d.ts +0 -2
  562. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupUpdateSample.d.ts.map +0 -1
  563. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupUpdateSample.js +0 -56
  564. package/dist-esm/samples-dev/configurationAssignmentsForResourceGroupUpdateSample.js.map +0 -1
  565. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsCreateOrUpdateSample.d.ts +0 -2
  566. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsCreateOrUpdateSample.d.ts.map +0 -1
  567. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsCreateOrUpdateSample.js +0 -56
  568. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsCreateOrUpdateSample.js.map +0 -1
  569. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsDeleteSample.d.ts +0 -2
  570. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsDeleteSample.d.ts.map +0 -1
  571. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsDeleteSample.js +0 -38
  572. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsDeleteSample.js.map +0 -1
  573. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsGetSample.d.ts +0 -2
  574. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsGetSample.d.ts.map +0 -1
  575. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsGetSample.js +0 -38
  576. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsGetSample.js.map +0 -1
  577. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsUpdateSample.d.ts +0 -2
  578. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsUpdateSample.d.ts.map +0 -1
  579. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsUpdateSample.js +0 -56
  580. package/dist-esm/samples-dev/configurationAssignmentsForSubscriptionsUpdateSample.js.map +0 -1
  581. package/dist-esm/samples-dev/configurationAssignmentsGetParentSample.d.ts +0 -2
  582. package/dist-esm/samples-dev/configurationAssignmentsGetParentSample.d.ts.map +0 -1
  583. package/dist-esm/samples-dev/configurationAssignmentsGetParentSample.js +0 -44
  584. package/dist-esm/samples-dev/configurationAssignmentsGetParentSample.js.map +0 -1
  585. package/dist-esm/samples-dev/configurationAssignmentsGetSample.d.ts +0 -2
  586. package/dist-esm/samples-dev/configurationAssignmentsGetSample.d.ts.map +0 -1
  587. package/dist-esm/samples-dev/configurationAssignmentsGetSample.js +0 -42
  588. package/dist-esm/samples-dev/configurationAssignmentsGetSample.js.map +0 -1
  589. package/dist-esm/samples-dev/configurationAssignmentsListParentSample.d.ts +0 -2
  590. package/dist-esm/samples-dev/configurationAssignmentsListParentSample.d.ts.map +0 -1
  591. package/dist-esm/samples-dev/configurationAssignmentsListParentSample.js +0 -59
  592. package/dist-esm/samples-dev/configurationAssignmentsListParentSample.js.map +0 -1
  593. package/dist-esm/samples-dev/configurationAssignmentsListSample.d.ts +0 -2
  594. package/dist-esm/samples-dev/configurationAssignmentsListSample.d.ts.map +0 -1
  595. package/dist-esm/samples-dev/configurationAssignmentsListSample.js +0 -57
  596. package/dist-esm/samples-dev/configurationAssignmentsListSample.js.map +0 -1
  597. package/dist-esm/samples-dev/configurationAssignmentsWithinSubscriptionListSample.d.ts +0 -2
  598. package/dist-esm/samples-dev/configurationAssignmentsWithinSubscriptionListSample.d.ts.map +0 -1
  599. package/dist-esm/samples-dev/configurationAssignmentsWithinSubscriptionListSample.js +0 -53
  600. package/dist-esm/samples-dev/configurationAssignmentsWithinSubscriptionListSample.js.map +0 -1
  601. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.d.ts +0 -2
  602. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.d.ts.map +0 -1
  603. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.js +0 -50
  604. package/dist-esm/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.js.map +0 -1
  605. package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.d.ts +0 -2
  606. package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.d.ts.map +0 -1
  607. package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.js +0 -39
  608. package/dist-esm/samples-dev/maintenanceConfigurationsDeleteSample.js.map +0 -1
  609. package/dist-esm/samples-dev/maintenanceConfigurationsForResourceGroupListSample.d.ts +0 -2
  610. package/dist-esm/samples-dev/maintenanceConfigurationsForResourceGroupListSample.d.ts.map +0 -1
  611. package/dist-esm/samples-dev/maintenanceConfigurationsForResourceGroupListSample.js +0 -54
  612. package/dist-esm/samples-dev/maintenanceConfigurationsForResourceGroupListSample.js.map +0 -1
  613. package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.d.ts +0 -2
  614. package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.d.ts.map +0 -1
  615. package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.js +0 -77
  616. package/dist-esm/samples-dev/maintenanceConfigurationsGetSample.js.map +0 -1
  617. package/dist-esm/samples-dev/maintenanceConfigurationsListSample.d.ts +0 -2
  618. package/dist-esm/samples-dev/maintenanceConfigurationsListSample.d.ts.map +0 -1
  619. package/dist-esm/samples-dev/maintenanceConfigurationsListSample.js +0 -53
  620. package/dist-esm/samples-dev/maintenanceConfigurationsListSample.js.map +0 -1
  621. package/dist-esm/samples-dev/maintenanceConfigurationsUpdateSample.d.ts +0 -2
  622. package/dist-esm/samples-dev/maintenanceConfigurationsUpdateSample.d.ts.map +0 -1
  623. package/dist-esm/samples-dev/maintenanceConfigurationsUpdateSample.js +0 -50
  624. package/dist-esm/samples-dev/maintenanceConfigurationsUpdateSample.js.map +0 -1
  625. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  626. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  627. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  628. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  629. package/dist-esm/samples-dev/publicMaintenanceConfigurationsGetSample.d.ts +0 -2
  630. package/dist-esm/samples-dev/publicMaintenanceConfigurationsGetSample.d.ts.map +0 -1
  631. package/dist-esm/samples-dev/publicMaintenanceConfigurationsGetSample.js +0 -38
  632. package/dist-esm/samples-dev/publicMaintenanceConfigurationsGetSample.js.map +0 -1
  633. package/dist-esm/samples-dev/publicMaintenanceConfigurationsListSample.d.ts +0 -2
  634. package/dist-esm/samples-dev/publicMaintenanceConfigurationsListSample.d.ts.map +0 -1
  635. package/dist-esm/samples-dev/publicMaintenanceConfigurationsListSample.js +0 -53
  636. package/dist-esm/samples-dev/publicMaintenanceConfigurationsListSample.js.map +0 -1
  637. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.d.ts +0 -2
  638. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.d.ts.map +0 -1
  639. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.js +0 -41
  640. package/dist-esm/samples-dev/scheduledEventAcknowledgeSample.js.map +0 -1
  641. package/dist-esm/samples-dev/updatesListParentSample.d.ts +0 -2
  642. package/dist-esm/samples-dev/updatesListParentSample.d.ts.map +0 -1
  643. package/dist-esm/samples-dev/updatesListParentSample.js +0 -59
  644. package/dist-esm/samples-dev/updatesListParentSample.js.map +0 -1
  645. package/dist-esm/samples-dev/updatesListSample.d.ts +0 -2
  646. package/dist-esm/samples-dev/updatesListSample.d.ts.map +0 -1
  647. package/dist-esm/samples-dev/updatesListSample.js +0 -57
  648. package/dist-esm/samples-dev/updatesListSample.js.map +0 -1
  649. package/dist-esm/src/index.d.ts +0 -6
  650. package/dist-esm/src/index.d.ts.map +0 -1
  651. package/dist-esm/src/index.js.map +0 -1
  652. package/dist-esm/src/maintenanceManagementClient.d.ts.map +0 -1
  653. package/dist-esm/src/maintenanceManagementClient.js.map +0 -1
  654. package/dist-esm/src/models/index.js.map +0 -1
  655. package/dist-esm/src/models/mappers.js.map +0 -1
  656. package/dist-esm/src/models/parameters.js.map +0 -1
  657. package/dist-esm/src/operations/applyUpdateForResourceGroup.d.ts.map +0 -1
  658. package/dist-esm/src/operations/applyUpdateForResourceGroup.js.map +0 -1
  659. package/dist-esm/src/operations/applyUpdates.d.ts.map +0 -1
  660. package/dist-esm/src/operations/applyUpdates.js.map +0 -1
  661. package/dist-esm/src/operations/configurationAssignments.d.ts.map +0 -1
  662. package/dist-esm/src/operations/configurationAssignments.js.map +0 -1
  663. package/dist-esm/src/operations/configurationAssignmentsForResourceGroup.d.ts.map +0 -1
  664. package/dist-esm/src/operations/configurationAssignmentsForResourceGroup.js.map +0 -1
  665. package/dist-esm/src/operations/configurationAssignmentsForSubscriptions.d.ts.map +0 -1
  666. package/dist-esm/src/operations/configurationAssignmentsForSubscriptions.js.map +0 -1
  667. package/dist-esm/src/operations/configurationAssignmentsWithinSubscription.d.ts.map +0 -1
  668. package/dist-esm/src/operations/configurationAssignmentsWithinSubscription.js.map +0 -1
  669. package/dist-esm/src/operations/index.d.ts +0 -13
  670. package/dist-esm/src/operations/index.d.ts.map +0 -1
  671. package/dist-esm/src/operations/index.js +0 -20
  672. package/dist-esm/src/operations/index.js.map +0 -1
  673. package/dist-esm/src/operations/maintenanceConfigurations.d.ts.map +0 -1
  674. package/dist-esm/src/operations/maintenanceConfigurations.js.map +0 -1
  675. package/dist-esm/src/operations/maintenanceConfigurationsForResourceGroup.d.ts.map +0 -1
  676. package/dist-esm/src/operations/maintenanceConfigurationsForResourceGroup.js.map +0 -1
  677. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  678. package/dist-esm/src/operations/operations.js.map +0 -1
  679. package/dist-esm/src/operations/publicMaintenanceConfigurations.d.ts.map +0 -1
  680. package/dist-esm/src/operations/publicMaintenanceConfigurations.js.map +0 -1
  681. package/dist-esm/src/operations/scheduledEvent.d.ts.map +0 -1
  682. package/dist-esm/src/operations/scheduledEvent.js.map +0 -1
  683. package/dist-esm/src/operations/updates.d.ts.map +0 -1
  684. package/dist-esm/src/operations/updates.js.map +0 -1
  685. package/dist-esm/src/operationsInterfaces/applyUpdateForResourceGroup.js.map +0 -1
  686. package/dist-esm/src/operationsInterfaces/applyUpdates.d.ts.map +0 -1
  687. package/dist-esm/src/operationsInterfaces/applyUpdates.js.map +0 -1
  688. package/dist-esm/src/operationsInterfaces/configurationAssignments.d.ts.map +0 -1
  689. package/dist-esm/src/operationsInterfaces/configurationAssignments.js.map +0 -1
  690. package/dist-esm/src/operationsInterfaces/configurationAssignmentsForResourceGroup.d.ts.map +0 -1
  691. package/dist-esm/src/operationsInterfaces/configurationAssignmentsForResourceGroup.js.map +0 -1
  692. package/dist-esm/src/operationsInterfaces/configurationAssignmentsForSubscriptions.d.ts.map +0 -1
  693. package/dist-esm/src/operationsInterfaces/configurationAssignmentsForSubscriptions.js.map +0 -1
  694. package/dist-esm/src/operationsInterfaces/configurationAssignmentsWithinSubscription.js.map +0 -1
  695. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -13
  696. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  697. package/dist-esm/src/operationsInterfaces/index.js +0 -20
  698. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  699. package/dist-esm/src/operationsInterfaces/maintenanceConfigurations.d.ts.map +0 -1
  700. package/dist-esm/src/operationsInterfaces/maintenanceConfigurations.js.map +0 -1
  701. package/dist-esm/src/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js.map +0 -1
  702. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  703. package/dist-esm/src/operationsInterfaces/publicMaintenanceConfigurations.d.ts.map +0 -1
  704. package/dist-esm/src/operationsInterfaces/publicMaintenanceConfigurations.js.map +0 -1
  705. package/dist-esm/src/operationsInterfaces/scheduledEvent.d.ts.map +0 -1
  706. package/dist-esm/src/operationsInterfaces/scheduledEvent.js.map +0 -1
  707. package/dist-esm/src/operationsInterfaces/updates.d.ts.map +0 -1
  708. package/dist-esm/src/operationsInterfaces/updates.js.map +0 -1
  709. package/dist-esm/src/pagingHelper.js.map +0 -1
  710. package/dist-esm/test/maintenance_operations_test.spec.d.ts +0 -4
  711. package/dist-esm/test/maintenance_operations_test.spec.d.ts.map +0 -1
  712. package/dist-esm/test/maintenance_operations_test.spec.js +0 -119
  713. package/dist-esm/test/maintenance_operations_test.spec.js.map +0 -1
  714. package/src/maintenanceManagementClient.ts +0 -196
  715. package/src/models/index.ts +0 -685
  716. package/src/models/mappers.ts +0 -721
  717. package/src/models/parameters.ts +0 -220
  718. package/src/operations/applyUpdateForResourceGroup.ts +0 -118
  719. package/src/operations/applyUpdates.ts +0 -399
  720. package/src/operations/configurationAssignments.ts +0 -698
  721. package/src/operations/configurationAssignmentsForResourceGroup.ts +0 -216
  722. package/src/operations/configurationAssignmentsForSubscriptions.ts +0 -194
  723. package/src/operations/configurationAssignmentsWithinSubscription.ts +0 -105
  724. package/src/operations/index.ts +0 -20
  725. package/src/operations/maintenanceConfigurations.ts +0 -277
  726. package/src/operations/maintenanceConfigurationsForResourceGroup.ts +0 -118
  727. package/src/operations/operations.ts +0 -103
  728. package/src/operations/publicMaintenanceConfigurations.ts +0 -142
  729. package/src/operations/scheduledEvent.ts +0 -84
  730. package/src/operations/updates.ts +0 -320
  731. package/src/operationsInterfaces/applyUpdateForResourceGroup.ts +0 -27
  732. package/src/operationsInterfaces/applyUpdates.ts +0 -126
  733. package/src/operationsInterfaces/configurationAssignments.ts +0 -183
  734. package/src/operationsInterfaces/configurationAssignmentsForResourceGroup.ts +0 -71
  735. package/src/operationsInterfaces/configurationAssignmentsForSubscriptions.ts +0 -63
  736. package/src/operationsInterfaces/configurationAssignmentsWithinSubscription.ts +0 -25
  737. package/src/operationsInterfaces/index.ts +0 -20
  738. package/src/operationsInterfaces/maintenanceConfigurations.ts +0 -81
  739. package/src/operationsInterfaces/maintenanceConfigurationsForResourceGroup.ts +0 -27
  740. package/src/operationsInterfaces/operations.ts +0 -22
  741. package/src/operationsInterfaces/publicMaintenanceConfigurations.ts +0 -36
  742. package/src/operationsInterfaces/scheduledEvent.ts +0 -32
  743. package/src/operationsInterfaces/updates.ts +0 -53
  744. package/src/pagingHelper.ts +0 -39
  745. package/tsconfig.json +0 -33
  746. package/types/arm-maintenance.d.ts +0 -1052
  747. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  748. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  749. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  750. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  751. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  752. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  753. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  754. /package/{dist-esm/src → dist/browser}/operationsInterfaces/applyUpdateForResourceGroup.js +0 -0
  755. /package/{dist-esm/src → dist/browser}/operationsInterfaces/applyUpdates.js +0 -0
  756. /package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignments.js +0 -0
  757. /package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignmentsForResourceGroup.js +0 -0
  758. /package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignmentsForSubscriptions.js +0 -0
  759. /package/{dist-esm/src → dist/browser}/operationsInterfaces/configurationAssignmentsWithinSubscription.js +0 -0
  760. /package/{dist-esm/src → dist/browser}/operationsInterfaces/maintenanceConfigurations.js +0 -0
  761. /package/{dist-esm/src → dist/browser}/operationsInterfaces/maintenanceConfigurationsForResourceGroup.js +0 -0
  762. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  763. /package/{dist-esm/src → dist/browser}/operationsInterfaces/publicMaintenanceConfigurations.js +0 -0
  764. /package/{dist-esm/src → dist/browser}/operationsInterfaces/scheduledEvent.js +0 -0
  765. /package/{dist-esm/src → dist/browser}/operationsInterfaces/updates.js +0 -0
  766. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  767. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  768. /package/review/{arm-maintenance.api.md → arm-maintenance-node.api.md} +0 -0
package/dist/index.js DELETED
@@ -1,3254 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
-
9
- function _interopNamespaceDefault(e) {
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
27
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
28
-
29
- /*
30
- * Copyright (c) Microsoft Corporation.
31
- * Licensed under the MIT License.
32
- *
33
- * Code generated by Microsoft (R) AutoRest Code Generator.
34
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
35
- */
36
- const pageMap = new WeakMap();
37
- /**
38
- * Given the last `.value` produced by the `byPage` iterator,
39
- * returns a continuation token that can be used to begin paging from
40
- * that point later.
41
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
42
- * @returns The continuation token that can be passed into byPage() during future calls.
43
- */
44
- function getContinuationToken(page) {
45
- var _a;
46
- if (typeof page !== "object" || page === null) {
47
- return undefined;
48
- }
49
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
- }
51
-
52
- /*
53
- * Copyright (c) Microsoft Corporation.
54
- * Licensed under the MIT License.
55
- *
56
- * Code generated by Microsoft (R) AutoRest Code Generator.
57
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
58
- */
59
- /** Known values of {@link MaintenanceScope} that the service accepts. */
60
- exports.KnownMaintenanceScope = void 0;
61
- (function (KnownMaintenanceScope) {
62
- /** This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. */
63
- KnownMaintenanceScope["Host"] = "Host";
64
- /** This maintenance scope controls the default update maintenance of the Azure Resource */
65
- KnownMaintenanceScope["Resource"] = "Resource";
66
- /** This maintenance scope controls os image installation on VM\/VMSS */
67
- KnownMaintenanceScope["OSImage"] = "OSImage";
68
- /** This maintenance scope controls extension installation on VM\/VMSS */
69
- KnownMaintenanceScope["Extension"] = "Extension";
70
- /** This maintenance scope controls installation of windows and linux packages on VM\/VMSS */
71
- KnownMaintenanceScope["InGuestPatch"] = "InGuestPatch";
72
- /** This maintenance scope controls installation of SQL server platform updates. */
73
- KnownMaintenanceScope["Sqldb"] = "SQLDB";
74
- /** This maintenance scope controls installation of SQL managed instance platform update. */
75
- KnownMaintenanceScope["SQLManagedInstance"] = "SQLManagedInstance";
76
- })(exports.KnownMaintenanceScope || (exports.KnownMaintenanceScope = {}));
77
- /** Known values of {@link Visibility} that the service accepts. */
78
- exports.KnownVisibility = void 0;
79
- (function (KnownVisibility) {
80
- /** Only visible to users with permissions. */
81
- KnownVisibility["Custom"] = "Custom";
82
- /** Visible to all users. */
83
- KnownVisibility["Public"] = "Public";
84
- })(exports.KnownVisibility || (exports.KnownVisibility = {}));
85
- /** Known values of {@link RebootOptions} that the service accepts. */
86
- exports.KnownRebootOptions = void 0;
87
- (function (KnownRebootOptions) {
88
- /** IfRequired */
89
- KnownRebootOptions["IfRequired"] = "IfRequired";
90
- /** Never */
91
- KnownRebootOptions["Never"] = "Never";
92
- /** Always */
93
- KnownRebootOptions["Always"] = "Always";
94
- })(exports.KnownRebootOptions || (exports.KnownRebootOptions = {}));
95
- /** Known values of {@link CreatedByType} that the service accepts. */
96
- exports.KnownCreatedByType = void 0;
97
- (function (KnownCreatedByType) {
98
- /** User */
99
- KnownCreatedByType["User"] = "User";
100
- /** Application */
101
- KnownCreatedByType["Application"] = "Application";
102
- /** ManagedIdentity */
103
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
104
- /** Key */
105
- KnownCreatedByType["Key"] = "Key";
106
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
107
- /** Known values of {@link UpdateStatus} that the service accepts. */
108
- exports.KnownUpdateStatus = void 0;
109
- (function (KnownUpdateStatus) {
110
- /** There are pending updates to be installed. */
111
- KnownUpdateStatus["Pending"] = "Pending";
112
- /** Updates installation are in progress. */
113
- KnownUpdateStatus["InProgress"] = "InProgress";
114
- /** All updates are successfully applied. */
115
- KnownUpdateStatus["Completed"] = "Completed";
116
- /** Updates installation failed but are ready to retry again. */
117
- KnownUpdateStatus["RetryNow"] = "RetryNow";
118
- /** Updates installation failed and should be retried later. */
119
- KnownUpdateStatus["RetryLater"] = "RetryLater";
120
- /** No updates are pending. */
121
- KnownUpdateStatus["NoUpdatesPending"] = "NoUpdatesPending";
122
- /** Cancel the schedule and stop creating PMR for resources part of it. Applicable to Maintenance Configuration resource type only. */
123
- KnownUpdateStatus["Cancel"] = "Cancel";
124
- /** Send the Cancelled response to the user if request came to cancel the schedule. Applicable to Maintenance Configuration resource type only. */
125
- KnownUpdateStatus["Cancelled"] = "Cancelled";
126
- })(exports.KnownUpdateStatus || (exports.KnownUpdateStatus = {}));
127
- /** Known values of {@link ImpactType} that the service accepts. */
128
- exports.KnownImpactType = void 0;
129
- (function (KnownImpactType) {
130
- /** Pending updates has no impact on resource. */
131
- KnownImpactType["None"] = "None";
132
- /** Pending updates can freeze network or disk io operation on resource. */
133
- KnownImpactType["Freeze"] = "Freeze";
134
- /** Pending updates can cause resource to restart. */
135
- KnownImpactType["Restart"] = "Restart";
136
- /** Pending updates can redeploy resource. */
137
- KnownImpactType["Redeploy"] = "Redeploy";
138
- })(exports.KnownImpactType || (exports.KnownImpactType = {}));
139
-
140
- /*
141
- * Copyright (c) Microsoft Corporation.
142
- * Licensed under the MIT License.
143
- *
144
- * Code generated by Microsoft (R) AutoRest Code Generator.
145
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
146
- */
147
- const ScheduledEventApproveResponse = {
148
- type: {
149
- name: "Composite",
150
- className: "ScheduledEventApproveResponse",
151
- modelProperties: {
152
- value: {
153
- serializedName: "value",
154
- type: {
155
- name: "String",
156
- },
157
- },
158
- },
159
- },
160
- };
161
- const MaintenanceError = {
162
- type: {
163
- name: "Composite",
164
- className: "MaintenanceError",
165
- modelProperties: {
166
- error: {
167
- serializedName: "error",
168
- type: {
169
- name: "Composite",
170
- className: "ErrorDetails",
171
- },
172
- },
173
- },
174
- },
175
- };
176
- const ErrorDetails = {
177
- type: {
178
- name: "Composite",
179
- className: "ErrorDetails",
180
- modelProperties: {
181
- code: {
182
- serializedName: "code",
183
- type: {
184
- name: "String",
185
- },
186
- },
187
- message: {
188
- serializedName: "message",
189
- type: {
190
- name: "String",
191
- },
192
- },
193
- },
194
- },
195
- };
196
- const ListMaintenanceConfigurationsResult = {
197
- type: {
198
- name: "Composite",
199
- className: "ListMaintenanceConfigurationsResult",
200
- modelProperties: {
201
- value: {
202
- serializedName: "value",
203
- type: {
204
- name: "Sequence",
205
- element: {
206
- type: {
207
- name: "Composite",
208
- className: "MaintenanceConfiguration",
209
- },
210
- },
211
- },
212
- },
213
- },
214
- },
215
- };
216
- const InputPatchConfiguration = {
217
- type: {
218
- name: "Composite",
219
- className: "InputPatchConfiguration",
220
- modelProperties: {
221
- rebootSetting: {
222
- defaultValue: "IfRequired",
223
- serializedName: "rebootSetting",
224
- type: {
225
- name: "String",
226
- },
227
- },
228
- windowsParameters: {
229
- serializedName: "windowsParameters",
230
- type: {
231
- name: "Composite",
232
- className: "InputWindowsParameters",
233
- },
234
- },
235
- linuxParameters: {
236
- serializedName: "linuxParameters",
237
- type: {
238
- name: "Composite",
239
- className: "InputLinuxParameters",
240
- },
241
- },
242
- },
243
- },
244
- };
245
- const InputWindowsParameters = {
246
- type: {
247
- name: "Composite",
248
- className: "InputWindowsParameters",
249
- modelProperties: {
250
- kbNumbersToExclude: {
251
- serializedName: "kbNumbersToExclude",
252
- type: {
253
- name: "Sequence",
254
- element: {
255
- type: {
256
- name: "String",
257
- },
258
- },
259
- },
260
- },
261
- kbNumbersToInclude: {
262
- serializedName: "kbNumbersToInclude",
263
- type: {
264
- name: "Sequence",
265
- element: {
266
- type: {
267
- name: "String",
268
- },
269
- },
270
- },
271
- },
272
- classificationsToInclude: {
273
- serializedName: "classificationsToInclude",
274
- type: {
275
- name: "Sequence",
276
- element: {
277
- type: {
278
- name: "String",
279
- },
280
- },
281
- },
282
- },
283
- excludeKbsRequiringReboot: {
284
- serializedName: "excludeKbsRequiringReboot",
285
- type: {
286
- name: "Boolean",
287
- },
288
- },
289
- },
290
- },
291
- };
292
- const InputLinuxParameters = {
293
- type: {
294
- name: "Composite",
295
- className: "InputLinuxParameters",
296
- modelProperties: {
297
- packageNameMasksToExclude: {
298
- serializedName: "packageNameMasksToExclude",
299
- type: {
300
- name: "Sequence",
301
- element: {
302
- type: {
303
- name: "String",
304
- },
305
- },
306
- },
307
- },
308
- packageNameMasksToInclude: {
309
- serializedName: "packageNameMasksToInclude",
310
- type: {
311
- name: "Sequence",
312
- element: {
313
- type: {
314
- name: "String",
315
- },
316
- },
317
- },
318
- },
319
- classificationsToInclude: {
320
- serializedName: "classificationsToInclude",
321
- type: {
322
- name: "Sequence",
323
- element: {
324
- type: {
325
- name: "String",
326
- },
327
- },
328
- },
329
- },
330
- },
331
- },
332
- };
333
- const Resource = {
334
- type: {
335
- name: "Composite",
336
- className: "Resource",
337
- modelProperties: {
338
- id: {
339
- serializedName: "id",
340
- readOnly: true,
341
- type: {
342
- name: "String",
343
- },
344
- },
345
- name: {
346
- serializedName: "name",
347
- readOnly: true,
348
- type: {
349
- name: "String",
350
- },
351
- },
352
- type: {
353
- serializedName: "type",
354
- readOnly: true,
355
- type: {
356
- name: "String",
357
- },
358
- },
359
- systemData: {
360
- serializedName: "systemData",
361
- type: {
362
- name: "Composite",
363
- className: "SystemData",
364
- },
365
- },
366
- },
367
- },
368
- };
369
- const SystemData = {
370
- type: {
371
- name: "Composite",
372
- className: "SystemData",
373
- modelProperties: {
374
- createdBy: {
375
- serializedName: "createdBy",
376
- type: {
377
- name: "String",
378
- },
379
- },
380
- createdByType: {
381
- serializedName: "createdByType",
382
- type: {
383
- name: "String",
384
- },
385
- },
386
- createdAt: {
387
- serializedName: "createdAt",
388
- type: {
389
- name: "DateTime",
390
- },
391
- },
392
- lastModifiedBy: {
393
- serializedName: "lastModifiedBy",
394
- type: {
395
- name: "String",
396
- },
397
- },
398
- lastModifiedByType: {
399
- serializedName: "lastModifiedByType",
400
- type: {
401
- name: "String",
402
- },
403
- },
404
- lastModifiedAt: {
405
- serializedName: "lastModifiedAt",
406
- type: {
407
- name: "DateTime",
408
- },
409
- },
410
- },
411
- },
412
- };
413
- const ConfigurationAssignmentFilterProperties = {
414
- type: {
415
- name: "Composite",
416
- className: "ConfigurationAssignmentFilterProperties",
417
- modelProperties: {
418
- resourceTypes: {
419
- serializedName: "resourceTypes",
420
- type: {
421
- name: "Sequence",
422
- element: {
423
- type: {
424
- name: "String",
425
- },
426
- },
427
- },
428
- },
429
- resourceGroups: {
430
- serializedName: "resourceGroups",
431
- type: {
432
- name: "Sequence",
433
- element: {
434
- type: {
435
- name: "String",
436
- },
437
- },
438
- },
439
- },
440
- osTypes: {
441
- serializedName: "osTypes",
442
- type: {
443
- name: "Sequence",
444
- element: {
445
- type: {
446
- name: "String",
447
- },
448
- },
449
- },
450
- },
451
- locations: {
452
- serializedName: "locations",
453
- type: {
454
- name: "Sequence",
455
- element: {
456
- type: {
457
- name: "String",
458
- },
459
- },
460
- },
461
- },
462
- tagSettings: {
463
- serializedName: "tagSettings",
464
- type: {
465
- name: "Composite",
466
- className: "TagSettingsProperties",
467
- },
468
- },
469
- },
470
- },
471
- };
472
- const TagSettingsProperties = {
473
- type: {
474
- name: "Composite",
475
- className: "TagSettingsProperties",
476
- modelProperties: {
477
- tags: {
478
- serializedName: "tags",
479
- type: {
480
- name: "Dictionary",
481
- value: {
482
- type: { name: "Sequence", element: { type: { name: "String" } } },
483
- },
484
- },
485
- },
486
- filterOperator: {
487
- serializedName: "filterOperator",
488
- type: {
489
- name: "Enum",
490
- allowedValues: ["All", "Any"],
491
- },
492
- },
493
- },
494
- },
495
- };
496
- const ListConfigurationAssignmentsResult = {
497
- type: {
498
- name: "Composite",
499
- className: "ListConfigurationAssignmentsResult",
500
- modelProperties: {
501
- value: {
502
- serializedName: "value",
503
- type: {
504
- name: "Sequence",
505
- element: {
506
- type: {
507
- name: "Composite",
508
- className: "ConfigurationAssignment",
509
- },
510
- },
511
- },
512
- },
513
- },
514
- },
515
- };
516
- const ListApplyUpdate = {
517
- type: {
518
- name: "Composite",
519
- className: "ListApplyUpdate",
520
- modelProperties: {
521
- value: {
522
- serializedName: "value",
523
- type: {
524
- name: "Sequence",
525
- element: {
526
- type: {
527
- name: "Composite",
528
- className: "ApplyUpdate",
529
- },
530
- },
531
- },
532
- },
533
- },
534
- },
535
- };
536
- const OperationsListResult = {
537
- type: {
538
- name: "Composite",
539
- className: "OperationsListResult",
540
- modelProperties: {
541
- value: {
542
- serializedName: "value",
543
- type: {
544
- name: "Sequence",
545
- element: {
546
- type: {
547
- name: "Composite",
548
- className: "Operation",
549
- },
550
- },
551
- },
552
- },
553
- },
554
- },
555
- };
556
- const Operation = {
557
- type: {
558
- name: "Composite",
559
- className: "Operation",
560
- modelProperties: {
561
- name: {
562
- serializedName: "name",
563
- type: {
564
- name: "String",
565
- },
566
- },
567
- display: {
568
- serializedName: "display",
569
- type: {
570
- name: "Composite",
571
- className: "OperationInfo",
572
- },
573
- },
574
- origin: {
575
- serializedName: "origin",
576
- type: {
577
- name: "String",
578
- },
579
- },
580
- properties: {
581
- serializedName: "properties",
582
- type: {
583
- name: "Dictionary",
584
- value: { type: { name: "any" } },
585
- },
586
- },
587
- isDataAction: {
588
- serializedName: "isDataAction",
589
- type: {
590
- name: "Boolean",
591
- },
592
- },
593
- },
594
- },
595
- };
596
- const OperationInfo = {
597
- type: {
598
- name: "Composite",
599
- className: "OperationInfo",
600
- modelProperties: {
601
- provider: {
602
- serializedName: "provider",
603
- type: {
604
- name: "String",
605
- },
606
- },
607
- resource: {
608
- serializedName: "resource",
609
- type: {
610
- name: "String",
611
- },
612
- },
613
- operation: {
614
- serializedName: "operation",
615
- type: {
616
- name: "String",
617
- },
618
- },
619
- description: {
620
- serializedName: "description",
621
- type: {
622
- name: "String",
623
- },
624
- },
625
- },
626
- },
627
- };
628
- const ListUpdatesResult = {
629
- type: {
630
- name: "Composite",
631
- className: "ListUpdatesResult",
632
- modelProperties: {
633
- value: {
634
- serializedName: "value",
635
- type: {
636
- name: "Sequence",
637
- element: {
638
- type: {
639
- name: "Composite",
640
- className: "Update",
641
- },
642
- },
643
- },
644
- },
645
- },
646
- },
647
- };
648
- const Update = {
649
- type: {
650
- name: "Composite",
651
- className: "Update",
652
- modelProperties: {
653
- maintenanceScope: {
654
- serializedName: "maintenanceScope",
655
- type: {
656
- name: "String",
657
- },
658
- },
659
- impactType: {
660
- serializedName: "impactType",
661
- type: {
662
- name: "String",
663
- },
664
- },
665
- status: {
666
- serializedName: "status",
667
- type: {
668
- name: "String",
669
- },
670
- },
671
- impactDurationInSec: {
672
- serializedName: "impactDurationInSec",
673
- type: {
674
- name: "Number",
675
- },
676
- },
677
- notBefore: {
678
- serializedName: "notBefore",
679
- type: {
680
- name: "DateTime",
681
- },
682
- },
683
- resourceId: {
684
- serializedName: "properties.resourceId",
685
- type: {
686
- name: "String",
687
- },
688
- },
689
- },
690
- },
691
- };
692
- const MaintenanceConfiguration = {
693
- type: {
694
- name: "Composite",
695
- className: "MaintenanceConfiguration",
696
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
697
- serializedName: "location",
698
- type: {
699
- name: "String",
700
- },
701
- }, tags: {
702
- serializedName: "tags",
703
- type: {
704
- name: "Dictionary",
705
- value: { type: { name: "String" } },
706
- },
707
- }, namespace: {
708
- serializedName: "properties.namespace",
709
- type: {
710
- name: "String",
711
- },
712
- }, extensionProperties: {
713
- serializedName: "properties.extensionProperties",
714
- type: {
715
- name: "Dictionary",
716
- value: { type: { name: "String" } },
717
- },
718
- }, maintenanceScope: {
719
- serializedName: "properties.maintenanceScope",
720
- type: {
721
- name: "String",
722
- },
723
- }, visibility: {
724
- serializedName: "properties.visibility",
725
- type: {
726
- name: "String",
727
- },
728
- }, installPatches: {
729
- serializedName: "properties.installPatches",
730
- type: {
731
- name: "Composite",
732
- className: "InputPatchConfiguration",
733
- },
734
- }, startDateTime: {
735
- serializedName: "properties.maintenanceWindow.startDateTime",
736
- type: {
737
- name: "String",
738
- },
739
- }, expirationDateTime: {
740
- serializedName: "properties.maintenanceWindow.expirationDateTime",
741
- type: {
742
- name: "String",
743
- },
744
- }, duration: {
745
- serializedName: "properties.maintenanceWindow.duration",
746
- type: {
747
- name: "String",
748
- },
749
- }, timeZone: {
750
- serializedName: "properties.maintenanceWindow.timeZone",
751
- type: {
752
- name: "String",
753
- },
754
- }, recurEvery: {
755
- serializedName: "properties.maintenanceWindow.recurEvery",
756
- type: {
757
- name: "String",
758
- },
759
- } }),
760
- },
761
- };
762
- const ApplyUpdate = {
763
- type: {
764
- name: "Composite",
765
- className: "ApplyUpdate",
766
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { status: {
767
- serializedName: "properties.status",
768
- type: {
769
- name: "String",
770
- },
771
- }, resourceId: {
772
- serializedName: "properties.resourceId",
773
- type: {
774
- name: "String",
775
- },
776
- }, lastUpdateTime: {
777
- serializedName: "properties.lastUpdateTime",
778
- type: {
779
- name: "DateTime",
780
- },
781
- } }),
782
- },
783
- };
784
- const ConfigurationAssignment = {
785
- type: {
786
- name: "Composite",
787
- className: "ConfigurationAssignment",
788
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
789
- serializedName: "location",
790
- type: {
791
- name: "String",
792
- },
793
- }, maintenanceConfigurationId: {
794
- serializedName: "properties.maintenanceConfigurationId",
795
- type: {
796
- name: "String",
797
- },
798
- }, resourceId: {
799
- serializedName: "properties.resourceId",
800
- type: {
801
- name: "String",
802
- },
803
- }, filter: {
804
- serializedName: "properties.filter",
805
- type: {
806
- name: "Composite",
807
- className: "ConfigurationAssignmentFilterProperties",
808
- },
809
- } }),
810
- },
811
- };
812
-
813
- var Mappers = /*#__PURE__*/Object.freeze({
814
- __proto__: null,
815
- ApplyUpdate: ApplyUpdate,
816
- ConfigurationAssignment: ConfigurationAssignment,
817
- ConfigurationAssignmentFilterProperties: ConfigurationAssignmentFilterProperties,
818
- ErrorDetails: ErrorDetails,
819
- InputLinuxParameters: InputLinuxParameters,
820
- InputPatchConfiguration: InputPatchConfiguration,
821
- InputWindowsParameters: InputWindowsParameters,
822
- ListApplyUpdate: ListApplyUpdate,
823
- ListConfigurationAssignmentsResult: ListConfigurationAssignmentsResult,
824
- ListMaintenanceConfigurationsResult: ListMaintenanceConfigurationsResult,
825
- ListUpdatesResult: ListUpdatesResult,
826
- MaintenanceConfiguration: MaintenanceConfiguration,
827
- MaintenanceError: MaintenanceError,
828
- Operation: Operation,
829
- OperationInfo: OperationInfo,
830
- OperationsListResult: OperationsListResult,
831
- Resource: Resource,
832
- ScheduledEventApproveResponse: ScheduledEventApproveResponse,
833
- SystemData: SystemData,
834
- TagSettingsProperties: TagSettingsProperties,
835
- Update: Update
836
- });
837
-
838
- /*
839
- * Copyright (c) Microsoft Corporation.
840
- * Licensed under the MIT License.
841
- *
842
- * Code generated by Microsoft (R) AutoRest Code Generator.
843
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
844
- */
845
- const accept = {
846
- parameterPath: "accept",
847
- mapper: {
848
- defaultValue: "application/json",
849
- isConstant: true,
850
- serializedName: "Accept",
851
- type: {
852
- name: "String",
853
- },
854
- },
855
- };
856
- const $host = {
857
- parameterPath: "$host",
858
- mapper: {
859
- serializedName: "$host",
860
- required: true,
861
- type: {
862
- name: "String",
863
- },
864
- },
865
- skipEncoding: true,
866
- };
867
- const subscriptionId = {
868
- parameterPath: "subscriptionId",
869
- mapper: {
870
- serializedName: "subscriptionId",
871
- required: true,
872
- type: {
873
- name: "Uuid",
874
- },
875
- },
876
- };
877
- const resourceGroupName = {
878
- parameterPath: "resourceGroupName",
879
- mapper: {
880
- constraints: {
881
- MaxLength: 90,
882
- MinLength: 1,
883
- },
884
- serializedName: "resourceGroupName",
885
- required: true,
886
- type: {
887
- name: "String",
888
- },
889
- },
890
- };
891
- const resourceType = {
892
- parameterPath: "resourceType",
893
- mapper: {
894
- serializedName: "resourceType",
895
- required: true,
896
- type: {
897
- name: "String",
898
- },
899
- },
900
- };
901
- const resourceName = {
902
- parameterPath: "resourceName",
903
- mapper: {
904
- serializedName: "resourceName",
905
- required: true,
906
- type: {
907
- name: "String",
908
- },
909
- },
910
- };
911
- const scheduledEventId = {
912
- parameterPath: "scheduledEventId",
913
- mapper: {
914
- serializedName: "scheduledEventId",
915
- required: true,
916
- type: {
917
- name: "String",
918
- },
919
- },
920
- };
921
- const apiVersion = {
922
- parameterPath: "apiVersion",
923
- mapper: {
924
- defaultValue: "2023-10-01-preview",
925
- isConstant: true,
926
- serializedName: "api-version",
927
- type: {
928
- name: "String",
929
- },
930
- },
931
- };
932
- const resourceGroupName1 = {
933
- parameterPath: "resourceGroupName",
934
- mapper: {
935
- serializedName: "resourceGroupName",
936
- required: true,
937
- type: {
938
- name: "String",
939
- },
940
- },
941
- };
942
- const providerName = {
943
- parameterPath: "providerName",
944
- mapper: {
945
- serializedName: "providerName",
946
- required: true,
947
- type: {
948
- name: "String",
949
- },
950
- },
951
- };
952
- const resourceParentType = {
953
- parameterPath: "resourceParentType",
954
- mapper: {
955
- serializedName: "resourceParentType",
956
- required: true,
957
- type: {
958
- name: "String",
959
- },
960
- },
961
- };
962
- const resourceParentName = {
963
- parameterPath: "resourceParentName",
964
- mapper: {
965
- serializedName: "resourceParentName",
966
- required: true,
967
- type: {
968
- name: "String",
969
- },
970
- },
971
- };
972
- const applyUpdateName = {
973
- parameterPath: "applyUpdateName",
974
- mapper: {
975
- serializedName: "applyUpdateName",
976
- required: true,
977
- type: {
978
- name: "String",
979
- },
980
- },
981
- };
982
- const contentType = {
983
- parameterPath: ["options", "contentType"],
984
- mapper: {
985
- defaultValue: "application/json",
986
- isConstant: true,
987
- serializedName: "Content-Type",
988
- type: {
989
- name: "String",
990
- },
991
- },
992
- };
993
- const applyUpdate = {
994
- parameterPath: "applyUpdate",
995
- mapper: ApplyUpdate,
996
- };
997
- const configurationAssignmentName = {
998
- parameterPath: "configurationAssignmentName",
999
- mapper: {
1000
- serializedName: "configurationAssignmentName",
1001
- required: true,
1002
- type: {
1003
- name: "String",
1004
- },
1005
- },
1006
- };
1007
- const configurationAssignment = {
1008
- parameterPath: "configurationAssignment",
1009
- mapper: ConfigurationAssignment,
1010
- };
1011
- const configuration = {
1012
- parameterPath: "configuration",
1013
- mapper: MaintenanceConfiguration,
1014
- };
1015
- const configurationAssignmentName1 = {
1016
- parameterPath: "configurationAssignmentName",
1017
- mapper: {
1018
- constraints: {
1019
- Pattern: new RegExp("^.+$"),
1020
- },
1021
- serializedName: "configurationAssignmentName",
1022
- required: true,
1023
- type: {
1024
- name: "String",
1025
- },
1026
- },
1027
- };
1028
-
1029
- /*
1030
- * Copyright (c) Microsoft Corporation.
1031
- * Licensed under the MIT License.
1032
- *
1033
- * Code generated by Microsoft (R) AutoRest Code Generator.
1034
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1035
- */
1036
- /** Class containing ScheduledEvent operations. */
1037
- class ScheduledEventImpl {
1038
- /**
1039
- * Initialize a new instance of the class ScheduledEvent class.
1040
- * @param client Reference to the service client
1041
- */
1042
- constructor(client) {
1043
- this.client = client;
1044
- }
1045
- /**
1046
- * Post Scheduled Event Acknowledgement
1047
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1048
- * @param resourceType Resource type
1049
- * @param resourceName Resource Name
1050
- * @param scheduledEventId Scheduled Event Id. This is a GUID-formatted string (e.g.
1051
- * 00000000-0000-0000-0000-000000000000)
1052
- * @param options The options parameters.
1053
- */
1054
- acknowledge(resourceGroupName, resourceType, resourceName, scheduledEventId, options) {
1055
- return this.client.sendOperationRequest({
1056
- resourceGroupName,
1057
- resourceType,
1058
- resourceName,
1059
- scheduledEventId,
1060
- options,
1061
- }, acknowledgeOperationSpec);
1062
- }
1063
- }
1064
- // Operation Specifications
1065
- const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1066
- const acknowledgeOperationSpec = {
1067
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge",
1068
- httpMethod: "POST",
1069
- responses: {
1070
- 200: {
1071
- bodyMapper: ScheduledEventApproveResponse,
1072
- },
1073
- default: {
1074
- bodyMapper: MaintenanceError,
1075
- },
1076
- },
1077
- queryParameters: [apiVersion],
1078
- urlParameters: [
1079
- $host,
1080
- subscriptionId,
1081
- resourceGroupName,
1082
- resourceType,
1083
- resourceName,
1084
- scheduledEventId,
1085
- ],
1086
- headerParameters: [accept],
1087
- serializer: serializer$b,
1088
- };
1089
-
1090
- /*
1091
- * Copyright (c) Microsoft Corporation.
1092
- * Licensed under the MIT License.
1093
- *
1094
- * Code generated by Microsoft (R) AutoRest Code Generator.
1095
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1096
- */
1097
- /// <reference lib="esnext.asynciterable" />
1098
- /** Class containing PublicMaintenanceConfigurations operations. */
1099
- class PublicMaintenanceConfigurationsImpl {
1100
- /**
1101
- * Initialize a new instance of the class PublicMaintenanceConfigurations class.
1102
- * @param client Reference to the service client
1103
- */
1104
- constructor(client) {
1105
- this.client = client;
1106
- }
1107
- /**
1108
- * Get Public Maintenance Configuration records
1109
- * @param options The options parameters.
1110
- */
1111
- list(options) {
1112
- const iter = this.listPagingAll(options);
1113
- return {
1114
- next() {
1115
- return iter.next();
1116
- },
1117
- [Symbol.asyncIterator]() {
1118
- return this;
1119
- },
1120
- byPage: (settings) => {
1121
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1122
- throw new Error("maxPageSize is not supported by this operation.");
1123
- }
1124
- return this.listPagingPage(options, settings);
1125
- },
1126
- };
1127
- }
1128
- listPagingPage(options, _settings) {
1129
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1130
- let result;
1131
- result = yield tslib.__await(this._list(options));
1132
- yield yield tslib.__await(result.value || []);
1133
- });
1134
- }
1135
- listPagingAll(options) {
1136
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1137
- var _a, e_1, _b, _c;
1138
- try {
1139
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1140
- _c = _f.value;
1141
- _d = false;
1142
- const page = _c;
1143
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1144
- }
1145
- }
1146
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1147
- finally {
1148
- try {
1149
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1150
- }
1151
- finally { if (e_1) throw e_1.error; }
1152
- }
1153
- });
1154
- }
1155
- /**
1156
- * Get Public Maintenance Configuration records
1157
- * @param options The options parameters.
1158
- */
1159
- _list(options) {
1160
- return this.client.sendOperationRequest({ options }, listOperationSpec$8);
1161
- }
1162
- /**
1163
- * Get Public Maintenance Configuration record
1164
- * @param resourceName Maintenance Configuration Name
1165
- * @param options The options parameters.
1166
- */
1167
- get(resourceName, options) {
1168
- return this.client.sendOperationRequest({ resourceName, options }, getOperationSpec$5);
1169
- }
1170
- }
1171
- // Operation Specifications
1172
- const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1173
- const listOperationSpec$8 = {
1174
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations",
1175
- httpMethod: "GET",
1176
- responses: {
1177
- 200: {
1178
- bodyMapper: ListMaintenanceConfigurationsResult,
1179
- },
1180
- default: {
1181
- bodyMapper: MaintenanceError,
1182
- },
1183
- },
1184
- queryParameters: [apiVersion],
1185
- urlParameters: [$host, subscriptionId],
1186
- headerParameters: [accept],
1187
- serializer: serializer$a,
1188
- };
1189
- const getOperationSpec$5 = {
1190
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}",
1191
- httpMethod: "GET",
1192
- responses: {
1193
- 200: {
1194
- bodyMapper: MaintenanceConfiguration,
1195
- },
1196
- default: {
1197
- bodyMapper: MaintenanceError,
1198
- },
1199
- },
1200
- queryParameters: [apiVersion],
1201
- urlParameters: [
1202
- $host,
1203
- subscriptionId,
1204
- resourceName,
1205
- ],
1206
- headerParameters: [accept],
1207
- serializer: serializer$a,
1208
- };
1209
-
1210
- /*
1211
- * Copyright (c) Microsoft Corporation.
1212
- * Licensed under the MIT License.
1213
- *
1214
- * Code generated by Microsoft (R) AutoRest Code Generator.
1215
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1216
- */
1217
- /// <reference lib="esnext.asynciterable" />
1218
- /** Class containing ApplyUpdates operations. */
1219
- class ApplyUpdatesImpl {
1220
- /**
1221
- * Initialize a new instance of the class ApplyUpdates class.
1222
- * @param client Reference to the service client
1223
- */
1224
- constructor(client) {
1225
- this.client = client;
1226
- }
1227
- /**
1228
- * Get Configuration records within a subscription
1229
- * @param options The options parameters.
1230
- */
1231
- list(options) {
1232
- const iter = this.listPagingAll(options);
1233
- return {
1234
- next() {
1235
- return iter.next();
1236
- },
1237
- [Symbol.asyncIterator]() {
1238
- return this;
1239
- },
1240
- byPage: (settings) => {
1241
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1242
- throw new Error("maxPageSize is not supported by this operation.");
1243
- }
1244
- return this.listPagingPage(options, settings);
1245
- },
1246
- };
1247
- }
1248
- listPagingPage(options, _settings) {
1249
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1250
- let result;
1251
- result = yield tslib.__await(this._list(options));
1252
- yield yield tslib.__await(result.value || []);
1253
- });
1254
- }
1255
- listPagingAll(options) {
1256
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1257
- var _a, e_1, _b, _c;
1258
- try {
1259
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1260
- _c = _f.value;
1261
- _d = false;
1262
- const page = _c;
1263
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1264
- }
1265
- }
1266
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1267
- finally {
1268
- try {
1269
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1270
- }
1271
- finally { if (e_1) throw e_1.error; }
1272
- }
1273
- });
1274
- }
1275
- /**
1276
- * Track maintenance updates to resource with parent
1277
- * @param resourceGroupName Resource group name
1278
- * @param providerName Resource provider name
1279
- * @param resourceParentType Resource parent type
1280
- * @param resourceParentName Resource parent identifier
1281
- * @param resourceType Resource type
1282
- * @param resourceName Resource identifier
1283
- * @param applyUpdateName applyUpdate Id
1284
- * @param options The options parameters.
1285
- */
1286
- getParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, applyUpdateName, options) {
1287
- return this.client.sendOperationRequest({
1288
- resourceGroupName,
1289
- providerName,
1290
- resourceParentType,
1291
- resourceParentName,
1292
- resourceType,
1293
- resourceName,
1294
- applyUpdateName,
1295
- options,
1296
- }, getParentOperationSpec$1);
1297
- }
1298
- /**
1299
- * Track maintenance updates to resource
1300
- * @param resourceGroupName Resource group name
1301
- * @param providerName Resource provider name
1302
- * @param resourceType Resource type
1303
- * @param resourceName Resource identifier
1304
- * @param applyUpdateName applyUpdate Id
1305
- * @param options The options parameters.
1306
- */
1307
- get(resourceGroupName, providerName, resourceType, resourceName, applyUpdateName, options) {
1308
- return this.client.sendOperationRequest({
1309
- resourceGroupName,
1310
- providerName,
1311
- resourceType,
1312
- resourceName,
1313
- applyUpdateName,
1314
- options,
1315
- }, getOperationSpec$4);
1316
- }
1317
- /**
1318
- * Apply maintenance updates to resource
1319
- * @param resourceGroupName Resource group name
1320
- * @param providerName Resource provider name
1321
- * @param resourceType Resource type
1322
- * @param resourceName Resource identifier
1323
- * @param applyUpdateName ApplyUpdate name
1324
- * @param applyUpdate The ApplyUpdate
1325
- * @param options The options parameters.
1326
- */
1327
- createOrUpdateOrCancel(resourceGroupName, providerName, resourceType, resourceName, applyUpdateName, applyUpdate, options) {
1328
- return this.client.sendOperationRequest({
1329
- resourceGroupName,
1330
- providerName,
1331
- resourceType,
1332
- resourceName,
1333
- applyUpdateName,
1334
- applyUpdate,
1335
- options,
1336
- }, createOrUpdateOrCancelOperationSpec);
1337
- }
1338
- /**
1339
- * Apply maintenance updates to resource with parent
1340
- * @param resourceGroupName Resource group name
1341
- * @param providerName Resource provider name
1342
- * @param resourceParentType Resource parent type
1343
- * @param resourceParentName Resource parent identifier
1344
- * @param resourceType Resource type
1345
- * @param resourceName Resource identifier
1346
- * @param options The options parameters.
1347
- */
1348
- createOrUpdateParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
1349
- return this.client.sendOperationRequest({
1350
- resourceGroupName,
1351
- providerName,
1352
- resourceParentType,
1353
- resourceParentName,
1354
- resourceType,
1355
- resourceName,
1356
- options,
1357
- }, createOrUpdateParentOperationSpec$1);
1358
- }
1359
- /**
1360
- * Apply maintenance updates to resource
1361
- * @param resourceGroupName Resource group name
1362
- * @param providerName Resource provider name
1363
- * @param resourceType Resource type
1364
- * @param resourceName Resource identifier
1365
- * @param options The options parameters.
1366
- */
1367
- createOrUpdate(resourceGroupName, providerName, resourceType, resourceName, options) {
1368
- return this.client.sendOperationRequest({ resourceGroupName, providerName, resourceType, resourceName, options }, createOrUpdateOperationSpec$4);
1369
- }
1370
- /**
1371
- * Get Configuration records within a subscription
1372
- * @param options The options parameters.
1373
- */
1374
- _list(options) {
1375
- return this.client.sendOperationRequest({ options }, listOperationSpec$7);
1376
- }
1377
- }
1378
- // Operation Specifications
1379
- const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1380
- const getParentOperationSpec$1 = {
1381
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}",
1382
- httpMethod: "GET",
1383
- responses: {
1384
- 200: {
1385
- bodyMapper: ApplyUpdate,
1386
- },
1387
- default: {
1388
- bodyMapper: MaintenanceError,
1389
- },
1390
- },
1391
- queryParameters: [apiVersion],
1392
- urlParameters: [
1393
- $host,
1394
- subscriptionId,
1395
- resourceType,
1396
- resourceName,
1397
- resourceGroupName1,
1398
- providerName,
1399
- resourceParentType,
1400
- resourceParentName,
1401
- applyUpdateName,
1402
- ],
1403
- headerParameters: [accept],
1404
- serializer: serializer$9,
1405
- };
1406
- const getOperationSpec$4 = {
1407
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}",
1408
- httpMethod: "GET",
1409
- responses: {
1410
- 200: {
1411
- bodyMapper: ApplyUpdate,
1412
- },
1413
- default: {
1414
- bodyMapper: MaintenanceError,
1415
- },
1416
- },
1417
- queryParameters: [apiVersion],
1418
- urlParameters: [
1419
- $host,
1420
- subscriptionId,
1421
- resourceType,
1422
- resourceName,
1423
- resourceGroupName1,
1424
- providerName,
1425
- applyUpdateName,
1426
- ],
1427
- headerParameters: [accept],
1428
- serializer: serializer$9,
1429
- };
1430
- const createOrUpdateOrCancelOperationSpec = {
1431
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/{applyUpdateName}",
1432
- httpMethod: "PUT",
1433
- responses: {
1434
- 200: {
1435
- bodyMapper: ApplyUpdate,
1436
- },
1437
- 201: {
1438
- bodyMapper: ApplyUpdate,
1439
- },
1440
- default: {
1441
- bodyMapper: MaintenanceError,
1442
- },
1443
- },
1444
- requestBody: applyUpdate,
1445
- queryParameters: [apiVersion],
1446
- urlParameters: [
1447
- $host,
1448
- subscriptionId,
1449
- resourceType,
1450
- resourceName,
1451
- resourceGroupName1,
1452
- providerName,
1453
- applyUpdateName,
1454
- ],
1455
- headerParameters: [accept, contentType],
1456
- mediaType: "json",
1457
- serializer: serializer$9,
1458
- };
1459
- const createOrUpdateParentOperationSpec$1 = {
1460
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/default",
1461
- httpMethod: "PUT",
1462
- responses: {
1463
- 200: {
1464
- bodyMapper: ApplyUpdate,
1465
- },
1466
- 201: {
1467
- bodyMapper: ApplyUpdate,
1468
- },
1469
- default: {
1470
- bodyMapper: MaintenanceError,
1471
- },
1472
- },
1473
- queryParameters: [apiVersion],
1474
- urlParameters: [
1475
- $host,
1476
- subscriptionId,
1477
- resourceType,
1478
- resourceName,
1479
- resourceGroupName1,
1480
- providerName,
1481
- resourceParentType,
1482
- resourceParentName,
1483
- ],
1484
- headerParameters: [accept],
1485
- serializer: serializer$9,
1486
- };
1487
- const createOrUpdateOperationSpec$4 = {
1488
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/applyUpdates/default",
1489
- httpMethod: "PUT",
1490
- responses: {
1491
- 200: {
1492
- bodyMapper: ApplyUpdate,
1493
- },
1494
- 201: {
1495
- bodyMapper: ApplyUpdate,
1496
- },
1497
- default: {
1498
- bodyMapper: MaintenanceError,
1499
- },
1500
- },
1501
- queryParameters: [apiVersion],
1502
- urlParameters: [
1503
- $host,
1504
- subscriptionId,
1505
- resourceType,
1506
- resourceName,
1507
- resourceGroupName1,
1508
- providerName,
1509
- ],
1510
- headerParameters: [accept],
1511
- serializer: serializer$9,
1512
- };
1513
- const listOperationSpec$7 = {
1514
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/applyUpdates",
1515
- httpMethod: "GET",
1516
- responses: {
1517
- 200: {
1518
- bodyMapper: ListApplyUpdate,
1519
- },
1520
- default: {
1521
- bodyMapper: MaintenanceError,
1522
- },
1523
- },
1524
- queryParameters: [apiVersion],
1525
- urlParameters: [$host, subscriptionId],
1526
- headerParameters: [accept],
1527
- serializer: serializer$9,
1528
- };
1529
-
1530
- /*
1531
- * Copyright (c) Microsoft Corporation.
1532
- * Licensed under the MIT License.
1533
- *
1534
- * Code generated by Microsoft (R) AutoRest Code Generator.
1535
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1536
- */
1537
- /// <reference lib="esnext.asynciterable" />
1538
- /** Class containing ConfigurationAssignments operations. */
1539
- class ConfigurationAssignmentsImpl {
1540
- /**
1541
- * Initialize a new instance of the class ConfigurationAssignments class.
1542
- * @param client Reference to the service client
1543
- */
1544
- constructor(client) {
1545
- this.client = client;
1546
- }
1547
- /**
1548
- * List configurationAssignments for resource.
1549
- * @param resourceGroupName Resource group name
1550
- * @param providerName Resource provider name
1551
- * @param resourceParentType Resource parent type
1552
- * @param resourceParentName Resource parent identifier
1553
- * @param resourceType Resource type
1554
- * @param resourceName Resource identifier
1555
- * @param options The options parameters.
1556
- */
1557
- listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
1558
- const iter = this.listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options);
1559
- return {
1560
- next() {
1561
- return iter.next();
1562
- },
1563
- [Symbol.asyncIterator]() {
1564
- return this;
1565
- },
1566
- byPage: (settings) => {
1567
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1568
- throw new Error("maxPageSize is not supported by this operation.");
1569
- }
1570
- return this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, settings);
1571
- },
1572
- };
1573
- }
1574
- listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
1575
- return tslib.__asyncGenerator(this, arguments, function* listParentPagingPage_1() {
1576
- let result;
1577
- result = yield tslib.__await(this._listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options));
1578
- yield yield tslib.__await(result.value || []);
1579
- });
1580
- }
1581
- listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
1582
- return tslib.__asyncGenerator(this, arguments, function* listParentPagingAll_1() {
1583
- var _a, e_1, _b, _c;
1584
- try {
1585
- for (var _d = true, _e = tslib.__asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1586
- _c = _f.value;
1587
- _d = false;
1588
- const page = _c;
1589
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1590
- }
1591
- }
1592
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1593
- finally {
1594
- try {
1595
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1596
- }
1597
- finally { if (e_1) throw e_1.error; }
1598
- }
1599
- });
1600
- }
1601
- /**
1602
- * List configurationAssignments for resource.
1603
- * @param resourceGroupName Resource group name
1604
- * @param providerName Resource provider name
1605
- * @param resourceType Resource type
1606
- * @param resourceName Resource identifier
1607
- * @param options The options parameters.
1608
- */
1609
- list(resourceGroupName, providerName, resourceType, resourceName, options) {
1610
- const iter = this.listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options);
1611
- return {
1612
- next() {
1613
- return iter.next();
1614
- },
1615
- [Symbol.asyncIterator]() {
1616
- return this;
1617
- },
1618
- byPage: (settings) => {
1619
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1620
- throw new Error("maxPageSize is not supported by this operation.");
1621
- }
1622
- return this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, settings);
1623
- },
1624
- };
1625
- }
1626
- listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
1627
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1628
- let result;
1629
- result = yield tslib.__await(this._list(resourceGroupName, providerName, resourceType, resourceName, options));
1630
- yield yield tslib.__await(result.value || []);
1631
- });
1632
- }
1633
- listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options) {
1634
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1635
- var _a, e_2, _b, _c;
1636
- try {
1637
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1638
- _c = _f.value;
1639
- _d = false;
1640
- const page = _c;
1641
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1642
- }
1643
- }
1644
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1645
- finally {
1646
- try {
1647
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1648
- }
1649
- finally { if (e_2) throw e_2.error; }
1650
- }
1651
- });
1652
- }
1653
- /**
1654
- * Get configuration assignment for resource..
1655
- * @param resourceGroupName Resource group name
1656
- * @param providerName Resource provider name
1657
- * @param resourceParentType Resource parent type
1658
- * @param resourceParentName Resource parent identifier
1659
- * @param resourceType Resource type
1660
- * @param resourceName Resource identifier
1661
- * @param configurationAssignmentName Configuration assignment name
1662
- * @param options The options parameters.
1663
- */
1664
- getParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, configurationAssignmentName, options) {
1665
- return this.client.sendOperationRequest({
1666
- resourceGroupName,
1667
- providerName,
1668
- resourceParentType,
1669
- resourceParentName,
1670
- resourceType,
1671
- resourceName,
1672
- configurationAssignmentName,
1673
- options,
1674
- }, getParentOperationSpec);
1675
- }
1676
- /**
1677
- * Register configuration for resource.
1678
- * @param resourceGroupName Resource group name
1679
- * @param providerName Resource provider name
1680
- * @param resourceParentType Resource parent type
1681
- * @param resourceParentName Resource parent identifier
1682
- * @param resourceType Resource type
1683
- * @param resourceName Resource identifier
1684
- * @param configurationAssignmentName Configuration assignment name
1685
- * @param configurationAssignment The configurationAssignment
1686
- * @param options The options parameters.
1687
- */
1688
- createOrUpdateParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, configurationAssignmentName, configurationAssignment, options) {
1689
- return this.client.sendOperationRequest({
1690
- resourceGroupName,
1691
- providerName,
1692
- resourceParentType,
1693
- resourceParentName,
1694
- resourceType,
1695
- resourceName,
1696
- configurationAssignmentName,
1697
- configurationAssignment,
1698
- options,
1699
- }, createOrUpdateParentOperationSpec);
1700
- }
1701
- /**
1702
- * Unregister configuration for resource.
1703
- * @param resourceGroupName Resource group name
1704
- * @param providerName Resource provider name
1705
- * @param resourceParentType Resource parent type
1706
- * @param resourceParentName Resource parent identifier
1707
- * @param resourceType Resource type
1708
- * @param resourceName Resource identifier
1709
- * @param configurationAssignmentName Unique configuration assignment name
1710
- * @param options The options parameters.
1711
- */
1712
- deleteParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, configurationAssignmentName, options) {
1713
- return this.client.sendOperationRequest({
1714
- resourceGroupName,
1715
- providerName,
1716
- resourceParentType,
1717
- resourceParentName,
1718
- resourceType,
1719
- resourceName,
1720
- configurationAssignmentName,
1721
- options,
1722
- }, deleteParentOperationSpec);
1723
- }
1724
- /**
1725
- * Get configuration assignment for resource..
1726
- * @param resourceGroupName Resource group name
1727
- * @param providerName Resource provider name
1728
- * @param resourceType Resource type
1729
- * @param resourceName Resource identifier
1730
- * @param configurationAssignmentName Configuration assignment name
1731
- * @param options The options parameters.
1732
- */
1733
- get(resourceGroupName, providerName, resourceType, resourceName, configurationAssignmentName, options) {
1734
- return this.client.sendOperationRequest({
1735
- resourceGroupName,
1736
- providerName,
1737
- resourceType,
1738
- resourceName,
1739
- configurationAssignmentName,
1740
- options,
1741
- }, getOperationSpec$3);
1742
- }
1743
- /**
1744
- * Register configuration for resource.
1745
- * @param resourceGroupName Resource group name
1746
- * @param providerName Resource provider name
1747
- * @param resourceType Resource type
1748
- * @param resourceName Resource identifier
1749
- * @param configurationAssignmentName Configuration assignment name
1750
- * @param configurationAssignment The configurationAssignment
1751
- * @param options The options parameters.
1752
- */
1753
- createOrUpdate(resourceGroupName, providerName, resourceType, resourceName, configurationAssignmentName, configurationAssignment, options) {
1754
- return this.client.sendOperationRequest({
1755
- resourceGroupName,
1756
- providerName,
1757
- resourceType,
1758
- resourceName,
1759
- configurationAssignmentName,
1760
- configurationAssignment,
1761
- options,
1762
- }, createOrUpdateOperationSpec$3);
1763
- }
1764
- /**
1765
- * Unregister configuration for resource.
1766
- * @param resourceGroupName Resource group name
1767
- * @param providerName Resource provider name
1768
- * @param resourceType Resource type
1769
- * @param resourceName Resource identifier
1770
- * @param configurationAssignmentName Unique configuration assignment name
1771
- * @param options The options parameters.
1772
- */
1773
- delete(resourceGroupName, providerName, resourceType, resourceName, configurationAssignmentName, options) {
1774
- return this.client.sendOperationRequest({
1775
- resourceGroupName,
1776
- providerName,
1777
- resourceType,
1778
- resourceName,
1779
- configurationAssignmentName,
1780
- options,
1781
- }, deleteOperationSpec$3);
1782
- }
1783
- /**
1784
- * List configurationAssignments for resource.
1785
- * @param resourceGroupName Resource group name
1786
- * @param providerName Resource provider name
1787
- * @param resourceParentType Resource parent type
1788
- * @param resourceParentName Resource parent identifier
1789
- * @param resourceType Resource type
1790
- * @param resourceName Resource identifier
1791
- * @param options The options parameters.
1792
- */
1793
- _listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
1794
- return this.client.sendOperationRequest({
1795
- resourceGroupName,
1796
- providerName,
1797
- resourceParentType,
1798
- resourceParentName,
1799
- resourceType,
1800
- resourceName,
1801
- options,
1802
- }, listParentOperationSpec$1);
1803
- }
1804
- /**
1805
- * List configurationAssignments for resource.
1806
- * @param resourceGroupName Resource group name
1807
- * @param providerName Resource provider name
1808
- * @param resourceType Resource type
1809
- * @param resourceName Resource identifier
1810
- * @param options The options parameters.
1811
- */
1812
- _list(resourceGroupName, providerName, resourceType, resourceName, options) {
1813
- return this.client.sendOperationRequest({ resourceGroupName, providerName, resourceType, resourceName, options }, listOperationSpec$6);
1814
- }
1815
- }
1816
- // Operation Specifications
1817
- const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1818
- const getParentOperationSpec = {
1819
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1820
- httpMethod: "GET",
1821
- responses: {
1822
- 200: {
1823
- bodyMapper: ConfigurationAssignment,
1824
- },
1825
- default: {
1826
- bodyMapper: MaintenanceError,
1827
- },
1828
- },
1829
- queryParameters: [apiVersion],
1830
- urlParameters: [
1831
- $host,
1832
- subscriptionId,
1833
- resourceType,
1834
- resourceName,
1835
- resourceGroupName1,
1836
- providerName,
1837
- resourceParentType,
1838
- resourceParentName,
1839
- configurationAssignmentName,
1840
- ],
1841
- headerParameters: [accept],
1842
- serializer: serializer$8,
1843
- };
1844
- const createOrUpdateParentOperationSpec = {
1845
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1846
- httpMethod: "PUT",
1847
- responses: {
1848
- 200: {
1849
- bodyMapper: ConfigurationAssignment,
1850
- },
1851
- 201: {
1852
- bodyMapper: ConfigurationAssignment,
1853
- },
1854
- default: {
1855
- bodyMapper: MaintenanceError,
1856
- },
1857
- },
1858
- requestBody: configurationAssignment,
1859
- queryParameters: [apiVersion],
1860
- urlParameters: [
1861
- $host,
1862
- subscriptionId,
1863
- resourceType,
1864
- resourceName,
1865
- resourceGroupName1,
1866
- providerName,
1867
- resourceParentType,
1868
- resourceParentName,
1869
- configurationAssignmentName,
1870
- ],
1871
- headerParameters: [accept, contentType],
1872
- mediaType: "json",
1873
- serializer: serializer$8,
1874
- };
1875
- const deleteParentOperationSpec = {
1876
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1877
- httpMethod: "DELETE",
1878
- responses: {
1879
- 200: {
1880
- bodyMapper: ConfigurationAssignment,
1881
- },
1882
- 204: {},
1883
- default: {
1884
- bodyMapper: MaintenanceError,
1885
- },
1886
- },
1887
- queryParameters: [apiVersion],
1888
- urlParameters: [
1889
- $host,
1890
- subscriptionId,
1891
- resourceType,
1892
- resourceName,
1893
- resourceGroupName1,
1894
- providerName,
1895
- resourceParentType,
1896
- resourceParentName,
1897
- configurationAssignmentName,
1898
- ],
1899
- headerParameters: [accept],
1900
- serializer: serializer$8,
1901
- };
1902
- const getOperationSpec$3 = {
1903
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1904
- httpMethod: "GET",
1905
- responses: {
1906
- 200: {
1907
- bodyMapper: ConfigurationAssignment,
1908
- },
1909
- default: {
1910
- bodyMapper: MaintenanceError,
1911
- },
1912
- },
1913
- queryParameters: [apiVersion],
1914
- urlParameters: [
1915
- $host,
1916
- subscriptionId,
1917
- resourceType,
1918
- resourceName,
1919
- resourceGroupName1,
1920
- providerName,
1921
- configurationAssignmentName,
1922
- ],
1923
- headerParameters: [accept],
1924
- serializer: serializer$8,
1925
- };
1926
- const createOrUpdateOperationSpec$3 = {
1927
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1928
- httpMethod: "PUT",
1929
- responses: {
1930
- 200: {
1931
- bodyMapper: ConfigurationAssignment,
1932
- },
1933
- 201: {
1934
- bodyMapper: ConfigurationAssignment,
1935
- },
1936
- default: {
1937
- bodyMapper: MaintenanceError,
1938
- },
1939
- },
1940
- requestBody: configurationAssignment,
1941
- queryParameters: [apiVersion],
1942
- urlParameters: [
1943
- $host,
1944
- subscriptionId,
1945
- resourceType,
1946
- resourceName,
1947
- resourceGroupName1,
1948
- providerName,
1949
- configurationAssignmentName,
1950
- ],
1951
- headerParameters: [accept, contentType],
1952
- mediaType: "json",
1953
- serializer: serializer$8,
1954
- };
1955
- const deleteOperationSpec$3 = {
1956
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
1957
- httpMethod: "DELETE",
1958
- responses: {
1959
- 200: {
1960
- bodyMapper: ConfigurationAssignment,
1961
- },
1962
- 204: {},
1963
- default: {
1964
- bodyMapper: MaintenanceError,
1965
- },
1966
- },
1967
- queryParameters: [apiVersion],
1968
- urlParameters: [
1969
- $host,
1970
- subscriptionId,
1971
- resourceType,
1972
- resourceName,
1973
- resourceGroupName1,
1974
- providerName,
1975
- configurationAssignmentName,
1976
- ],
1977
- headerParameters: [accept],
1978
- serializer: serializer$8,
1979
- };
1980
- const listParentOperationSpec$1 = {
1981
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments",
1982
- httpMethod: "GET",
1983
- responses: {
1984
- 200: {
1985
- bodyMapper: ListConfigurationAssignmentsResult,
1986
- },
1987
- default: {
1988
- bodyMapper: MaintenanceError,
1989
- },
1990
- },
1991
- queryParameters: [apiVersion],
1992
- urlParameters: [
1993
- $host,
1994
- subscriptionId,
1995
- resourceType,
1996
- resourceName,
1997
- resourceGroupName1,
1998
- providerName,
1999
- resourceParentType,
2000
- resourceParentName,
2001
- ],
2002
- headerParameters: [accept],
2003
- serializer: serializer$8,
2004
- };
2005
- const listOperationSpec$6 = {
2006
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments",
2007
- httpMethod: "GET",
2008
- responses: {
2009
- 200: {
2010
- bodyMapper: ListConfigurationAssignmentsResult,
2011
- },
2012
- default: {
2013
- bodyMapper: MaintenanceError,
2014
- },
2015
- },
2016
- queryParameters: [apiVersion],
2017
- urlParameters: [
2018
- $host,
2019
- subscriptionId,
2020
- resourceType,
2021
- resourceName,
2022
- resourceGroupName1,
2023
- providerName,
2024
- ],
2025
- headerParameters: [accept],
2026
- serializer: serializer$8,
2027
- };
2028
-
2029
- /*
2030
- * Copyright (c) Microsoft Corporation.
2031
- * Licensed under the MIT License.
2032
- *
2033
- * Code generated by Microsoft (R) AutoRest Code Generator.
2034
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2035
- */
2036
- /// <reference lib="esnext.asynciterable" />
2037
- /** Class containing MaintenanceConfigurations operations. */
2038
- class MaintenanceConfigurationsImpl {
2039
- /**
2040
- * Initialize a new instance of the class MaintenanceConfigurations class.
2041
- * @param client Reference to the service client
2042
- */
2043
- constructor(client) {
2044
- this.client = client;
2045
- }
2046
- /**
2047
- * Get Configuration records within a subscription
2048
- * @param options The options parameters.
2049
- */
2050
- list(options) {
2051
- const iter = this.listPagingAll(options);
2052
- return {
2053
- next() {
2054
- return iter.next();
2055
- },
2056
- [Symbol.asyncIterator]() {
2057
- return this;
2058
- },
2059
- byPage: (settings) => {
2060
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2061
- throw new Error("maxPageSize is not supported by this operation.");
2062
- }
2063
- return this.listPagingPage(options, settings);
2064
- },
2065
- };
2066
- }
2067
- listPagingPage(options, _settings) {
2068
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2069
- let result;
2070
- result = yield tslib.__await(this._list(options));
2071
- yield yield tslib.__await(result.value || []);
2072
- });
2073
- }
2074
- listPagingAll(options) {
2075
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2076
- var _a, e_1, _b, _c;
2077
- try {
2078
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2079
- _c = _f.value;
2080
- _d = false;
2081
- const page = _c;
2082
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2083
- }
2084
- }
2085
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2086
- finally {
2087
- try {
2088
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2089
- }
2090
- finally { if (e_1) throw e_1.error; }
2091
- }
2092
- });
2093
- }
2094
- /**
2095
- * Get Configuration record
2096
- * @param resourceGroupName Resource Group Name
2097
- * @param resourceName Maintenance Configuration Name
2098
- * @param options The options parameters.
2099
- */
2100
- get(resourceGroupName, resourceName, options) {
2101
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$2);
2102
- }
2103
- /**
2104
- * Create or Update configuration record
2105
- * @param resourceGroupName Resource Group Name
2106
- * @param resourceName Maintenance Configuration Name
2107
- * @param configuration The configuration
2108
- * @param options The options parameters.
2109
- */
2110
- createOrUpdate(resourceGroupName, resourceName, configuration, options) {
2111
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, configuration, options }, createOrUpdateOperationSpec$2);
2112
- }
2113
- /**
2114
- * Delete Configuration record
2115
- * @param resourceGroupName Resource Group Name
2116
- * @param resourceName Maintenance Configuration Name
2117
- * @param options The options parameters.
2118
- */
2119
- delete(resourceGroupName, resourceName, options) {
2120
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$2);
2121
- }
2122
- /**
2123
- * Patch configuration record
2124
- * @param resourceGroupName Resource Group Name
2125
- * @param resourceName Maintenance Configuration Name
2126
- * @param configuration The configuration
2127
- * @param options The options parameters.
2128
- */
2129
- update(resourceGroupName, resourceName, configuration, options) {
2130
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, configuration, options }, updateOperationSpec$2);
2131
- }
2132
- /**
2133
- * Get Configuration records within a subscription
2134
- * @param options The options parameters.
2135
- */
2136
- _list(options) {
2137
- return this.client.sendOperationRequest({ options }, listOperationSpec$5);
2138
- }
2139
- }
2140
- // Operation Specifications
2141
- const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2142
- const getOperationSpec$2 = {
2143
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}",
2144
- httpMethod: "GET",
2145
- responses: {
2146
- 200: {
2147
- bodyMapper: MaintenanceConfiguration,
2148
- },
2149
- default: {
2150
- bodyMapper: MaintenanceError,
2151
- },
2152
- },
2153
- queryParameters: [apiVersion],
2154
- urlParameters: [
2155
- $host,
2156
- subscriptionId,
2157
- resourceName,
2158
- resourceGroupName1,
2159
- ],
2160
- headerParameters: [accept],
2161
- serializer: serializer$7,
2162
- };
2163
- const createOrUpdateOperationSpec$2 = {
2164
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}",
2165
- httpMethod: "PUT",
2166
- responses: {
2167
- 200: {
2168
- bodyMapper: MaintenanceConfiguration,
2169
- },
2170
- 201: {
2171
- bodyMapper: MaintenanceConfiguration,
2172
- },
2173
- default: {
2174
- bodyMapper: MaintenanceError,
2175
- },
2176
- },
2177
- requestBody: configuration,
2178
- queryParameters: [apiVersion],
2179
- urlParameters: [
2180
- $host,
2181
- subscriptionId,
2182
- resourceName,
2183
- resourceGroupName1,
2184
- ],
2185
- headerParameters: [accept, contentType],
2186
- mediaType: "json",
2187
- serializer: serializer$7,
2188
- };
2189
- const deleteOperationSpec$2 = {
2190
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}",
2191
- httpMethod: "DELETE",
2192
- responses: {
2193
- 200: {
2194
- bodyMapper: MaintenanceConfiguration,
2195
- },
2196
- 204: {},
2197
- default: {
2198
- bodyMapper: MaintenanceError,
2199
- },
2200
- },
2201
- queryParameters: [apiVersion],
2202
- urlParameters: [
2203
- $host,
2204
- subscriptionId,
2205
- resourceName,
2206
- resourceGroupName1,
2207
- ],
2208
- headerParameters: [accept],
2209
- serializer: serializer$7,
2210
- };
2211
- const updateOperationSpec$2 = {
2212
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}",
2213
- httpMethod: "PATCH",
2214
- responses: {
2215
- 200: {
2216
- bodyMapper: MaintenanceConfiguration,
2217
- },
2218
- default: {
2219
- bodyMapper: MaintenanceError,
2220
- },
2221
- },
2222
- requestBody: configuration,
2223
- queryParameters: [apiVersion],
2224
- urlParameters: [
2225
- $host,
2226
- subscriptionId,
2227
- resourceName,
2228
- resourceGroupName1,
2229
- ],
2230
- headerParameters: [accept, contentType],
2231
- mediaType: "json",
2232
- serializer: serializer$7,
2233
- };
2234
- const listOperationSpec$5 = {
2235
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations",
2236
- httpMethod: "GET",
2237
- responses: {
2238
- 200: {
2239
- bodyMapper: ListMaintenanceConfigurationsResult,
2240
- },
2241
- default: {
2242
- bodyMapper: MaintenanceError,
2243
- },
2244
- },
2245
- queryParameters: [apiVersion],
2246
- urlParameters: [$host, subscriptionId],
2247
- headerParameters: [accept],
2248
- serializer: serializer$7,
2249
- };
2250
-
2251
- /*
2252
- * Copyright (c) Microsoft Corporation.
2253
- * Licensed under the MIT License.
2254
- *
2255
- * Code generated by Microsoft (R) AutoRest Code Generator.
2256
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2257
- */
2258
- /// <reference lib="esnext.asynciterable" />
2259
- /** Class containing MaintenanceConfigurationsForResourceGroup operations. */
2260
- class MaintenanceConfigurationsForResourceGroupImpl {
2261
- /**
2262
- * Initialize a new instance of the class MaintenanceConfigurationsForResourceGroup class.
2263
- * @param client Reference to the service client
2264
- */
2265
- constructor(client) {
2266
- this.client = client;
2267
- }
2268
- /**
2269
- * Get Configuration records within a subscription and resource group
2270
- * @param resourceGroupName Resource Group Name
2271
- * @param options The options parameters.
2272
- */
2273
- list(resourceGroupName, options) {
2274
- const iter = this.listPagingAll(resourceGroupName, options);
2275
- return {
2276
- next() {
2277
- return iter.next();
2278
- },
2279
- [Symbol.asyncIterator]() {
2280
- return this;
2281
- },
2282
- byPage: (settings) => {
2283
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2284
- throw new Error("maxPageSize is not supported by this operation.");
2285
- }
2286
- return this.listPagingPage(resourceGroupName, options, settings);
2287
- },
2288
- };
2289
- }
2290
- listPagingPage(resourceGroupName, options, _settings) {
2291
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2292
- let result;
2293
- result = yield tslib.__await(this._list(resourceGroupName, options));
2294
- yield yield tslib.__await(result.value || []);
2295
- });
2296
- }
2297
- listPagingAll(resourceGroupName, options) {
2298
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2299
- var _a, e_1, _b, _c;
2300
- try {
2301
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2302
- _c = _f.value;
2303
- _d = false;
2304
- const page = _c;
2305
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2306
- }
2307
- }
2308
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2309
- finally {
2310
- try {
2311
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2312
- }
2313
- finally { if (e_1) throw e_1.error; }
2314
- }
2315
- });
2316
- }
2317
- /**
2318
- * Get Configuration records within a subscription and resource group
2319
- * @param resourceGroupName Resource Group Name
2320
- * @param options The options parameters.
2321
- */
2322
- _list(resourceGroupName, options) {
2323
- return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec$4);
2324
- }
2325
- }
2326
- // Operation Specifications
2327
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2328
- const listOperationSpec$4 = {
2329
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations",
2330
- httpMethod: "GET",
2331
- responses: {
2332
- 200: {
2333
- bodyMapper: ListMaintenanceConfigurationsResult,
2334
- },
2335
- default: {
2336
- bodyMapper: MaintenanceError,
2337
- },
2338
- },
2339
- queryParameters: [apiVersion],
2340
- urlParameters: [
2341
- $host,
2342
- subscriptionId,
2343
- resourceGroupName1,
2344
- ],
2345
- headerParameters: [accept],
2346
- serializer: serializer$6,
2347
- };
2348
-
2349
- /*
2350
- * Copyright (c) Microsoft Corporation.
2351
- * Licensed under the MIT License.
2352
- *
2353
- * Code generated by Microsoft (R) AutoRest Code Generator.
2354
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2355
- */
2356
- /// <reference lib="esnext.asynciterable" />
2357
- /** Class containing ApplyUpdateForResourceGroup operations. */
2358
- class ApplyUpdateForResourceGroupImpl {
2359
- /**
2360
- * Initialize a new instance of the class ApplyUpdateForResourceGroup class.
2361
- * @param client Reference to the service client
2362
- */
2363
- constructor(client) {
2364
- this.client = client;
2365
- }
2366
- /**
2367
- * Get Configuration records within a subscription and resource group
2368
- * @param resourceGroupName Resource Group Name
2369
- * @param options The options parameters.
2370
- */
2371
- list(resourceGroupName, options) {
2372
- const iter = this.listPagingAll(resourceGroupName, options);
2373
- return {
2374
- next() {
2375
- return iter.next();
2376
- },
2377
- [Symbol.asyncIterator]() {
2378
- return this;
2379
- },
2380
- byPage: (settings) => {
2381
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2382
- throw new Error("maxPageSize is not supported by this operation.");
2383
- }
2384
- return this.listPagingPage(resourceGroupName, options, settings);
2385
- },
2386
- };
2387
- }
2388
- listPagingPage(resourceGroupName, options, _settings) {
2389
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2390
- let result;
2391
- result = yield tslib.__await(this._list(resourceGroupName, options));
2392
- yield yield tslib.__await(result.value || []);
2393
- });
2394
- }
2395
- listPagingAll(resourceGroupName, options) {
2396
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2397
- var _a, e_1, _b, _c;
2398
- try {
2399
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2400
- _c = _f.value;
2401
- _d = false;
2402
- const page = _c;
2403
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2404
- }
2405
- }
2406
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2407
- finally {
2408
- try {
2409
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2410
- }
2411
- finally { if (e_1) throw e_1.error; }
2412
- }
2413
- });
2414
- }
2415
- /**
2416
- * Get Configuration records within a subscription and resource group
2417
- * @param resourceGroupName Resource Group Name
2418
- * @param options The options parameters.
2419
- */
2420
- _list(resourceGroupName, options) {
2421
- return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec$3);
2422
- }
2423
- }
2424
- // Operation Specifications
2425
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2426
- const listOperationSpec$3 = {
2427
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/applyUpdates",
2428
- httpMethod: "GET",
2429
- responses: {
2430
- 200: {
2431
- bodyMapper: ListApplyUpdate,
2432
- },
2433
- default: {
2434
- bodyMapper: MaintenanceError,
2435
- },
2436
- },
2437
- queryParameters: [apiVersion],
2438
- urlParameters: [
2439
- $host,
2440
- subscriptionId,
2441
- resourceGroupName1,
2442
- ],
2443
- headerParameters: [accept],
2444
- serializer: serializer$5,
2445
- };
2446
-
2447
- /*
2448
- * Copyright (c) Microsoft Corporation.
2449
- * Licensed under the MIT License.
2450
- *
2451
- * Code generated by Microsoft (R) AutoRest Code Generator.
2452
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2453
- */
2454
- /// <reference lib="esnext.asynciterable" />
2455
- /** Class containing ConfigurationAssignmentsWithinSubscription operations. */
2456
- class ConfigurationAssignmentsWithinSubscriptionImpl {
2457
- /**
2458
- * Initialize a new instance of the class ConfigurationAssignmentsWithinSubscription class.
2459
- * @param client Reference to the service client
2460
- */
2461
- constructor(client) {
2462
- this.client = client;
2463
- }
2464
- /**
2465
- * Get configuration assignment within a subscription
2466
- * @param options The options parameters.
2467
- */
2468
- list(options) {
2469
- const iter = this.listPagingAll(options);
2470
- return {
2471
- next() {
2472
- return iter.next();
2473
- },
2474
- [Symbol.asyncIterator]() {
2475
- return this;
2476
- },
2477
- byPage: (settings) => {
2478
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2479
- throw new Error("maxPageSize is not supported by this operation.");
2480
- }
2481
- return this.listPagingPage(options, settings);
2482
- },
2483
- };
2484
- }
2485
- listPagingPage(options, _settings) {
2486
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2487
- let result;
2488
- result = yield tslib.__await(this._list(options));
2489
- yield yield tslib.__await(result.value || []);
2490
- });
2491
- }
2492
- listPagingAll(options) {
2493
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2494
- var _a, e_1, _b, _c;
2495
- try {
2496
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2497
- _c = _f.value;
2498
- _d = false;
2499
- const page = _c;
2500
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2501
- }
2502
- }
2503
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2504
- finally {
2505
- try {
2506
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2507
- }
2508
- finally { if (e_1) throw e_1.error; }
2509
- }
2510
- });
2511
- }
2512
- /**
2513
- * Get configuration assignment within a subscription
2514
- * @param options The options parameters.
2515
- */
2516
- _list(options) {
2517
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
2518
- }
2519
- }
2520
- // Operation Specifications
2521
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2522
- const listOperationSpec$2 = {
2523
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments",
2524
- httpMethod: "GET",
2525
- responses: {
2526
- 200: {
2527
- bodyMapper: ListConfigurationAssignmentsResult,
2528
- },
2529
- default: {
2530
- bodyMapper: MaintenanceError,
2531
- },
2532
- },
2533
- queryParameters: [apiVersion],
2534
- urlParameters: [$host, subscriptionId],
2535
- headerParameters: [accept],
2536
- serializer: serializer$4,
2537
- };
2538
-
2539
- /*
2540
- * Copyright (c) Microsoft Corporation.
2541
- * Licensed under the MIT License.
2542
- *
2543
- * Code generated by Microsoft (R) AutoRest Code Generator.
2544
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2545
- */
2546
- /** Class containing ConfigurationAssignmentsForSubscriptions operations. */
2547
- class ConfigurationAssignmentsForSubscriptionsImpl {
2548
- /**
2549
- * Initialize a new instance of the class ConfigurationAssignmentsForSubscriptions class.
2550
- * @param client Reference to the service client
2551
- */
2552
- constructor(client) {
2553
- this.client = client;
2554
- }
2555
- /**
2556
- * Get configuration assignment for resource..
2557
- * @param configurationAssignmentName Configuration assignment name
2558
- * @param options The options parameters.
2559
- */
2560
- get(configurationAssignmentName, options) {
2561
- return this.client.sendOperationRequest({ configurationAssignmentName, options }, getOperationSpec$1);
2562
- }
2563
- /**
2564
- * Register configuration for resource.
2565
- * @param configurationAssignmentName Configuration assignment name
2566
- * @param configurationAssignment The configurationAssignment
2567
- * @param options The options parameters.
2568
- */
2569
- createOrUpdate(configurationAssignmentName, configurationAssignment, options) {
2570
- return this.client.sendOperationRequest({ configurationAssignmentName, configurationAssignment, options }, createOrUpdateOperationSpec$1);
2571
- }
2572
- /**
2573
- * Register configuration for resource.
2574
- * @param configurationAssignmentName Configuration assignment name
2575
- * @param configurationAssignment The configurationAssignment
2576
- * @param options The options parameters.
2577
- */
2578
- update(configurationAssignmentName, configurationAssignment, options) {
2579
- return this.client.sendOperationRequest({ configurationAssignmentName, configurationAssignment, options }, updateOperationSpec$1);
2580
- }
2581
- /**
2582
- * Unregister configuration for resource.
2583
- * @param configurationAssignmentName Unique configuration assignment name
2584
- * @param options The options parameters.
2585
- */
2586
- delete(configurationAssignmentName, options) {
2587
- return this.client.sendOperationRequest({ configurationAssignmentName, options }, deleteOperationSpec$1);
2588
- }
2589
- }
2590
- // Operation Specifications
2591
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2592
- const getOperationSpec$1 = {
2593
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2594
- httpMethod: "GET",
2595
- responses: {
2596
- 200: {
2597
- bodyMapper: ConfigurationAssignment,
2598
- },
2599
- default: {
2600
- bodyMapper: MaintenanceError,
2601
- },
2602
- },
2603
- queryParameters: [apiVersion],
2604
- urlParameters: [
2605
- $host,
2606
- subscriptionId,
2607
- configurationAssignmentName,
2608
- ],
2609
- headerParameters: [accept],
2610
- serializer: serializer$3,
2611
- };
2612
- const createOrUpdateOperationSpec$1 = {
2613
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2614
- httpMethod: "PUT",
2615
- responses: {
2616
- 200: {
2617
- bodyMapper: ConfigurationAssignment,
2618
- },
2619
- 201: {
2620
- bodyMapper: ConfigurationAssignment,
2621
- },
2622
- default: {
2623
- bodyMapper: MaintenanceError,
2624
- },
2625
- },
2626
- requestBody: configurationAssignment,
2627
- queryParameters: [apiVersion],
2628
- urlParameters: [
2629
- $host,
2630
- subscriptionId,
2631
- configurationAssignmentName,
2632
- ],
2633
- headerParameters: [accept, contentType],
2634
- mediaType: "json",
2635
- serializer: serializer$3,
2636
- };
2637
- const updateOperationSpec$1 = {
2638
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2639
- httpMethod: "PATCH",
2640
- responses: {
2641
- 200: {
2642
- bodyMapper: ConfigurationAssignment,
2643
- },
2644
- default: {
2645
- bodyMapper: MaintenanceError,
2646
- },
2647
- },
2648
- requestBody: configurationAssignment,
2649
- queryParameters: [apiVersion],
2650
- urlParameters: [
2651
- $host,
2652
- subscriptionId,
2653
- configurationAssignmentName,
2654
- ],
2655
- headerParameters: [accept, contentType],
2656
- mediaType: "json",
2657
- serializer: serializer$3,
2658
- };
2659
- const deleteOperationSpec$1 = {
2660
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2661
- httpMethod: "DELETE",
2662
- responses: {
2663
- 200: {
2664
- bodyMapper: ConfigurationAssignment,
2665
- },
2666
- 204: {},
2667
- default: {
2668
- bodyMapper: MaintenanceError,
2669
- },
2670
- },
2671
- queryParameters: [apiVersion],
2672
- urlParameters: [
2673
- $host,
2674
- subscriptionId,
2675
- configurationAssignmentName,
2676
- ],
2677
- headerParameters: [accept],
2678
- serializer: serializer$3,
2679
- };
2680
-
2681
- /*
2682
- * Copyright (c) Microsoft Corporation.
2683
- * Licensed under the MIT License.
2684
- *
2685
- * Code generated by Microsoft (R) AutoRest Code Generator.
2686
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2687
- */
2688
- /** Class containing ConfigurationAssignmentsForResourceGroup operations. */
2689
- class ConfigurationAssignmentsForResourceGroupImpl {
2690
- /**
2691
- * Initialize a new instance of the class ConfigurationAssignmentsForResourceGroup class.
2692
- * @param client Reference to the service client
2693
- */
2694
- constructor(client) {
2695
- this.client = client;
2696
- }
2697
- /**
2698
- * Get configuration assignment for resource..
2699
- * @param resourceGroupName Resource group name
2700
- * @param configurationAssignmentName Configuration assignment name
2701
- * @param options The options parameters.
2702
- */
2703
- get(resourceGroupName, configurationAssignmentName, options) {
2704
- return this.client.sendOperationRequest({ resourceGroupName, configurationAssignmentName, options }, getOperationSpec);
2705
- }
2706
- /**
2707
- * Register configuration for resource.
2708
- * @param resourceGroupName Resource group name
2709
- * @param configurationAssignmentName Configuration assignment name
2710
- * @param configurationAssignment The configurationAssignment
2711
- * @param options The options parameters.
2712
- */
2713
- createOrUpdate(resourceGroupName, configurationAssignmentName, configurationAssignment, options) {
2714
- return this.client.sendOperationRequest({
2715
- resourceGroupName,
2716
- configurationAssignmentName,
2717
- configurationAssignment,
2718
- options,
2719
- }, createOrUpdateOperationSpec);
2720
- }
2721
- /**
2722
- * Register configuration for resource.
2723
- * @param resourceGroupName Resource group name
2724
- * @param configurationAssignmentName Configuration assignment name
2725
- * @param configurationAssignment The configurationAssignment
2726
- * @param options The options parameters.
2727
- */
2728
- update(resourceGroupName, configurationAssignmentName, configurationAssignment, options) {
2729
- return this.client.sendOperationRequest({
2730
- resourceGroupName,
2731
- configurationAssignmentName,
2732
- configurationAssignment,
2733
- options,
2734
- }, updateOperationSpec);
2735
- }
2736
- /**
2737
- * Unregister configuration for resource.
2738
- * @param resourceGroupName Resource group name
2739
- * @param configurationAssignmentName Unique configuration assignment name
2740
- * @param options The options parameters.
2741
- */
2742
- delete(resourceGroupName, configurationAssignmentName, options) {
2743
- return this.client.sendOperationRequest({ resourceGroupName, configurationAssignmentName, options }, deleteOperationSpec);
2744
- }
2745
- }
2746
- // Operation Specifications
2747
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2748
- const getOperationSpec = {
2749
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2750
- httpMethod: "GET",
2751
- responses: {
2752
- 200: {
2753
- bodyMapper: ConfigurationAssignment,
2754
- },
2755
- default: {
2756
- bodyMapper: MaintenanceError,
2757
- },
2758
- },
2759
- queryParameters: [apiVersion],
2760
- urlParameters: [
2761
- $host,
2762
- subscriptionId,
2763
- resourceGroupName1,
2764
- configurationAssignmentName1,
2765
- ],
2766
- headerParameters: [accept],
2767
- serializer: serializer$2,
2768
- };
2769
- const createOrUpdateOperationSpec = {
2770
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2771
- httpMethod: "PUT",
2772
- responses: {
2773
- 200: {
2774
- bodyMapper: ConfigurationAssignment,
2775
- },
2776
- 201: {
2777
- bodyMapper: ConfigurationAssignment,
2778
- },
2779
- default: {
2780
- bodyMapper: MaintenanceError,
2781
- },
2782
- },
2783
- requestBody: configurationAssignment,
2784
- queryParameters: [apiVersion],
2785
- urlParameters: [
2786
- $host,
2787
- subscriptionId,
2788
- resourceGroupName1,
2789
- configurationAssignmentName,
2790
- ],
2791
- headerParameters: [accept, contentType],
2792
- mediaType: "json",
2793
- serializer: serializer$2,
2794
- };
2795
- const updateOperationSpec = {
2796
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2797
- httpMethod: "PATCH",
2798
- responses: {
2799
- 200: {
2800
- bodyMapper: ConfigurationAssignment,
2801
- },
2802
- default: {
2803
- bodyMapper: MaintenanceError,
2804
- },
2805
- },
2806
- requestBody: configurationAssignment,
2807
- queryParameters: [apiVersion],
2808
- urlParameters: [
2809
- $host,
2810
- subscriptionId,
2811
- resourceGroupName1,
2812
- configurationAssignmentName,
2813
- ],
2814
- headerParameters: [accept, contentType],
2815
- mediaType: "json",
2816
- serializer: serializer$2,
2817
- };
2818
- const deleteOperationSpec = {
2819
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}",
2820
- httpMethod: "DELETE",
2821
- responses: {
2822
- 200: {
2823
- bodyMapper: ConfigurationAssignment,
2824
- },
2825
- 204: {},
2826
- default: {
2827
- bodyMapper: MaintenanceError,
2828
- },
2829
- },
2830
- queryParameters: [apiVersion],
2831
- urlParameters: [
2832
- $host,
2833
- subscriptionId,
2834
- resourceGroupName1,
2835
- configurationAssignmentName,
2836
- ],
2837
- headerParameters: [accept],
2838
- serializer: serializer$2,
2839
- };
2840
-
2841
- /*
2842
- * Copyright (c) Microsoft Corporation.
2843
- * Licensed under the MIT License.
2844
- *
2845
- * Code generated by Microsoft (R) AutoRest Code Generator.
2846
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2847
- */
2848
- /// <reference lib="esnext.asynciterable" />
2849
- /** Class containing Operations operations. */
2850
- class OperationsImpl {
2851
- /**
2852
- * Initialize a new instance of the class Operations class.
2853
- * @param client Reference to the service client
2854
- */
2855
- constructor(client) {
2856
- this.client = client;
2857
- }
2858
- /**
2859
- * List the available operations supported by the Microsoft.Maintenance resource provider
2860
- * @param options The options parameters.
2861
- */
2862
- list(options) {
2863
- const iter = this.listPagingAll(options);
2864
- return {
2865
- next() {
2866
- return iter.next();
2867
- },
2868
- [Symbol.asyncIterator]() {
2869
- return this;
2870
- },
2871
- byPage: (settings) => {
2872
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2873
- throw new Error("maxPageSize is not supported by this operation.");
2874
- }
2875
- return this.listPagingPage(options, settings);
2876
- },
2877
- };
2878
- }
2879
- listPagingPage(options, _settings) {
2880
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2881
- let result;
2882
- result = yield tslib.__await(this._list(options));
2883
- yield yield tslib.__await(result.value || []);
2884
- });
2885
- }
2886
- listPagingAll(options) {
2887
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2888
- var _a, e_1, _b, _c;
2889
- try {
2890
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2891
- _c = _f.value;
2892
- _d = false;
2893
- const page = _c;
2894
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2895
- }
2896
- }
2897
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2898
- finally {
2899
- try {
2900
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2901
- }
2902
- finally { if (e_1) throw e_1.error; }
2903
- }
2904
- });
2905
- }
2906
- /**
2907
- * List the available operations supported by the Microsoft.Maintenance resource provider
2908
- * @param options The options parameters.
2909
- */
2910
- _list(options) {
2911
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
2912
- }
2913
- }
2914
- // Operation Specifications
2915
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2916
- const listOperationSpec$1 = {
2917
- path: "/providers/Microsoft.Maintenance/operations",
2918
- httpMethod: "GET",
2919
- responses: {
2920
- 200: {
2921
- bodyMapper: OperationsListResult,
2922
- },
2923
- default: {
2924
- bodyMapper: MaintenanceError,
2925
- },
2926
- },
2927
- queryParameters: [apiVersion],
2928
- urlParameters: [$host],
2929
- headerParameters: [accept],
2930
- serializer: serializer$1,
2931
- };
2932
-
2933
- /*
2934
- * Copyright (c) Microsoft Corporation.
2935
- * Licensed under the MIT License.
2936
- *
2937
- * Code generated by Microsoft (R) AutoRest Code Generator.
2938
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2939
- */
2940
- /// <reference lib="esnext.asynciterable" />
2941
- /** Class containing Updates operations. */
2942
- class UpdatesImpl {
2943
- /**
2944
- * Initialize a new instance of the class Updates class.
2945
- * @param client Reference to the service client
2946
- */
2947
- constructor(client) {
2948
- this.client = client;
2949
- }
2950
- /**
2951
- * Get updates to resources.
2952
- * @param resourceGroupName Resource group name
2953
- * @param providerName Resource provider name
2954
- * @param resourceParentType Resource parent type
2955
- * @param resourceParentName Resource parent identifier
2956
- * @param resourceType Resource type
2957
- * @param resourceName Resource identifier
2958
- * @param options The options parameters.
2959
- */
2960
- listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
2961
- const iter = this.listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options);
2962
- return {
2963
- next() {
2964
- return iter.next();
2965
- },
2966
- [Symbol.asyncIterator]() {
2967
- return this;
2968
- },
2969
- byPage: (settings) => {
2970
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2971
- throw new Error("maxPageSize is not supported by this operation.");
2972
- }
2973
- return this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, settings);
2974
- },
2975
- };
2976
- }
2977
- listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
2978
- return tslib.__asyncGenerator(this, arguments, function* listParentPagingPage_1() {
2979
- let result;
2980
- result = yield tslib.__await(this._listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options));
2981
- yield yield tslib.__await(result.value || []);
2982
- });
2983
- }
2984
- listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
2985
- return tslib.__asyncGenerator(this, arguments, function* listParentPagingAll_1() {
2986
- var _a, e_1, _b, _c;
2987
- try {
2988
- for (var _d = true, _e = tslib.__asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2989
- _c = _f.value;
2990
- _d = false;
2991
- const page = _c;
2992
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2993
- }
2994
- }
2995
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2996
- finally {
2997
- try {
2998
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2999
- }
3000
- finally { if (e_1) throw e_1.error; }
3001
- }
3002
- });
3003
- }
3004
- /**
3005
- * Get updates to resources.
3006
- * @param resourceGroupName Resource group name
3007
- * @param providerName Resource provider name
3008
- * @param resourceType Resource type
3009
- * @param resourceName Resource identifier
3010
- * @param options The options parameters.
3011
- */
3012
- list(resourceGroupName, providerName, resourceType, resourceName, options) {
3013
- const iter = this.listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options);
3014
- return {
3015
- next() {
3016
- return iter.next();
3017
- },
3018
- [Symbol.asyncIterator]() {
3019
- return this;
3020
- },
3021
- byPage: (settings) => {
3022
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3023
- throw new Error("maxPageSize is not supported by this operation.");
3024
- }
3025
- return this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, settings);
3026
- },
3027
- };
3028
- }
3029
- listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
3030
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3031
- let result;
3032
- result = yield tslib.__await(this._list(resourceGroupName, providerName, resourceType, resourceName, options));
3033
- yield yield tslib.__await(result.value || []);
3034
- });
3035
- }
3036
- listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options) {
3037
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3038
- var _a, e_2, _b, _c;
3039
- try {
3040
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3041
- _c = _f.value;
3042
- _d = false;
3043
- const page = _c;
3044
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3045
- }
3046
- }
3047
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
3048
- finally {
3049
- try {
3050
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3051
- }
3052
- finally { if (e_2) throw e_2.error; }
3053
- }
3054
- });
3055
- }
3056
- /**
3057
- * Get updates to resources.
3058
- * @param resourceGroupName Resource group name
3059
- * @param providerName Resource provider name
3060
- * @param resourceParentType Resource parent type
3061
- * @param resourceParentName Resource parent identifier
3062
- * @param resourceType Resource type
3063
- * @param resourceName Resource identifier
3064
- * @param options The options parameters.
3065
- */
3066
- _listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
3067
- return this.client.sendOperationRequest({
3068
- resourceGroupName,
3069
- providerName,
3070
- resourceParentType,
3071
- resourceParentName,
3072
- resourceType,
3073
- resourceName,
3074
- options,
3075
- }, listParentOperationSpec);
3076
- }
3077
- /**
3078
- * Get updates to resources.
3079
- * @param resourceGroupName Resource group name
3080
- * @param providerName Resource provider name
3081
- * @param resourceType Resource type
3082
- * @param resourceName Resource identifier
3083
- * @param options The options parameters.
3084
- */
3085
- _list(resourceGroupName, providerName, resourceType, resourceName, options) {
3086
- return this.client.sendOperationRequest({ resourceGroupName, providerName, resourceType, resourceName, options }, listOperationSpec);
3087
- }
3088
- }
3089
- // Operation Specifications
3090
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3091
- const listParentOperationSpec = {
3092
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates",
3093
- httpMethod: "GET",
3094
- responses: {
3095
- 200: {
3096
- bodyMapper: ListUpdatesResult,
3097
- },
3098
- default: {
3099
- bodyMapper: MaintenanceError,
3100
- },
3101
- },
3102
- queryParameters: [apiVersion],
3103
- urlParameters: [
3104
- $host,
3105
- subscriptionId,
3106
- resourceType,
3107
- resourceName,
3108
- resourceGroupName1,
3109
- providerName,
3110
- resourceParentType,
3111
- resourceParentName,
3112
- ],
3113
- headerParameters: [accept],
3114
- serializer,
3115
- };
3116
- const listOperationSpec = {
3117
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/updates",
3118
- httpMethod: "GET",
3119
- responses: {
3120
- 200: {
3121
- bodyMapper: ListUpdatesResult,
3122
- },
3123
- default: {
3124
- bodyMapper: MaintenanceError,
3125
- },
3126
- },
3127
- queryParameters: [apiVersion],
3128
- urlParameters: [
3129
- $host,
3130
- subscriptionId,
3131
- resourceType,
3132
- resourceName,
3133
- resourceGroupName1,
3134
- providerName,
3135
- ],
3136
- headerParameters: [accept],
3137
- serializer,
3138
- };
3139
-
3140
- /*
3141
- * Copyright (c) Microsoft Corporation.
3142
- * Licensed under the MIT License.
3143
- *
3144
- * Code generated by Microsoft (R) AutoRest Code Generator.
3145
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3146
- */
3147
- class MaintenanceManagementClient extends coreClient__namespace.ServiceClient {
3148
- /**
3149
- * Initializes a new instance of the MaintenanceManagementClient class.
3150
- * @param credentials Subscription credentials which uniquely identify client subscription.
3151
- * @param subscriptionId The ID of the target subscription. The value must be an UUID.
3152
- * @param options The parameter options
3153
- */
3154
- constructor(credentials, subscriptionId, options) {
3155
- var _a, _b, _c;
3156
- if (credentials === undefined) {
3157
- throw new Error("'credentials' cannot be null");
3158
- }
3159
- if (subscriptionId === undefined) {
3160
- throw new Error("'subscriptionId' cannot be null");
3161
- }
3162
- // Initializing default values for options
3163
- if (!options) {
3164
- options = {};
3165
- }
3166
- const defaults = {
3167
- requestContentType: "application/json; charset=utf-8",
3168
- credential: credentials,
3169
- };
3170
- const packageDetails = `azsdk-js-arm-maintenance/1.0.0-beta.2`;
3171
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3172
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3173
- : `${packageDetails}`;
3174
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3175
- userAgentPrefix,
3176
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3177
- super(optionsWithDefaults);
3178
- let bearerTokenAuthenticationPolicyFound = false;
3179
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3180
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3181
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3182
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3183
- }
3184
- if (!options ||
3185
- !options.pipeline ||
3186
- options.pipeline.getOrderedPolicies().length == 0 ||
3187
- !bearerTokenAuthenticationPolicyFound) {
3188
- this.pipeline.removePolicy({
3189
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
3190
- });
3191
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3192
- credential: credentials,
3193
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3194
- challengeCallbacks: {
3195
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
3196
- },
3197
- }));
3198
- }
3199
- // Parameter assignments
3200
- this.subscriptionId = subscriptionId;
3201
- // Assigning values to Constant parameters
3202
- this.$host = options.$host || "https://management.azure.com";
3203
- this.apiVersion = options.apiVersion || "2023-10-01-preview";
3204
- this.scheduledEvent = new ScheduledEventImpl(this);
3205
- this.publicMaintenanceConfigurations =
3206
- new PublicMaintenanceConfigurationsImpl(this);
3207
- this.applyUpdates = new ApplyUpdatesImpl(this);
3208
- this.configurationAssignments = new ConfigurationAssignmentsImpl(this);
3209
- this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);
3210
- this.maintenanceConfigurationsForResourceGroup =
3211
- new MaintenanceConfigurationsForResourceGroupImpl(this);
3212
- this.applyUpdateForResourceGroup = new ApplyUpdateForResourceGroupImpl(this);
3213
- this.configurationAssignmentsWithinSubscription =
3214
- new ConfigurationAssignmentsWithinSubscriptionImpl(this);
3215
- this.configurationAssignmentsForSubscriptions =
3216
- new ConfigurationAssignmentsForSubscriptionsImpl(this);
3217
- this.configurationAssignmentsForResourceGroup =
3218
- new ConfigurationAssignmentsForResourceGroupImpl(this);
3219
- this.operations = new OperationsImpl(this);
3220
- this.updates = new UpdatesImpl(this);
3221
- this.addCustomApiVersionPolicy(options.apiVersion);
3222
- }
3223
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
3224
- addCustomApiVersionPolicy(apiVersion) {
3225
- if (!apiVersion) {
3226
- return;
3227
- }
3228
- const apiVersionPolicy = {
3229
- name: "CustomApiVersionPolicy",
3230
- sendRequest(request, next) {
3231
- return tslib.__awaiter(this, void 0, void 0, function* () {
3232
- const param = request.url.split("?");
3233
- if (param.length > 1) {
3234
- const newParams = param[1].split("&").map((item) => {
3235
- if (item.indexOf("api-version") > -1) {
3236
- return "api-version=" + apiVersion;
3237
- }
3238
- else {
3239
- return item;
3240
- }
3241
- });
3242
- request.url = param[0] + "?" + newParams.join("&");
3243
- }
3244
- return next(request);
3245
- });
3246
- },
3247
- };
3248
- this.pipeline.addPolicy(apiVersionPolicy);
3249
- }
3250
- }
3251
-
3252
- exports.MaintenanceManagementClient = MaintenanceManagementClient;
3253
- exports.getContinuationToken = getContinuationToken;
3254
- //# sourceMappingURL=index.js.map