@azure/arm-sqlvirtualmachine 5.0.0-beta.7 → 5.0.0-beta.8

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 (122) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/index.js +903 -244
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +2 -2
  7. package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +1 -1
  9. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +13 -6
  10. package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +1 -1
  11. package/dist-esm/samples-dev/operationsListSample.js +13 -6
  12. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  13. package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +1 -1
  14. package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +1 -1
  15. package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +1 -1
  16. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +13 -6
  17. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +1 -1
  18. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +13 -6
  19. package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +1 -1
  20. package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +1 -1
  21. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts +2 -0
  22. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js +45 -0
  24. package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js.map +1 -0
  25. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +9 -6
  26. package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -1
  27. package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +1 -1
  29. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +13 -6
  30. package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -1
  31. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +13 -6
  32. package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -1
  33. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +13 -6
  34. package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -1
  35. package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +5 -5
  36. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +5 -5
  37. package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -1
  38. package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +1 -1
  39. package/dist-esm/src/lroImpl.d.ts +6 -11
  40. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  41. package/dist-esm/src/lroImpl.js +12 -20
  42. package/dist-esm/src/lroImpl.js.map +1 -1
  43. package/dist-esm/src/models/index.d.ts +234 -68
  44. package/dist-esm/src/models/index.d.ts.map +1 -1
  45. package/dist-esm/src/models/index.js +8 -0
  46. package/dist-esm/src/models/index.js.map +1 -1
  47. package/dist-esm/src/models/mappers.d.ts +14 -0
  48. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  49. package/dist-esm/src/models/mappers.js +325 -0
  50. package/dist-esm/src/models/mappers.js.map +1 -1
  51. package/dist-esm/src/models/parameters.d.ts +1 -0
  52. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  53. package/dist-esm/src/models/parameters.js +11 -2
  54. package/dist-esm/src/models/parameters.js.map +1 -1
  55. package/dist-esm/src/operations/availabilityGroupListeners.d.ts +3 -3
  56. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
  57. package/dist-esm/src/operations/availabilityGroupListeners.js +67 -33
  58. package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
  59. package/dist-esm/src/operations/index.d.ts +1 -0
  60. package/dist-esm/src/operations/index.d.ts.map +1 -1
  61. package/dist-esm/src/operations/index.js +1 -0
  62. package/dist-esm/src/operations/index.js.map +1 -1
  63. package/dist-esm/src/operations/operations.js +18 -7
  64. package/dist-esm/src/operations/operations.js.map +1 -1
  65. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts +4 -4
  66. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
  67. package/dist-esm/src/operations/sqlVirtualMachineGroups.js +97 -35
  68. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
  69. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
  70. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  71. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js +118 -0
  72. package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
  73. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +29 -29
  74. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
  75. package/dist-esm/src/operations/sqlVirtualMachines.js +215 -124
  76. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
  77. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts +3 -3
  78. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -1
  79. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  80. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  81. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  82. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  83. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts +4 -4
  84. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -1
  85. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
  86. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
  87. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
  88. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +26 -26
  90. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
  91. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +2 -1
  92. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
  93. package/dist-esm/src/sqlVirtualMachineManagementClient.js +4 -3
  94. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
  95. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts +4 -0
  96. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts.map +1 -0
  97. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js +78 -0
  98. package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js.map +1 -0
  99. package/package.json +10 -10
  100. package/review/arm-sqlvirtualmachine.api.md +131 -13
  101. package/src/lroImpl.ts +31 -23
  102. package/src/models/index.ts +210 -25
  103. package/src/models/mappers.ts +340 -0
  104. package/src/models/parameters.ts +15 -2
  105. package/src/operations/availabilityGroupListeners.ts +54 -28
  106. package/src/operations/index.ts +1 -0
  107. package/src/operations/operations.ts +6 -2
  108. package/src/operations/sqlVirtualMachineGroups.ts +88 -42
  109. package/src/operations/sqlVirtualMachineTroubleshoot.ts +172 -0
  110. package/src/operations/sqlVirtualMachines.ts +241 -181
  111. package/src/operationsInterfaces/availabilityGroupListeners.ts +4 -4
  112. package/src/operationsInterfaces/index.ts +1 -0
  113. package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +6 -6
  114. package/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.ts +51 -0
  115. package/src/operationsInterfaces/sqlVirtualMachines.ts +57 -57
  116. package/src/sqlVirtualMachineManagementClient.ts +10 -4
  117. package/types/arm-sqlvirtualmachine.d.ts +245 -38
  118. package/types/tsdoc-metadata.json +1 -1
  119. package/dist-esm/test/sampleTest.d.ts +0 -2
  120. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  121. package/dist-esm/test/sampleTest.js +0 -38
  122. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"sqlVirtualMachines.d.ts","sourceRoot":"","sources":["../../../src/operations/sqlVirtualMachines.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,iBAAiB,EAEjB,gDAAgD,EAGhD,oCAAoC,EAGpC,mDAAmD,EAEnD,+CAA+C,EAC/C,wCAAwC,EACxC,mCAAmC,EACnC,6BAA6B,EAC7B,8CAA8C,EAC9C,wCAAwC,EACxC,sCAAsC,EACtC,uBAAuB,EACvB,sCAAsC,EACtC,gCAAgC,EAIjC,MAAM,WAAW,CAAC;AAGnB,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;OAMG;IACI,gBA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;CAUjC"}
