@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.
- package/CHANGELOG.md +2 -2
- package/dist/index.js +903 -244
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +13 -6
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +13 -6
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js +45 -0
- package/dist-esm/samples-dev/sqlVirtualMachineTroubleshootSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +9 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +13 -6
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +5 -5
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +5 -5
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +234 -68
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +14 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +325 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +11 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts +3 -3
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.js +67 -33
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +18 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts +4 -4
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +97 -35
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts +32 -0
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js +118 -0
- package/dist-esm/src/operations/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +29 -29
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +215 -124
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +26 -26
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +2 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +4 -3
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js +78 -0
- package/dist-esm/test/sqlvirtualmachine_operations_test.spec.js.map +1 -0
- package/package.json +10 -10
- package/review/arm-sqlvirtualmachine.api.md +131 -13
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +210 -25
- package/src/models/mappers.ts +340 -0
- package/src/models/parameters.ts +15 -2
- package/src/operations/availabilityGroupListeners.ts +54 -28
- package/src/operations/index.ts +1 -0
- package/src/operations/operations.ts +6 -2
- package/src/operations/sqlVirtualMachineGroups.ts +88 -42
- package/src/operations/sqlVirtualMachineTroubleshoot.ts +172 -0
- package/src/operations/sqlVirtualMachines.ts +241 -181
- package/src/operationsInterfaces/availabilityGroupListeners.ts +4 -4
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +6 -6
- package/src/operationsInterfaces/sqlVirtualMachineTroubleshoot.ts +51 -0
- package/src/operationsInterfaces/sqlVirtualMachines.ts +57 -57
- package/src/sqlVirtualMachineManagementClient.ts +10 -4
- package/types/arm-sqlvirtualmachine.d.ts +245 -38
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -188,6 +188,8 @@ exports.KnownLeastPrivilegeMode = void 0;
|
|
|
188
188
|
(function (KnownLeastPrivilegeMode) {
|
|
189
189
|
/** Enabled */
|
|
190
190
|
KnownLeastPrivilegeMode["Enabled"] = "Enabled";
|
|
191
|
+
/** NotSet */
|
|
192
|
+
KnownLeastPrivilegeMode["NotSet"] = "NotSet";
|
|
191
193
|
})(exports.KnownLeastPrivilegeMode || (exports.KnownLeastPrivilegeMode = {}));
|
|
192
194
|
/** Known values of {@link SqlImageSku} that the service accepts. */
|
|
193
195
|
exports.KnownSqlImageSku = void 0;
|
|
@@ -277,6 +279,12 @@ exports.KnownStorageWorkloadType = void 0;
|
|
|
277
279
|
/** DW */
|
|
278
280
|
KnownStorageWorkloadType["DW"] = "DW";
|
|
279
281
|
})(exports.KnownStorageWorkloadType || (exports.KnownStorageWorkloadType = {}));
|
|
282
|
+
/** Known values of {@link TroubleshootingScenario} that the service accepts. */
|
|
283
|
+
exports.KnownTroubleshootingScenario = void 0;
|
|
284
|
+
(function (KnownTroubleshootingScenario) {
|
|
285
|
+
/** UnhealthyReplica */
|
|
286
|
+
KnownTroubleshootingScenario["UnhealthyReplica"] = "UnhealthyReplica";
|
|
287
|
+
})(exports.KnownTroubleshootingScenario || (exports.KnownTroubleshootingScenario = {}));
|
|
280
288
|
|
|
281
289
|
/*
|
|
282
290
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -502,6 +510,99 @@ const Resource = {
|
|
|
502
510
|
}
|
|
503
511
|
}
|
|
504
512
|
};
|
|
513
|
+
const ErrorResponse = {
|
|
514
|
+
type: {
|
|
515
|
+
name: "Composite",
|
|
516
|
+
className: "ErrorResponse",
|
|
517
|
+
modelProperties: {
|
|
518
|
+
error: {
|
|
519
|
+
serializedName: "error",
|
|
520
|
+
type: {
|
|
521
|
+
name: "Composite",
|
|
522
|
+
className: "ErrorDetail"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
const ErrorDetail = {
|
|
529
|
+
type: {
|
|
530
|
+
name: "Composite",
|
|
531
|
+
className: "ErrorDetail",
|
|
532
|
+
modelProperties: {
|
|
533
|
+
code: {
|
|
534
|
+
serializedName: "code",
|
|
535
|
+
readOnly: true,
|
|
536
|
+
type: {
|
|
537
|
+
name: "String"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
message: {
|
|
541
|
+
serializedName: "message",
|
|
542
|
+
readOnly: true,
|
|
543
|
+
type: {
|
|
544
|
+
name: "String"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
target: {
|
|
548
|
+
serializedName: "target",
|
|
549
|
+
readOnly: true,
|
|
550
|
+
type: {
|
|
551
|
+
name: "String"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
details: {
|
|
555
|
+
serializedName: "details",
|
|
556
|
+
readOnly: true,
|
|
557
|
+
type: {
|
|
558
|
+
name: "Sequence",
|
|
559
|
+
element: {
|
|
560
|
+
type: {
|
|
561
|
+
name: "Composite",
|
|
562
|
+
className: "ErrorDetail"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
additionalInfo: {
|
|
568
|
+
serializedName: "additionalInfo",
|
|
569
|
+
readOnly: true,
|
|
570
|
+
type: {
|
|
571
|
+
name: "Sequence",
|
|
572
|
+
element: {
|
|
573
|
+
type: {
|
|
574
|
+
name: "Composite",
|
|
575
|
+
className: "ErrorAdditionalInfo"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
const ErrorAdditionalInfo = {
|
|
584
|
+
type: {
|
|
585
|
+
name: "Composite",
|
|
586
|
+
className: "ErrorAdditionalInfo",
|
|
587
|
+
modelProperties: {
|
|
588
|
+
type: {
|
|
589
|
+
serializedName: "type",
|
|
590
|
+
readOnly: true,
|
|
591
|
+
type: {
|
|
592
|
+
name: "String"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
info: {
|
|
596
|
+
serializedName: "info",
|
|
597
|
+
readOnly: true,
|
|
598
|
+
type: {
|
|
599
|
+
name: "Dictionary",
|
|
600
|
+
value: { type: { name: "any" } }
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
505
606
|
const AvailabilityGroupListenerListResult = {
|
|
506
607
|
type: {
|
|
507
608
|
name: "Composite",
|
|
@@ -1036,6 +1137,13 @@ const ServerConfigurationsManagementSettings = {
|
|
|
1036
1137
|
name: "Composite",
|
|
1037
1138
|
className: "SQLInstanceSettings"
|
|
1038
1139
|
}
|
|
1140
|
+
},
|
|
1141
|
+
azureAdAuthenticationSettings: {
|
|
1142
|
+
serializedName: "azureAdAuthenticationSettings",
|
|
1143
|
+
type: {
|
|
1144
|
+
name: "Composite",
|
|
1145
|
+
className: "AADAuthenticationSettings"
|
|
1146
|
+
}
|
|
1039
1147
|
}
|
|
1040
1148
|
}
|
|
1041
1149
|
}
|
|
@@ -1176,6 +1284,20 @@ const SQLInstanceSettings = {
|
|
|
1176
1284
|
}
|
|
1177
1285
|
}
|
|
1178
1286
|
};
|
|
1287
|
+
const AADAuthenticationSettings = {
|
|
1288
|
+
type: {
|
|
1289
|
+
name: "Composite",
|
|
1290
|
+
className: "AADAuthenticationSettings",
|
|
1291
|
+
modelProperties: {
|
|
1292
|
+
clientId: {
|
|
1293
|
+
serializedName: "clientId",
|
|
1294
|
+
type: {
|
|
1295
|
+
name: "String"
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1179
1301
|
const StorageConfigurationSettings = {
|
|
1180
1302
|
type: {
|
|
1181
1303
|
name: "Composite",
|
|
@@ -1315,6 +1437,85 @@ const SQLTempDbSettings = {
|
|
|
1315
1437
|
}
|
|
1316
1438
|
}
|
|
1317
1439
|
};
|
|
1440
|
+
const TroubleshootingStatus = {
|
|
1441
|
+
type: {
|
|
1442
|
+
name: "Composite",
|
|
1443
|
+
className: "TroubleshootingStatus",
|
|
1444
|
+
modelProperties: {
|
|
1445
|
+
rootCause: {
|
|
1446
|
+
serializedName: "rootCause",
|
|
1447
|
+
readOnly: true,
|
|
1448
|
+
type: {
|
|
1449
|
+
name: "String"
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
lastTriggerTimeUtc: {
|
|
1453
|
+
serializedName: "lastTriggerTimeUtc",
|
|
1454
|
+
readOnly: true,
|
|
1455
|
+
type: {
|
|
1456
|
+
name: "DateTime"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
startTimeUtc: {
|
|
1460
|
+
serializedName: "startTimeUtc",
|
|
1461
|
+
readOnly: true,
|
|
1462
|
+
type: {
|
|
1463
|
+
name: "DateTime"
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
endTimeUtc: {
|
|
1467
|
+
serializedName: "endTimeUtc",
|
|
1468
|
+
readOnly: true,
|
|
1469
|
+
type: {
|
|
1470
|
+
name: "DateTime"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
troubleshootingScenario: {
|
|
1474
|
+
serializedName: "troubleshootingScenario",
|
|
1475
|
+
readOnly: true,
|
|
1476
|
+
type: {
|
|
1477
|
+
name: "String"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
properties: {
|
|
1481
|
+
serializedName: "properties",
|
|
1482
|
+
type: {
|
|
1483
|
+
name: "Composite",
|
|
1484
|
+
className: "TroubleshootingAdditionalProperties"
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
};
|
|
1490
|
+
const TroubleshootingAdditionalProperties = {
|
|
1491
|
+
type: {
|
|
1492
|
+
name: "Composite",
|
|
1493
|
+
className: "TroubleshootingAdditionalProperties",
|
|
1494
|
+
modelProperties: {
|
|
1495
|
+
unhealthyReplicaInfo: {
|
|
1496
|
+
serializedName: "unhealthyReplicaInfo",
|
|
1497
|
+
type: {
|
|
1498
|
+
name: "Composite",
|
|
1499
|
+
className: "UnhealthyReplicaInfo"
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1505
|
+
const UnhealthyReplicaInfo = {
|
|
1506
|
+
type: {
|
|
1507
|
+
name: "Composite",
|
|
1508
|
+
className: "UnhealthyReplicaInfo",
|
|
1509
|
+
modelProperties: {
|
|
1510
|
+
availabilityGroupName: {
|
|
1511
|
+
serializedName: "availabilityGroupName",
|
|
1512
|
+
type: {
|
|
1513
|
+
name: "String"
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
};
|
|
1318
1519
|
const AssessmentSettings = {
|
|
1319
1520
|
type: {
|
|
1320
1521
|
name: "Composite",
|
|
@@ -1404,6 +1605,46 @@ const SqlVirtualMachineUpdate = {
|
|
|
1404
1605
|
}
|
|
1405
1606
|
}
|
|
1406
1607
|
};
|
|
1608
|
+
const SqlVmTroubleshooting = {
|
|
1609
|
+
type: {
|
|
1610
|
+
name: "Composite",
|
|
1611
|
+
className: "SqlVmTroubleshooting",
|
|
1612
|
+
modelProperties: {
|
|
1613
|
+
startTimeUtc: {
|
|
1614
|
+
serializedName: "startTimeUtc",
|
|
1615
|
+
type: {
|
|
1616
|
+
name: "DateTime"
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
endTimeUtc: {
|
|
1620
|
+
serializedName: "endTimeUtc",
|
|
1621
|
+
type: {
|
|
1622
|
+
name: "DateTime"
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
troubleshootingScenario: {
|
|
1626
|
+
serializedName: "troubleshootingScenario",
|
|
1627
|
+
type: {
|
|
1628
|
+
name: "String"
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
properties: {
|
|
1632
|
+
serializedName: "properties",
|
|
1633
|
+
type: {
|
|
1634
|
+
name: "Composite",
|
|
1635
|
+
className: "TroubleshootingAdditionalProperties"
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
virtualMachineResourceId: {
|
|
1639
|
+
serializedName: "virtualMachineResourceId",
|
|
1640
|
+
readOnly: true,
|
|
1641
|
+
type: {
|
|
1642
|
+
name: "String"
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1407
1648
|
const ProxyResource = {
|
|
1408
1649
|
type: {
|
|
1409
1650
|
name: "Composite",
|
|
@@ -1588,6 +1829,7 @@ const SqlVirtualMachine = {
|
|
|
1588
1829
|
name: "String"
|
|
1589
1830
|
}
|
|
1590
1831
|
}, leastPrivilegeMode: {
|
|
1832
|
+
defaultValue: "NotSet",
|
|
1591
1833
|
serializedName: "properties.leastPrivilegeMode",
|
|
1592
1834
|
type: {
|
|
1593
1835
|
name: "String"
|
|
@@ -1643,6 +1885,12 @@ const SqlVirtualMachine = {
|
|
|
1643
1885
|
name: "Composite",
|
|
1644
1886
|
className: "StorageConfigurationSettings"
|
|
1645
1887
|
}
|
|
1888
|
+
}, troubleshootingStatus: {
|
|
1889
|
+
serializedName: "properties.troubleshootingStatus",
|
|
1890
|
+
type: {
|
|
1891
|
+
name: "Composite",
|
|
1892
|
+
className: "TroubleshootingStatus"
|
|
1893
|
+
}
|
|
1646
1894
|
}, assessmentSettings: {
|
|
1647
1895
|
serializedName: "properties.assessmentSettings",
|
|
1648
1896
|
type: {
|
|
@@ -1650,6 +1898,7 @@ const SqlVirtualMachine = {
|
|
|
1650
1898
|
className: "AssessmentSettings"
|
|
1651
1899
|
}
|
|
1652
1900
|
}, enableAutomaticUpgrade: {
|
|
1901
|
+
defaultValue: false,
|
|
1653
1902
|
serializedName: "properties.enableAutomaticUpgrade",
|
|
1654
1903
|
type: {
|
|
1655
1904
|
name: "Boolean"
|
|
@@ -1657,6 +1906,90 @@ const SqlVirtualMachine = {
|
|
|
1657
1906
|
} })
|
|
1658
1907
|
}
|
|
1659
1908
|
};
|
|
1909
|
+
const AvailabilityGroupListenersDeleteHeaders = {
|
|
1910
|
+
type: {
|
|
1911
|
+
name: "Composite",
|
|
1912
|
+
className: "AvailabilityGroupListenersDeleteHeaders",
|
|
1913
|
+
modelProperties: {
|
|
1914
|
+
location: {
|
|
1915
|
+
serializedName: "location",
|
|
1916
|
+
type: {
|
|
1917
|
+
name: "String"
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
};
|
|
1923
|
+
const SqlVirtualMachineGroupsDeleteHeaders = {
|
|
1924
|
+
type: {
|
|
1925
|
+
name: "Composite",
|
|
1926
|
+
className: "SqlVirtualMachineGroupsDeleteHeaders",
|
|
1927
|
+
modelProperties: {
|
|
1928
|
+
location: {
|
|
1929
|
+
serializedName: "location",
|
|
1930
|
+
type: {
|
|
1931
|
+
name: "String"
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
const SqlVirtualMachinesDeleteHeaders = {
|
|
1938
|
+
type: {
|
|
1939
|
+
name: "Composite",
|
|
1940
|
+
className: "SqlVirtualMachinesDeleteHeaders",
|
|
1941
|
+
modelProperties: {
|
|
1942
|
+
location: {
|
|
1943
|
+
serializedName: "location",
|
|
1944
|
+
type: {
|
|
1945
|
+
name: "String"
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
};
|
|
1951
|
+
const SqlVirtualMachinesStartAssessmentHeaders = {
|
|
1952
|
+
type: {
|
|
1953
|
+
name: "Composite",
|
|
1954
|
+
className: "SqlVirtualMachinesStartAssessmentHeaders",
|
|
1955
|
+
modelProperties: {
|
|
1956
|
+
location: {
|
|
1957
|
+
serializedName: "location",
|
|
1958
|
+
type: {
|
|
1959
|
+
name: "String"
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
};
|
|
1965
|
+
const SqlVirtualMachinesRedeployHeaders = {
|
|
1966
|
+
type: {
|
|
1967
|
+
name: "Composite",
|
|
1968
|
+
className: "SqlVirtualMachinesRedeployHeaders",
|
|
1969
|
+
modelProperties: {
|
|
1970
|
+
location: {
|
|
1971
|
+
serializedName: "location",
|
|
1972
|
+
type: {
|
|
1973
|
+
name: "String"
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1979
|
+
const SqlVirtualMachineTroubleshootTroubleshootHeaders = {
|
|
1980
|
+
type: {
|
|
1981
|
+
name: "Composite",
|
|
1982
|
+
className: "SqlVirtualMachineTroubleshootTroubleshootHeaders",
|
|
1983
|
+
modelProperties: {
|
|
1984
|
+
location: {
|
|
1985
|
+
serializedName: "location",
|
|
1986
|
+
type: {
|
|
1987
|
+
name: "String"
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
};
|
|
1660
1993
|
|
|
1661
1994
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1662
1995
|
__proto__: null,
|
|
@@ -1667,6 +2000,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1667
2000
|
AgReplica: AgReplica,
|
|
1668
2001
|
SystemData: SystemData,
|
|
1669
2002
|
Resource: Resource,
|
|
2003
|
+
ErrorResponse: ErrorResponse,
|
|
2004
|
+
ErrorDetail: ErrorDetail,
|
|
2005
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1670
2006
|
AvailabilityGroupListenerListResult: AvailabilityGroupListenerListResult,
|
|
1671
2007
|
OperationListResult: OperationListResult,
|
|
1672
2008
|
Operation: Operation,
|
|
@@ -1686,17 +2022,28 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1686
2022
|
SqlStorageUpdateSettings: SqlStorageUpdateSettings,
|
|
1687
2023
|
AdditionalFeaturesServerConfigurations: AdditionalFeaturesServerConfigurations,
|
|
1688
2024
|
SQLInstanceSettings: SQLInstanceSettings,
|
|
2025
|
+
AADAuthenticationSettings: AADAuthenticationSettings,
|
|
1689
2026
|
StorageConfigurationSettings: StorageConfigurationSettings,
|
|
1690
2027
|
SQLStorageSettings: SQLStorageSettings,
|
|
1691
2028
|
SQLTempDbSettings: SQLTempDbSettings,
|
|
2029
|
+
TroubleshootingStatus: TroubleshootingStatus,
|
|
2030
|
+
TroubleshootingAdditionalProperties: TroubleshootingAdditionalProperties,
|
|
2031
|
+
UnhealthyReplicaInfo: UnhealthyReplicaInfo,
|
|
1692
2032
|
AssessmentSettings: AssessmentSettings,
|
|
1693
2033
|
Schedule: Schedule,
|
|
1694
2034
|
SqlVirtualMachineUpdate: SqlVirtualMachineUpdate,
|
|
2035
|
+
SqlVmTroubleshooting: SqlVmTroubleshooting,
|
|
1695
2036
|
ProxyResource: ProxyResource,
|
|
1696
2037
|
TrackedResource: TrackedResource,
|
|
1697
2038
|
AvailabilityGroupListener: AvailabilityGroupListener,
|
|
1698
2039
|
SqlVirtualMachineGroup: SqlVirtualMachineGroup,
|
|
1699
|
-
SqlVirtualMachine: SqlVirtualMachine
|
|
2040
|
+
SqlVirtualMachine: SqlVirtualMachine,
|
|
2041
|
+
AvailabilityGroupListenersDeleteHeaders: AvailabilityGroupListenersDeleteHeaders,
|
|
2042
|
+
SqlVirtualMachineGroupsDeleteHeaders: SqlVirtualMachineGroupsDeleteHeaders,
|
|
2043
|
+
SqlVirtualMachinesDeleteHeaders: SqlVirtualMachinesDeleteHeaders,
|
|
2044
|
+
SqlVirtualMachinesStartAssessmentHeaders: SqlVirtualMachinesStartAssessmentHeaders,
|
|
2045
|
+
SqlVirtualMachinesRedeployHeaders: SqlVirtualMachinesRedeployHeaders,
|
|
2046
|
+
SqlVirtualMachineTroubleshootTroubleshootHeaders: SqlVirtualMachineTroubleshootTroubleshootHeaders
|
|
1700
2047
|
});
|
|
1701
2048
|
|
|
1702
2049
|
/*
|
|
@@ -1780,7 +2127,7 @@ const subscriptionId = {
|
|
|
1780
2127
|
const apiVersion = {
|
|
1781
2128
|
parameterPath: "apiVersion",
|
|
1782
2129
|
mapper: {
|
|
1783
|
-
defaultValue: "2022-
|
|
2130
|
+
defaultValue: "2022-08-01-preview",
|
|
1784
2131
|
isConstant: true,
|
|
1785
2132
|
serializedName: "api-version",
|
|
1786
2133
|
type: {
|
|
@@ -1825,6 +2172,11 @@ const parameters2 = {
|
|
|
1825
2172
|
const sqlVirtualMachineName = {
|
|
1826
2173
|
parameterPath: "sqlVirtualMachineName",
|
|
1827
2174
|
mapper: {
|
|
2175
|
+
constraints: {
|
|
2176
|
+
Pattern: new RegExp("^((?!_)[^\\\\/\"'\\[\\]:|<>+=;,?*@&]{1,64}(?<![.-]))$"),
|
|
2177
|
+
MaxLength: 64,
|
|
2178
|
+
MinLength: 1
|
|
2179
|
+
},
|
|
1828
2180
|
serializedName: "sqlVirtualMachineName",
|
|
1829
2181
|
required: true,
|
|
1830
2182
|
type: {
|
|
@@ -1840,6 +2192,10 @@ const parameters4 = {
|
|
|
1840
2192
|
parameterPath: "parameters",
|
|
1841
2193
|
mapper: SqlVirtualMachineUpdate
|
|
1842
2194
|
};
|
|
2195
|
+
const parameters5 = {
|
|
2196
|
+
parameterPath: "parameters",
|
|
2197
|
+
mapper: SqlVmTroubleshooting
|
|
2198
|
+
};
|
|
1843
2199
|
|
|
1844
2200
|
/*
|
|
1845
2201
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -1848,25 +2204,17 @@ const parameters4 = {
|
|
|
1848
2204
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1849
2205
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1850
2206
|
*/
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
});
|
|
1863
|
-
}
|
|
1864
|
-
sendPollRequest(path) {
|
|
1865
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1866
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1867
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
2207
|
+
function createLroSpec(inputs) {
|
|
2208
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
2209
|
+
return {
|
|
2210
|
+
requestMethod: spec.httpMethod,
|
|
2211
|
+
requestPath: spec.path,
|
|
2212
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2213
|
+
sendPollRequest: (path, options) => {
|
|
2214
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2215
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2216
|
+
}
|
|
2217
|
+
};
|
|
1870
2218
|
}
|
|
1871
2219
|
|
|
1872
2220
|
/*
|
|
@@ -1932,17 +2280,24 @@ class AvailabilityGroupListenersImpl {
|
|
|
1932
2280
|
}
|
|
1933
2281
|
listByGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
1934
2282
|
return tslib.__asyncGenerator(this, arguments, function* listByGroupPagingAll_1() {
|
|
1935
|
-
var e_1,
|
|
2283
|
+
var _a, e_1, _b, _c;
|
|
1936
2284
|
try {
|
|
1937
|
-
for (var
|
|
1938
|
-
|
|
1939
|
-
|
|
2285
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2286
|
+
_c = _f.value;
|
|
2287
|
+
_d = false;
|
|
2288
|
+
try {
|
|
2289
|
+
const page = _c;
|
|
2290
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2291
|
+
}
|
|
2292
|
+
finally {
|
|
2293
|
+
_d = true;
|
|
2294
|
+
}
|
|
1940
2295
|
}
|
|
1941
2296
|
}
|
|
1942
2297
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1943
2298
|
finally {
|
|
1944
2299
|
try {
|
|
1945
|
-
if (
|
|
2300
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1946
2301
|
}
|
|
1947
2302
|
finally { if (e_1) throw e_1.error; }
|
|
1948
2303
|
}
|
|
@@ -1978,7 +2333,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
1978
2333
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1979
2334
|
return this.client.sendOperationRequest(args, spec);
|
|
1980
2335
|
});
|
|
1981
|
-
const
|
|
2336
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1982
2337
|
var _a;
|
|
1983
2338
|
let currentRawResponse = undefined;
|
|
1984
2339
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1997,16 +2352,21 @@ class AvailabilityGroupListenersImpl {
|
|
|
1997
2352
|
}
|
|
1998
2353
|
};
|
|
1999
2354
|
});
|
|
2000
|
-
const lro =
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2355
|
+
const lro = createLroSpec({
|
|
2356
|
+
sendOperationFn,
|
|
2357
|
+
args: {
|
|
2358
|
+
resourceGroupName,
|
|
2359
|
+
sqlVirtualMachineGroupName,
|
|
2360
|
+
availabilityGroupListenerName,
|
|
2361
|
+
parameters,
|
|
2362
|
+
options
|
|
2363
|
+
},
|
|
2364
|
+
spec: createOrUpdateOperationSpec$2
|
|
2365
|
+
});
|
|
2366
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2367
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2368
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2369
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2010
2370
|
});
|
|
2011
2371
|
yield poller.poll();
|
|
2012
2372
|
return poller;
|
|
@@ -2040,7 +2400,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
2040
2400
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2041
2401
|
return this.client.sendOperationRequest(args, spec);
|
|
2042
2402
|
});
|
|
2043
|
-
const
|
|
2403
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2044
2404
|
var _a;
|
|
2045
2405
|
let currentRawResponse = undefined;
|
|
2046
2406
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2059,15 +2419,20 @@ class AvailabilityGroupListenersImpl {
|
|
|
2059
2419
|
}
|
|
2060
2420
|
};
|
|
2061
2421
|
});
|
|
2062
|
-
const lro =
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2422
|
+
const lro = createLroSpec({
|
|
2423
|
+
sendOperationFn,
|
|
2424
|
+
args: {
|
|
2425
|
+
resourceGroupName,
|
|
2426
|
+
sqlVirtualMachineGroupName,
|
|
2427
|
+
availabilityGroupListenerName,
|
|
2428
|
+
options
|
|
2429
|
+
},
|
|
2430
|
+
spec: deleteOperationSpec$2
|
|
2431
|
+
});
|
|
2432
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2433
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2434
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2435
|
+
resourceLocationConfig: "location"
|
|
2071
2436
|
});
|
|
2072
2437
|
yield poller.poll();
|
|
2073
2438
|
return poller;
|
|
@@ -2110,7 +2475,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
2110
2475
|
}
|
|
2111
2476
|
}
|
|
2112
2477
|
// Operation Specifications
|
|
2113
|
-
const serializer$
|
|
2478
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2114
2479
|
const getOperationSpec$2 = {
|
|
2115
2480
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
2116
2481
|
httpMethod: "GET",
|
|
@@ -2118,7 +2483,9 @@ const getOperationSpec$2 = {
|
|
|
2118
2483
|
200: {
|
|
2119
2484
|
bodyMapper: AvailabilityGroupListener
|
|
2120
2485
|
},
|
|
2121
|
-
default: {
|
|
2486
|
+
default: {
|
|
2487
|
+
bodyMapper: ErrorResponse
|
|
2488
|
+
}
|
|
2122
2489
|
},
|
|
2123
2490
|
queryParameters: [expand, apiVersion],
|
|
2124
2491
|
urlParameters: [
|
|
@@ -2129,7 +2496,7 @@ const getOperationSpec$2 = {
|
|
|
2129
2496
|
subscriptionId
|
|
2130
2497
|
],
|
|
2131
2498
|
headerParameters: [accept],
|
|
2132
|
-
serializer: serializer$
|
|
2499
|
+
serializer: serializer$4
|
|
2133
2500
|
};
|
|
2134
2501
|
const createOrUpdateOperationSpec$2 = {
|
|
2135
2502
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
@@ -2147,7 +2514,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
2147
2514
|
204: {
|
|
2148
2515
|
bodyMapper: AvailabilityGroupListener
|
|
2149
2516
|
},
|
|
2150
|
-
default: {
|
|
2517
|
+
default: {
|
|
2518
|
+
bodyMapper: ErrorResponse
|
|
2519
|
+
}
|
|
2151
2520
|
},
|
|
2152
2521
|
requestBody: parameters,
|
|
2153
2522
|
queryParameters: [apiVersion],
|
|
@@ -2160,12 +2529,20 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
2160
2529
|
],
|
|
2161
2530
|
headerParameters: [accept, contentType],
|
|
2162
2531
|
mediaType: "json",
|
|
2163
|
-
serializer: serializer$
|
|
2532
|
+
serializer: serializer$4
|
|
2164
2533
|
};
|
|
2165
2534
|
const deleteOperationSpec$2 = {
|
|
2166
2535
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
2167
2536
|
httpMethod: "DELETE",
|
|
2168
|
-
responses: {
|
|
2537
|
+
responses: {
|
|
2538
|
+
200: {},
|
|
2539
|
+
201: {},
|
|
2540
|
+
202: {},
|
|
2541
|
+
204: {},
|
|
2542
|
+
default: {
|
|
2543
|
+
bodyMapper: ErrorResponse
|
|
2544
|
+
}
|
|
2545
|
+
},
|
|
2169
2546
|
queryParameters: [apiVersion],
|
|
2170
2547
|
urlParameters: [
|
|
2171
2548
|
$host,
|
|
@@ -2174,7 +2551,8 @@ const deleteOperationSpec$2 = {
|
|
|
2174
2551
|
availabilityGroupListenerName,
|
|
2175
2552
|
subscriptionId
|
|
2176
2553
|
],
|
|
2177
|
-
|
|
2554
|
+
headerParameters: [accept],
|
|
2555
|
+
serializer: serializer$4
|
|
2178
2556
|
};
|
|
2179
2557
|
const listByGroupOperationSpec = {
|
|
2180
2558
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners",
|
|
@@ -2183,7 +2561,9 @@ const listByGroupOperationSpec = {
|
|
|
2183
2561
|
200: {
|
|
2184
2562
|
bodyMapper: AvailabilityGroupListenerListResult
|
|
2185
2563
|
},
|
|
2186
|
-
default: {
|
|
2564
|
+
default: {
|
|
2565
|
+
bodyMapper: ErrorResponse
|
|
2566
|
+
}
|
|
2187
2567
|
},
|
|
2188
2568
|
queryParameters: [apiVersion],
|
|
2189
2569
|
urlParameters: [
|
|
@@ -2193,7 +2573,7 @@ const listByGroupOperationSpec = {
|
|
|
2193
2573
|
subscriptionId
|
|
2194
2574
|
],
|
|
2195
2575
|
headerParameters: [accept],
|
|
2196
|
-
serializer: serializer$
|
|
2576
|
+
serializer: serializer$4
|
|
2197
2577
|
};
|
|
2198
2578
|
const listByGroupNextOperationSpec = {
|
|
2199
2579
|
path: "{nextLink}",
|
|
@@ -2202,7 +2582,9 @@ const listByGroupNextOperationSpec = {
|
|
|
2202
2582
|
200: {
|
|
2203
2583
|
bodyMapper: AvailabilityGroupListenerListResult
|
|
2204
2584
|
},
|
|
2205
|
-
default: {
|
|
2585
|
+
default: {
|
|
2586
|
+
bodyMapper: ErrorResponse
|
|
2587
|
+
}
|
|
2206
2588
|
},
|
|
2207
2589
|
urlParameters: [
|
|
2208
2590
|
$host,
|
|
@@ -2212,7 +2594,7 @@ const listByGroupNextOperationSpec = {
|
|
|
2212
2594
|
nextLink
|
|
2213
2595
|
],
|
|
2214
2596
|
headerParameters: [accept],
|
|
2215
|
-
serializer: serializer$
|
|
2597
|
+
serializer: serializer$4
|
|
2216
2598
|
};
|
|
2217
2599
|
|
|
2218
2600
|
/*
|
|
@@ -2275,17 +2657,24 @@ class OperationsImpl {
|
|
|
2275
2657
|
}
|
|
2276
2658
|
listPagingAll(options) {
|
|
2277
2659
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2278
|
-
var e_1,
|
|
2660
|
+
var _a, e_1, _b, _c;
|
|
2279
2661
|
try {
|
|
2280
|
-
for (var
|
|
2281
|
-
|
|
2282
|
-
|
|
2662
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2663
|
+
_c = _f.value;
|
|
2664
|
+
_d = false;
|
|
2665
|
+
try {
|
|
2666
|
+
const page = _c;
|
|
2667
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2668
|
+
}
|
|
2669
|
+
finally {
|
|
2670
|
+
_d = true;
|
|
2671
|
+
}
|
|
2283
2672
|
}
|
|
2284
2673
|
}
|
|
2285
2674
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2286
2675
|
finally {
|
|
2287
2676
|
try {
|
|
2288
|
-
if (
|
|
2677
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2289
2678
|
}
|
|
2290
2679
|
finally { if (e_1) throw e_1.error; }
|
|
2291
2680
|
}
|
|
@@ -2308,7 +2697,7 @@ class OperationsImpl {
|
|
|
2308
2697
|
}
|
|
2309
2698
|
}
|
|
2310
2699
|
// Operation Specifications
|
|
2311
|
-
const serializer$
|
|
2700
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2312
2701
|
const listOperationSpec$2 = {
|
|
2313
2702
|
path: "/providers/Microsoft.SqlVirtualMachine/operations",
|
|
2314
2703
|
httpMethod: "GET",
|
|
@@ -2316,12 +2705,14 @@ const listOperationSpec$2 = {
|
|
|
2316
2705
|
200: {
|
|
2317
2706
|
bodyMapper: OperationListResult
|
|
2318
2707
|
},
|
|
2319
|
-
default: {
|
|
2708
|
+
default: {
|
|
2709
|
+
bodyMapper: ErrorResponse
|
|
2710
|
+
}
|
|
2320
2711
|
},
|
|
2321
2712
|
queryParameters: [apiVersion],
|
|
2322
2713
|
urlParameters: [$host],
|
|
2323
2714
|
headerParameters: [accept],
|
|
2324
|
-
serializer: serializer$
|
|
2715
|
+
serializer: serializer$3
|
|
2325
2716
|
};
|
|
2326
2717
|
const listNextOperationSpec$2 = {
|
|
2327
2718
|
path: "{nextLink}",
|
|
@@ -2330,11 +2721,13 @@ const listNextOperationSpec$2 = {
|
|
|
2330
2721
|
200: {
|
|
2331
2722
|
bodyMapper: OperationListResult
|
|
2332
2723
|
},
|
|
2333
|
-
default: {
|
|
2724
|
+
default: {
|
|
2725
|
+
bodyMapper: ErrorResponse
|
|
2726
|
+
}
|
|
2334
2727
|
},
|
|
2335
2728
|
urlParameters: [$host, nextLink],
|
|
2336
2729
|
headerParameters: [accept],
|
|
2337
|
-
serializer: serializer$
|
|
2730
|
+
serializer: serializer$3
|
|
2338
2731
|
};
|
|
2339
2732
|
|
|
2340
2733
|
/*
|
|
@@ -2399,17 +2792,24 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2399
2792
|
}
|
|
2400
2793
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2401
2794
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2402
|
-
var e_1,
|
|
2795
|
+
var _a, e_1, _b, _c;
|
|
2403
2796
|
try {
|
|
2404
|
-
for (var
|
|
2405
|
-
|
|
2406
|
-
|
|
2797
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2798
|
+
_c = _f.value;
|
|
2799
|
+
_d = false;
|
|
2800
|
+
try {
|
|
2801
|
+
const page = _c;
|
|
2802
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2803
|
+
}
|
|
2804
|
+
finally {
|
|
2805
|
+
_d = true;
|
|
2806
|
+
}
|
|
2407
2807
|
}
|
|
2408
2808
|
}
|
|
2409
2809
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2410
2810
|
finally {
|
|
2411
2811
|
try {
|
|
2412
|
-
if (
|
|
2812
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2413
2813
|
}
|
|
2414
2814
|
finally { if (e_1) throw e_1.error; }
|
|
2415
2815
|
}
|
|
@@ -2458,17 +2858,24 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2458
2858
|
}
|
|
2459
2859
|
listPagingAll(options) {
|
|
2460
2860
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2461
|
-
var e_2,
|
|
2861
|
+
var _a, e_2, _b, _c;
|
|
2462
2862
|
try {
|
|
2463
|
-
for (var
|
|
2464
|
-
|
|
2465
|
-
|
|
2863
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2864
|
+
_c = _f.value;
|
|
2865
|
+
_d = false;
|
|
2866
|
+
try {
|
|
2867
|
+
const page = _c;
|
|
2868
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2869
|
+
}
|
|
2870
|
+
finally {
|
|
2871
|
+
_d = true;
|
|
2872
|
+
}
|
|
2466
2873
|
}
|
|
2467
2874
|
}
|
|
2468
2875
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2469
2876
|
finally {
|
|
2470
2877
|
try {
|
|
2471
|
-
if (
|
|
2878
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2472
2879
|
}
|
|
2473
2880
|
finally { if (e_2) throw e_2.error; }
|
|
2474
2881
|
}
|
|
@@ -2497,7 +2904,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2497
2904
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2498
2905
|
return this.client.sendOperationRequest(args, spec);
|
|
2499
2906
|
});
|
|
2500
|
-
const
|
|
2907
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2501
2908
|
var _a;
|
|
2502
2909
|
let currentRawResponse = undefined;
|
|
2503
2910
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2516,10 +2923,20 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2516
2923
|
}
|
|
2517
2924
|
};
|
|
2518
2925
|
});
|
|
2519
|
-
const lro =
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2926
|
+
const lro = createLroSpec({
|
|
2927
|
+
sendOperationFn,
|
|
2928
|
+
args: {
|
|
2929
|
+
resourceGroupName,
|
|
2930
|
+
sqlVirtualMachineGroupName,
|
|
2931
|
+
parameters,
|
|
2932
|
+
options
|
|
2933
|
+
},
|
|
2934
|
+
spec: createOrUpdateOperationSpec$1
|
|
2935
|
+
});
|
|
2936
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2937
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2938
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2939
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2523
2940
|
});
|
|
2524
2941
|
yield poller.poll();
|
|
2525
2942
|
return poller;
|
|
@@ -2551,7 +2968,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2551
2968
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2552
2969
|
return this.client.sendOperationRequest(args, spec);
|
|
2553
2970
|
});
|
|
2554
|
-
const
|
|
2971
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2555
2972
|
var _a;
|
|
2556
2973
|
let currentRawResponse = undefined;
|
|
2557
2974
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2570,10 +2987,15 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2570
2987
|
}
|
|
2571
2988
|
};
|
|
2572
2989
|
});
|
|
2573
|
-
const lro =
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2990
|
+
const lro = createLroSpec({
|
|
2991
|
+
sendOperationFn,
|
|
2992
|
+
args: { resourceGroupName, sqlVirtualMachineGroupName, options },
|
|
2993
|
+
spec: deleteOperationSpec$1
|
|
2994
|
+
});
|
|
2995
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2996
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2997
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2998
|
+
resourceLocationConfig: "location"
|
|
2577
2999
|
});
|
|
2578
3000
|
yield poller.poll();
|
|
2579
3001
|
return poller;
|
|
@@ -2605,7 +3027,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2605
3027
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2606
3028
|
return this.client.sendOperationRequest(args, spec);
|
|
2607
3029
|
});
|
|
2608
|
-
const
|
|
3030
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2609
3031
|
var _a;
|
|
2610
3032
|
let currentRawResponse = undefined;
|
|
2611
3033
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2624,10 +3046,20 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2624
3046
|
}
|
|
2625
3047
|
};
|
|
2626
3048
|
});
|
|
2627
|
-
const lro =
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
3049
|
+
const lro = createLroSpec({
|
|
3050
|
+
sendOperationFn,
|
|
3051
|
+
args: {
|
|
3052
|
+
resourceGroupName,
|
|
3053
|
+
sqlVirtualMachineGroupName,
|
|
3054
|
+
parameters,
|
|
3055
|
+
options
|
|
3056
|
+
},
|
|
3057
|
+
spec: updateOperationSpec$1
|
|
3058
|
+
});
|
|
3059
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3060
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3061
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3062
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2631
3063
|
});
|
|
2632
3064
|
yield poller.poll();
|
|
2633
3065
|
return poller;
|
|
@@ -2683,7 +3115,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2683
3115
|
}
|
|
2684
3116
|
}
|
|
2685
3117
|
// Operation Specifications
|
|
2686
|
-
const serializer$
|
|
3118
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2687
3119
|
const getOperationSpec$1 = {
|
|
2688
3120
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
2689
3121
|
httpMethod: "GET",
|
|
@@ -2691,7 +3123,9 @@ const getOperationSpec$1 = {
|
|
|
2691
3123
|
200: {
|
|
2692
3124
|
bodyMapper: SqlVirtualMachineGroup
|
|
2693
3125
|
},
|
|
2694
|
-
default: {
|
|
3126
|
+
default: {
|
|
3127
|
+
bodyMapper: ErrorResponse
|
|
3128
|
+
}
|
|
2695
3129
|
},
|
|
2696
3130
|
queryParameters: [apiVersion],
|
|
2697
3131
|
urlParameters: [
|
|
@@ -2701,7 +3135,7 @@ const getOperationSpec$1 = {
|
|
|
2701
3135
|
subscriptionId
|
|
2702
3136
|
],
|
|
2703
3137
|
headerParameters: [accept],
|
|
2704
|
-
serializer: serializer$
|
|
3138
|
+
serializer: serializer$2
|
|
2705
3139
|
};
|
|
2706
3140
|
const createOrUpdateOperationSpec$1 = {
|
|
2707
3141
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
@@ -2719,7 +3153,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
2719
3153
|
204: {
|
|
2720
3154
|
bodyMapper: SqlVirtualMachineGroup
|
|
2721
3155
|
},
|
|
2722
|
-
default: {
|
|
3156
|
+
default: {
|
|
3157
|
+
bodyMapper: ErrorResponse
|
|
3158
|
+
}
|
|
2723
3159
|
},
|
|
2724
3160
|
requestBody: parameters1,
|
|
2725
3161
|
queryParameters: [apiVersion],
|
|
@@ -2731,12 +3167,20 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
2731
3167
|
],
|
|
2732
3168
|
headerParameters: [accept, contentType],
|
|
2733
3169
|
mediaType: "json",
|
|
2734
|
-
serializer: serializer$
|
|
3170
|
+
serializer: serializer$2
|
|
2735
3171
|
};
|
|
2736
3172
|
const deleteOperationSpec$1 = {
|
|
2737
3173
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
2738
3174
|
httpMethod: "DELETE",
|
|
2739
|
-
responses: {
|
|
3175
|
+
responses: {
|
|
3176
|
+
200: {},
|
|
3177
|
+
201: {},
|
|
3178
|
+
202: {},
|
|
3179
|
+
204: {},
|
|
3180
|
+
default: {
|
|
3181
|
+
bodyMapper: ErrorResponse
|
|
3182
|
+
}
|
|
3183
|
+
},
|
|
2740
3184
|
queryParameters: [apiVersion],
|
|
2741
3185
|
urlParameters: [
|
|
2742
3186
|
$host,
|
|
@@ -2744,7 +3188,8 @@ const deleteOperationSpec$1 = {
|
|
|
2744
3188
|
sqlVirtualMachineGroupName,
|
|
2745
3189
|
subscriptionId
|
|
2746
3190
|
],
|
|
2747
|
-
|
|
3191
|
+
headerParameters: [accept],
|
|
3192
|
+
serializer: serializer$2
|
|
2748
3193
|
};
|
|
2749
3194
|
const updateOperationSpec$1 = {
|
|
2750
3195
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
@@ -2762,7 +3207,9 @@ const updateOperationSpec$1 = {
|
|
|
2762
3207
|
204: {
|
|
2763
3208
|
bodyMapper: SqlVirtualMachineGroup
|
|
2764
3209
|
},
|
|
2765
|
-
default: {
|
|
3210
|
+
default: {
|
|
3211
|
+
bodyMapper: ErrorResponse
|
|
3212
|
+
}
|
|
2766
3213
|
},
|
|
2767
3214
|
requestBody: parameters2,
|
|
2768
3215
|
queryParameters: [apiVersion],
|
|
@@ -2774,7 +3221,7 @@ const updateOperationSpec$1 = {
|
|
|
2774
3221
|
],
|
|
2775
3222
|
headerParameters: [accept, contentType],
|
|
2776
3223
|
mediaType: "json",
|
|
2777
|
-
serializer: serializer$
|
|
3224
|
+
serializer: serializer$2
|
|
2778
3225
|
};
|
|
2779
3226
|
const listByResourceGroupOperationSpec$1 = {
|
|
2780
3227
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
@@ -2783,7 +3230,9 @@ const listByResourceGroupOperationSpec$1 = {
|
|
|
2783
3230
|
200: {
|
|
2784
3231
|
bodyMapper: SqlVirtualMachineGroupListResult
|
|
2785
3232
|
},
|
|
2786
|
-
default: {
|
|
3233
|
+
default: {
|
|
3234
|
+
bodyMapper: ErrorResponse
|
|
3235
|
+
}
|
|
2787
3236
|
},
|
|
2788
3237
|
queryParameters: [apiVersion],
|
|
2789
3238
|
urlParameters: [
|
|
@@ -2792,7 +3241,7 @@ const listByResourceGroupOperationSpec$1 = {
|
|
|
2792
3241
|
subscriptionId
|
|
2793
3242
|
],
|
|
2794
3243
|
headerParameters: [accept],
|
|
2795
|
-
serializer: serializer$
|
|
3244
|
+
serializer: serializer$2
|
|
2796
3245
|
};
|
|
2797
3246
|
const listOperationSpec$1 = {
|
|
2798
3247
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
@@ -2801,12 +3250,14 @@ const listOperationSpec$1 = {
|
|
|
2801
3250
|
200: {
|
|
2802
3251
|
bodyMapper: SqlVirtualMachineGroupListResult
|
|
2803
3252
|
},
|
|
2804
|
-
default: {
|
|
3253
|
+
default: {
|
|
3254
|
+
bodyMapper: ErrorResponse
|
|
3255
|
+
}
|
|
2805
3256
|
},
|
|
2806
3257
|
queryParameters: [apiVersion],
|
|
2807
3258
|
urlParameters: [$host, subscriptionId],
|
|
2808
3259
|
headerParameters: [accept],
|
|
2809
|
-
serializer: serializer$
|
|
3260
|
+
serializer: serializer$2
|
|
2810
3261
|
};
|
|
2811
3262
|
const listByResourceGroupNextOperationSpec$1 = {
|
|
2812
3263
|
path: "{nextLink}",
|
|
@@ -2815,7 +3266,9 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
2815
3266
|
200: {
|
|
2816
3267
|
bodyMapper: SqlVirtualMachineGroupListResult
|
|
2817
3268
|
},
|
|
2818
|
-
default: {
|
|
3269
|
+
default: {
|
|
3270
|
+
bodyMapper: ErrorResponse
|
|
3271
|
+
}
|
|
2819
3272
|
},
|
|
2820
3273
|
urlParameters: [
|
|
2821
3274
|
$host,
|
|
@@ -2824,7 +3277,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
2824
3277
|
nextLink
|
|
2825
3278
|
],
|
|
2826
3279
|
headerParameters: [accept],
|
|
2827
|
-
serializer: serializer$
|
|
3280
|
+
serializer: serializer$2
|
|
2828
3281
|
};
|
|
2829
3282
|
const listNextOperationSpec$1 = {
|
|
2830
3283
|
path: "{nextLink}",
|
|
@@ -2833,7 +3286,9 @@ const listNextOperationSpec$1 = {
|
|
|
2833
3286
|
200: {
|
|
2834
3287
|
bodyMapper: SqlVirtualMachineGroupListResult
|
|
2835
3288
|
},
|
|
2836
|
-
default: {
|
|
3289
|
+
default: {
|
|
3290
|
+
bodyMapper: ErrorResponse
|
|
3291
|
+
}
|
|
2837
3292
|
},
|
|
2838
3293
|
urlParameters: [
|
|
2839
3294
|
$host,
|
|
@@ -2841,7 +3296,7 @@ const listNextOperationSpec$1 = {
|
|
|
2841
3296
|
nextLink
|
|
2842
3297
|
],
|
|
2843
3298
|
headerParameters: [accept],
|
|
2844
|
-
serializer: serializer$
|
|
3299
|
+
serializer: serializer$2
|
|
2845
3300
|
};
|
|
2846
3301
|
|
|
2847
3302
|
/*
|
|
@@ -2907,17 +3362,24 @@ class SqlVirtualMachinesImpl {
|
|
|
2907
3362
|
}
|
|
2908
3363
|
listBySqlVmGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
2909
3364
|
return tslib.__asyncGenerator(this, arguments, function* listBySqlVmGroupPagingAll_1() {
|
|
2910
|
-
var e_1,
|
|
3365
|
+
var _a, e_1, _b, _c;
|
|
2911
3366
|
try {
|
|
2912
|
-
for (var
|
|
2913
|
-
|
|
2914
|
-
|
|
3367
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3368
|
+
_c = _f.value;
|
|
3369
|
+
_d = false;
|
|
3370
|
+
try {
|
|
3371
|
+
const page = _c;
|
|
3372
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3373
|
+
}
|
|
3374
|
+
finally {
|
|
3375
|
+
_d = true;
|
|
3376
|
+
}
|
|
2915
3377
|
}
|
|
2916
3378
|
}
|
|
2917
3379
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2918
3380
|
finally {
|
|
2919
3381
|
try {
|
|
2920
|
-
if (
|
|
3382
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2921
3383
|
}
|
|
2922
3384
|
finally { if (e_1) throw e_1.error; }
|
|
2923
3385
|
}
|
|
@@ -2966,17 +3428,24 @@ class SqlVirtualMachinesImpl {
|
|
|
2966
3428
|
}
|
|
2967
3429
|
listPagingAll(options) {
|
|
2968
3430
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2969
|
-
var e_2,
|
|
3431
|
+
var _a, e_2, _b, _c;
|
|
2970
3432
|
try {
|
|
2971
|
-
for (var
|
|
2972
|
-
|
|
2973
|
-
|
|
3433
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3434
|
+
_c = _f.value;
|
|
3435
|
+
_d = false;
|
|
3436
|
+
try {
|
|
3437
|
+
const page = _c;
|
|
3438
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3439
|
+
}
|
|
3440
|
+
finally {
|
|
3441
|
+
_d = true;
|
|
3442
|
+
}
|
|
2974
3443
|
}
|
|
2975
3444
|
}
|
|
2976
3445
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2977
3446
|
finally {
|
|
2978
3447
|
try {
|
|
2979
|
-
if (
|
|
3448
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2980
3449
|
}
|
|
2981
3450
|
finally { if (e_2) throw e_2.error; }
|
|
2982
3451
|
}
|
|
@@ -3027,17 +3496,24 @@ class SqlVirtualMachinesImpl {
|
|
|
3027
3496
|
}
|
|
3028
3497
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
3029
3498
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
3030
|
-
var e_3,
|
|
3499
|
+
var _a, e_3, _b, _c;
|
|
3031
3500
|
try {
|
|
3032
|
-
for (var
|
|
3033
|
-
|
|
3034
|
-
|
|
3501
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3502
|
+
_c = _f.value;
|
|
3503
|
+
_d = false;
|
|
3504
|
+
try {
|
|
3505
|
+
const page = _c;
|
|
3506
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3507
|
+
}
|
|
3508
|
+
finally {
|
|
3509
|
+
_d = true;
|
|
3510
|
+
}
|
|
3035
3511
|
}
|
|
3036
3512
|
}
|
|
3037
3513
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
3038
3514
|
finally {
|
|
3039
3515
|
try {
|
|
3040
|
-
if (
|
|
3516
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3041
3517
|
}
|
|
3042
3518
|
finally { if (e_3) throw e_3.error; }
|
|
3043
3519
|
}
|
|
@@ -3061,18 +3537,29 @@ class SqlVirtualMachinesImpl {
|
|
|
3061
3537
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
3062
3538
|
}
|
|
3063
3539
|
/**
|
|
3064
|
-
*
|
|
3540
|
+
* Gets a SQL virtual machine.
|
|
3065
3541
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3066
3542
|
* value from the Azure Resource Manager API or the portal.
|
|
3067
3543
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3068
3544
|
* @param options The options parameters.
|
|
3069
3545
|
*/
|
|
3070
|
-
|
|
3546
|
+
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3547
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
3548
|
+
}
|
|
3549
|
+
/**
|
|
3550
|
+
* Creates or updates a SQL virtual machine.
|
|
3551
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3552
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3553
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3554
|
+
* @param parameters The SQL virtual machine.
|
|
3555
|
+
* @param options The options parameters.
|
|
3556
|
+
*/
|
|
3557
|
+
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3071
3558
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3072
3559
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3073
3560
|
return this.client.sendOperationRequest(args, spec);
|
|
3074
3561
|
});
|
|
3075
|
-
const
|
|
3562
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3076
3563
|
var _a;
|
|
3077
3564
|
let currentRawResponse = undefined;
|
|
3078
3565
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3091,41 +3578,47 @@ class SqlVirtualMachinesImpl {
|
|
|
3091
3578
|
}
|
|
3092
3579
|
};
|
|
3093
3580
|
});
|
|
3094
|
-
const lro =
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3581
|
+
const lro = createLroSpec({
|
|
3582
|
+
sendOperationFn,
|
|
3583
|
+
args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
|
|
3584
|
+
spec: createOrUpdateOperationSpec
|
|
3585
|
+
});
|
|
3586
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3587
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3588
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3589
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3098
3590
|
});
|
|
3099
3591
|
yield poller.poll();
|
|
3100
3592
|
return poller;
|
|
3101
3593
|
});
|
|
3102
3594
|
}
|
|
3103
3595
|
/**
|
|
3104
|
-
*
|
|
3596
|
+
* Creates or updates a SQL virtual machine.
|
|
3105
3597
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3106
3598
|
* value from the Azure Resource Manager API or the portal.
|
|
3107
3599
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3600
|
+
* @param parameters The SQL virtual machine.
|
|
3108
3601
|
* @param options The options parameters.
|
|
3109
3602
|
*/
|
|
3110
|
-
|
|
3603
|
+
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3111
3604
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3112
|
-
const poller = yield this.
|
|
3605
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
3113
3606
|
return poller.pollUntilDone();
|
|
3114
3607
|
});
|
|
3115
3608
|
}
|
|
3116
3609
|
/**
|
|
3117
|
-
*
|
|
3610
|
+
* Deletes a SQL virtual machine.
|
|
3118
3611
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3119
3612
|
* value from the Azure Resource Manager API or the portal.
|
|
3120
3613
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3121
3614
|
* @param options The options parameters.
|
|
3122
3615
|
*/
|
|
3123
|
-
|
|
3616
|
+
beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3124
3617
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3125
3618
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3126
3619
|
return this.client.sendOperationRequest(args, spec);
|
|
3127
3620
|
});
|
|
3128
|
-
const
|
|
3621
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3129
3622
|
var _a;
|
|
3130
3623
|
let currentRawResponse = undefined;
|
|
3131
3624
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3144,52 +3637,47 @@ class SqlVirtualMachinesImpl {
|
|
|
3144
3637
|
}
|
|
3145
3638
|
};
|
|
3146
3639
|
});
|
|
3147
|
-
const lro =
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3640
|
+
const lro = createLroSpec({
|
|
3641
|
+
sendOperationFn,
|
|
3642
|
+
args: { resourceGroupName, sqlVirtualMachineName, options },
|
|
3643
|
+
spec: deleteOperationSpec
|
|
3644
|
+
});
|
|
3645
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3646
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3647
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3648
|
+
resourceLocationConfig: "location"
|
|
3151
3649
|
});
|
|
3152
3650
|
yield poller.poll();
|
|
3153
3651
|
return poller;
|
|
3154
3652
|
});
|
|
3155
3653
|
}
|
|
3156
3654
|
/**
|
|
3157
|
-
*
|
|
3655
|
+
* Deletes a SQL virtual machine.
|
|
3158
3656
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3159
3657
|
* value from the Azure Resource Manager API or the portal.
|
|
3160
3658
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3161
3659
|
* @param options The options parameters.
|
|
3162
3660
|
*/
|
|
3163
|
-
|
|
3661
|
+
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3164
3662
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3165
|
-
const poller = yield this.
|
|
3663
|
+
const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
|
|
3166
3664
|
return poller.pollUntilDone();
|
|
3167
3665
|
});
|
|
3168
3666
|
}
|
|
3169
3667
|
/**
|
|
3170
|
-
*
|
|
3171
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3172
|
-
* value from the Azure Resource Manager API or the portal.
|
|
3173
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3174
|
-
* @param options The options parameters.
|
|
3175
|
-
*/
|
|
3176
|
-
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3177
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
3178
|
-
}
|
|
3179
|
-
/**
|
|
3180
|
-
* Creates or updates a SQL virtual machine.
|
|
3668
|
+
* Updates a SQL virtual machine.
|
|
3181
3669
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3182
3670
|
* value from the Azure Resource Manager API or the portal.
|
|
3183
3671
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3184
3672
|
* @param parameters The SQL virtual machine.
|
|
3185
3673
|
* @param options The options parameters.
|
|
3186
3674
|
*/
|
|
3187
|
-
|
|
3675
|
+
beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3188
3676
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3189
3677
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3190
3678
|
return this.client.sendOperationRequest(args, spec);
|
|
3191
3679
|
});
|
|
3192
|
-
const
|
|
3680
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3193
3681
|
var _a;
|
|
3194
3682
|
let currentRawResponse = undefined;
|
|
3195
3683
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3208,42 +3696,56 @@ class SqlVirtualMachinesImpl {
|
|
|
3208
3696
|
}
|
|
3209
3697
|
};
|
|
3210
3698
|
});
|
|
3211
|
-
const lro =
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3699
|
+
const lro = createLroSpec({
|
|
3700
|
+
sendOperationFn,
|
|
3701
|
+
args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
|
|
3702
|
+
spec: updateOperationSpec
|
|
3703
|
+
});
|
|
3704
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3705
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3706
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3707
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3215
3708
|
});
|
|
3216
3709
|
yield poller.poll();
|
|
3217
3710
|
return poller;
|
|
3218
3711
|
});
|
|
3219
3712
|
}
|
|
3220
3713
|
/**
|
|
3221
|
-
*
|
|
3714
|
+
* Updates a SQL virtual machine.
|
|
3222
3715
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3223
3716
|
* value from the Azure Resource Manager API or the portal.
|
|
3224
3717
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3225
3718
|
* @param parameters The SQL virtual machine.
|
|
3226
3719
|
* @param options The options parameters.
|
|
3227
3720
|
*/
|
|
3228
|
-
|
|
3721
|
+
beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3229
3722
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3230
|
-
const poller = yield this.
|
|
3723
|
+
const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
3231
3724
|
return poller.pollUntilDone();
|
|
3232
3725
|
});
|
|
3233
3726
|
}
|
|
3234
3727
|
/**
|
|
3235
|
-
*
|
|
3728
|
+
* Gets all SQL virtual machines in a resource group.
|
|
3729
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3730
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3731
|
+
* @param options The options parameters.
|
|
3732
|
+
*/
|
|
3733
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
3734
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3735
|
+
}
|
|
3736
|
+
/**
|
|
3737
|
+
* Starts SQL best practices Assessment on SQL virtual machine.
|
|
3236
3738
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3237
3739
|
* value from the Azure Resource Manager API or the portal.
|
|
3238
3740
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3239
3741
|
* @param options The options parameters.
|
|
3240
3742
|
*/
|
|
3241
|
-
|
|
3743
|
+
beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3242
3744
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3243
3745
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3244
3746
|
return this.client.sendOperationRequest(args, spec);
|
|
3245
3747
|
});
|
|
3246
|
-
const
|
|
3748
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3247
3749
|
var _a;
|
|
3248
3750
|
let currentRawResponse = undefined;
|
|
3249
3751
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3262,42 +3764,46 @@ class SqlVirtualMachinesImpl {
|
|
|
3262
3764
|
}
|
|
3263
3765
|
};
|
|
3264
3766
|
});
|
|
3265
|
-
const lro =
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3767
|
+
const lro = createLroSpec({
|
|
3768
|
+
sendOperationFn,
|
|
3769
|
+
args: { resourceGroupName, sqlVirtualMachineName, options },
|
|
3770
|
+
spec: startAssessmentOperationSpec
|
|
3771
|
+
});
|
|
3772
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3773
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3774
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3775
|
+
resourceLocationConfig: "location"
|
|
3269
3776
|
});
|
|
3270
3777
|
yield poller.poll();
|
|
3271
3778
|
return poller;
|
|
3272
3779
|
});
|
|
3273
3780
|
}
|
|
3274
3781
|
/**
|
|
3275
|
-
*
|
|
3782
|
+
* Starts SQL best practices Assessment on SQL virtual machine.
|
|
3276
3783
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3277
3784
|
* value from the Azure Resource Manager API or the portal.
|
|
3278
3785
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3279
3786
|
* @param options The options parameters.
|
|
3280
3787
|
*/
|
|
3281
|
-
|
|
3788
|
+
beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3282
3789
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3283
|
-
const poller = yield this.
|
|
3790
|
+
const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
|
|
3284
3791
|
return poller.pollUntilDone();
|
|
3285
3792
|
});
|
|
3286
3793
|
}
|
|
3287
3794
|
/**
|
|
3288
|
-
*
|
|
3795
|
+
* Uninstalls and reinstalls the SQL IaaS Extension.
|
|
3289
3796
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3290
3797
|
* value from the Azure Resource Manager API or the portal.
|
|
3291
3798
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3292
|
-
* @param parameters The SQL virtual machine.
|
|
3293
3799
|
* @param options The options parameters.
|
|
3294
3800
|
*/
|
|
3295
|
-
|
|
3801
|
+
beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3296
3802
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3297
3803
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3298
3804
|
return this.client.sendOperationRequest(args, spec);
|
|
3299
3805
|
});
|
|
3300
|
-
const
|
|
3806
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3301
3807
|
var _a;
|
|
3302
3808
|
let currentRawResponse = undefined;
|
|
3303
3809
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3316,38 +3822,33 @@ class SqlVirtualMachinesImpl {
|
|
|
3316
3822
|
}
|
|
3317
3823
|
};
|
|
3318
3824
|
});
|
|
3319
|
-
const lro =
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3825
|
+
const lro = createLroSpec({
|
|
3826
|
+
sendOperationFn,
|
|
3827
|
+
args: { resourceGroupName, sqlVirtualMachineName, options },
|
|
3828
|
+
spec: redeployOperationSpec
|
|
3829
|
+
});
|
|
3830
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3831
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3832
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3833
|
+
resourceLocationConfig: "location"
|
|
3323
3834
|
});
|
|
3324
3835
|
yield poller.poll();
|
|
3325
3836
|
return poller;
|
|
3326
3837
|
});
|
|
3327
3838
|
}
|
|
3328
3839
|
/**
|
|
3329
|
-
*
|
|
3840
|
+
* Uninstalls and reinstalls the SQL IaaS Extension.
|
|
3330
3841
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3331
3842
|
* value from the Azure Resource Manager API or the portal.
|
|
3332
3843
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3333
|
-
* @param parameters The SQL virtual machine.
|
|
3334
3844
|
* @param options The options parameters.
|
|
3335
3845
|
*/
|
|
3336
|
-
|
|
3846
|
+
beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3337
3847
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3338
|
-
const poller = yield this.
|
|
3848
|
+
const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
|
|
3339
3849
|
return poller.pollUntilDone();
|
|
3340
3850
|
});
|
|
3341
3851
|
}
|
|
3342
|
-
/**
|
|
3343
|
-
* Gets all SQL virtual machines in a resource group.
|
|
3344
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3345
|
-
* value from the Azure Resource Manager API or the portal.
|
|
3346
|
-
* @param options The options parameters.
|
|
3347
|
-
*/
|
|
3348
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
3349
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3350
|
-
}
|
|
3351
3852
|
/**
|
|
3352
3853
|
* ListBySqlVmGroupNext
|
|
3353
3854
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -3379,7 +3880,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3379
3880
|
}
|
|
3380
3881
|
}
|
|
3381
3882
|
// Operation Specifications
|
|
3382
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3883
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3383
3884
|
const listBySqlVmGroupOperationSpec = {
|
|
3384
3885
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/sqlVirtualMachines",
|
|
3385
3886
|
httpMethod: "GET",
|
|
@@ -3387,7 +3888,9 @@ const listBySqlVmGroupOperationSpec = {
|
|
|
3387
3888
|
200: {
|
|
3388
3889
|
bodyMapper: SqlVirtualMachineListResult
|
|
3389
3890
|
},
|
|
3390
|
-
default: {
|
|
3891
|
+
default: {
|
|
3892
|
+
bodyMapper: ErrorResponse
|
|
3893
|
+
}
|
|
3391
3894
|
},
|
|
3392
3895
|
queryParameters: [apiVersion],
|
|
3393
3896
|
urlParameters: [
|
|
@@ -3397,7 +3900,7 @@ const listBySqlVmGroupOperationSpec = {
|
|
|
3397
3900
|
subscriptionId
|
|
3398
3901
|
],
|
|
3399
3902
|
headerParameters: [accept],
|
|
3400
|
-
serializer
|
|
3903
|
+
serializer: serializer$1
|
|
3401
3904
|
};
|
|
3402
3905
|
const listOperationSpec = {
|
|
3403
3906
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
|
|
@@ -3406,38 +3909,14 @@ const listOperationSpec = {
|
|
|
3406
3909
|
200: {
|
|
3407
3910
|
bodyMapper: SqlVirtualMachineListResult
|
|
3408
3911
|
},
|
|
3409
|
-
default: {
|
|
3912
|
+
default: {
|
|
3913
|
+
bodyMapper: ErrorResponse
|
|
3914
|
+
}
|
|
3410
3915
|
},
|
|
3411
3916
|
queryParameters: [apiVersion],
|
|
3412
3917
|
urlParameters: [$host, subscriptionId],
|
|
3413
3918
|
headerParameters: [accept],
|
|
3414
|
-
serializer
|
|
3415
|
-
};
|
|
3416
|
-
const startAssessmentOperationSpec = {
|
|
3417
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
3418
|
-
httpMethod: "POST",
|
|
3419
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3420
|
-
queryParameters: [apiVersion],
|
|
3421
|
-
urlParameters: [
|
|
3422
|
-
$host,
|
|
3423
|
-
resourceGroupName,
|
|
3424
|
-
subscriptionId,
|
|
3425
|
-
sqlVirtualMachineName
|
|
3426
|
-
],
|
|
3427
|
-
serializer
|
|
3428
|
-
};
|
|
3429
|
-
const redeployOperationSpec = {
|
|
3430
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
3431
|
-
httpMethod: "POST",
|
|
3432
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3433
|
-
queryParameters: [apiVersion],
|
|
3434
|
-
urlParameters: [
|
|
3435
|
-
$host,
|
|
3436
|
-
resourceGroupName,
|
|
3437
|
-
subscriptionId,
|
|
3438
|
-
sqlVirtualMachineName
|
|
3439
|
-
],
|
|
3440
|
-
serializer
|
|
3919
|
+
serializer: serializer$1
|
|
3441
3920
|
};
|
|
3442
3921
|
const getOperationSpec = {
|
|
3443
3922
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
@@ -3446,7 +3925,9 @@ const getOperationSpec = {
|
|
|
3446
3925
|
200: {
|
|
3447
3926
|
bodyMapper: SqlVirtualMachine
|
|
3448
3927
|
},
|
|
3449
|
-
default: {
|
|
3928
|
+
default: {
|
|
3929
|
+
bodyMapper: ErrorResponse
|
|
3930
|
+
}
|
|
3450
3931
|
},
|
|
3451
3932
|
queryParameters: [expand, apiVersion],
|
|
3452
3933
|
urlParameters: [
|
|
@@ -3456,7 +3937,7 @@ const getOperationSpec = {
|
|
|
3456
3937
|
sqlVirtualMachineName
|
|
3457
3938
|
],
|
|
3458
3939
|
headerParameters: [accept],
|
|
3459
|
-
serializer
|
|
3940
|
+
serializer: serializer$1
|
|
3460
3941
|
};
|
|
3461
3942
|
const createOrUpdateOperationSpec = {
|
|
3462
3943
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
@@ -3474,7 +3955,9 @@ const createOrUpdateOperationSpec = {
|
|
|
3474
3955
|
204: {
|
|
3475
3956
|
bodyMapper: SqlVirtualMachine
|
|
3476
3957
|
},
|
|
3477
|
-
default: {
|
|
3958
|
+
default: {
|
|
3959
|
+
bodyMapper: ErrorResponse
|
|
3960
|
+
}
|
|
3478
3961
|
},
|
|
3479
3962
|
requestBody: parameters3,
|
|
3480
3963
|
queryParameters: [apiVersion],
|
|
@@ -3486,12 +3969,20 @@ const createOrUpdateOperationSpec = {
|
|
|
3486
3969
|
],
|
|
3487
3970
|
headerParameters: [accept, contentType],
|
|
3488
3971
|
mediaType: "json",
|
|
3489
|
-
serializer
|
|
3972
|
+
serializer: serializer$1
|
|
3490
3973
|
};
|
|
3491
3974
|
const deleteOperationSpec = {
|
|
3492
3975
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
3493
3976
|
httpMethod: "DELETE",
|
|
3494
|
-
responses: {
|
|
3977
|
+
responses: {
|
|
3978
|
+
200: {},
|
|
3979
|
+
201: {},
|
|
3980
|
+
202: {},
|
|
3981
|
+
204: {},
|
|
3982
|
+
default: {
|
|
3983
|
+
bodyMapper: ErrorResponse
|
|
3984
|
+
}
|
|
3985
|
+
},
|
|
3495
3986
|
queryParameters: [apiVersion],
|
|
3496
3987
|
urlParameters: [
|
|
3497
3988
|
$host,
|
|
@@ -3499,7 +3990,8 @@ const deleteOperationSpec = {
|
|
|
3499
3990
|
subscriptionId,
|
|
3500
3991
|
sqlVirtualMachineName
|
|
3501
3992
|
],
|
|
3502
|
-
|
|
3993
|
+
headerParameters: [accept],
|
|
3994
|
+
serializer: serializer$1
|
|
3503
3995
|
};
|
|
3504
3996
|
const updateOperationSpec = {
|
|
3505
3997
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
@@ -3517,7 +4009,9 @@ const updateOperationSpec = {
|
|
|
3517
4009
|
204: {
|
|
3518
4010
|
bodyMapper: SqlVirtualMachine
|
|
3519
4011
|
},
|
|
3520
|
-
default: {
|
|
4012
|
+
default: {
|
|
4013
|
+
bodyMapper: ErrorResponse
|
|
4014
|
+
}
|
|
3521
4015
|
},
|
|
3522
4016
|
requestBody: parameters4,
|
|
3523
4017
|
queryParameters: [apiVersion],
|
|
@@ -3529,7 +4023,7 @@ const updateOperationSpec = {
|
|
|
3529
4023
|
],
|
|
3530
4024
|
headerParameters: [accept, contentType],
|
|
3531
4025
|
mediaType: "json",
|
|
3532
|
-
serializer
|
|
4026
|
+
serializer: serializer$1
|
|
3533
4027
|
};
|
|
3534
4028
|
const listByResourceGroupOperationSpec = {
|
|
3535
4029
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
|
|
@@ -3538,7 +4032,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
3538
4032
|
200: {
|
|
3539
4033
|
bodyMapper: SqlVirtualMachineListResult
|
|
3540
4034
|
},
|
|
3541
|
-
default: {
|
|
4035
|
+
default: {
|
|
4036
|
+
bodyMapper: ErrorResponse
|
|
4037
|
+
}
|
|
3542
4038
|
},
|
|
3543
4039
|
queryParameters: [apiVersion],
|
|
3544
4040
|
urlParameters: [
|
|
@@ -3547,7 +4043,51 @@ const listByResourceGroupOperationSpec = {
|
|
|
3547
4043
|
subscriptionId
|
|
3548
4044
|
],
|
|
3549
4045
|
headerParameters: [accept],
|
|
3550
|
-
serializer
|
|
4046
|
+
serializer: serializer$1
|
|
4047
|
+
};
|
|
4048
|
+
const startAssessmentOperationSpec = {
|
|
4049
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
4050
|
+
httpMethod: "POST",
|
|
4051
|
+
responses: {
|
|
4052
|
+
200: {},
|
|
4053
|
+
201: {},
|
|
4054
|
+
202: {},
|
|
4055
|
+
204: {},
|
|
4056
|
+
default: {
|
|
4057
|
+
bodyMapper: ErrorResponse
|
|
4058
|
+
}
|
|
4059
|
+
},
|
|
4060
|
+
queryParameters: [apiVersion],
|
|
4061
|
+
urlParameters: [
|
|
4062
|
+
$host,
|
|
4063
|
+
resourceGroupName,
|
|
4064
|
+
subscriptionId,
|
|
4065
|
+
sqlVirtualMachineName
|
|
4066
|
+
],
|
|
4067
|
+
headerParameters: [accept],
|
|
4068
|
+
serializer: serializer$1
|
|
4069
|
+
};
|
|
4070
|
+
const redeployOperationSpec = {
|
|
4071
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
4072
|
+
httpMethod: "POST",
|
|
4073
|
+
responses: {
|
|
4074
|
+
200: {},
|
|
4075
|
+
201: {},
|
|
4076
|
+
202: {},
|
|
4077
|
+
204: {},
|
|
4078
|
+
default: {
|
|
4079
|
+
bodyMapper: ErrorResponse
|
|
4080
|
+
}
|
|
4081
|
+
},
|
|
4082
|
+
queryParameters: [apiVersion],
|
|
4083
|
+
urlParameters: [
|
|
4084
|
+
$host,
|
|
4085
|
+
resourceGroupName,
|
|
4086
|
+
subscriptionId,
|
|
4087
|
+
sqlVirtualMachineName
|
|
4088
|
+
],
|
|
4089
|
+
headerParameters: [accept],
|
|
4090
|
+
serializer: serializer$1
|
|
3551
4091
|
};
|
|
3552
4092
|
const listBySqlVmGroupNextOperationSpec = {
|
|
3553
4093
|
path: "{nextLink}",
|
|
@@ -3556,7 +4096,9 @@ const listBySqlVmGroupNextOperationSpec = {
|
|
|
3556
4096
|
200: {
|
|
3557
4097
|
bodyMapper: SqlVirtualMachineListResult
|
|
3558
4098
|
},
|
|
3559
|
-
default: {
|
|
4099
|
+
default: {
|
|
4100
|
+
bodyMapper: ErrorResponse
|
|
4101
|
+
}
|
|
3560
4102
|
},
|
|
3561
4103
|
urlParameters: [
|
|
3562
4104
|
$host,
|
|
@@ -3566,7 +4108,7 @@ const listBySqlVmGroupNextOperationSpec = {
|
|
|
3566
4108
|
nextLink
|
|
3567
4109
|
],
|
|
3568
4110
|
headerParameters: [accept],
|
|
3569
|
-
serializer
|
|
4111
|
+
serializer: serializer$1
|
|
3570
4112
|
};
|
|
3571
4113
|
const listNextOperationSpec = {
|
|
3572
4114
|
path: "{nextLink}",
|
|
@@ -3575,7 +4117,9 @@ const listNextOperationSpec = {
|
|
|
3575
4117
|
200: {
|
|
3576
4118
|
bodyMapper: SqlVirtualMachineListResult
|
|
3577
4119
|
},
|
|
3578
|
-
default: {
|
|
4120
|
+
default: {
|
|
4121
|
+
bodyMapper: ErrorResponse
|
|
4122
|
+
}
|
|
3579
4123
|
},
|
|
3580
4124
|
urlParameters: [
|
|
3581
4125
|
$host,
|
|
@@ -3583,7 +4127,7 @@ const listNextOperationSpec = {
|
|
|
3583
4127
|
nextLink
|
|
3584
4128
|
],
|
|
3585
4129
|
headerParameters: [accept],
|
|
3586
|
-
serializer
|
|
4130
|
+
serializer: serializer$1
|
|
3587
4131
|
};
|
|
3588
4132
|
const listByResourceGroupNextOperationSpec = {
|
|
3589
4133
|
path: "{nextLink}",
|
|
@@ -3592,7 +4136,9 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3592
4136
|
200: {
|
|
3593
4137
|
bodyMapper: SqlVirtualMachineListResult
|
|
3594
4138
|
},
|
|
3595
|
-
default: {
|
|
4139
|
+
default: {
|
|
4140
|
+
bodyMapper: ErrorResponse
|
|
4141
|
+
}
|
|
3596
4142
|
},
|
|
3597
4143
|
urlParameters: [
|
|
3598
4144
|
$host,
|
|
@@ -3601,6 +4147,118 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3601
4147
|
nextLink
|
|
3602
4148
|
],
|
|
3603
4149
|
headerParameters: [accept],
|
|
4150
|
+
serializer: serializer$1
|
|
4151
|
+
};
|
|
4152
|
+
|
|
4153
|
+
/*
|
|
4154
|
+
* Copyright (c) Microsoft Corporation.
|
|
4155
|
+
* Licensed under the MIT License.
|
|
4156
|
+
*
|
|
4157
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4158
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4159
|
+
*/
|
|
4160
|
+
/** Class containing SqlVirtualMachineTroubleshoot operations. */
|
|
4161
|
+
class SqlVirtualMachineTroubleshootImpl {
|
|
4162
|
+
/**
|
|
4163
|
+
* Initialize a new instance of the class SqlVirtualMachineTroubleshoot class.
|
|
4164
|
+
* @param client Reference to the service client
|
|
4165
|
+
*/
|
|
4166
|
+
constructor(client) {
|
|
4167
|
+
this.client = client;
|
|
4168
|
+
}
|
|
4169
|
+
/**
|
|
4170
|
+
* Starts SQL virtual machine troubleshooting.
|
|
4171
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
4172
|
+
* value from the Azure Resource Manager API or the portal.
|
|
4173
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
4174
|
+
* @param parameters The SQL virtual machine troubleshooting entity.
|
|
4175
|
+
* @param options The options parameters.
|
|
4176
|
+
*/
|
|
4177
|
+
beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
4178
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4179
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4180
|
+
return this.client.sendOperationRequest(args, spec);
|
|
4181
|
+
});
|
|
4182
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4183
|
+
var _a;
|
|
4184
|
+
let currentRawResponse = undefined;
|
|
4185
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4186
|
+
const callback = (rawResponse, flatResponse) => {
|
|
4187
|
+
currentRawResponse = rawResponse;
|
|
4188
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4189
|
+
};
|
|
4190
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4191
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
4192
|
+
return {
|
|
4193
|
+
flatResponse,
|
|
4194
|
+
rawResponse: {
|
|
4195
|
+
statusCode: currentRawResponse.status,
|
|
4196
|
+
body: currentRawResponse.parsedBody,
|
|
4197
|
+
headers: currentRawResponse.headers.toJSON()
|
|
4198
|
+
}
|
|
4199
|
+
};
|
|
4200
|
+
});
|
|
4201
|
+
const lro = createLroSpec({
|
|
4202
|
+
sendOperationFn,
|
|
4203
|
+
args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
|
|
4204
|
+
spec: troubleshootOperationSpec
|
|
4205
|
+
});
|
|
4206
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4207
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4208
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4209
|
+
resourceLocationConfig: "location"
|
|
4210
|
+
});
|
|
4211
|
+
yield poller.poll();
|
|
4212
|
+
return poller;
|
|
4213
|
+
});
|
|
4214
|
+
}
|
|
4215
|
+
/**
|
|
4216
|
+
* Starts SQL virtual machine troubleshooting.
|
|
4217
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
4218
|
+
* value from the Azure Resource Manager API or the portal.
|
|
4219
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
4220
|
+
* @param parameters The SQL virtual machine troubleshooting entity.
|
|
4221
|
+
* @param options The options parameters.
|
|
4222
|
+
*/
|
|
4223
|
+
beginTroubleshootAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
4224
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4225
|
+
const poller = yield this.beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
4226
|
+
return poller.pollUntilDone();
|
|
4227
|
+
});
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4230
|
+
// Operation Specifications
|
|
4231
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4232
|
+
const troubleshootOperationSpec = {
|
|
4233
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/troubleshoot",
|
|
4234
|
+
httpMethod: "POST",
|
|
4235
|
+
responses: {
|
|
4236
|
+
200: {
|
|
4237
|
+
bodyMapper: SqlVmTroubleshooting
|
|
4238
|
+
},
|
|
4239
|
+
201: {
|
|
4240
|
+
bodyMapper: SqlVmTroubleshooting
|
|
4241
|
+
},
|
|
4242
|
+
202: {
|
|
4243
|
+
bodyMapper: SqlVmTroubleshooting
|
|
4244
|
+
},
|
|
4245
|
+
204: {
|
|
4246
|
+
bodyMapper: SqlVmTroubleshooting
|
|
4247
|
+
},
|
|
4248
|
+
default: {
|
|
4249
|
+
bodyMapper: ErrorResponse
|
|
4250
|
+
}
|
|
4251
|
+
},
|
|
4252
|
+
requestBody: parameters5,
|
|
4253
|
+
queryParameters: [apiVersion],
|
|
4254
|
+
urlParameters: [
|
|
4255
|
+
$host,
|
|
4256
|
+
resourceGroupName,
|
|
4257
|
+
subscriptionId,
|
|
4258
|
+
sqlVirtualMachineName
|
|
4259
|
+
],
|
|
4260
|
+
headerParameters: [accept, contentType],
|
|
4261
|
+
mediaType: "json",
|
|
3604
4262
|
serializer
|
|
3605
4263
|
};
|
|
3606
4264
|
|
|
@@ -3634,7 +4292,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3634
4292
|
requestContentType: "application/json; charset=utf-8",
|
|
3635
4293
|
credential: credentials
|
|
3636
4294
|
};
|
|
3637
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.
|
|
4295
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.8`;
|
|
3638
4296
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3639
4297
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3640
4298
|
: `${packageDetails}`;
|
|
@@ -3667,11 +4325,12 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3667
4325
|
this.subscriptionId = subscriptionId;
|
|
3668
4326
|
// Assigning values to Constant parameters
|
|
3669
4327
|
this.$host = options.$host || "https://management.azure.com";
|
|
3670
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
4328
|
+
this.apiVersion = options.apiVersion || "2022-08-01-preview";
|
|
3671
4329
|
this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
|
|
3672
4330
|
this.operations = new OperationsImpl(this);
|
|
3673
4331
|
this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
|
|
3674
4332
|
this.sqlVirtualMachines = new SqlVirtualMachinesImpl(this);
|
|
4333
|
+
this.sqlVirtualMachineTroubleshoot = new SqlVirtualMachineTroubleshootImpl(this);
|
|
3675
4334
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3676
4335
|
}
|
|
3677
4336
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|