@azure/arm-labservices 3.0.0-alpha.20220414.1 → 3.0.0-beta.2

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 (199) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +11 -0
  3. package/dist/index.js +245 -152
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js +33 -0
  10. package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/imagesGetSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/imagesGetSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/imagesGetSample.js +32 -0
  14. package/dist-esm/samples-dev/imagesGetSample.js.map +1 -0
  15. package/dist-esm/samples-dev/imagesListByLabPlanSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/imagesListByLabPlanSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/imagesListByLabPlanSample.js +45 -0
  18. package/dist-esm/samples-dev/imagesListByLabPlanSample.js.map +1 -0
  19. package/dist-esm/samples-dev/imagesUpdateSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/imagesUpdateSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/imagesUpdateSample.js +33 -0
  22. package/dist-esm/samples-dev/imagesUpdateSample.js.map +1 -0
  23. package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js +58 -0
  26. package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/labPlansDeleteSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/labPlansDeleteSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/labPlansDeleteSample.js +31 -0
  30. package/dist-esm/samples-dev/labPlansDeleteSample.js.map +1 -0
  31. package/dist-esm/samples-dev/labPlansGetSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/labPlansGetSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/labPlansGetSample.js +31 -0
  34. package/dist-esm/samples-dev/labPlansGetSample.js.map +1 -0
  35. package/dist-esm/samples-dev/labPlansListByResourceGroupSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/labPlansListByResourceGroupSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/labPlansListByResourceGroupSample.js +44 -0
  38. package/dist-esm/samples-dev/labPlansListByResourceGroupSample.js.map +1 -0
  39. package/dist-esm/samples-dev/labPlansListBySubscriptionSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/labPlansListBySubscriptionSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/labPlansListBySubscriptionSample.js +43 -0
  42. package/dist-esm/samples-dev/labPlansListBySubscriptionSample.js.map +1 -0
  43. package/dist-esm/samples-dev/labPlansSaveImageSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/labPlansSaveImageSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/labPlansSaveImageSample.js +35 -0
  46. package/dist-esm/samples-dev/labPlansSaveImageSample.js.map +1 -0
  47. package/dist-esm/samples-dev/labPlansUpdateSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/labPlansUpdateSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/labPlansUpdateSample.js +39 -0
  50. package/dist-esm/samples-dev/labPlansUpdateSample.js.map +1 -0
  51. package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +70 -0
  54. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +1 -0
  55. package/dist-esm/samples-dev/labsDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/labsDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/labsDeleteSample.js +31 -0
  58. package/dist-esm/samples-dev/labsDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/labsGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/labsGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/labsGetSample.js +31 -0
  62. package/dist-esm/samples-dev/labsGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/labsListByResourceGroupSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/labsListByResourceGroupSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/labsListByResourceGroupSample.js +44 -0
  66. package/dist-esm/samples-dev/labsListByResourceGroupSample.js.map +1 -0
  67. package/dist-esm/samples-dev/labsListBySubscriptionSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/labsListBySubscriptionSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/labsListBySubscriptionSample.js +43 -0
  70. package/dist-esm/samples-dev/labsListBySubscriptionSample.js.map +1 -0
  71. package/dist-esm/samples-dev/labsPublishSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/labsPublishSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/labsPublishSample.js +31 -0
  74. package/dist-esm/samples-dev/labsPublishSample.js.map +1 -0
  75. package/dist-esm/samples-dev/labsSyncGroupSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/labsSyncGroupSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/labsSyncGroupSample.js +31 -0
  78. package/dist-esm/samples-dev/labsSyncGroupSample.js.map +1 -0
  79. package/dist-esm/samples-dev/labsUpdateSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/labsUpdateSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/labsUpdateSample.js +32 -0
  82. package/dist-esm/samples-dev/labsUpdateSample.js.map +1 -0
  83. package/dist-esm/samples-dev/operationResultsGetSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/operationResultsGetSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/operationResultsGetSample.js +30 -0
  86. package/dist-esm/samples-dev/operationResultsGetSample.js.map +1 -0
  87. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  90. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  91. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +43 -0
  94. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js.map +1 -0
  95. package/dist-esm/samples-dev/schedulesDeleteSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/schedulesDeleteSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/schedulesDeleteSample.js +32 -0
  98. package/dist-esm/samples-dev/schedulesDeleteSample.js.map +1 -0
  99. package/dist-esm/samples-dev/schedulesGetSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/schedulesGetSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/schedulesGetSample.js +32 -0
  102. package/dist-esm/samples-dev/schedulesGetSample.js.map +1 -0
  103. package/dist-esm/samples-dev/schedulesListByLabSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/schedulesListByLabSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/schedulesListByLabSample.js +45 -0
  106. package/dist-esm/samples-dev/schedulesListByLabSample.js.map +1 -0
  107. package/dist-esm/samples-dev/schedulesUpdateSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/schedulesUpdateSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/schedulesUpdateSample.js +39 -0
  110. package/dist-esm/samples-dev/schedulesUpdateSample.js.map +1 -0
  111. package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
  112. package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/skusListSample.js +43 -0
  114. package/dist-esm/samples-dev/skusListSample.js.map +1 -0
  115. package/dist-esm/samples-dev/usagesListByLocationSample.d.ts +2 -0
  116. package/dist-esm/samples-dev/usagesListByLocationSample.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/usagesListByLocationSample.js +44 -0
  118. package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -0
  119. package/dist-esm/samples-dev/usersCreateOrUpdateSample.d.ts +2 -0
  120. package/dist-esm/samples-dev/usersCreateOrUpdateSample.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/usersCreateOrUpdateSample.js +36 -0
  122. package/dist-esm/samples-dev/usersCreateOrUpdateSample.js.map +1 -0
  123. package/dist-esm/samples-dev/usersDeleteSample.d.ts +2 -0
  124. package/dist-esm/samples-dev/usersDeleteSample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/usersDeleteSample.js +32 -0
  126. package/dist-esm/samples-dev/usersDeleteSample.js.map +1 -0
  127. package/dist-esm/samples-dev/usersGetSample.d.ts +2 -0
  128. package/dist-esm/samples-dev/usersGetSample.d.ts.map +1 -0
  129. package/dist-esm/samples-dev/usersGetSample.js +32 -0
  130. package/dist-esm/samples-dev/usersGetSample.js.map +1 -0
  131. package/dist-esm/samples-dev/usersInviteSample.d.ts +2 -0
  132. package/dist-esm/samples-dev/usersInviteSample.d.ts.map +1 -0
  133. package/dist-esm/samples-dev/usersInviteSample.js +33 -0
  134. package/dist-esm/samples-dev/usersInviteSample.js.map +1 -0
  135. package/dist-esm/samples-dev/usersListByLabSample.d.ts +2 -0
  136. package/dist-esm/samples-dev/usersListByLabSample.d.ts.map +1 -0
  137. package/dist-esm/samples-dev/usersListByLabSample.js +45 -0
  138. package/dist-esm/samples-dev/usersListByLabSample.js.map +1 -0
  139. package/dist-esm/samples-dev/usersUpdateSample.d.ts +2 -0
  140. package/dist-esm/samples-dev/usersUpdateSample.d.ts.map +1 -0
  141. package/dist-esm/samples-dev/usersUpdateSample.js +33 -0
  142. package/dist-esm/samples-dev/usersUpdateSample.js.map +1 -0
  143. package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/virtualMachinesGetSample.js +32 -0
  146. package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -0
  147. package/dist-esm/samples-dev/virtualMachinesListByLabSample.d.ts +2 -0
  148. package/dist-esm/samples-dev/virtualMachinesListByLabSample.d.ts.map +1 -0
  149. package/dist-esm/samples-dev/virtualMachinesListByLabSample.js +45 -0
  150. package/dist-esm/samples-dev/virtualMachinesListByLabSample.js.map +1 -0
  151. package/dist-esm/samples-dev/virtualMachinesRedeploySample.d.ts +2 -0
  152. package/dist-esm/samples-dev/virtualMachinesRedeploySample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/virtualMachinesRedeploySample.js +32 -0
  154. package/dist-esm/samples-dev/virtualMachinesRedeploySample.js.map +1 -0
  155. package/dist-esm/samples-dev/virtualMachinesReimageSample.d.ts +2 -0
  156. package/dist-esm/samples-dev/virtualMachinesReimageSample.d.ts.map +1 -0
  157. package/dist-esm/samples-dev/virtualMachinesReimageSample.js +32 -0
  158. package/dist-esm/samples-dev/virtualMachinesReimageSample.js.map +1 -0
  159. package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.d.ts +2 -0
  160. package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.d.ts.map +1 -0
  161. package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.js +36 -0
  162. package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.js.map +1 -0
  163. package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts +2 -0
  164. package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts.map +1 -0
  165. package/dist-esm/samples-dev/virtualMachinesStartSample.js +32 -0
  166. package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +1 -0
  167. package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts +2 -0
  168. package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts.map +1 -0
  169. package/dist-esm/samples-dev/virtualMachinesStopSample.js +32 -0
  170. package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +1 -0
  171. package/dist-esm/src/labServicesClient.d.ts.map +1 -1
  172. package/dist-esm/src/labServicesClient.js +20 -2
  173. package/dist-esm/src/labServicesClient.js.map +1 -1
  174. package/dist-esm/src/operations/labPlans.d.ts.map +1 -1
  175. package/dist-esm/src/operations/labPlans.js +12 -4
  176. package/dist-esm/src/operations/labPlans.js.map +1 -1
  177. package/dist-esm/src/operations/labs.d.ts.map +1 -1
  178. package/dist-esm/src/operations/labs.js +15 -5
  179. package/dist-esm/src/operations/labs.js.map +1 -1
  180. package/dist-esm/src/operations/schedules.d.ts.map +1 -1
  181. package/dist-esm/src/operations/schedules.js +3 -1
  182. package/dist-esm/src/operations/schedules.js.map +1 -1
  183. package/dist-esm/src/operations/users.d.ts.map +1 -1
  184. package/dist-esm/src/operations/users.js +12 -4
  185. package/dist-esm/src/operations/users.js.map +1 -1
  186. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
  187. package/dist-esm/src/operations/virtualMachines.js +15 -5
  188. package/dist-esm/src/operations/virtualMachines.js.map +1 -1
  189. package/package.json +11 -11
  190. package/rollup.config.js +6 -72
  191. package/src/labServicesClient.ts +27 -2
  192. package/src/operations/labPlans.ts +12 -4
  193. package/src/operations/labs.ts +15 -5
  194. package/src/operations/schedules.ts +3 -1
  195. package/src/operations/users.ts +12 -4
  196. package/src/operations/virtualMachines.ts +15 -5
  197. package/tsconfig.json +18 -5
  198. package/types/tsdoc-metadata.json +1 -1
  199. package/LICENSE.txt +0 -21