@@ -10,8 +10,8 @@ import { setContinuationToken } from "../pagingHelper";
10
10
  import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
- import { LroEngine } from "@azure/core-lro";
14
- import { LroImpl } from "../lroImpl";
13
+ import { createHttpPoller } from "@azure/core-lro";
14
+ import { createLroSpec } from "../lroImpl";
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing SqlVirtualMachines operations. */
17
17
  export class SqlVirtualMachinesImpl {
@@ -68,17 +68,24 @@ export class SqlVirtualMachinesImpl {
68
68
  }
69
69
  listBySqlVmGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
70
70
  return __asyncGenerator(this, arguments, function* listBySqlVmGroupPagingAll_1() {
71
- var e_1, _a;
71
+ var _a, e_1, _b, _c;
72
72
  try {
73
- for (var _b = __asyncValues(this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
74
- const page = _c.value;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
+ for (var _d = true, _e = __asyncValues(this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ try {
77
+ const page = _c;
78
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
79
+ }
80
+ finally {
81
+ _d = true;
82
+ }
76
83
  }
77
84
  }
78
85
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
86
  finally {
80
87
  try {
81
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
88
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
89
  }
83
90
  finally { if (e_1) throw e_1.error; }
84
91
  }
@@ -127,17 +134,24 @@ export class SqlVirtualMachinesImpl {
127
134
  }
128
135
  listPagingAll(options) {
129
136
  return __asyncGenerator(this, arguments, function* listPagingAll_1() {
130
- var e_2, _a;
137
+ var _a, e_2, _b, _c;
131
138
  try {
132
- for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
133
- const page = _c.value;
134
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
139
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
140
+ _c = _f.value;
141
+ _d = false;
142
+ try {
143
+ const page = _c;
144
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
145
+ }
146
+ finally {
147
+ _d = true;
148
+ }
135
149
  }
136
150
  }
137
151
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
138
152
  finally {
139
153
  try {
140
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
154
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
141
155
  }
142
156
  finally { if (e_2) throw e_2.error; }
143
157
  }
@@ -188,17 +202,24 @@ export class SqlVirtualMachinesImpl {
188
202
  }
189
203
  listByResourceGroupPagingAll(resourceGroupName, options) {
190
204
  return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
191
- var e_3, _a;
205
+ var _a, e_3, _b, _c;
192
206
  try {
193
- for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
194
- const page = _c.value;
195
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
207
+ for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
208
+ _c = _f.value;
209
+ _d = false;
210
+ try {
211
+ const page = _c;
212
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
213
+ }
214
+ finally {
215
+ _d = true;
216
+ }
196
217
  }
197
218
  }
198
219
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
199
220
  finally {
200
221
  try {
201
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
222
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
202
223
  }
203
224
  finally { if (e_3) throw e_3.error; }
204
225
  }
@@ -222,18 +243,29 @@ export class SqlVirtualMachinesImpl {
222
243
  return this.client.sendOperationRequest({ options }, listOperationSpec);
223
244
  }
224
245
  /**
225
- * Starts Assessment on SQL virtual machine.
246
+ * Gets a SQL virtual machine.
226
247
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
227
248
  * value from the Azure Resource Manager API or the portal.
228
249
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
229
250
  * @param options The options parameters.
230
251
  */
231
- beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
252
+ get(resourceGroupName, sqlVirtualMachineName, options) {
253
+ return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
254
+ }
255
+ /**
256
+ * Creates or updates a SQL virtual machine.
257
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
258
+ * value from the Azure Resource Manager API or the portal.
259
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
260
+ * @param parameters The SQL virtual machine.
261
+ * @param options The options parameters.
262
+ */
263
+ beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
232
264
  return __awaiter(this, void 0, void 0, function* () {
233
265
  const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
234
266
  return this.client.sendOperationRequest(args, spec);
235
267
  });
236
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
268
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
237
269
  var _a;
238
270
  let currentRawResponse = undefined;
239
271
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -252,41 +284,47 @@ export class SqlVirtualMachinesImpl {
252
284
  }
253
285
  };
254
286
  });
255
- const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, startAssessmentOperationSpec);
256
- const poller = new LroEngine(lro, {
257
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
258
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
287
+ const lro = createLroSpec({
288
+ sendOperationFn,
289
+ args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
290
+ spec: createOrUpdateOperationSpec
291
+ });
292
+ const poller = yield createHttpPoller(lro, {
293
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
294
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
295
+ resourceLocationConfig: "azure-async-operation"
259
296
  });
260
297
  yield poller.poll();
261
298
  return poller;
262
299
  });
263
300
  }
264
301
  /**
265
- * Starts Assessment on SQL virtual machine.
302
+ * Creates or updates a SQL virtual machine.
266
303
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
267
304
  * value from the Azure Resource Manager API or the portal.
268
305
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
306
+ * @param parameters The SQL virtual machine.
269
307
  * @param options The options parameters.
270
308
  */
271
- beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
309
+ beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
272
310
  return __awaiter(this, void 0, void 0, function* () {
273
- const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
311
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
274
312
  return poller.pollUntilDone();
275
313
  });
276
314
  }
277
315
  /**
278
- * Uninstalls and reinstalls the SQL Iaas Extension.
316
+ * Deletes a SQL virtual machine.
279
317
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
280
318
  * value from the Azure Resource Manager API or the portal.
281
319
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
282
320
  * @param options The options parameters.
283
321
  */
284
- beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
322
+ beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
285
323
  return __awaiter(this, void 0, void 0, function* () {
286
324
  const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
287
325
  return this.client.sendOperationRequest(args, spec);
288
326
  });
289
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
327
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
290
328
  var _a;
291
329
  let currentRawResponse = undefined;
292
330
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -305,52 +343,47 @@ export class SqlVirtualMachinesImpl {
305
343
  }
306
344
  };
307
345
  });
