@azure/arm-maintenance 1.0.0-beta.1

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