@azure/arm-labservices 2.0.0 → 3.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 (415) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +70 -78
  5. package/dist/index.js +6456 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/samples-dev/deleteLab.d.ts +2 -0
  10. package/dist-esm/samples-dev/deleteLab.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/deleteLab.js +31 -0
  12. package/dist-esm/samples-dev/deleteLab.js.map +1 -0
  13. package/dist-esm/samples-dev/deleteLabPlan.d.ts +2 -0
  14. package/dist-esm/samples-dev/deleteLabPlan.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/deleteLabPlan.js +31 -0
  16. package/dist-esm/samples-dev/deleteLabPlan.js.map +1 -0
  17. package/dist-esm/samples-dev/deleteSchedule.d.ts +2 -0
  18. package/dist-esm/samples-dev/deleteSchedule.d.ts.map +1 -0
  19. package/dist-esm/samples-dev/deleteSchedule.js +32 -0
  20. package/dist-esm/samples-dev/deleteSchedule.js.map +1 -0
  21. package/dist-esm/samples-dev/deleteUser.d.ts +2 -0
  22. package/dist-esm/samples-dev/deleteUser.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/deleteUser.js +32 -0
  24. package/dist-esm/samples-dev/deleteUser.js.map +1 -0
  25. package/dist-esm/samples-dev/getImage.d.ts +2 -0
  26. package/dist-esm/samples-dev/getImage.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/getImage.js +32 -0
  28. package/dist-esm/samples-dev/getImage.js.map +1 -0
  29. package/dist-esm/samples-dev/getLab.d.ts +2 -0
  30. package/dist-esm/samples-dev/getLab.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/getLab.js +31 -0
  32. package/dist-esm/samples-dev/getLab.js.map +1 -0
  33. package/dist-esm/samples-dev/getLabPlan.d.ts +2 -0
  34. package/dist-esm/samples-dev/getLabPlan.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/getLabPlan.js +31 -0
  36. package/dist-esm/samples-dev/getLabPlan.js.map +1 -0
  37. package/dist-esm/samples-dev/getListSchedule.d.ts +2 -0
  38. package/dist-esm/samples-dev/getListSchedule.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/getListSchedule.js +45 -0
  40. package/dist-esm/samples-dev/getListSchedule.js.map +1 -0
  41. package/dist-esm/samples-dev/getOperationResult.d.ts +2 -0
  42. package/dist-esm/samples-dev/getOperationResult.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/getOperationResult.js +30 -0
  44. package/dist-esm/samples-dev/getOperationResult.js.map +1 -0
  45. package/dist-esm/samples-dev/getSchedule.d.ts +2 -0
  46. package/dist-esm/samples-dev/getSchedule.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/getSchedule.js +32 -0
  48. package/dist-esm/samples-dev/getSchedule.js.map +1 -0
  49. package/dist-esm/samples-dev/getUser.d.ts +2 -0
  50. package/dist-esm/samples-dev/getUser.d.ts.map +1 -0
  51. package/dist-esm/samples-dev/getUser.js +32 -0
  52. package/dist-esm/samples-dev/getUser.js.map +1 -0
  53. package/dist-esm/samples-dev/getVirtualMachine.d.ts +2 -0
  54. package/dist-esm/samples-dev/getVirtualMachine.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/getVirtualMachine.js +32 -0
  56. package/dist-esm/samples-dev/getVirtualMachine.js.map +1 -0
  57. package/dist-esm/samples-dev/inviteUser.d.ts +2 -0
  58. package/dist-esm/samples-dev/inviteUser.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/inviteUser.js +33 -0
  60. package/dist-esm/samples-dev/inviteUser.js.map +1 -0
  61. package/dist-esm/samples-dev/listImages.d.ts +2 -0
  62. package/dist-esm/samples-dev/listImages.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/listImages.js +45 -0
  64. package/dist-esm/samples-dev/listImages.js.map +1 -0
  65. package/dist-esm/samples-dev/listLabPlans.d.ts +2 -0
  66. package/dist-esm/samples-dev/listLabPlans.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/listLabPlans.js +43 -0
  68. package/dist-esm/samples-dev/listLabPlans.js.map +1 -0
  69. package/dist-esm/samples-dev/listLabs.d.ts +2 -0
  70. package/dist-esm/samples-dev/listLabs.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/listLabs.js +43 -0
  72. package/dist-esm/samples-dev/listLabs.js.map +1 -0
  73. package/dist-esm/samples-dev/listOperations.d.ts +2 -0
  74. package/dist-esm/samples-dev/listOperations.d.ts.map +1 -0
  75. package/dist-esm/samples-dev/listOperations.js +43 -0
  76. package/dist-esm/samples-dev/listOperations.js.map +1 -0
  77. package/dist-esm/samples-dev/listResourceGroupLabPlans.d.ts +2 -0
  78. package/dist-esm/samples-dev/listResourceGroupLabPlans.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/listResourceGroupLabPlans.js +44 -0
  80. package/dist-esm/samples-dev/listResourceGroupLabPlans.js.map +1 -0
  81. package/dist-esm/samples-dev/listResourceGroupLabs.d.ts +2 -0
  82. package/dist-esm/samples-dev/listResourceGroupLabs.d.ts.map +1 -0
  83. package/dist-esm/samples-dev/listResourceGroupLabs.js +44 -0
  84. package/dist-esm/samples-dev/listResourceGroupLabs.js.map +1 -0
  85. package/dist-esm/samples-dev/listSkus.d.ts +2 -0
  86. package/dist-esm/samples-dev/listSkus.d.ts.map +1 -0
  87. package/dist-esm/samples-dev/listSkus.js +43 -0
  88. package/dist-esm/samples-dev/listSkus.js.map +1 -0
  89. package/dist-esm/samples-dev/listUsages.d.ts +2 -0
  90. package/dist-esm/samples-dev/listUsages.d.ts.map +1 -0
  91. package/dist-esm/samples-dev/listUsages.js +44 -0
  92. package/dist-esm/samples-dev/listUsages.js.map +1 -0
  93. package/dist-esm/samples-dev/listUser.d.ts +2 -0
  94. package/dist-esm/samples-dev/listUser.d.ts.map +1 -0
  95. package/dist-esm/samples-dev/listUser.js +45 -0
  96. package/dist-esm/samples-dev/listUser.js.map +1 -0
  97. package/dist-esm/samples-dev/listVirtualMachine.d.ts +2 -0
  98. package/dist-esm/samples-dev/listVirtualMachine.d.ts.map +1 -0
  99. package/dist-esm/samples-dev/listVirtualMachine.js +45 -0
  100. package/dist-esm/samples-dev/listVirtualMachine.js.map +1 -0
  101. package/dist-esm/samples-dev/patchImage.d.ts +2 -0
  102. package/dist-esm/samples-dev/patchImage.d.ts.map +1 -0
  103. package/dist-esm/samples-dev/patchImage.js +33 -0
  104. package/dist-esm/samples-dev/patchImage.js.map +1 -0
  105. package/dist-esm/samples-dev/patchLab.d.ts +2 -0
  106. package/dist-esm/samples-dev/patchLab.d.ts.map +1 -0
  107. package/dist-esm/samples-dev/patchLab.js +32 -0
  108. package/dist-esm/samples-dev/patchLab.js.map +1 -0
  109. package/dist-esm/samples-dev/patchLabPlan.d.ts +2 -0
  110. package/dist-esm/samples-dev/patchLabPlan.d.ts.map +1 -0
  111. package/dist-esm/samples-dev/patchLabPlan.js +39 -0
  112. package/dist-esm/samples-dev/patchLabPlan.js.map +1 -0
  113. package/dist-esm/samples-dev/patchSchedule.d.ts +2 -0
  114. package/dist-esm/samples-dev/patchSchedule.d.ts.map +1 -0
  115. package/dist-esm/samples-dev/patchSchedule.js +39 -0
  116. package/dist-esm/samples-dev/patchSchedule.js.map +1 -0
  117. package/dist-esm/samples-dev/patchUser.d.ts +2 -0
  118. package/dist-esm/samples-dev/patchUser.d.ts.map +1 -0
  119. package/dist-esm/samples-dev/patchUser.js +33 -0
  120. package/dist-esm/samples-dev/patchUser.js.map +1 -0
  121. package/dist-esm/samples-dev/publishLab.d.ts +2 -0
  122. package/dist-esm/samples-dev/publishLab.d.ts.map +1 -0
  123. package/dist-esm/samples-dev/publishLab.js +31 -0
  124. package/dist-esm/samples-dev/publishLab.js.map +1 -0
  125. package/dist-esm/samples-dev/putImage.d.ts +2 -0
  126. package/dist-esm/samples-dev/putImage.d.ts.map +1 -0
  127. package/dist-esm/samples-dev/putImage.js +33 -0
  128. package/dist-esm/samples-dev/putImage.js.map +1 -0
  129. package/dist-esm/samples-dev/putLab.d.ts +2 -0
  130. package/dist-esm/samples-dev/putLab.d.ts.map +1 -0
  131. package/dist-esm/samples-dev/putLab.js +70 -0
  132. package/dist-esm/samples-dev/putLab.js.map +1 -0
  133. package/dist-esm/samples-dev/putLabPlan.d.ts +2 -0
  134. package/dist-esm/samples-dev/putLabPlan.d.ts.map +1 -0
  135. package/dist-esm/samples-dev/putLabPlan.js +58 -0
  136. package/dist-esm/samples-dev/putLabPlan.js.map +1 -0
  137. package/dist-esm/samples-dev/putSchedule.d.ts +2 -0
  138. package/dist-esm/samples-dev/putSchedule.d.ts.map +1 -0
  139. package/dist-esm/samples-dev/putSchedule.js +43 -0
  140. package/dist-esm/samples-dev/putSchedule.js.map +1 -0
  141. package/dist-esm/samples-dev/putUser.d.ts +2 -0
  142. package/dist-esm/samples-dev/putUser.d.ts.map +1 -0
  143. package/dist-esm/samples-dev/putUser.js +36 -0
  144. package/dist-esm/samples-dev/putUser.js.map +1 -0
  145. package/dist-esm/samples-dev/redeployVirtualMachine.d.ts +2 -0
  146. package/dist-esm/samples-dev/redeployVirtualMachine.d.ts.map +1 -0
  147. package/dist-esm/samples-dev/redeployVirtualMachine.js +32 -0
  148. package/dist-esm/samples-dev/redeployVirtualMachine.js.map +1 -0
  149. package/dist-esm/samples-dev/reimageVirtualMachine.d.ts +2 -0
  150. package/dist-esm/samples-dev/reimageVirtualMachine.d.ts.map +1 -0
  151. package/dist-esm/samples-dev/reimageVirtualMachine.js +32 -0
  152. package/dist-esm/samples-dev/reimageVirtualMachine.js.map +1 -0
  153. package/dist-esm/samples-dev/resetPasswordVirtualMachine.d.ts +2 -0
  154. package/dist-esm/samples-dev/resetPasswordVirtualMachine.d.ts.map +1 -0
  155. package/dist-esm/samples-dev/resetPasswordVirtualMachine.js +36 -0
  156. package/dist-esm/samples-dev/resetPasswordVirtualMachine.js.map +1 -0
  157. package/dist-esm/samples-dev/saveImageVirtualMachine.d.ts +2 -0
  158. package/dist-esm/samples-dev/saveImageVirtualMachine.d.ts.map +1 -0
  159. package/dist-esm/samples-dev/saveImageVirtualMachine.js +35 -0
  160. package/dist-esm/samples-dev/saveImageVirtualMachine.js.map +1 -0
  161. package/dist-esm/samples-dev/startVirtualMachine.d.ts +2 -0
  162. package/dist-esm/samples-dev/startVirtualMachine.d.ts.map +1 -0
  163. package/dist-esm/samples-dev/startVirtualMachine.js +32 -0
  164. package/dist-esm/samples-dev/startVirtualMachine.js.map +1 -0
  165. package/dist-esm/samples-dev/stopVirtualMachine.d.ts +2 -0
  166. package/dist-esm/samples-dev/stopVirtualMachine.d.ts.map +1 -0
  167. package/dist-esm/samples-dev/stopVirtualMachine.js +32 -0
  168. package/dist-esm/samples-dev/stopVirtualMachine.js.map +1 -0
  169. package/dist-esm/samples-dev/syncLab.d.ts +2 -0
  170. package/dist-esm/samples-dev/syncLab.d.ts.map +1 -0
  171. package/dist-esm/samples-dev/syncLab.js +31 -0
  172. package/dist-esm/samples-dev/syncLab.js.map +1 -0
  173. package/dist-esm/src/index.d.ts +5 -0
  174. package/dist-esm/src/index.d.ts.map +1 -0
  175. package/{esm/models/operationsMappers.js → dist-esm/src/index.js} +5 -2
  176. package/dist-esm/src/index.js.map +1 -0
  177. package/dist-esm/src/labServicesClient.d.ts +27 -0
  178. package/dist-esm/src/labServicesClient.d.ts.map +1 -0
  179. package/dist-esm/src/labServicesClient.js +60 -0
  180. package/dist-esm/src/labServicesClient.js.map +1 -0
  181. package/dist-esm/src/lroImpl.d.ts +16 -0
  182. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  183. package/dist-esm/src/lroImpl.js +29 -0
  184. package/dist-esm/src/lroImpl.js.map +1 -0
  185. package/dist-esm/src/models/index.d.ts +1638 -0
  186. package/dist-esm/src/models/index.d.ts.map +1 -0
  187. package/dist-esm/src/models/index.js +60 -0
  188. package/dist-esm/src/models/index.js.map +1 -0
  189. package/dist-esm/src/models/mappers.d.ts +67 -0
  190. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  191. package/{esm → dist-esm/src}/models/mappers.js +1768 -1224
  192. package/dist-esm/src/models/mappers.js.map +1 -0
  193. package/dist-esm/src/models/parameters.d.ts +31 -0
  194. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  195. package/dist-esm/src/models/parameters.js +270 -0
  196. package/dist-esm/src/models/parameters.js.map +1 -0
  197. package/dist-esm/src/operations/images.d.ts +70 -0
  198. package/dist-esm/src/operations/images.d.ts.map +1 -0
  199. package/dist-esm/src/operations/images.js +245 -0
  200. package/dist-esm/src/operations/images.js.map +1 -0
  201. package/{esm → dist-esm/src}/operations/index.d.ts +6 -4
  202. package/dist-esm/src/operations/index.d.ts.map +1 -0
  203. package/dist-esm/src/operations/index.js +18 -0
  204. package/dist-esm/src/operations/index.js.map +1 -0
  205. package/dist-esm/src/operations/labPlans.d.ts +134 -0
  206. package/dist-esm/src/operations/labPlans.d.ts.map +1 -0
  207. package/dist-esm/src/operations/labPlans.js +590 -0
  208. package/dist-esm/src/operations/labPlans.js.map +1 -0
  209. package/dist-esm/src/operations/labs.d.ts +146 -0
  210. package/dist-esm/src/operations/labs.d.ts.map +1 -0
  211. package/dist-esm/src/operations/labs.js +658 -0
  212. package/dist-esm/src/operations/labs.js.map +1 -0
  213. package/dist-esm/src/operations/operationResults.d.ts +19 -0
  214. package/dist-esm/src/operations/operationResults.d.ts.map +1 -0
  215. package/dist-esm/src/operations/operationResults.js +52 -0
  216. package/dist-esm/src/operations/operationResults.js.map +1 -0
  217. package/dist-esm/src/operations/operations.d.ts +32 -0
  218. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  219. package/dist-esm/src/operations/operations.js +120 -0
  220. package/dist-esm/src/operations/operations.js.map +1 -0
  221. package/dist-esm/src/operations/schedules.d.ts +94 -0
  222. package/dist-esm/src/operations/schedules.d.ts.map +1 -0
  223. package/dist-esm/src/operations/schedules.js +332 -0
  224. package/dist-esm/src/operations/schedules.js.map +1 -0
  225. package/dist-esm/src/operations/skus.d.ts +32 -0
  226. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  227. package/dist-esm/src/operations/skus.js +124 -0
  228. package/dist-esm/src/operations/skus.js.map +1 -0
  229. package/dist-esm/src/operations/usages.d.ts +35 -0
  230. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  231. package/dist-esm/src/operations/usages.js +132 -0
  232. package/dist-esm/src/operations/usages.js.map +1 -0
  233. package/dist-esm/src/operations/users.d.ts +138 -0
  234. package/dist-esm/src/operations/users.d.ts.map +1 -0
  235. package/dist-esm/src/operations/users.js +520 -0
  236. package/dist-esm/src/operations/users.js.map +1 -0
  237. package/dist-esm/src/operations/virtualMachines.d.ts +158 -0
  238. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
  239. package/dist-esm/src/operations/virtualMachines.js +579 -0
  240. package/dist-esm/src/operations/virtualMachines.js.map +1 -0
  241. package/dist-esm/src/operationsInterfaces/images.d.ts +43 -0
  242. package/dist-esm/src/operationsInterfaces/images.d.ts.map +1 -0
  243. package/{src/models/operationResultsMappers.ts → dist-esm/src/operationsInterfaces/images.js} +2 -7
  244. package/dist-esm/src/operationsInterfaces/images.js.map +1 -0
  245. package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
  246. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  247. package/dist-esm/src/operationsInterfaces/index.js +18 -0
  248. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  249. package/dist-esm/src/operationsInterfaces/labPlans.d.ts +98 -0
  250. package/dist-esm/src/operationsInterfaces/labPlans.d.ts.map +1 -0
  251. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/labPlans.js} +2 -9
  252. package/dist-esm/src/operationsInterfaces/labPlans.js.map +1 -0
  253. package/dist-esm/src/operationsInterfaces/labs.d.ts +110 -0
  254. package/dist-esm/src/operationsInterfaces/labs.d.ts.map +1 -0
  255. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/labs.js} +2 -1
  256. package/dist-esm/src/operationsInterfaces/labs.js.map +1 -0
  257. package/dist-esm/src/operationsInterfaces/operationResults.d.ts +11 -0
  258. package/dist-esm/src/operationsInterfaces/operationResults.d.ts.map +1 -0
  259. package/{esm/models/operationResultsMappers.js → dist-esm/src/operationsInterfaces/operationResults.js} +2 -2
  260. package/dist-esm/src/operationsInterfaces/operationResults.js.map +1 -0
  261. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  262. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  263. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  264. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  265. package/dist-esm/src/operationsInterfaces/schedules.d.ts +67 -0
  266. package/dist-esm/src/operationsInterfaces/schedules.d.ts.map +1 -0
  267. package/dist-esm/src/operationsInterfaces/schedules.js +9 -0
  268. package/dist-esm/src/operationsInterfaces/schedules.js.map +1 -0
  269. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  270. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  271. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  272. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  273. package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
  274. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  275. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  276. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  277. package/dist-esm/src/operationsInterfaces/users.d.ts +111 -0
  278. package/dist-esm/src/operationsInterfaces/users.d.ts.map +1 -0
  279. package/dist-esm/src/operationsInterfaces/users.js +9 -0
  280. package/dist-esm/src/operationsInterfaces/users.js.map +1 -0
  281. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +131 -0
  282. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
  283. package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
  284. package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
  285. package/dist-esm/test/sampleTest.d.ts +2 -0
  286. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  287. package/dist-esm/test/sampleTest.js +40 -0
  288. package/dist-esm/test/sampleTest.js.map +1 -0
  289. package/package.json +77 -33
  290. package/review/arm-labservices.api.md +1208 -0
  291. package/rollup.config.js +181 -30
  292. package/src/index.ts +12 -0
  293. package/src/labServicesClient.ts +101 -47
  294. package/src/lroImpl.ts +34 -0
  295. package/src/models/index.ts +1402 -1988
  296. package/src/models/mappers.ts +1816 -1232
  297. package/src/models/parameters.ts +199 -68
  298. package/src/operations/images.ts +216 -245
  299. package/src/operations/index.ts +7 -6
  300. package/src/operations/labPlans.ts +593 -370
  301. package/src/operations/labs.ts +656 -394
  302. package/src/operations/operationResults.ts +35 -48
  303. package/src/operations/operations.ts +85 -75
  304. package/src/operations/schedules.ts +301 -297
  305. package/src/operations/skus.ts +139 -0
  306. package/src/operations/usages.ts +162 -0
  307. package/src/operations/users.ts +548 -325
  308. package/src/operations/virtualMachines.ts +614 -350
  309. package/src/operationsInterfaces/images.ts +83 -0
  310. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +8 -7
  311. package/src/operationsInterfaces/labPlans.ts +178 -0
  312. package/src/operationsInterfaces/labs.ts +193 -0
  313. package/src/operationsInterfaces/operationResults.ts +25 -0
  314. package/src/operationsInterfaces/operations.ts +22 -0
  315. package/src/operationsInterfaces/schedules.ts +118 -0
  316. package/src/operationsInterfaces/skus.ts +22 -0
  317. package/src/operationsInterfaces/usages.ts +24 -0
  318. package/src/operationsInterfaces/users.ts +195 -0
  319. package/src/operationsInterfaces/virtualMachines.ts +212 -0
  320. package/tsconfig.json +5 -4
  321. package/types/arm-labservices.d.ts +2438 -0
  322. package/types/tsdoc-metadata.json +11 -0
  323. package/dist/arm-labservices.js +0 -5130
  324. package/dist/arm-labservices.js.map +0 -1
  325. package/dist/arm-labservices.min.js +0 -1
  326. package/dist/arm-labservices.min.js.map +0 -1
  327. package/esm/labServicesClient.d.ts +0 -31
  328. package/esm/labServicesClient.d.ts.map +0 -1
  329. package/esm/labServicesClient.js +0 -44
  330. package/esm/labServicesClient.js.map +0 -1
  331. package/esm/labServicesClientContext.d.ts +0 -22
  332. package/esm/labServicesClientContext.d.ts.map +0 -1
  333. package/esm/labServicesClientContext.js +0 -60
  334. package/esm/labServicesClientContext.js.map +0 -1
  335. package/esm/models/imagesMappers.d.ts +0 -2
  336. package/esm/models/imagesMappers.d.ts.map +0 -1
  337. package/esm/models/imagesMappers.js +0 -9
  338. package/esm/models/imagesMappers.js.map +0 -1
  339. package/esm/models/index.d.ts +0 -2286
  340. package/esm/models/index.d.ts.map +0 -1
  341. package/esm/models/index.js.map +0 -1
  342. package/esm/models/labPlansMappers.d.ts +0 -2
  343. package/esm/models/labPlansMappers.d.ts.map +0 -1
  344. package/esm/models/labPlansMappers.js +0 -9
  345. package/esm/models/labPlansMappers.js.map +0 -1
  346. package/esm/models/labsMappers.d.ts +0 -2
  347. package/esm/models/labsMappers.d.ts.map +0 -1
  348. package/esm/models/labsMappers.js +0 -9
  349. package/esm/models/labsMappers.js.map +0 -1
  350. package/esm/models/mappers.d.ts +0 -57
  351. package/esm/models/mappers.d.ts.map +0 -1
  352. package/esm/models/mappers.js.map +0 -1
  353. package/esm/models/operationResultsMappers.d.ts +0 -2
  354. package/esm/models/operationResultsMappers.d.ts.map +0 -1
  355. package/esm/models/operationResultsMappers.js.map +0 -1
  356. package/esm/models/operationsMappers.d.ts +0 -2
  357. package/esm/models/operationsMappers.d.ts.map +0 -1
  358. package/esm/models/operationsMappers.js.map +0 -1
  359. package/esm/models/parameters.d.ts +0 -15
  360. package/esm/models/parameters.d.ts.map +0 -1
  361. package/esm/models/parameters.js +0 -185
  362. package/esm/models/parameters.js.map +0 -1
  363. package/esm/models/schedulesMappers.d.ts +0 -2
  364. package/esm/models/schedulesMappers.d.ts.map +0 -1
  365. package/esm/models/schedulesMappers.js +0 -9
  366. package/esm/models/schedulesMappers.js.map +0 -1
  367. package/esm/models/usersMappers.d.ts +0 -2
  368. package/esm/models/usersMappers.d.ts.map +0 -1
  369. package/esm/models/usersMappers.js +0 -9
  370. package/esm/models/usersMappers.js.map +0 -1
  371. package/esm/models/virtualMachinesMappers.d.ts +0 -2
  372. package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
  373. package/esm/models/virtualMachinesMappers.js +0 -9
  374. package/esm/models/virtualMachinesMappers.js.map +0 -1
  375. package/esm/operations/images.d.ts +0 -147
  376. package/esm/operations/images.d.ts.map +0 -1
  377. package/esm/operations/images.js +0 -198
  378. package/esm/operations/images.js.map +0 -1
  379. package/esm/operations/index.d.ts.map +0 -1
  380. package/esm/operations/index.js.map +0 -1
  381. package/esm/operations/labPlans.d.ts +0 -202
  382. package/esm/operations/labPlans.d.ts.map +0 -1
  383. package/esm/operations/labPlans.js +0 -419
  384. package/esm/operations/labPlans.js.map +0 -1
  385. package/esm/operations/labs.d.ts +0 -218
  386. package/esm/operations/labs.d.ts.map +0 -1
  387. package/esm/operations/labs.js +0 -462
  388. package/esm/operations/labs.js.map +0 -1
  389. package/esm/operations/operationResults.d.ts +0 -32
  390. package/esm/operations/operationResults.d.ts.map +0 -1
  391. package/esm/operations/operationResults.js +0 -56
  392. package/esm/operations/operationResults.js.map +0 -1
  393. package/esm/operations/operations.d.ts +0 -48
  394. package/esm/operations/operations.d.ts.map +0 -1
  395. package/esm/operations/operations.js +0 -79
  396. package/esm/operations/operations.js.map +0 -1
  397. package/esm/operations/schedules.d.ts +0 -181
  398. package/esm/operations/schedules.d.ts.map +0 -1
  399. package/esm/operations/schedules.js +0 -260
  400. package/esm/operations/schedules.js.map +0 -1
  401. package/esm/operations/users.d.ts +0 -191
  402. package/esm/operations/users.d.ts.map +0 -1
  403. package/esm/operations/users.js +0 -387
  404. package/esm/operations/users.js.map +0 -1
  405. package/esm/operations/virtualMachines.d.ts +0 -217
  406. package/esm/operations/virtualMachines.d.ts.map +0 -1
  407. package/esm/operations/virtualMachines.js +0 -425
  408. package/esm/operations/virtualMachines.js.map +0 -1
  409. package/src/labServicesClientContext.ts +0 -67
  410. package/src/models/imagesMappers.ts +0 -47
  411. package/src/models/labPlansMappers.ts +0 -50
  412. package/src/models/labsMappers.ts +0 -49
  413. package/src/models/schedulesMappers.ts +0 -47
  414. package/src/models/usersMappers.ts +0 -48
  415. package/src/models/virtualMachinesMappers.ts +0 -47