308
- const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, redeployOperationSpec);
309
- const poller = new LroEngine(lro, {
310
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
311
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
346
+ const lro = createLroSpec({
347
+ sendOperationFn,
348
+ args: { resourceGroupName, sqlVirtualMachineName, options },
349
+ spec: deleteOperationSpec
350
+ });
351
+ const poller = yield createHttpPoller(lro, {
352
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
353
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
354
+ resourceLocationConfig: "location"
312
355
  });
313
356
  yield poller.poll();
314
357
  return poller;
315
358
  });
316
359
  }
317
360
  /**
318
- * Uninstalls and reinstalls the SQL Iaas Extension.
361
+ * Deletes a SQL virtual machine.
319
362
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
320
363
  * value from the Azure Resource Manager API or the portal.
321
364
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
322
365
  * @param options The options parameters.
323
366
  */
324
- beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
367
+ beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
325
368
  return __awaiter(this, void 0, void 0, function* () {
326
- const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
369
+ const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
327
370
  return poller.pollUntilDone();
328
371
  });
329
372
  }
330
373
  /**
331
- * Gets a SQL virtual machine.
332
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
333
- * value from the Azure Resource Manager API or the portal.
334
- * @param sqlVirtualMachineName Name of the SQL virtual machine.
335
- * @param options The options parameters.
336
- */
337
- get(resourceGroupName, sqlVirtualMachineName, options) {
338
- return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
339
- }
340
- /**
341
- * Creates or updates a SQL virtual machine.
374
+ * Updates a SQL virtual machine.
342
375
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
343
376
  * value from the Azure Resource Manager API or the portal.
344
377
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
345
378
  * @param parameters The SQL virtual machine.
346
379
  * @param options The options parameters.
347
380
  */
