@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 @@
1
+ {"version":3,"file":"patchUser.js","sourceRoot":"","sources":["../../samples-dev/patchUser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAc,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,SAAS;;QACtB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,IAAI,GAAe,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAClD,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=publishLab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publishLab.d.ts","sourceRoot":"","sources":["../../samples-dev/publishLab.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
13
+ *
14
+ * @summary Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/publishLab.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function publishLab() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new LabServicesClient(credential, subscriptionId);
26
+ const result = yield client.labs.beginPublishAndWait(resourceGroupName, labName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ publishLab().catch(console.error);
31
+ //# sourceMappingURL=publishLab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publishLab.js","sourceRoot":"","sources":["../../samples-dev/publishLab.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,UAAU;;QACvB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAClD,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,UAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=putImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putImage.d.ts","sourceRoot":"","sources":["../../samples-dev/putImage.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Updates an image resource via PUT. Creating new resources via PUT will not function.
13
+ *
14
+ * @summary Updates an image resource via PUT. Creating new resources via PUT will not function.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/putImage.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function putImage() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labPlanName = "testlabplan";
24
+ const imageName = "image1";
25
+ const body = { enabledState: "Enabled" };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new LabServicesClient(credential, subscriptionId);
28
+ const result = yield client.images.createOrUpdate(resourceGroupName, labPlanName, imageName, body);
29
+ console.log(result);
30
+ });
31
+ }
32
+ putImage().catch(console.error);
33
+ //# sourceMappingURL=putImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putImage.js","sourceRoot":"","sources":["../../samples-dev/putImage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAS,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,QAAQ;;QACrB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,SAAS,GAAG,QAAQ,CAAC;QAC3B,MAAM,IAAI,GAAU,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;QAChD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,cAAc,CAC/C,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=putLab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putLab.d.ts","sourceRoot":"","sources":["../../samples-dev/putLab.ts"],"names":[],"mappings":""}
@@ -0,0 +1,70 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Operation to create or update a lab resource.
13
+ *
14
+ * @summary Operation to create or update a lab resource.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/putLab.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function putLab() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const body = {
25
+ description: "This is a test lab.",
26
+ autoShutdownProfile: {
27
+ disconnectDelay: "00:05",
28
+ idleDelay: "01:00",
29
+ noConnectDelay: "01:00",
30
+ shutdownOnDisconnect: "Enabled",
31
+ shutdownOnIdle: "UserAbsence",
32
+ shutdownWhenNotConnected: "Enabled"
33
+ },
34
+ connectionProfile: {
35
+ clientRdpAccess: "Public",
36
+ clientSshAccess: "Public",
37
+ webRdpAccess: "None",
38
+ webSshAccess: "None"
39
+ },
40
+ labPlanId: "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.LabServices/labPlans/testlabplan",
41
+ location: "westus",
42
+ networkProfile: {
43
+ subnetId: "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default"
44
+ },
45
+ securityProfile: { openAccess: "Disabled" },
46
+ state: "Draft",
47
+ title: "Test Lab",
48
+ virtualMachineProfile: {
49
+ additionalCapabilities: { installGpuDrivers: "Disabled" },
50
+ adminUser: { username: "test-user" },
51
+ createOption: "TemplateVM",
52
+ imageReference: {
53
+ offer: "WindowsServer",
54
+ publisher: "Microsoft",
55
+ sku: "2019-Datacenter",
56
+ version: "2019.0.20190410"
57
+ },
58
+ sku: { name: "Medium" },
59
+ usageQuota: "10:00",
60
+ useSharedPassword: "Disabled"
61
+ }
62
+ };
63
+ const credential = new DefaultAzureCredential();
64
+ const client = new LabServicesClient(credential, subscriptionId);
65
+ const result = yield client.labs.beginCreateOrUpdateAndWait(resourceGroupName, labName, body);
66
+ console.log(result);
67
+ });
68
+ }
69
+ putLab().catch(console.error);
70
+ //# sourceMappingURL=putLab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putLab.js","sourceRoot":"","sources":["../../samples-dev/putLab.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAO,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,MAAM;;QACnB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,IAAI,GAAQ;YAChB,WAAW,EAAE,qBAAqB;YAClC,mBAAmB,EAAE;gBACnB,eAAe,EAAE,OAAO;gBACxB,SAAS,EAAE,OAAO;gBAClB,cAAc,EAAE,OAAO;gBACvB,oBAAoB,EAAE,SAAS;gBAC/B,cAAc,EAAE,aAAa;gBAC7B,wBAAwB,EAAE,SAAS;aACpC;YACD,iBAAiB,EAAE;gBACjB,eAAe,EAAE,QAAQ;gBACzB,eAAe,EAAE,QAAQ;gBACzB,YAAY,EAAE,MAAM;gBACpB,YAAY,EAAE,MAAM;aACrB;YACD,SAAS,EACP,mIAAmI;YACrI,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE;gBACd,QAAQ,EACN,oJAAoJ;aACvJ;YACD,eAAe,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE;YAC3C,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,UAAU;YACjB,qBAAqB,EAAE;gBACrB,sBAAsB,EAAE,EAAE,iBAAiB,EAAE,UAAU,EAAE;gBACzD,SAAS,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE;gBACpC,YAAY,EAAE,YAAY;gBAC1B,cAAc,EAAE;oBACd,KAAK,EAAE,eAAe;oBACtB,SAAS,EAAE,WAAW;oBACtB,GAAG,EAAE,iBAAiB;oBACtB,OAAO,EAAE,iBAAiB;iBAC3B;gBACD,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACvB,UAAU,EAAE,OAAO;gBACnB,iBAAiB,EAAE,UAAU;aAC9B;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,0BAA0B,CACzD,iBAAiB,EACjB,OAAO,EACP,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=putLabPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putLabPlan.d.ts","sourceRoot":"","sources":["../../samples-dev/putLabPlan.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Operation to create or update a Lab Plan resource.
13
+ *
14
+ * @summary Operation to create or update a Lab Plan resource.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/putLabPlan.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function putLabPlan() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labPlanName = "testlabplan";
24
+ const body = {
25
+ defaultAutoShutdownProfile: {
26
+ disconnectDelay: "00:05",
27
+ idleDelay: "01:00",
28
+ noConnectDelay: "01:00",
29
+ shutdownOnDisconnect: "Enabled",
30
+ shutdownOnIdle: "UserAbsence",
31
+ shutdownWhenNotConnected: "Enabled"
32
+ },
33
+ defaultConnectionProfile: {
34
+ clientRdpAccess: "Public",
35
+ clientSshAccess: "Public",
36
+ webRdpAccess: "None",
37
+ webSshAccess: "None"
38
+ },
39
+ defaultNetworkProfile: {
40
+ subnetId: "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default"
41
+ },
42
+ location: "westus",
43
+ sharedGalleryId: "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Compute/galleries/testsig",
44
+ supportInfo: {
45
+ email: "help@contoso.com",
46
+ instructions: "Contact support for help.",
47
+ phone: "+1-202-555-0123",
48
+ url: "help.contoso.com"
49
+ }
50
+ };
51
+ const credential = new DefaultAzureCredential();
52
+ const client = new LabServicesClient(credential, subscriptionId);
53
+ const result = yield client.labPlans.beginCreateOrUpdateAndWait(resourceGroupName, labPlanName, body);
54
+ console.log(result);
55
+ });
56
+ }
57
+ putLabPlan().catch(console.error);
58
+ //# sourceMappingURL=putLabPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putLabPlan.js","sourceRoot":"","sources":["../../samples-dev/putLabPlan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAW,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,UAAU;;QACvB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,IAAI,GAAY;YACpB,0BAA0B,EAAE;gBAC1B,eAAe,EAAE,OAAO;gBACxB,SAAS,EAAE,OAAO;gBAClB,cAAc,EAAE,OAAO;gBACvB,oBAAoB,EAAE,SAAS;gBAC/B,cAAc,EAAE,aAAa;gBAC7B,wBAAwB,EAAE,SAAS;aACpC;YACD,wBAAwB,EAAE;gBACxB,eAAe,EAAE,QAAQ;gBACzB,eAAe,EAAE,QAAQ;gBACzB,YAAY,EAAE,MAAM;gBACpB,YAAY,EAAE,MAAM;aACrB;YACD,qBAAqB,EAAE;gBACrB,QAAQ,EACN,oJAAoJ;aACvJ;YACD,QAAQ,EAAE,QAAQ;YAClB,eAAe,EACb,4HAA4H;YAC9H,WAAW,EAAE;gBACX,KAAK,EAAE,kBAAkB;gBACzB,YAAY,EAAE,2BAA2B;gBACzC,KAAK,EAAE,iBAAiB;gBACxB,GAAG,EAAE,kBAAkB;aACxB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,0BAA0B,CAC7D,iBAAiB,EACjB,WAAW,EACX,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,UAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=putSchedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putSchedule.d.ts","sourceRoot":"","sources":["../../samples-dev/putSchedule.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Operation to create or update a lab schedule.
13
+ *
14
+ * @summary Operation to create or update a lab schedule.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/putSchedule.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function putSchedule() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const scheduleName = "schedule1";
25
+ const body = {
26
+ notes: "Schedule 1 for students",
27
+ recurrencePattern: {
28
+ expirationDate: new Date("2020-08-14"),
29
+ frequency: "Daily",
30
+ interval: 2
31
+ },
32
+ startAt: new Date("2020-05-26T12:00:00Z"),
33
+ stopAt: new Date("2020-05-26T18:00:00Z"),
34
+ timeZoneId: "America/Los_Angeles"
35
+ };
36
+ const credential = new DefaultAzureCredential();
37
+ const client = new LabServicesClient(credential, subscriptionId);
38
+ const result = yield client.schedules.createOrUpdate(resourceGroupName, labName, scheduleName, body);
39
+ console.log(result);
40
+ });
41
+ }
42
+ putSchedule().catch(console.error);
43
+ //# sourceMappingURL=putSchedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putSchedule.js","sourceRoot":"","sources":["../../samples-dev/putSchedule.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAY,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,IAAI,GAAa;YACrB,KAAK,EAAE,yBAAyB;YAChC,iBAAiB,EAAE;gBACjB,cAAc,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;gBACtC,SAAS,EAAE,OAAO;gBAClB,QAAQ,EAAE,CAAC;aACZ;YACD,OAAO,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC;YACzC,MAAM,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC;YACxC,UAAU,EAAE,qBAAqB;SAClC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,cAAc,CAClD,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=putUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putUser.d.ts","sourceRoot":"","sources":["../../samples-dev/putUser.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Operation to create or update a lab user.
13
+ *
14
+ * @summary Operation to create or update a lab user.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/putUser.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function putUser() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const userName = "testuser";
25
+ const body = {
26
+ additionalUsageQuota: "20:00",
27
+ email: "testuser@contoso.com"
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new LabServicesClient(credential, subscriptionId);
31
+ const result = yield client.users.beginCreateOrUpdateAndWait(resourceGroupName, labName, userName, body);
32
+ console.log(result);
33
+ });
34
+ }
35
+ putUser().catch(console.error);
36
+ //# sourceMappingURL=putUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"putUser.js","sourceRoot":"","sources":["../../samples-dev/putUser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAQ,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,OAAO;;QACpB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,IAAI,GAAS;YACjB,oBAAoB,EAAE,OAAO;YAC7B,KAAK,EAAE,sBAAsB;SAC9B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAC1D,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=redeployVirtualMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redeployVirtualMachine.d.ts","sourceRoot":"","sources":["../../samples-dev/redeployVirtualMachine.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.
13
+ *
14
+ * @summary Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/redeployVirtualMachine.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function redeployVirtualMachine() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const virtualMachineName = "template";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new LabServicesClient(credential, subscriptionId);
27
+ const result = yield client.virtualMachines.beginRedeployAndWait(resourceGroupName, labName, virtualMachineName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ redeployVirtualMachine().catch(console.error);
32
+ //# sourceMappingURL=redeployVirtualMachine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redeployVirtualMachine.js","sourceRoot":"","sources":["../../samples-dev/redeployVirtualMachine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,kBAAkB,GAAG,UAAU,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,oBAAoB,CAC9D,iBAAiB,EACjB,OAAO,EACP,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=reimageVirtualMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reimageVirtualMachine.d.ts","sourceRoot":"","sources":["../../samples-dev/reimageVirtualMachine.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.
13
+ *
14
+ * @summary Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/reimageVirtualMachine.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function reimageVirtualMachine() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const virtualMachineName = "template";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new LabServicesClient(credential, subscriptionId);
27
+ const result = yield client.virtualMachines.beginReimageAndWait(resourceGroupName, labName, virtualMachineName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ reimageVirtualMachine().catch(console.error);
32
+ //# sourceMappingURL=reimageVirtualMachine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reimageVirtualMachine.js","sourceRoot":"","sources":["../../samples-dev/reimageVirtualMachine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,kBAAkB,GAAG,UAAU,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC7D,iBAAiB,EACjB,OAAO,EACP,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=resetPasswordVirtualMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resetPasswordVirtualMachine.d.ts","sourceRoot":"","sources":["../../samples-dev/resetPasswordVirtualMachine.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Resets a lab virtual machine password.
13
+ *
14
+ * @summary Resets a lab virtual machine password.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/resetPasswordVirtualMachine.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function resetPasswordVirtualMachine() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const virtualMachineName = "template";
25
+ const body = {
26
+ password: "example-password",
27
+ username: "example-username"
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new LabServicesClient(credential, subscriptionId);
31
+ const result = yield client.virtualMachines.beginResetPasswordAndWait(resourceGroupName, labName, virtualMachineName, body);
32
+ console.log(result);
33
+ });
34
+ }
35
+ resetPasswordVirtualMachine().catch(console.error);
36
+ //# sourceMappingURL=resetPasswordVirtualMachine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resetPasswordVirtualMachine.js","sourceRoot":"","sources":["../../samples-dev/resetPasswordVirtualMachine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAqB,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,kBAAkB,GAAG,UAAU,CAAC;QACtC,MAAM,IAAI,GAAsB;YAC9B,QAAQ,EAAE,kBAAkB;YAC5B,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,yBAAyB,CACnE,iBAAiB,EACjB,OAAO,EACP,kBAAkB,EAClB,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=saveImageVirtualMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveImageVirtualMachine.d.ts","sourceRoot":"","sources":["../../samples-dev/saveImageVirtualMachine.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Saves an image from a lab VM to the attached shared image gallery.
13
+ *
14
+ * @summary Saves an image from a lab VM to the attached shared image gallery.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/saveImageVirtualMachine.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function saveImageVirtualMachine() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labPlanName = "testlabplan";
24
+ const body = {
25
+ name: "Test Image",
26
+ labVirtualMachineId: "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.LabServices/labs/testlab/virtualMachines/template"
27
+ };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new LabServicesClient(credential, subscriptionId);
30
+ const result = yield client.labPlans.beginSaveImageAndWait(resourceGroupName, labPlanName, body);
31
+ console.log(result);
32
+ });
33
+ }
34
+ saveImageVirtualMachine().catch(console.error);
35
+ //# sourceMappingURL=saveImageVirtualMachine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveImageVirtualMachine.js","sourceRoot":"","sources":["../../samples-dev/saveImageVirtualMachine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAiB,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,IAAI,GAAkB;YAC1B,IAAI,EAAE,YAAY;YAClB,mBAAmB,EACjB,oJAAoJ;SACvJ,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,iBAAiB,EACjB,WAAW,EACX,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=startVirtualMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startVirtualMachine.d.ts","sourceRoot":"","sources":["../../samples-dev/startVirtualMachine.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Action to start a lab virtual machine.
13
+ *
14
+ * @summary Action to start a lab virtual machine.
15
+ * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/startVirtualMachine.json
16
+ */
17
+ import { LabServicesClient } from "@azure/arm-labservices";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function startVirtualMachine() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "testrg123";
23
+ const labName = "testlab";
24
+ const virtualMachineName = "template";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new LabServicesClient(credential, subscriptionId);
27
+ const result = yield client.virtualMachines.beginStartAndWait(resourceGroupName, labName, virtualMachineName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ startVirtualMachine().catch(console.error);
32
+ //# sourceMappingURL=startVirtualMachine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startVirtualMachine.js","sourceRoot":"","sources":["../../samples-dev/startVirtualMachine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,kBAAkB,GAAG,UAAU,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,iBAAiB,CAC3D,iBAAiB,EACjB,OAAO,EACP,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stopVirtualMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stopVirtualMachine.d.ts","sourceRoot":"","sources":["../../samples-dev/stopVirtualMachine.ts"],"names":[],"mappings":""}