@@ -0,0 +1,19 @@
1
+ import { OperationResults } from "../operationsInterfaces";
2
+ import { LabServicesClient } from "../labServicesClient";
3
+ import { OperationResultsGetOptionalParams, OperationResultsGetResponse } from "../models";
4
+ /** Class containing OperationResults operations. */
5
+ export declare class OperationResultsImpl implements OperationResults {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class OperationResults class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: LabServicesClient);
12
+ /**
13
+ * Returns an azure operation result.
14
+ * @param operationResultId The operation result ID / name.
15
+ * @param options The options parameters.
16
+ */
17
+ get(operationResultId: string, options?: OperationResultsGetOptionalParams): Promise<OperationResultsGetResponse>;
18
+ }
19
+ //# sourceMappingURL=operationResults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationResults.d.ts","sourceRoot":"","sources":["../../../src/operations/operationResults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC5B,MAAM,WAAW,CAAC;AAEnB,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C;;;OAGG;gBACS,MAAM,EAAE,iBAAiB;IAIrC;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;CAMxC"}
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing OperationResults operations. */
12
+ export class OperationResultsImpl {
13
+ /**
14
+ * Initialize a new instance of the class OperationResults class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Returns an azure operation result.
22
+ * @param operationResultId The operation result ID / name.
23
+ * @param options The options parameters.
24
+ */
25
+ get(operationResultId, options) {
26
+ return this.client.sendOperationRequest({ operationResultId, options }, getOperationSpec);
27
+ }
28
+ }
29
+ // Operation Specifications
30
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
31
+ const getOperationSpec = {
32
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/operationResults/{operationResultId}",
33
+ httpMethod: "GET",
34
+ responses: {
35
+ 200: {
36
+ bodyMapper: Mappers.OperationResult
37
+ },
38
+ 204: {},
39
+ default: {
40
+ bodyMapper: Mappers.ErrorResponse
41
+ }
42
+ },
43
+ queryParameters: [Parameters.apiVersion],
44
+ urlParameters: [
45
+ Parameters.$host,
46
+ Parameters.subscriptionId,
47
+ Parameters.operationResultId
48
+ ],
49
+ headerParameters: [Parameters.accept],
50
+ serializer
51
+ };
52
+ //# sourceMappingURL=operationResults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationResults.js","sourceRoot":"","sources":["../../../src/operations/operationResults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,GAAG,CACD,iBAAyB,EACzB,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAC9B,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,sGAAsG;IACxG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { LabServicesClient } from "../labServicesClient";
4
+ import { Operation, OperationsListOptionalParams } from "../models";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: LabServicesClient);
13
+ /**
14
+ * Returns a list of all operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Returns a list of all operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C;;;OAGG;gBACS,MAAM,EAAE,iBAAiB;IAIrC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,120 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Operations operations. */
14
+ export class OperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Returns a list of all operations.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Returns a list of all operations.
72
+ * @param options The options parameters.
73
+ */
74
+ _list(options) {
75
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
76
+ }
77
+ /**
78
+ * ListNext
79
+ * @param nextLink The nextLink from the previous successful call to the List method.
80
+ * @param options The options parameters.
81
+ */
82
+ _listNext(nextLink, options) {
83
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
+ }
85
+ }
86
+ // Operation Specifications
87
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
88
+ const listOperationSpec = {
89
+ path: "/providers/Microsoft.LabServices/operations",
90
+ httpMethod: "GET",
91
+ responses: {
92
+ 200: {
93
+ bodyMapper: Mappers.OperationListResult
94
+ },
95
+ default: {
96
+ bodyMapper: Mappers.ErrorResponse
97
+ }
98
+ },
99
+ queryParameters: [Parameters.apiVersion],
100
+ urlParameters: [Parameters.$host],
101
+ headerParameters: [Parameters.accept],
102
+ serializer
103
+ };
104
+ const listNextOperationSpec = {
105
+ path: "{nextLink}",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.OperationListResult
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.ErrorResponse
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [Parameters.$host, Parameters.nextLink],
117
+ headerParameters: [Parameters.accept],
118
+ serializer
119
+ };
120
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;gBAC1D,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;aAC1B;QACH,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAsC;;;;gBAEtC,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA;oBAA1C,MAAM,IAAI,WAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6CAA6C;IACnD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Schedules } from "../operationsInterfaces";
3
+ import { LabServicesClient } from "../labServicesClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { Schedule, SchedulesListByLabOptionalParams, SchedulesGetOptionalParams, SchedulesGetResponse, SchedulesCreateOrUpdateOptionalParams, SchedulesCreateOrUpdateResponse, ScheduleUpdate, SchedulesUpdateOptionalParams, SchedulesUpdateResponse, SchedulesDeleteOptionalParams } from "../models";
6
+ /** Class containing Schedules operations. */
7
+ export declare class SchedulesImpl implements Schedules {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class Schedules class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: LabServicesClient);
14
+ /**
15
+ * Returns a list of all schedules for a lab.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
18
+ * in resource URIs.
19
+ * @param options The options parameters.
20
+ */
21
+ listByLab(resourceGroupName: string, labName: string, options?: SchedulesListByLabOptionalParams): PagedAsyncIterableIterator<Schedule>;
22
+ private listByLabPagingPage;
23
+ private listByLabPagingAll;
24
+ /**
25
+ * Returns a list of all schedules for a lab.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
28
+ * in resource URIs.
29
+ * @param options The options parameters.
30
+ */
31
+ private _listByLab;
32
+ /**
33
+ * Returns the properties of a lab Schedule.
34
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
35
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
36
+ * in resource URIs.
37
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
38
+ * in resource URIs.
39
+ * @param options The options parameters.
40
+ */
41
+ get(resourceGroupName: string, labName: string, scheduleName: string, options?: SchedulesGetOptionalParams): Promise<SchedulesGetResponse>;
42
+ /**
43
+ * Operation to create or update a lab schedule.
44
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
46
+ * in resource URIs.
47
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
48
+ * in resource URIs.
49
+ * @param body The request body.
50
+ * @param options The options parameters.
51
+ */
52
+ createOrUpdate(resourceGroupName: string, labName: string, scheduleName: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise<SchedulesCreateOrUpdateResponse>;
53
+ /**
54
+ * Operation to update a lab schedule.
55
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
56
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
57
+ * in resource URIs.
58
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
59
+ * in resource URIs.
60
+ * @param body The request body.
61
+ * @param options The options parameters.
62
+ */
63
+ update(resourceGroupName: string, labName: string, scheduleName: string, body: ScheduleUpdate, options?: SchedulesUpdateOptionalParams): Promise<SchedulesUpdateResponse>;
64
+ /**
65
+ * Operation to delete a schedule resource.
66
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
67
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
68
+ * in resource URIs.
69
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
70
+ * in resource URIs.
71
+ * @param options The options parameters.
72
+ */
73
+ beginDelete(resourceGroupName: string, labName: string, scheduleName: string, options?: SchedulesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
74
+ /**
75
+ * Operation to delete a schedule resource.
76
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
78
+ * in resource URIs.
79
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
80
+ * in resource URIs.
81
+ * @param options The options parameters.
82
+ */
83
+ beginDeleteAndWait(resourceGroupName: string, labName: string, scheduleName: string, options?: SchedulesDeleteOptionalParams): Promise<void>;
84
+ /**
85
+ * ListByLabNext
86
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
87
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
88
+ * in resource URIs.
89
+ * @param nextLink The nextLink from the previous successful call to the ListByLab method.
90
+ * @param options The options parameters.
91
+ */
92
+ private _listByLabNext;
93
+ }
94
+ //# sourceMappingURL=schedules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../../src/operations/schedules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,QAAQ,EAER,gCAAgC,EAEhC,0BAA0B,EAC1B,oBAAoB,EACpB,qCAAqC,EACrC,+BAA+B,EAC/B,cAAc,EACd,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAE9B,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C;;;OAGG;gBACS,MAAM,EAAE,iBAAiB;IAIrC;;;;;;OAMG;IACI,SAAS,CACd,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,QAAQ,CAAC;YAexB,mBAAmB;YAoBnB,kBAAkB;IAcjC;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAWlB;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;IAOhC;;;;;;;;;OASG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,QAAQ,EACd,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,cAAc,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAoDtD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CAWvB"}
@@ -0,0 +1,332 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing Schedules operations. */
16
+ export class SchedulesImpl {
17
+ /**
18
+ * Initialize a new instance of the class Schedules class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Returns a list of all schedules for a lab.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
28
+ * in resource URIs.
29
+ * @param options The options parameters.
30
+ */
31
+ listByLab(resourceGroupName, labName, options) {
32
+ const iter = this.listByLabPagingAll(resourceGroupName, labName, options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: () => {
41
+ return this.listByLabPagingPage(resourceGroupName, labName, options);
42
+ }
43
+ };
44
+ }
45
+ listByLabPagingPage(resourceGroupName, labName, options) {
46
+ return __asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
47
+ let result = yield __await(this._listByLab(resourceGroupName, labName, options));
48
+ yield yield __await(result.value || []);
49
+ let continuationToken = result.nextLink;
50
+ while (continuationToken) {
51
+ result = yield __await(this._listByLabNext(resourceGroupName, labName, continuationToken, options));
52
+ continuationToken = result.nextLink;
53
+ yield yield __await(result.value || []);
54
+ }
55
+ });
56
+ }
57
+ listByLabPagingAll(resourceGroupName, labName, options) {
58
+ return __asyncGenerator(this, arguments, function* listByLabPagingAll_1() {
59
+ var e_1, _a;
60
+ try {
61
+ for (var _b = __asyncValues(this.listByLabPagingPage(resourceGroupName, labName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
62
+ const page = _c.value;
63
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
64
+ }
65
+ }
66
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
+ finally {
68
+ try {
69
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
70
+ }
71
+ finally { if (e_1) throw e_1.error; }
72
+ }
73
+ });
74
+ }
75
+ /**
76
+ * Returns a list of all schedules for a lab.
77
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
78
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
79
+ * in resource URIs.
80
+ * @param options The options parameters.
81
+ */
82
+ _listByLab(resourceGroupName, labName, options) {
83
+ return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec);
84
+ }
85
+ /**
86
+ * Returns the properties of a lab Schedule.
87
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
88
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
89
+ * in resource URIs.
90
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
91
+ * in resource URIs.
92
+ * @param options The options parameters.
93
+ */
94
+ get(resourceGroupName, labName, scheduleName, options) {
95
+ return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, options }, getOperationSpec);
96
+ }
97
+ /**
98
+ * Operation to create or update a lab schedule.
99
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
100
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
101
+ * in resource URIs.
102
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
103
+ * in resource URIs.
104
+ * @param body The request body.
105
+ * @param options The options parameters.
106
+ */
107
+ createOrUpdate(resourceGroupName, labName, scheduleName, body, options) {
108
+ return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, createOrUpdateOperationSpec);
109
+ }
110
+ /**
111
+ * Operation to update a lab schedule.
112
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
113
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
114
+ * in resource URIs.
115
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
116
+ * in resource URIs.
117
+ * @param body The request body.
118
+ * @param options The options parameters.
119
+ */
120
+ update(resourceGroupName, labName, scheduleName, body, options) {
121
+ return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, updateOperationSpec);
122
+ }
123
+ /**
124
+ * Operation to delete a schedule resource.
125
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
126
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
127
+ * in resource URIs.
128
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
129
+ * in resource URIs.
130
+ * @param options The options parameters.
131
+ */
132
+ beginDelete(resourceGroupName, labName, scheduleName, options) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
135
+ return this.client.sendOperationRequest(args, spec);
136
+ });
137
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
138
+ var _a;
139
+ let currentRawResponse = undefined;
140
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
141
+ const callback = (rawResponse, flatResponse) => {
142
+ currentRawResponse = rawResponse;
143
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
144
+ };
145
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
146
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
147
+ return {
148
+ flatResponse,
149
+ rawResponse: {
150
+ statusCode: currentRawResponse.status,
151
+ body: currentRawResponse.parsedBody,
152
+ headers: currentRawResponse.headers.toJSON()
153
+ }
154
+ };
155
+ });
156
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labName, scheduleName, options }, deleteOperationSpec);
157
+ return new LroEngine(lro, {
158
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
159
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
160
+ lroResourceLocationConfig: "location"
161
+ });
162
+ });
163
+ }
164
+ /**
165
+ * Operation to delete a schedule resource.
166
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
167
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
168
+ * in resource URIs.
169
+ * @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used
170
+ * in resource URIs.
171
+ * @param options The options parameters.
172
+ */
173
+ beginDeleteAndWait(resourceGroupName, labName, scheduleName, options) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ const poller = yield this.beginDelete(resourceGroupName, labName, scheduleName, options);
176
+ return poller.pollUntilDone();
177
+ });
178
+ }
179
+ /**
180
+ * ListByLabNext
181
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
182
+ * @param labName The name of the lab that uniquely identifies it within containing lab account. Used
183
+ * in resource URIs.
184
+ * @param nextLink The nextLink from the previous successful call to the ListByLab method.
185
+ * @param options The options parameters.
186
+ */
187
+ _listByLabNext(resourceGroupName, labName, nextLink, options) {
188
+ return this.client.sendOperationRequest({ resourceGroupName, labName, nextLink, options }, listByLabNextOperationSpec);
189
+ }
190
+ }
191
+ // Operation Specifications
192
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
193
+ const listByLabOperationSpec = {
194
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules",
195
+ httpMethod: "GET",
196
+ responses: {
197
+ 200: {
198
+ bodyMapper: Mappers.PagedSchedules
199
+ },
200
+ default: {
201
+ bodyMapper: Mappers.ErrorResponse
202
+ }
203
+ },
204
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
205
+ urlParameters: [
206
+ Parameters.$host,
207
+ Parameters.subscriptionId,
208
+ Parameters.resourceGroupName,
209
+ Parameters.labName
210
+ ],
211
+ headerParameters: [Parameters.accept],
212
+ serializer
213
+ };
214
+ const getOperationSpec = {
215
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
216
+ httpMethod: "GET",
217
+ responses: {
218
+ 200: {
219
+ bodyMapper: Mappers.Schedule
220
+ },
221
+ default: {
222
+ bodyMapper: Mappers.ErrorResponse
223
+ }
224
+ },
225
+ queryParameters: [Parameters.apiVersion],
226
+ urlParameters: [
227
+ Parameters.$host,
228
+ Parameters.subscriptionId,
229
+ Parameters.resourceGroupName,
230
+ Parameters.labName,
231
+ Parameters.scheduleName
232
+ ],
233
+ headerParameters: [Parameters.accept],
234
+ serializer
235
+ };
236
+ const createOrUpdateOperationSpec = {
237
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
238
+ httpMethod: "PUT",
239
+ responses: {
240
+ 200: {
241
+ bodyMapper: Mappers.Schedule
242
+ },
243
+ 201: {
244
+ bodyMapper: Mappers.Schedule
245
+ },
246
+ default: {
247
+ bodyMapper: Mappers.ErrorResponse
248
+ }
249
+ },
250
+ requestBody: Parameters.body7,
251
+ queryParameters: [Parameters.apiVersion],
252
+ urlParameters: [
253
+ Parameters.$host,
254
+ Parameters.subscriptionId,
255
+ Parameters.resourceGroupName,
256
+ Parameters.labName,
257
+ Parameters.scheduleName
258
+ ],
259
+ headerParameters: [Parameters.accept, Parameters.contentType],
260
+ mediaType: "json",
261
+ serializer
262
+ };
263
+ const updateOperationSpec = {
264
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
265
+ httpMethod: "PATCH",
266
+ responses: {
267
+ 200: {
268
+ bodyMapper: Mappers.Schedule
269
+ },
270
+ default: {
271
+ bodyMapper: Mappers.ErrorResponse
272
+ }
273
+ },
274
+ requestBody: Parameters.body8,
275
+ queryParameters: [Parameters.apiVersion],
276
+ urlParameters: [
277
+ Parameters.$host,
278
+ Parameters.subscriptionId,
279
+ Parameters.resourceGroupName,
280
+ Parameters.labName,
281
+ Parameters.scheduleName
282
+ ],
283
+ headerParameters: [Parameters.accept, Parameters.contentType],
284
+ mediaType: "json",
285
+ serializer
286
+ };
287
+ const deleteOperationSpec = {
288
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
289
+ httpMethod: "DELETE",
290
+ responses: {
291
+ 200: {},
292
+ 201: {},
293
+ 202: {},
294
+ 204: {},
295
+ default: {
296
+ bodyMapper: Mappers.ErrorResponse
297
+ }
298
+ },
299
+ queryParameters: [Parameters.apiVersion],
300
+ urlParameters: [
301
+ Parameters.$host,
302
+ Parameters.subscriptionId,
303
+ Parameters.resourceGroupName,
304
+ Parameters.labName,
305
+ Parameters.scheduleName
306
+ ],
307
+ headerParameters: [Parameters.accept],
308
+ serializer
309
+ };
310
+ const listByLabNextOperationSpec = {
311
+ path: "{nextLink}",
312
+ httpMethod: "GET",
313
+ responses: {
314
+ 200: {
315
+ bodyMapper: Mappers.PagedSchedules
316
+ },
317
+ default: {
318
+ bodyMapper: Mappers.ErrorResponse
319
+ }
320
+ },
321
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
322
+ urlParameters: [
323
+ Parameters.$host,
324
+ Parameters.subscriptionId,
325
+ Parameters.resourceGroupName,
326
+ Parameters.nextLink,
327
+ Parameters.labName
328
+ ],
329
+ headerParameters: [Parameters.accept],
330
+ serializer
331
+ };
332
+ //# sourceMappingURL=schedules.js.map