348
- beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
381
+ beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
349
382
  return __awaiter(this, void 0, void 0, function* () {
350
383
  const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
351
384
  return this.client.sendOperationRequest(args, spec);
352
385
  });
353
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
386
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
354
387
  var _a;
355
388
  let currentRawResponse = undefined;
356
389
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -369,42 +402,56 @@ export class SqlVirtualMachinesImpl {
369
402
  }
370
403
  };
371
404
  });
372
- const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec);
373
- const poller = new LroEngine(lro, {
374
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
375
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
405
+ const lro = createLroSpec({
406
+ sendOperationFn,
407
+ args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
408
+ spec: updateOperationSpec
409
+ });
410
+ const poller = yield createHttpPoller(lro, {
411
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
412
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
413
+ resourceLocationConfig: "azure-async-operation"
376
414
  });
377
415
  yield poller.poll();
378
416
  return poller;
379
417
  });
380
418
  }
381
419
  /**
382
- * Creates or updates a SQL virtual machine.
420
+ * Updates a SQL virtual machine.
383
421
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
384
422
  * value from the Azure Resource Manager API or the portal.
385
423
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
386
424
  * @param parameters The SQL virtual machine.
387
425
  * @param options The options parameters.
388
426
  */
389
- beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
427
+ beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
390
428
  return __awaiter(this, void 0, void 0, function* () {
391
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
429
+ const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
392
430
  return poller.pollUntilDone();
393
431
  });
394
432
  }
395
433
  /**
396
- * Deletes a SQL virtual machine.
434
+ * Gets all SQL virtual machines in a resource group.
435
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
436
+ * value from the Azure Resource Manager API or the portal.
437
+ * @param options The options parameters.
438
+ */
439
+ _listByResourceGroup(resourceGroupName, options) {
440
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
441
+ }
442
+ /**
443
+ * Starts SQL best practices Assessment on SQL virtual machine.
397
444
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
398
445
  * value from the Azure Resource Manager API or the portal.
399
446
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
400
447
  * @param options The options parameters.
401
448
  */
402
- beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
449
+ beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
403
450
  return __awaiter(this, void 0, void 0, function* () {
404
451
  const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
405
452
  return this.client.sendOperationRequest(args, spec);
406
453
  });
407
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
454
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
408
455
  var _a;
409
456
  let currentRawResponse = undefined;
410
457
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -423,42 +470,46 @@ export class SqlVirtualMachinesImpl {
423
470
  }
424
471
  };
425
472
  });
426
- const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec);
427
- const poller = new LroEngine(lro, {
428
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
429
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
473
+ const lro = createLroSpec({
474
+ sendOperationFn,
475
+ args: { resourceGroupName, sqlVirtualMachineName, options },
476
+ spec: startAssessmentOperationSpec
477
+ });
478
+ const poller = yield createHttpPoller(lro, {
479
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
480
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
481
+ resourceLocationConfig: "location"
430
482
  });
431
483
  yield poller.poll();
432
484
  return poller;
433
485
  });
434
486
  }
435
487
  /**
436
- * Deletes a SQL virtual machine.
488
+ * Starts SQL best practices Assessment on SQL virtual machine.
437
489
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
438
490
  * value from the Azure Resource Manager API or the portal.
439
491
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
440
492
  * @param options The options parameters.
441
493
  */
442
- beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
494
+ beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
443
495
  return __awaiter(this, void 0, void 0, function* () {
444
- const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
496
+ const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
445
497
  return poller.pollUntilDone();
446
498
  });
447
499
  }
448
500
  /**
449
- * Updates a SQL virtual machine.
501
+ * Uninstalls and reinstalls the SQL IaaS Extension.
450
502
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
451
503
  * value from the Azure Resource Manager API or the portal.
452
504
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
453
- * @param parameters The SQL virtual machine.
454
505
  * @param options The options parameters.
455
506
  */
456
- beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
507
+ beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
457
508
  return __awaiter(this, void 0, void 0, function* () {
458
509
  const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
459
510
  return this.client.sendOperationRequest(args, spec);
460
511
  });
461
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
512
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
462
513
  var _a;
463
514
  let currentRawResponse = undefined;
464
515
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -477,38 +528,33 @@ export class SqlVirtualMachinesImpl {
477
528
  }
478
529
  };
479
530
  });