package/dist/index.js CHANGED
@@ -3,9 +3,31 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n["default"] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
+
9
31
  /*
10
32
  * Copyright (c) Microsoft Corporation.
11
33
  * Licensed under the MIT License.
@@ -13,27 +35,39 @@ var coreLro = require('@azure/core-lro');
13
35
  * Code generated by Microsoft (R) AutoRest Code Generator.
14
36
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
37
  */
38
+ /** Known values of {@link CreatedByType} that the service accepts. */
39
+ exports.KnownCreatedByType = void 0;
16
40
  (function (KnownCreatedByType) {
17
41
  KnownCreatedByType["User"] = "User";
18
42
  KnownCreatedByType["Application"] = "Application";
19
43
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
20
44
  KnownCreatedByType["Key"] = "Key";
21
45
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
46
+ /** Known values of {@link Origin} that the service accepts. */
47
+ exports.KnownOrigin = void 0;
22
48
  (function (KnownOrigin) {
23
49
  KnownOrigin["User"] = "user";
24
50
  KnownOrigin["System"] = "system";
25
51
  KnownOrigin["UserSystem"] = "user,system";
26
52
  })(exports.KnownOrigin || (exports.KnownOrigin = {}));
53
+ /** Known values of {@link ActionType} that the service accepts. */
54
+ exports.KnownActionType = void 0;
27
55
  (function (KnownActionType) {
28
56
  KnownActionType["Internal"] = "Internal";
29
57
  })(exports.KnownActionType || (exports.KnownActionType = {}));
58
+ /** Known values of {@link UsageUnit} that the service accepts. */
59
+ exports.KnownUsageUnit = void 0;
30
60
  (function (KnownUsageUnit) {
31
61
  KnownUsageUnit["Count"] = "Count";
32
62
  })(exports.KnownUsageUnit || (exports.KnownUsageUnit = {}));
63
+ /** Known values of {@link LabServicesSkuTier} that the service accepts. */
64
+ exports.KnownLabServicesSkuTier = void 0;
33
65
  (function (KnownLabServicesSkuTier) {
34
66
  KnownLabServicesSkuTier["Standard"] = "Standard";
35
67
  KnownLabServicesSkuTier["Premium"] = "Premium";
36
68
  })(exports.KnownLabServicesSkuTier || (exports.KnownLabServicesSkuTier = {}));
69
+ /** Known values of {@link ScaleType} that the service accepts. */
70
+ exports.KnownScaleType = void 0;
37
71
  (function (KnownScaleType) {
38
72
  /** The capacity is not adjustable in any way. */
39
73
  KnownScaleType["None"] = "None";
@@ -42,9 +76,13 @@ var coreLro = require('@azure/core-lro');
42
76
  /** The user is permitted to scale this SKU in and out. */
43
77
  KnownScaleType["Automatic"] = "Automatic";
44
78
  })(exports.KnownScaleType || (exports.KnownScaleType = {}));
79
+ /** Known values of {@link RestrictionType} that the service accepts. */
80
+ exports.KnownRestrictionType = void 0;
45
81
  (function (KnownRestrictionType) {
46
82
  KnownRestrictionType["Location"] = "Location";
47
83
  })(exports.KnownRestrictionType || (exports.KnownRestrictionType = {}));
84
+ /** Known values of {@link RestrictionReasonCode} that the service accepts. */
85
+ exports.KnownRestrictionReasonCode = void 0;
48
86
  (function (KnownRestrictionReasonCode) {
49
87
  KnownRestrictionReasonCode["QuotaId"] = "QuotaId";
50
88
  KnownRestrictionReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
@@ -3150,7 +3188,7 @@ class ImagesImpl {
3150
3188
  * @param options The options parameters.
3151
3189
  */
3152
3190
  get(resourceGroupName, labPlanName, imageName, options) {
3153
- return this.client.sendOperationRequest({ resourceGroupName, labPlanName, imageName, options }, getOperationSpec);
3191
+ return this.client.sendOperationRequest({ resourceGroupName, labPlanName, imageName, options }, getOperationSpec$6);
3154
3192
  }
3155
3193
  /**
3156
3194
  * Updates an image resource via PUT. Creating new resources via PUT will not function.
@@ -3162,7 +3200,7 @@ class ImagesImpl {
3162
3200
  * @param options The options parameters.
3163
3201
  */
3164
3202
  createOrUpdate(resourceGroupName, labPlanName, imageName, body, options) {
3165
- return this.client.sendOperationRequest({ resourceGroupName, labPlanName, imageName, body, options }, createOrUpdateOperationSpec);
3203
+ return this.client.sendOperationRequest({ resourceGroupName, labPlanName, imageName, body, options }, createOrUpdateOperationSpec$4);
3166
3204
  }
3167
3205
  /**
3168
3206
  * Updates an image resource.
@@ -3174,7 +3212,7 @@ class ImagesImpl {
3174
3212
  * @param options The options parameters.
3175
3213
  */
3176
3214
  update(resourceGroupName, labPlanName, imageName, body, options) {
3177
- return this.client.sendOperationRequest({ resourceGroupName, labPlanName, imageName, body, options }, updateOperationSpec);
3215
+ return this.client.sendOperationRequest({ resourceGroupName, labPlanName, imageName, body, options }, updateOperationSpec$4);
3178
3216
  }
3179
3217
  /**
3180
3218
  * ListByLabPlanNext
@@ -3189,7 +3227,7 @@ class ImagesImpl {
3189
3227
  }
3190
3228
  }
3191
3229
  // Operation Specifications
3192
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
3230
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3193
3231
  const listByLabPlanOperationSpec = {
3194
3232
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images",
3195
3233
  httpMethod: "GET",
@@ -3209,9 +3247,9 @@ const listByLabPlanOperationSpec = {
3209
3247
  labPlanName
3210
3248
  ],
3211
3249
  headerParameters: [accept],
3212
- serializer
3250
+ serializer: serializer$9
3213
3251
  };
3214
- const getOperationSpec = {
3252
+ const getOperationSpec$6 = {
3215
3253
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}",
3216
3254
  httpMethod: "GET",
3217
3255
  responses: {
@@ -3231,9 +3269,9 @@ const getOperationSpec = {
3231
3269
  imageName
3232
3270
  ],
3233
3271
  headerParameters: [accept],
3234
- serializer
3272
+ serializer: serializer$9
3235
3273
  };
3236
- const createOrUpdateOperationSpec = {
3274
+ const createOrUpdateOperationSpec$4 = {
3237
3275
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}",
3238
3276
  httpMethod: "PUT",
3239
3277
  responses: {
@@ -3255,9 +3293,9 @@ const createOrUpdateOperationSpec = {
3255
3293
  ],
3256
3294
  headerParameters: [accept, contentType],
3257
3295
  mediaType: "json",
3258
- serializer
3296
+ serializer: serializer$9
3259
3297
  };
3260
- const updateOperationSpec = {
3298
+ const updateOperationSpec$4 = {
3261
3299
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/images/{imageName}",
3262
3300
  httpMethod: "PATCH",
3263
3301
  responses: {
@@ -3279,7 +3317,7 @@ const updateOperationSpec = {
3279
3317
  ],
3280
3318
  headerParameters: [accept, contentType],
3281
3319
  mediaType: "json",
3282
- serializer
3320
+ serializer: serializer$9
3283
3321
  };
3284
3322
  const listByLabPlanNextOperationSpec = {
3285
3323
  path: "{nextLink}",
@@ -3301,7 +3339,7 @@ const listByLabPlanNextOperationSpec = {
3301
3339
  nextLink
3302
3340
  ],
3303
3341
  headerParameters: [accept],
3304
- serializer
3342
+ serializer: serializer$9
3305
3343
  };
3306
3344
 
3307
3345
  /*
@@ -3451,7 +3489,7 @@ class LabPlansImpl {
3451
3489
  * @param options The options parameters.
3452
3490
  */
3453
3491
  _listBySubscription(options) {
3454
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
3492
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
3455
3493
  }
3456
3494
  /**
3457
3495
  * Returns a list of all lab plans for a subscription and resource group.
@@ -3459,7 +3497,7 @@ class LabPlansImpl {
3459
3497
  * @param options The options parameters.
3460
3498
  */
3461
3499
  _listByResourceGroup(resourceGroupName, options) {
3462
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
3500
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
3463
3501
  }
3464
3502
  /**
3465
3503
  * Retrieves the properties of a Lab Plan.
@@ -3469,7 +3507,7 @@ class LabPlansImpl {
3469
3507
  * @param options The options parameters.
3470
3508
  */
3471
3509
  get(resourceGroupName, labPlanName, options) {
3472
- return this.client.sendOperationRequest({ resourceGroupName, labPlanName, options }, getOperationSpec$1);
3510
+ return this.client.sendOperationRequest({ resourceGroupName, labPlanName, options }, getOperationSpec$5);
3473
3511
  }
3474
3512
  /**
3475
3513
  * Operation to create or update a Lab Plan resource.
@@ -3503,12 +3541,14 @@ class LabPlansImpl {
3503
3541
  }
3504
3542
  };
3505
3543
  });
3506
- const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, createOrUpdateOperationSpec$1);
3507
- return new coreLro.LroEngine(lro, {
3544
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, createOrUpdateOperationSpec$3);
3545
+ const poller = new coreLro.LroEngine(lro, {
3508
3546
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3509
3547
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3510
3548
  lroResourceLocationConfig: "original-uri"
3511
3549
  });
3550
+ yield poller.poll();
3551
+ return poller;
3512
3552
  });
3513
3553
  }
3514
3554
  /**
@@ -3557,12 +3597,14 @@ class LabPlansImpl {
3557
3597
  }
3558
3598
  };
3559
3599
  });
3560
- const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, updateOperationSpec$1);
3561
- return new coreLro.LroEngine(lro, {
3600
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, updateOperationSpec$3);
3601
+ const poller = new coreLro.LroEngine(lro, {
3562
3602
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3563
3603
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3564
3604
  lroResourceLocationConfig: "location"
3565
3605
  });
3606
+ yield poller.poll();
3607
+ return poller;
3566
3608
  });
3567
3609
  }
3568
3610
  /**
@@ -3611,12 +3653,14 @@ class LabPlansImpl {
3611
3653
  }
3612
3654
  };
3613
3655
  });
3614
- const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, options }, deleteOperationSpec);
3615
- return new coreLro.LroEngine(lro, {
3656
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, options }, deleteOperationSpec$3);
3657
+ const poller = new coreLro.LroEngine(lro, {
3616
3658
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3617
3659
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3618
3660
  lroResourceLocationConfig: "location"
3619
3661
  });
3662
+ yield poller.poll();
3663
+ return poller;
3620
3664
  });
3621
3665
  }
3622
3666
  /**
@@ -3666,11 +3710,13 @@ class LabPlansImpl {
3666
3710
  };
3667
3711
  });
3668
3712
  const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, saveImageOperationSpec);
3669
- return new coreLro.LroEngine(lro, {
3713
+ const poller = new coreLro.LroEngine(lro, {
3670
3714
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3671
3715
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3672
3716
  lroResourceLocationConfig: "location"
3673
3717
  });
3718
+ yield poller.poll();
3719
+ return poller;
3674
3720
  });
3675
3721
  }
3676
3722
  /**
@@ -3693,7 +3739,7 @@ class LabPlansImpl {
3693
3739
  * @param options The options parameters.
3694
3740
  */
3695
3741
  _listBySubscriptionNext(nextLink, options) {
3696
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
3742
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
3697
3743
  }
3698
3744
  /**
3699
3745
  * ListByResourceGroupNext
@@ -3702,12 +3748,12 @@ class LabPlansImpl {
3702
3748
  * @param options The options parameters.
3703
3749
  */
3704
3750
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3705
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3751
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
3706
3752
  }
3707
3753
  }
3708
3754
  // Operation Specifications
3709
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
3710
- const listBySubscriptionOperationSpec = {
3755
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3756
+ const listBySubscriptionOperationSpec$1 = {
3711
3757
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labPlans",
3712
3758
  httpMethod: "GET",
3713
3759
  responses: {
@@ -3721,9 +3767,9 @@ const listBySubscriptionOperationSpec = {
3721
3767
  queryParameters: [apiVersion, filter],
3722
3768
  urlParameters: [$host, subscriptionId],
3723
3769
  headerParameters: [accept],
3724
- serializer: serializer$1
3770
+ serializer: serializer$8
3725
3771
  };
3726
- const listByResourceGroupOperationSpec = {
3772
+ const listByResourceGroupOperationSpec$1 = {
3727
3773
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans",
3728
3774
  httpMethod: "GET",
3729
3775
  responses: {
@@ -3741,9 +3787,9 @@ const listByResourceGroupOperationSpec = {
3741
3787
  resourceGroupName
3742
3788
  ],
3743
3789
  headerParameters: [accept],
3744
- serializer: serializer$1
3790
+ serializer: serializer$8
3745
3791
  };
3746
- const getOperationSpec$1 = {
3792
+ const getOperationSpec$5 = {
3747
3793
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}",
3748
3794
  httpMethod: "GET",
3749
3795
  responses: {
@@ -3762,9 +3808,9 @@ const getOperationSpec$1 = {
3762
3808
  labPlanName
3763
3809
  ],
3764
3810
  headerParameters: [accept],
3765
- serializer: serializer$1
3811
+ serializer: serializer$8
3766
3812
  };
3767
- const createOrUpdateOperationSpec$1 = {
3813
+ const createOrUpdateOperationSpec$3 = {
3768
3814
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}",
3769
3815
  httpMethod: "PUT",
3770
3816
  responses: {
@@ -3794,9 +3840,9 @@ const createOrUpdateOperationSpec$1 = {
3794
3840
  ],
3795
3841
  headerParameters: [accept, contentType],
3796
3842
  mediaType: "json",
3797
- serializer: serializer$1
3843
+ serializer: serializer$8
3798
3844
  };
3799
- const updateOperationSpec$1 = {
3845
+ const updateOperationSpec$3 = {
3800
3846
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}",
3801
3847
  httpMethod: "PATCH",
3802
3848
  responses: {
@@ -3826,9 +3872,9 @@ const updateOperationSpec$1 = {
3826
3872
  ],
3827
3873
  headerParameters: [accept, contentType],
3828
3874
  mediaType: "json",
3829
- serializer: serializer$1
3875
+ serializer: serializer$8
3830
3876
  };
3831
- const deleteOperationSpec = {
3877
+ const deleteOperationSpec$3 = {
3832
3878
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}",
3833
3879
  httpMethod: "DELETE",
3834
3880
  responses: {
@@ -3848,7 +3894,7 @@ const deleteOperationSpec = {
3848
3894
  labPlanName
3849
3895
  ],
3850
3896
  headerParameters: [accept],
3851
- serializer: serializer$1
3897
+ serializer: serializer$8
3852
3898
  };
3853
3899
  const saveImageOperationSpec = {
3854
3900
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName}/saveImage",
@@ -3872,9 +3918,9 @@ const saveImageOperationSpec = {
3872
3918
  ],
3873
3919
  headerParameters: [accept, contentType],
3874
3920
  mediaType: "json",
3875
- serializer: serializer$1
3921
+ serializer: serializer$8
3876
3922
  };
3877
- const listBySubscriptionNextOperationSpec = {
3923
+ const listBySubscriptionNextOperationSpec$1 = {
3878
3924
  path: "{nextLink}",
3879
3925
  httpMethod: "GET",
3880
3926
  responses: {
@@ -3892,9 +3938,9 @@ const listBySubscriptionNextOperationSpec = {
3892
3938
  nextLink
3893
3939
  ],
3894
3940
  headerParameters: [accept],
3895
- serializer: serializer$1
3941
+ serializer: serializer$8
3896
3942
  };
3897
- const listByResourceGroupNextOperationSpec = {
3943
+ const listByResourceGroupNextOperationSpec$1 = {
3898
3944
  path: "{nextLink}",
3899
3945
  httpMethod: "GET",
3900
3946
  responses: {
@@ -3913,7 +3959,7 @@ const listByResourceGroupNextOperationSpec = {
3913
3959
  nextLink
3914
3960
  ],
3915
3961
  headerParameters: [accept],
3916
- serializer: serializer$1
3962
+ serializer: serializer$8
3917
3963
  };
3918
3964
 
3919
3965
  /*
@@ -3986,7 +4032,7 @@ class OperationsImpl {
3986
4032
  * @param options The options parameters.
3987
4033
  */
3988
4034
  _list(options) {
3989
- return this.client.sendOperationRequest({ options }, listOperationSpec);
4035
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
3990
4036
  }
3991
4037
  /**
3992
4038
  * ListNext
@@ -3994,12 +4040,12 @@ class OperationsImpl {
3994
4040
  * @param options The options parameters.
3995
4041
  */
3996
4042
  _listNext(nextLink, options) {
3997
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
4043
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
3998
4044
  }
3999
4045
  }
4000
4046
  // Operation Specifications
4001
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
4002
- const listOperationSpec = {
4047
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4048
+ const listOperationSpec$1 = {
4003
4049
  path: "/providers/Microsoft.LabServices/operations",
4004
4050
  httpMethod: "GET",
4005
4051
  responses: {
@@ -4013,9 +4059,9 @@ const listOperationSpec = {
4013
4059
  queryParameters: [apiVersion],
4014
4060
  urlParameters: [$host],
4015
4061
  headerParameters: [accept],
4016
- serializer: serializer$2
4062
+ serializer: serializer$7
4017
4063
  };
4018
- const listNextOperationSpec = {
4064
+ const listNextOperationSpec$1 = {
4019
4065
  path: "{nextLink}",
4020
4066
  httpMethod: "GET",
4021
4067
  responses: {
@@ -4029,7 +4075,7 @@ const listNextOperationSpec = {
4029
4075
  queryParameters: [apiVersion],
4030
4076
  urlParameters: [$host, nextLink],
4031
4077
  headerParameters: [accept],
4032
- serializer: serializer$2
4078
+ serializer: serializer$7
4033
4079
  };
4034
4080
 
4035
4081
  /*
@@ -4151,7 +4197,7 @@ class LabsImpl {
4151
4197
  * @param options The options parameters.
4152
4198
  */
4153
4199
  _listBySubscription(options) {
4154
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
4200
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
4155
4201
  }
4156
4202
  /**
4157
4203
  * Returns a list of all labs in a resource group.
@@ -4159,7 +4205,7 @@ class LabsImpl {
4159
4205
  * @param options The options parameters.
4160
4206
  */
4161
4207
  _listByResourceGroup(resourceGroupName, options) {
4162
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
4208
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
4163
4209
  }
4164
4210
  /**
4165
4211
  * Returns the properties of a lab resource.
@@ -4169,7 +4215,7 @@ class LabsImpl {
4169
4215
  * @param options The options parameters.
4170
4216
  */
4171
4217
  get(resourceGroupName, labName, options) {
4172
- return this.client.sendOperationRequest({ resourceGroupName, labName, options }, getOperationSpec$2);
4218
+ return this.client.sendOperationRequest({ resourceGroupName, labName, options }, getOperationSpec$4);
4173
4219
  }
4174
4220
  /**
4175
4221
  * Operation to create or update a lab resource.
@@ -4204,11 +4250,13 @@ class LabsImpl {
4204
4250
  };
4205
4251
  });
4206
4252
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, body, options }, createOrUpdateOperationSpec$2);
4207
- return new coreLro.LroEngine(lro, {
4253
+ const poller = new coreLro.LroEngine(lro, {
4208
4254
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4209
4255
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4210
4256
  lroResourceLocationConfig: "original-uri"
4211
4257
  });
4258
+ yield poller.poll();
4259
+ return poller;
4212
4260
  });
4213
4261
  }
4214
4262
  /**
@@ -4258,11 +4306,13 @@ class LabsImpl {
4258
4306
  };
4259
4307
  });
4260
4308
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, body, options }, updateOperationSpec$2);
4261
- return new coreLro.LroEngine(lro, {
4309
+ const poller = new coreLro.LroEngine(lro, {
4262
4310
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4263
4311
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4264
4312
  lroResourceLocationConfig: "location"
4265
4313
  });
4314
+ yield poller.poll();
4315
+ return poller;
4266
4316
  });
4267
4317
  }
4268
4318
  /**
@@ -4310,12 +4360,14 @@ class LabsImpl {
4310
4360
  }
4311
4361
  };
4312
4362
  });
4313
- const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, deleteOperationSpec$1);
4314
- return new coreLro.LroEngine(lro, {
4363
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, deleteOperationSpec$2);
4364
+ const poller = new coreLro.LroEngine(lro, {
4315
4365
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4316
4366
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4317
4367
  lroResourceLocationConfig: "location"
4318
4368
  });
4369
+ yield poller.poll();
4370
+ return poller;
4319
4371
  });
4320
4372
  }
4321
4373
  /**
@@ -4363,11 +4415,13 @@ class LabsImpl {
4363
4415
  };
4364
4416
  });
4365
4417
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, publishOperationSpec);
4366
- return new coreLro.LroEngine(lro, {
4418
+ const poller = new coreLro.LroEngine(lro, {
4367
4419
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4368
4420
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4369
4421
  lroResourceLocationConfig: "location"
4370
4422
  });
4423
+ yield poller.poll();
4424
+ return poller;
4371
4425
  });
4372
4426
  }
4373
4427
  /**
@@ -4415,11 +4469,13 @@ class LabsImpl {
4415
4469
  };
4416
4470
  });
4417
4471
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, syncGroupOperationSpec);
4418
- return new coreLro.LroEngine(lro, {
4472
+ const poller = new coreLro.LroEngine(lro, {
4419
4473
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4420
4474
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4421
4475
  lroResourceLocationConfig: "location"
4422
4476
  });
4477
+ yield poller.poll();
4478
+ return poller;
4423
4479
  });
4424
4480
  }
4425
4481
  /**
@@ -4441,7 +4497,7 @@ class LabsImpl {
4441
4497
  * @param options The options parameters.
4442
4498
  */
4443
4499
  _listBySubscriptionNext(nextLink, options) {
4444
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
4500
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
4445
4501
  }
4446
4502
  /**
4447
4503
  * ListByResourceGroupNext
@@ -4450,12 +4506,12 @@ class LabsImpl {
4450
4506
  * @param options The options parameters.
4451
4507
  */
4452
4508
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
4453
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
4509
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
4454
4510
  }
4455
4511
  }
4456
4512
  // Operation Specifications
4457
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
4458
- const listBySubscriptionOperationSpec$1 = {
4513
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4514
+ const listBySubscriptionOperationSpec = {
4459
4515
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labs",
4460
4516
  httpMethod: "GET",
4461
4517
  responses: {
@@ -4469,9 +4525,9 @@ const listBySubscriptionOperationSpec$1 = {
4469
4525
  queryParameters: [apiVersion, filter],
4470
4526
  urlParameters: [$host, subscriptionId],
4471
4527
  headerParameters: [accept],
4472
- serializer: serializer$3
4528
+ serializer: serializer$6
4473
4529
  };
4474
- const listByResourceGroupOperationSpec$1 = {
4530
+ const listByResourceGroupOperationSpec = {
4475
4531
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs",
4476
4532
  httpMethod: "GET",
4477
4533
  responses: {
@@ -4489,9 +4545,9 @@ const listByResourceGroupOperationSpec$1 = {
4489
4545
  resourceGroupName
4490
4546
  ],
4491
4547
  headerParameters: [accept],
4492
- serializer: serializer$3
4548
+ serializer: serializer$6
4493
4549
  };
4494
- const getOperationSpec$2 = {
4550
+ const getOperationSpec$4 = {
4495
4551
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}",
4496
4552
  httpMethod: "GET",
4497
4553
  responses: {
@@ -4510,7 +4566,7 @@ const getOperationSpec$2 = {
4510
4566
  labName
4511
4567
  ],
4512
4568
  headerParameters: [accept],
4513
- serializer: serializer$3
4569
+ serializer: serializer$6
4514
4570
  };
4515
4571
  const createOrUpdateOperationSpec$2 = {
4516
4572
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}",
@@ -4542,7 +4598,7 @@ const createOrUpdateOperationSpec$2 = {
4542
4598
  ],
4543
4599
  headerParameters: [accept, contentType],
4544
4600
  mediaType: "json",
4545
- serializer: serializer$3
4601
+ serializer: serializer$6
4546
4602
  };
4547
4603
  const updateOperationSpec$2 = {
4548
4604
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}",
@@ -4574,9 +4630,9 @@ const updateOperationSpec$2 = {
4574
4630
  ],
4575
4631
  headerParameters: [accept, contentType],
4576
4632
  mediaType: "json",
4577
- serializer: serializer$3
4633
+ serializer: serializer$6
4578
4634
  };
4579
- const deleteOperationSpec$1 = {
4635
+ const deleteOperationSpec$2 = {
4580
4636
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}",
4581
4637
  httpMethod: "DELETE",
4582
4638
  responses: {
@@ -4596,7 +4652,7 @@ const deleteOperationSpec$1 = {
4596
4652
  labName
4597
4653
  ],
4598
4654
  headerParameters: [accept],
4599
- serializer: serializer$3
4655
+ serializer: serializer$6
4600
4656
  };
4601
4657
  const publishOperationSpec = {
4602
4658
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/publish",
@@ -4618,7 +4674,7 @@ const publishOperationSpec = {
4618
4674
  labName
4619
4675
  ],
4620
4676
  headerParameters: [accept],
4621
- serializer: serializer$3
4677
+ serializer: serializer$6
4622
4678
  };
4623
4679
  const syncGroupOperationSpec = {
4624
4680
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/syncGroup",
@@ -4640,9 +4696,9 @@ const syncGroupOperationSpec = {
4640
4696
  labName
4641
4697
  ],
4642
4698
  headerParameters: [accept],
4643
- serializer: serializer$3
4699
+ serializer: serializer$6
4644
4700
  };
4645
- const listBySubscriptionNextOperationSpec$1 = {
4701
+ const listBySubscriptionNextOperationSpec = {
4646
4702
  path: "{nextLink}",
4647
4703
  httpMethod: "GET",
4648
4704
  responses: {
@@ -4660,9 +4716,9 @@ const listBySubscriptionNextOperationSpec$1 = {
4660
4716
  nextLink
4661
4717
  ],
4662
4718
  headerParameters: [accept],
4663
- serializer: serializer$3
4719
+ serializer: serializer$6
4664
4720
  };
4665
- const listByResourceGroupNextOperationSpec$1 = {
4721
+ const listByResourceGroupNextOperationSpec = {
4666
4722
  path: "{nextLink}",
4667
4723
  httpMethod: "GET",
4668
4724
  responses: {
@@ -4681,7 +4737,7 @@ const listByResourceGroupNextOperationSpec$1 = {
4681
4737
  nextLink
4682
4738
  ],
4683
4739
  headerParameters: [accept],
4684
- serializer: serializer$3
4740
+ serializer: serializer$6
4685
4741
  };
4686
4742
 
4687
4743
  /*
@@ -4710,7 +4766,7 @@ class OperationResultsImpl {
4710
4766
  }
4711
4767
  }
4712
4768
  // Operation Specifications
4713
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
4769
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4714
4770
  const getOperationSpec$3 = {
4715
4771
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/operationResults/{operationResultId}",
4716
4772
  httpMethod: "GET",
@@ -4730,7 +4786,7 @@ const getOperationSpec$3 = {
4730
4786
  operationResultId
4731
4787
  ],
4732
4788
  headerParameters: [accept],
4733
- serializer: serializer$4
4789
+ serializer: serializer$5
4734
4790
  };
4735
4791
 
4736
4792
  /*
@@ -4809,7 +4865,7 @@ class SchedulesImpl {
4809
4865
  * @param options The options parameters.
4810
4866
  */
4811
4867
  _listByLab(resourceGroupName, labName, options) {
4812
- return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec);
4868
+ return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec$2);
4813
4869
  }
4814
4870
  /**
4815
4871
  * Returns the properties of a lab Schedule.
@@ -4821,7 +4877,7 @@ class SchedulesImpl {
4821
4877
  * @param options The options parameters.
4822
4878
  */
4823
4879
  get(resourceGroupName, labName, scheduleName, options) {
4824
- return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, options }, getOperationSpec$4);
4880
+ return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, options }, getOperationSpec$2);
4825
4881
  }
4826
4882
  /**
4827
4883
  * Operation to create or update a lab schedule.
@@ -4834,7 +4890,7 @@ class SchedulesImpl {
4834
4890
  * @param options The options parameters.
4835
4891
  */
4836
4892
  createOrUpdate(resourceGroupName, labName, scheduleName, body, options) {
4837
- return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, createOrUpdateOperationSpec$3);
4893
+ return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, createOrUpdateOperationSpec$1);
4838
4894
  }
4839
4895
  /**
4840
4896
  * Operation to update a lab schedule.
@@ -4847,7 +4903,7 @@ class SchedulesImpl {
4847
4903
  * @param options The options parameters.
4848
4904
  */
4849
4905
  update(resourceGroupName, labName, scheduleName, body, options) {
4850
- return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, updateOperationSpec$3);
4906
+ return this.client.sendOperationRequest({ resourceGroupName, labName, scheduleName, body, options }, updateOperationSpec$1);
4851
4907
  }
4852
4908
  /**
4853
4909
  * Operation to delete a schedule resource.
@@ -4882,12 +4938,14 @@ class SchedulesImpl {
4882
4938
  }
4883
4939
  };
4884
4940
  });
4885
- const lro = new LroImpl(sendOperation, { resourceGroupName, labName, scheduleName, options }, deleteOperationSpec$2);
4886
- return new coreLro.LroEngine(lro, {
4941
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labName, scheduleName, options }, deleteOperationSpec$1);
4942
+ const poller = new coreLro.LroEngine(lro, {
4887
4943
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4888
4944
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4889
4945
  lroResourceLocationConfig: "location"
4890
4946
  });
4947
+ yield poller.poll();
4948
+ return poller;
4891
4949
  });
4892
4950
  }
4893
4951
  /**
@@ -4914,12 +4972,12 @@ class SchedulesImpl {
4914
4972
  * @param options The options parameters.
4915
4973
  */
4916
4974
  _listByLabNext(resourceGroupName, labName, nextLink, options) {
4917
- return this.client.sendOperationRequest({ resourceGroupName, labName, nextLink, options }, listByLabNextOperationSpec);
4975
+ return this.client.sendOperationRequest({ resourceGroupName, labName, nextLink, options }, listByLabNextOperationSpec$2);
4918
4976
  }
4919
4977
  }
4920
4978
  // Operation Specifications
4921
- const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
4922
- const listByLabOperationSpec = {
4979
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4980
+ const listByLabOperationSpec$2 = {
4923
4981
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules",
4924
4982
  httpMethod: "GET",
4925
4983
  responses: {
@@ -4938,9 +4996,9 @@ const listByLabOperationSpec = {
4938
4996
  labName
4939
4997
  ],
4940
4998
  headerParameters: [accept],
4941
- serializer: serializer$5
4999
+ serializer: serializer$4
4942
5000
  };
4943
- const getOperationSpec$4 = {
5001
+ const getOperationSpec$2 = {
4944
5002
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
4945
5003
  httpMethod: "GET",
4946
5004
  responses: {
@@ -4960,9 +5018,9 @@ const getOperationSpec$4 = {
4960
5018
  scheduleName
4961
5019
  ],
4962
5020
  headerParameters: [accept],
4963
- serializer: serializer$5
5021
+ serializer: serializer$4
4964
5022
  };
4965
- const createOrUpdateOperationSpec$3 = {
5023
+ const createOrUpdateOperationSpec$1 = {
4966
5024
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
4967
5025
  httpMethod: "PUT",
4968
5026
  responses: {
@@ -4987,9 +5045,9 @@ const createOrUpdateOperationSpec$3 = {
4987
5045
  ],
4988
5046
  headerParameters: [accept, contentType],
4989
5047
  mediaType: "json",
4990
- serializer: serializer$5
5048
+ serializer: serializer$4
4991
5049
  };
4992
- const updateOperationSpec$3 = {
5050
+ const updateOperationSpec$1 = {
4993
5051
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
4994
5052
  httpMethod: "PATCH",
4995
5053
  responses: {
@@ -5011,9 +5069,9 @@ const updateOperationSpec$3 = {
5011
5069
  ],
5012
5070
  headerParameters: [accept, contentType],
5013
5071
  mediaType: "json",
5014
- serializer: serializer$5
5072
+ serializer: serializer$4
5015
5073
  };
5016
- const deleteOperationSpec$2 = {
5074
+ const deleteOperationSpec$1 = {
5017
5075
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}",
5018
5076
  httpMethod: "DELETE",
5019
5077
  responses: {
@@ -5034,9 +5092,9 @@ const deleteOperationSpec$2 = {
5034
5092
  scheduleName
5035
5093
  ],
5036
5094
  headerParameters: [accept],
5037
- serializer: serializer$5
5095
+ serializer: serializer$4
5038
5096
  };
5039
- const listByLabNextOperationSpec = {
5097
+ const listByLabNextOperationSpec$2 = {
5040
5098
  path: "{nextLink}",
5041
5099
  httpMethod: "GET",
5042
5100
  responses: {
@@ -5056,7 +5114,7 @@ const listByLabNextOperationSpec = {
5056
5114
  labName
5057
5115
  ],
5058
5116
  headerParameters: [accept],
5059
- serializer: serializer$5
5117
+ serializer: serializer$4
5060
5118
  };
5061
5119
 
5062
5120
  /*
@@ -5147,7 +5205,7 @@ class UsersImpl {
5147
5205
  * @param options The options parameters.
5148
5206
  */
5149
5207
  get(resourceGroupName, labName, userName, options) {
5150
- return this.client.sendOperationRequest({ resourceGroupName, labName, userName, options }, getOperationSpec$5);
5208
+ return this.client.sendOperationRequest({ resourceGroupName, labName, userName, options }, getOperationSpec$1);
5151
5209
  }
5152
5210
  /**
5153
5211
  * Operation to create or update a lab user.
@@ -5183,12 +5241,14 @@ class UsersImpl {
5183
5241
  }
5184
5242
  };
5185
5243
  });
5186
- const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, createOrUpdateOperationSpec$4);
5187
- return new coreLro.LroEngine(lro, {
5244
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, createOrUpdateOperationSpec);
5245
+ const poller = new coreLro.LroEngine(lro, {
5188
5246
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5189
5247
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5190
5248
  lroResourceLocationConfig: "original-uri"
5191
5249
  });
5250
+ yield poller.poll();
5251
+ return poller;
5192
5252
  });
5193
5253
  }
5194
5254
  /**
@@ -5241,12 +5301,14 @@ class UsersImpl {
5241
5301
  }
5242
5302
  };
5243
5303
  });
5244
- const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, updateOperationSpec$4);
5245
- return new coreLro.LroEngine(lro, {
5304
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, updateOperationSpec);
5305
+ const poller = new coreLro.LroEngine(lro, {
5246
5306
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5247
5307
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5248
5308
  lroResourceLocationConfig: "location"
5249
5309
  });
5310
+ yield poller.poll();
5311
+ return poller;
5250
5312
  });
5251
5313
  }
5252
5314
  /**
@@ -5298,12 +5360,14 @@ class UsersImpl {
5298
5360
  }
5299
5361
  };
5300
5362
  });
5301
- const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, options }, deleteOperationSpec$3);
5302
- return new coreLro.LroEngine(lro, {
5363
+ const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, options }, deleteOperationSpec);
5364
+ const poller = new coreLro.LroEngine(lro, {
5303
5365
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5304
5366
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5305
5367
  lroResourceLocationConfig: "location"
5306
5368
  });
5369
+ yield poller.poll();
5370
+ return poller;
5307
5371
  });
5308
5372
  }
5309
5373
  /**
@@ -5356,11 +5420,13 @@ class UsersImpl {
5356
5420
  };
5357
5421
  });
5358
5422
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, inviteOperationSpec);
5359
- return new coreLro.LroEngine(lro, {
5423
+ const poller = new coreLro.LroEngine(lro, {
5360
5424
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5361
5425
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5362
5426
  lroResourceLocationConfig: "location"
5363
5427
  });
5428
+ yield poller.poll();
5429
+ return poller;
5364
5430
  });
5365
5431
  }
5366
5432
  /**
@@ -5392,7 +5458,7 @@ class UsersImpl {
5392
5458
  }
5393
5459
  }
5394
5460
  // Operation Specifications
5395
- const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
5461
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5396
5462
  const listByLabOperationSpec$1 = {
5397
5463
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users",
5398
5464
  httpMethod: "GET",
@@ -5412,9 +5478,9 @@ const listByLabOperationSpec$1 = {
5412
5478
  labName
5413
5479
  ],
5414
5480
  headerParameters: [accept],
5415
- serializer: serializer$6
5481
+ serializer: serializer$3
5416
5482
  };
5417
- const getOperationSpec$5 = {
5483
+ const getOperationSpec$1 = {
5418
5484
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
5419
5485
  httpMethod: "GET",
5420
5486
  responses: {
@@ -5434,9 +5500,9 @@ const getOperationSpec$5 = {
5434
5500
  userName
5435
5501
  ],
5436
5502
  headerParameters: [accept],
5437
- serializer: serializer$6
5503
+ serializer: serializer$3
5438
5504
  };
5439
- const createOrUpdateOperationSpec$4 = {
5505
+ const createOrUpdateOperationSpec = {
5440
5506
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
5441
5507
  httpMethod: "PUT",
5442
5508
  responses: {
@@ -5467,9 +5533,9 @@ const createOrUpdateOperationSpec$4 = {
5467
5533
  ],
5468
5534
  headerParameters: [accept, contentType],
5469
5535
  mediaType: "json",
5470
- serializer: serializer$6
5536
+ serializer: serializer$3
5471
5537
  };
5472
- const updateOperationSpec$4 = {
5538
+ const updateOperationSpec = {
5473
5539
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
5474
5540
  httpMethod: "PATCH",
5475
5541
  responses: {
@@ -5500,9 +5566,9 @@ const updateOperationSpec$4 = {
5500
5566
  ],
5501
5567
  headerParameters: [accept, contentType],
5502
5568
  mediaType: "json",
5503
- serializer: serializer$6
5569
+ serializer: serializer$3
5504
5570
  };
5505
- const deleteOperationSpec$3 = {
5571
+ const deleteOperationSpec = {
5506
5572
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}",
5507
5573
  httpMethod: "DELETE",
5508
5574
  responses: {
@@ -5523,7 +5589,7 @@ const deleteOperationSpec$3 = {
5523
5589
  userName
5524
5590
  ],
5525
5591
  headerParameters: [accept],
5526
- serializer: serializer$6
5592
+ serializer: serializer$3
5527
5593
  };
5528
5594
  const inviteOperationSpec = {
5529
5595
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/users/{userName}/invite",
@@ -5548,7 +5614,7 @@ const inviteOperationSpec = {
5548
5614
  ],
5549
5615
  headerParameters: [accept, contentType],
5550
5616
  mediaType: "json",
5551
- serializer: serializer$6
5617
+ serializer: serializer$3
5552
5618
  };
5553
5619
  const listByLabNextOperationSpec$1 = {
5554
5620
  path: "{nextLink}",
@@ -5570,7 +5636,7 @@ const listByLabNextOperationSpec$1 = {
5570
5636
  labName
5571
5637
  ],
5572
5638
  headerParameters: [accept],
5573
- serializer: serializer$6
5639
+ serializer: serializer$3
5574
5640
  };
5575
5641
 
5576
5642
  /*
@@ -5649,7 +5715,7 @@ class VirtualMachinesImpl {
5649
5715
  * @param options The options parameters.
5650
5716
  */
5651
5717
  _listByLab(resourceGroupName, labName, options) {
5652
- return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec$2);
5718
+ return this.client.sendOperationRequest({ resourceGroupName, labName, options }, listByLabOperationSpec);
5653
5719
  }
5654
5720
  /**
5655
5721
  * Returns the properties for a lab virtual machine.
@@ -5661,7 +5727,7 @@ class VirtualMachinesImpl {
5661
5727
  * @param options The options parameters.
5662
5728
  */
5663
5729
  get(resourceGroupName, labName, virtualMachineName, options) {
5664
- return this.client.sendOperationRequest({ resourceGroupName, labName, virtualMachineName, options }, getOperationSpec$6);
5730
+ return this.client.sendOperationRequest({ resourceGroupName, labName, virtualMachineName, options }, getOperationSpec);
5665
5731
  }
5666
5732
  /**
5667
5733
  * Action to start a lab virtual machine.
@@ -5697,11 +5763,13 @@ class VirtualMachinesImpl {
5697
5763
  };
5698
5764
  });
5699
5765
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, startOperationSpec);
5700
- return new coreLro.LroEngine(lro, {
5766
+ const poller = new coreLro.LroEngine(lro, {
5701
5767
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5702
5768
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5703
5769
  lroResourceLocationConfig: "location"
5704
5770
  });
5771
+ yield poller.poll();
5772
+ return poller;
5705
5773
  });
5706
5774
  }
5707
5775
  /**
@@ -5753,11 +5821,13 @@ class VirtualMachinesImpl {
5753
5821
  };
5754
5822
  });
5755
5823
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, stopOperationSpec);
5756
- return new coreLro.LroEngine(lro, {
5824
+ const poller = new coreLro.LroEngine(lro, {
5757
5825
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5758
5826
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5759
5827
  lroResourceLocationConfig: "location"
5760
5828
  });
5829
+ yield poller.poll();
5830
+ return poller;
5761
5831
  });
5762
5832
  }
5763
5833
  /**
@@ -5810,11 +5880,13 @@ class VirtualMachinesImpl {
5810
5880
  };
5811
5881
  });
5812
5882
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, reimageOperationSpec);
5813
- return new coreLro.LroEngine(lro, {
5883
+ const poller = new coreLro.LroEngine(lro, {
5814
5884
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5815
5885
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5816
5886
  lroResourceLocationConfig: "location"
5817
5887
  });
5888
+ yield poller.poll();
5889
+ return poller;
5818
5890
  });
5819
5891
  }
5820
5892
  /**
@@ -5868,11 +5940,13 @@ class VirtualMachinesImpl {
5868
5940
  };
5869
5941
  });
5870
5942
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, redeployOperationSpec);
5871
- return new coreLro.LroEngine(lro, {
5943
+ const poller = new coreLro.LroEngine(lro, {
5872
5944
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5873
5945
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5874
5946
  lroResourceLocationConfig: "location"
5875
5947
  });
5948
+ yield poller.poll();
5949
+ return poller;
5876
5950
  });
5877
5951
  }
5878
5952
  /**
@@ -5926,11 +6000,13 @@ class VirtualMachinesImpl {
5926
6000
  };
5927
6001
  });
5928
6002
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, body, options }, resetPasswordOperationSpec);
5929
- return new coreLro.LroEngine(lro, {
6003
+ const poller = new coreLro.LroEngine(lro, {
5930
6004
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5931
6005
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5932
6006
  lroResourceLocationConfig: "location"
5933
6007
  });
6008
+ yield poller.poll();
6009
+ return poller;
5934
6010
  });
5935
6011
  }
5936
6012
  /**
@@ -5958,12 +6034,12 @@ class VirtualMachinesImpl {
5958
6034
  * @param options The options parameters.
5959
6035
  */
5960
6036
  _listByLabNext(resourceGroupName, labName, nextLink, options) {
5961
- return this.client.sendOperationRequest({ resourceGroupName, labName, nextLink, options }, listByLabNextOperationSpec$2);
6037
+ return this.client.sendOperationRequest({ resourceGroupName, labName, nextLink, options }, listByLabNextOperationSpec);
5962
6038
  }
5963
6039
  }
5964
6040
  // Operation Specifications
5965
- const serializer$7 = coreClient.createSerializer(Mappers, /* isXml */ false);
5966
- const listByLabOperationSpec$2 = {
6041
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6042
+ const listByLabOperationSpec = {
5967
6043
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines",
5968
6044
  httpMethod: "GET",
5969
6045
  responses: {
@@ -5982,9 +6058,9 @@ const listByLabOperationSpec$2 = {
5982
6058
  labName
5983
6059
  ],
5984
6060
  headerParameters: [accept],
5985
- serializer: serializer$7
6061
+ serializer: serializer$2
5986
6062
  };
5987
- const getOperationSpec$6 = {
6063
+ const getOperationSpec = {
5988
6064
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}",
5989
6065
  httpMethod: "GET",
5990
6066
  responses: {
@@ -6004,7 +6080,7 @@ const getOperationSpec$6 = {
6004
6080
  virtualMachineName
6005
6081
  ],
6006
6082
  headerParameters: [accept],
6007
- serializer: serializer$7
6083
+ serializer: serializer$2
6008
6084
  };
6009
6085
  const startOperationSpec = {
6010
6086
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/start",
@@ -6027,7 +6103,7 @@ const startOperationSpec = {
6027
6103
  virtualMachineName
6028
6104
  ],
6029
6105
  headerParameters: [accept],
6030
- serializer: serializer$7
6106
+ serializer: serializer$2
6031
6107
  };
6032
6108
  const stopOperationSpec = {
6033
6109
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/stop",
@@ -6050,7 +6126,7 @@ const stopOperationSpec = {
6050
6126
  virtualMachineName
6051
6127
  ],
6052
6128
  headerParameters: [accept],
6053
- serializer: serializer$7
6129
+ serializer: serializer$2
6054
6130
  };
6055
6131
  const reimageOperationSpec = {
6056
6132
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/reimage",
@@ -6073,7 +6149,7 @@ const reimageOperationSpec = {
6073
6149
  virtualMachineName
6074
6150
  ],
6075
6151
  headerParameters: [accept],
6076
- serializer: serializer$7
6152
+ serializer: serializer$2
6077
6153
  };
6078
6154
  const redeployOperationSpec = {
6079
6155
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/redeploy",
@@ -6096,7 +6172,7 @@ const redeployOperationSpec = {
6096
6172
  virtualMachineName
6097
6173
  ],
6098
6174
  headerParameters: [accept],
6099
- serializer: serializer$7
6175
+ serializer: serializer$2
6100
6176
  };
6101
6177
  const resetPasswordOperationSpec = {
6102
6178
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword",
@@ -6121,9 +6197,9 @@ const resetPasswordOperationSpec = {
6121
6197
  ],
6122
6198
  headerParameters: [accept, contentType],
6123
6199
  mediaType: "json",
6124
- serializer: serializer$7
6200
+ serializer: serializer$2
6125
6201
  };
6126
- const listByLabNextOperationSpec$2 = {
6202
+ const listByLabNextOperationSpec = {
6127
6203
  path: "{nextLink}",
6128
6204
  httpMethod: "GET",
6129
6205
  responses: {
@@ -6143,7 +6219,7 @@ const listByLabNextOperationSpec$2 = {
6143
6219
  labName
6144
6220
  ],
6145
6221
  headerParameters: [accept],
6146
- serializer: serializer$7
6222
+ serializer: serializer$2
6147
6223
  };
6148
6224
 
6149
6225
  /*
@@ -6231,7 +6307,7 @@ class UsagesImpl {
6231
6307
  }
6232
6308
  }
6233
6309
  // Operation Specifications
6234
- const serializer$8 = coreClient.createSerializer(Mappers, /* isXml */ false);
6310
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6235
6311
  const listByLocationOperationSpec = {
6236
6312
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/locations/{location}/usages",
6237
6313
  httpMethod: "GET",
@@ -6250,7 +6326,7 @@ const listByLocationOperationSpec = {
6250
6326
  location
6251
6327
  ],
6252
6328
  headerParameters: [accept],
6253
- serializer: serializer$8
6329
+ serializer: serializer$1
6254
6330
  };
6255
6331
  const listByLocationNextOperationSpec = {
6256
6332
  path: "{nextLink}",
@@ -6271,7 +6347,7 @@ const listByLocationNextOperationSpec = {
6271
6347
  location
6272
6348
  ],
6273
6349
  headerParameters: [accept],
6274
- serializer: serializer$8
6350
+ serializer: serializer$1
6275
6351
  };
6276
6352
 
6277
6353
  /*
@@ -6344,7 +6420,7 @@ class SkusImpl {
6344
6420
  * @param options The options parameters.
6345
6421
  */
6346
6422
  _list(options) {
6347
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
6423
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
6348
6424
  }
6349
6425
  /**
6350
6426
  * ListNext
@@ -6352,12 +6428,12 @@ class SkusImpl {
6352
6428
  * @param options The options parameters.
6353
6429
  */
6354
6430
  _listNext(nextLink, options) {
6355
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
6431
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
6356
6432
  }
6357
6433
  }
6358
6434
  // Operation Specifications
6359
- const serializer$9 = coreClient.createSerializer(Mappers, /* isXml */ false);
6360
- const listOperationSpec$1 = {
6435
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6436
+ const listOperationSpec = {
6361
6437
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/skus",
6362
6438
  httpMethod: "GET",
6363
6439
  responses: {
@@ -6371,9 +6447,9 @@ const listOperationSpec$1 = {
6371
6447
  queryParameters: [apiVersion, filter],
6372
6448
  urlParameters: [$host, subscriptionId],
6373
6449
  headerParameters: [accept],
6374
- serializer: serializer$9
6450
+ serializer
6375
6451
  };
6376
- const listNextOperationSpec$1 = {
6452
+ const listNextOperationSpec = {
6377
6453
  path: "{nextLink}",
6378
6454
  httpMethod: "GET",
6379
6455
  responses: {
@@ -6391,7 +6467,7 @@ const listNextOperationSpec$1 = {
6391
6467
  nextLink
6392
6468
  ],
6393
6469
  headerParameters: [accept],
6394
- serializer: serializer$9
6470
+ serializer
6395
6471
  };
6396
6472
 
6397
6473
  /*
@@ -6401,7 +6477,7 @@ const listNextOperationSpec$1 = {
6401
6477
  * Code generated by Microsoft (R) AutoRest Code Generator.
6402
6478
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6403
6479
  */
6404
- class LabServicesClient extends coreClient.ServiceClient {
6480
+ class LabServicesClient extends coreClient__namespace.ServiceClient {
6405
6481
  /**
6406
6482
  * Initializes a new instance of the LabServicesClient class.
6407
6483
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -6409,6 +6485,7 @@ class LabServicesClient extends coreClient.ServiceClient {
6409
6485
  * @param options The parameter options
6410
6486
  */
6411
6487
  constructor(credentials, subscriptionId, options) {
6488
+ var _a, _b;
6412
6489
  if (credentials === undefined) {
6413
6490
  throw new Error("'credentials' cannot be null");
6414
6491
  }
@@ -6423,7 +6500,7 @@ class LabServicesClient extends coreClient.ServiceClient {
6423
6500
  requestContentType: "application/json; charset=utf-8",
6424
6501
  credential: credentials
6425
6502
  };
6426
- const packageDetails = `azsdk-js-arm-labservices/3.0.0-beta.1`;
6503
+ const packageDetails = `azsdk-js-arm-labservices/3.0.0-beta.2`;
6427
6504
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
6428
6505
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
6429
6506
  : `${packageDetails}`;
@@ -6432,8 +6509,24 @@ class LabServicesClient extends coreClient.ServiceClient {
6432
6509
  }
6433
6510
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
6434
6511
  userAgentPrefix
6435
- }, baseUri: options.endpoint || "https://management.azure.com" });
6512
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
6436
6513
  super(optionsWithDefaults);
6514
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6515
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
6516
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6517
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
6518
+ if (!bearerTokenAuthenticationPolicyFound) {
6519
+ this.pipeline.removePolicy({
6520
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
6521
+ });
6522
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6523
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
6524
+ challengeCallbacks: {
6525
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6526
+ }
6527
+ }));
6528
+ }
6529
+ }
6437
6530
  // Parameter assignments
6438
6531
  this.subscriptionId = subscriptionId;
6439
6532
  // Assigning values to Constant parameters