480
- const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec);
481
- const poller = new LroEngine(lro, {
482
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
483
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
531
+ const lro = createLroSpec({
532
+ sendOperationFn,
533
+ args: { resourceGroupName, sqlVirtualMachineName, options },
534
+ spec: redeployOperationSpec
535
+ });
536
+ const poller = yield createHttpPoller(lro, {
537
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
538
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
539
+ resourceLocationConfig: "location"
484
540
  });
485
541
  yield poller.poll();
486
542
  return poller;
487
543
  });
488
544
  }
489
545
  /**
490
- * Updates a SQL virtual machine.
546
+ * Uninstalls and reinstalls the SQL IaaS Extension.
491
547
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
492
548
  * value from the Azure Resource Manager API or the portal.
493
549
  * @param sqlVirtualMachineName Name of the SQL virtual machine.
494
- * @param parameters The SQL virtual machine.
495
550
  * @param options The options parameters.
496
551
  */
497
- beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
552
+ beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
498
553
  return __awaiter(this, void 0, void 0, function* () {
499
- const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
554
+ const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
500
555
  return poller.pollUntilDone();
501
556
  });
502
557
  }
503
- /**
504
- * Gets all SQL virtual machines in a resource group.
505
- * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
506
- * value from the Azure Resource Manager API or the portal.
507
- * @param options The options parameters.
508
- */
509
- _listByResourceGroup(resourceGroupName, options) {
510
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
511
- }
512
558
  /**
513
559
  * ListBySqlVmGroupNext
514
560
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
@@ -548,7 +594,9 @@ const listBySqlVmGroupOperationSpec = {
548
594
  200: {
549
595
  bodyMapper: Mappers.SqlVirtualMachineListResult
550
596
  },
551
- default: {}
597
+ default: {
598
+ bodyMapper: Mappers.ErrorResponse
599
+ }
552
600
  },
553
601
  queryParameters: [Parameters.apiVersion],
554
602
  urlParameters: [
@@ -567,39 +615,15 @@ const listOperationSpec = {
567
615
  200: {
568
616
  bodyMapper: Mappers.SqlVirtualMachineListResult
569
617
  },
570
- default: {}
618
+ default: {
619
+ bodyMapper: Mappers.ErrorResponse
620
+ }
571
621
  },
572
622
  queryParameters: [Parameters.apiVersion],
573
623
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
574
624
  headerParameters: [Parameters.accept],
575
625
  serializer
576
626
  };
577
- const startAssessmentOperationSpec = {
578
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
579
- httpMethod: "POST",
580
- responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
581
- queryParameters: [Parameters.apiVersion],
582
- urlParameters: [
583
- Parameters.$host,
584
- Parameters.resourceGroupName,
585
- Parameters.subscriptionId,
586
- Parameters.sqlVirtualMachineName
587
- ],
588
- serializer
589
- };
590
- const redeployOperationSpec = {
591
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
592
- httpMethod: "POST",
593
- responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
594
- queryParameters: [Parameters.apiVersion],
595
- urlParameters: [
596
- Parameters.$host,
597
- Parameters.resourceGroupName,
598
- Parameters.subscriptionId,
599
- Parameters.sqlVirtualMachineName
600
- ],
601
- serializer
602
- };
603
627
  const getOperationSpec = {
604
628
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
605
629
  httpMethod: "GET",
@@ -607,7 +631,9 @@ const getOperationSpec = {
607
631
  200: {
608
632
  bodyMapper: Mappers.SqlVirtualMachine
609
633
  },
610
- default: {}
634
+ default: {
635
+ bodyMapper: Mappers.ErrorResponse
636
+ }
611
637
  },
612
638
  queryParameters: [Parameters.expand, Parameters.apiVersion],
613
639
  urlParameters: [
@@ -635,7 +661,9 @@ const createOrUpdateOperationSpec = {
635
661
  204: {
636
662
  bodyMapper: Mappers.SqlVirtualMachine
637
663
  },
638
- default: {}
664
+ default: {
665
+ bodyMapper: Mappers.ErrorResponse
666
+ }
639
667
  },
640
668
  requestBody: Parameters.parameters3,
641
669
  queryParameters: [Parameters.apiVersion],
@@ -652,7 +680,15 @@ const createOrUpdateOperationSpec = {
652
680
  const deleteOperationSpec = {
653
681
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
654
682
  httpMethod: "DELETE",
655
- responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
683
+ responses: {
684
+ 200: {},
685
+ 201: {},
686
+ 202: {},
687
+ 204: {},
688
+ default: {
689
+ bodyMapper: Mappers.ErrorResponse
690
+ }
691
+ },
656
692
  queryParameters: [Parameters.apiVersion],
657
693
  urlParameters: [
658
694
  Parameters.$host,
@@ -660,6 +696,7 @@ const deleteOperationSpec = {
660
696
  Parameters.subscriptionId,
661
697
  Parameters.sqlVirtualMachineName
662
698
  ],
699
+ headerParameters: [Parameters.accept],
663
700
  serializer
664
701
  };
665
702
  const updateOperationSpec = {
@@ -678,7 +715,9 @@ const updateOperationSpec = {
678
715
  204: {
679
716
  bodyMapper: Mappers.SqlVirtualMachine
680
717
  },
681
- default: {}
718
+ default: {
719
+ bodyMapper: Mappers.ErrorResponse
720
+ }
682
721
  },
683
722
  requestBody: Parameters.parameters4,
684
723
  queryParameters: [Parameters.apiVersion],
@@ -699,7 +738,9 @@ const listByResourceGroupOperationSpec = {
699
738
  200: {
700
739
  bodyMapper: Mappers.SqlVirtualMachineListResult
701
740
  },
702
- default: {}
741
+ default: {
742
+ bodyMapper: Mappers.ErrorResponse
743
+ }
703
744
  },
704
745
  queryParameters: [Parameters.apiVersion],
705
746
  urlParameters: [
@@ -710,6 +751,50 @@ const listByResourceGroupOperationSpec = {
710
751
  headerParameters: [Parameters.accept],
711
752
  serializer
712
753
  };
754
+ const startAssessmentOperationSpec = {
755
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
756
+ httpMethod: "POST",
757
+ responses: {
758
+ 200: {},
759
+ 201: {},
760
+ 202: {},
761
+ 204: {},
762
+ default: {
763
+ bodyMapper: Mappers.ErrorResponse
764
+ }
765
+ },
766
+ queryParameters: [Parameters.apiVersion],
767
+ urlParameters: [
768
+ Parameters.$host,
769
+ Parameters.resourceGroupName,
770
+ Parameters.subscriptionId,
771
+ Parameters.sqlVirtualMachineName
772
+ ],
773
+ headerParameters: [Parameters.accept],
774
+ serializer
775
+ };
776
+ const redeployOperationSpec = {
777
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
778
+ httpMethod: "POST",
779
+ responses: {
780
+ 200: {},
781
+ 201: {},
782
+ 202: {},
783
+ 204: {},
784
+ default: {
785
+ bodyMapper: Mappers.ErrorResponse
786
+ }
787
+ },
788
+ queryParameters: [Parameters.apiVersion],
789
+ urlParameters: [
790
+ Parameters.$host,
791
+ Parameters.resourceGroupName,
792
+ Parameters.subscriptionId,
793
+ Parameters.sqlVirtualMachineName
794
+ ],
795
+ headerParameters: [Parameters.accept],
796
+ serializer
797
+ };
713
798
  const listBySqlVmGroupNextOperationSpec = {
714
799
  path: "{nextLink}",
715
800
  httpMethod: "GET",
@@ -717,7 +802,9 @@ const listBySqlVmGroupNextOperationSpec = {
717
802
  200: {
718
803
  bodyMapper: Mappers.SqlVirtualMachineListResult
719
804
  },
720
- default: {}
805
+ default: {
806
+ bodyMapper: Mappers.ErrorResponse
807
+ }
721
808
  },
722
809
  urlParameters: [
723
810
  Parameters.$host,
@@ -736,7 +823,9 @@ const listNextOperationSpec = {
736
823
  200: {
737
824
  bodyMapper: Mappers.SqlVirtualMachineListResult
738
825
  },
739
- default: {}
826
+ default: {
827
+ bodyMapper: Mappers.ErrorResponse
828
+ }
740
829
  },
741
830
  urlParameters: [
742
831
  Parameters.$host,
@@ -753,7 +842,9 @@ const listByResourceGroupNextOperationSpec = {
753
842
  200: {
754
843
  bodyMapper: Mappers.SqlVirtualMachineListResult
755
844
  },
756
- default: {}
845
+ default: {
846
+ bodyMapper: Mappers.ErrorResponse
847
+ }
757
848
  },
758
849
  urlParameters: [
759
850
  Parameters.$host,