@azure/arm-sqlvirtualmachine 5.0.0-beta.6 → 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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1065 -306
- 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.d.ts +2 -0
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +98 -0
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +40 -0
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +40 -0
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +60 -0
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +58 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +55 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +39 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +59 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +58 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +40 -0
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +1 -0
- 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.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +290 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +39 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +59 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +60 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +58 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +39 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +39 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +40 -0
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +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 +86 -41
- 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.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +37 -15
- 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 +134 -51
- 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 +270 -148
- 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/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- 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 +7 -9
- 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 +22 -12
- package/review/arm-sqlvirtualmachine.api.md +134 -13
- package/src/index.ts +1 -0
- 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 +81 -42
- package/src/operations/index.ts +1 -0
- package/src/operations/operations.ts +27 -11
- package/src/operations/sqlVirtualMachineGroups.ts +134 -61
- package/src/operations/sqlVirtualMachineTroubleshoot.ts +172 -0
- package/src/operations/sqlVirtualMachines.ts +312 -213
- 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/pagingHelper.ts +39 -0
- package/src/sqlVirtualMachineManagementClient.ts +14 -9
- package/tsconfig.json +8 -2
- package/types/arm-sqlvirtualmachine.d.ts +254 -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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { SqlVirtualMachineManagementClient } from "../src/sqlVirtualMachineManagementClient";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("SqlVirtualMachine test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let resourcename;
|
|
32
|
+
beforeEach(function () {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
recorder = new Recorder(this.currentTest);
|
|
35
|
+
yield recorder.start(recorderOptions);
|
|
36
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
37
|
+
// This is an example of how the environment variables are used
|
|
38
|
+
const credential = createTestCredential();
|
|
39
|
+
client = new SqlVirtualMachineManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
40
|
+
location = "eastus";
|
|
41
|
+
resourceGroup = "myjstest";
|
|
42
|
+
resourcename = "resourcetest";
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
afterEach(function () {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield recorder.stop();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
it("operation list test", function () {
|
|
51
|
+
var _a, e_1, _b, _c;
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const resArray = new Array();
|
|
54
|
+
try {
|
|
55
|
+
for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
56
|
+
_c = _f.value;
|
|
57
|
+
_d = false;
|
|
58
|
+
try {
|
|
59
|
+
let item = _c;
|
|
60
|
+
resArray.push(item);
|
|
61
|
+
}
|
|
62
|
+
finally {
|
|
63
|
+
_d = true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
+
finally {
|
|
69
|
+
try {
|
|
70
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
71
|
+
}
|
|
72
|
+
finally { if (e_1) throw e_1.error; }
|
|
73
|
+
}
|
|
74
|
+
assert.notEqual(resArray.length, 1);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=sqlvirtualmachine_operations_test.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlvirtualmachine_operations_test.spec.js","sourceRoot":"","sources":["../../test/sqlvirtualmachine_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAC;AAE7F,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAyC,CAAC;IAC9C,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACtC,cAAc,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,iCAAiC,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YAChH,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;YAC3B,YAAY,GAAG,cAAc,CAAC;QAEhC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE;;;YACxB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;oBAAxB,cAAwB;oBAAxB,WAAwB;;wBAApC,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;YACD,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KACrC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for SqlVirtualMachineManagementClient.",
|
|
6
|
-
"version": "5.0.0-beta.
|
|
6
|
+
"version": "5.0.0-beta.8",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.
|
|
11
|
+
"@azure/core-lro": "^2.5.3",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -29,26 +29,27 @@
|
|
|
29
29
|
"types": "./types/arm-sqlvirtualmachine.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
-
"@rollup/plugin-commonjs": "^
|
|
33
|
-
"@rollup/plugin-json": "^
|
|
34
|
-
"@rollup/plugin-multi-entry": "^
|
|
32
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
33
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
35
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
-
"mkdirp": "^1.
|
|
36
|
+
"mkdirp": "^2.1.2",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~
|
|
39
|
+
"typescript": "~5.0.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
|
+
"dotenv": "^16.0.0",
|
|
42
43
|
"@azure/identity": "^2.0.1",
|
|
43
|
-
"@azure-tools/test-recorder": "^
|
|
44
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
44
45
|
"@azure-tools/test-credential": "^1.0.0",
|
|
45
46
|
"mocha": "^7.1.1",
|
|
46
47
|
"@types/chai": "^4.2.8",
|
|
47
48
|
"chai": "^4.2.0",
|
|
48
49
|
"cross-env": "^7.0.2",
|
|
50
|
+
"@types/node": "^14.0.0",
|
|
49
51
|
"@azure/dev-tool": "^1.0.0"
|
|
50
52
|
},
|
|
51
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sqlvirtualmachine/arm-sqlvirtualmachine",
|
|
52
53
|
"repository": {
|
|
53
54
|
"type": "git",
|
|
54
55
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -109,5 +110,14 @@
|
|
|
109
110
|
}
|
|
110
111
|
]
|
|
111
112
|
},
|
|
112
|
-
"autoPublish": true
|
|
113
|
+
"autoPublish": true,
|
|
114
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sqlvirtualmachine/arm-sqlvirtualmachine",
|
|
115
|
+
"//sampleConfiguration": {
|
|
116
|
+
"productName": "",
|
|
117
|
+
"productSlugs": [
|
|
118
|
+
"azure"
|
|
119
|
+
],
|
|
120
|
+
"disableDocsMs": true,
|
|
121
|
+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sqlvirtualmachine?view=azure-node-preview"
|
|
122
|
+
}
|
|
113
123
|
}
|
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export interface AADAuthenticationSettings {
|
|
15
|
+
clientId?: string;
|
|
16
|
+
}
|
|
12
17
|
|
|
13
18
|
// @public
|
|
14
19
|
export interface AdditionalFeaturesServerConfigurations {
|
|
@@ -88,9 +93,9 @@ export interface AvailabilityGroupListenerListResult {
|
|
|
88
93
|
|
|
89
94
|
// @public
|
|
90
95
|
export interface AvailabilityGroupListeners {
|
|
91
|
-
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<
|
|
96
|
+
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AvailabilityGroupListenersCreateOrUpdateResponse>, AvailabilityGroupListenersCreateOrUpdateResponse>>;
|
|
92
97
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<AvailabilityGroupListenersCreateOrUpdateResponse>;
|
|
93
|
-
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<
|
|
98
|
+
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
94
99
|
beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<void>;
|
|
95
100
|
get(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersGetOptionalParams): Promise<AvailabilityGroupListenersGetResponse>;
|
|
96
101
|
listByGroup(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: AvailabilityGroupListenersListByGroupOptionalParams): PagedAsyncIterableIterator<AvailabilityGroupListener>;
|
|
@@ -105,6 +110,12 @@ export interface AvailabilityGroupListenersCreateOrUpdateOptionalParams extends
|
|
|
105
110
|
// @public
|
|
106
111
|
export type AvailabilityGroupListenersCreateOrUpdateResponse = AvailabilityGroupListener;
|
|
107
112
|
|
|
113
|
+
// @public
|
|
114
|
+
export interface AvailabilityGroupListenersDeleteHeaders {
|
|
115
|
+
// (undocumented)
|
|
116
|
+
location?: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
108
119
|
// @public
|
|
109
120
|
export interface AvailabilityGroupListenersDeleteOptionalParams extends coreClient.OperationOptions {
|
|
110
121
|
resumeFrom?: string;
|
|
@@ -160,12 +171,35 @@ export type DayOfWeek = "Everyday" | "Monday" | "Tuesday" | "Wednesday" | "Thurs
|
|
|
160
171
|
// @public
|
|
161
172
|
export type DiskConfigurationType = string;
|
|
162
173
|
|
|
174
|
+
// @public
|
|
175
|
+
export interface ErrorAdditionalInfo {
|
|
176
|
+
readonly info?: Record<string, unknown>;
|
|
177
|
+
readonly type?: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @public
|
|
181
|
+
export interface ErrorDetail {
|
|
182
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
183
|
+
readonly code?: string;
|
|
184
|
+
readonly details?: ErrorDetail[];
|
|
185
|
+
readonly message?: string;
|
|
186
|
+
readonly target?: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// @public
|
|
190
|
+
export interface ErrorResponse {
|
|
191
|
+
error?: ErrorDetail;
|
|
192
|
+
}
|
|
193
|
+
|
|
163
194
|
// @public
|
|
164
195
|
export type Failover = string;
|
|
165
196
|
|
|
166
197
|
// @public
|
|
167
198
|
export type FullBackupFrequencyType = string;
|
|
168
199
|
|
|
200
|
+
// @public
|
|
201
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
202
|
+
|
|
169
203
|
// @public
|
|
170
204
|
export type IdentityType = string;
|
|
171
205
|
|
|
@@ -259,7 +293,8 @@ export enum KnownIdentityType {
|
|
|
259
293
|
|
|
260
294
|
// @public
|
|
261
295
|
export enum KnownLeastPrivilegeMode {
|
|
262
|
-
Enabled = "Enabled"
|
|
296
|
+
Enabled = "Enabled",
|
|
297
|
+
NotSet = "NotSet"
|
|
263
298
|
}
|
|
264
299
|
|
|
265
300
|
// @public
|
|
@@ -329,6 +364,11 @@ export enum KnownStorageWorkloadType {
|
|
|
329
364
|
Oltp = "OLTP"
|
|
330
365
|
}
|
|
331
366
|
|
|
367
|
+
// @public
|
|
368
|
+
export enum KnownTroubleshootingScenario {
|
|
369
|
+
UnhealthyReplica = "UnhealthyReplica"
|
|
370
|
+
}
|
|
371
|
+
|
|
332
372
|
// @public
|
|
333
373
|
export type LeastPrivilegeMode = string;
|
|
334
374
|
|
|
@@ -438,6 +478,7 @@ export interface Schedule {
|
|
|
438
478
|
// @public
|
|
439
479
|
export interface ServerConfigurationsManagementSettings {
|
|
440
480
|
additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
|
|
481
|
+
azureAdAuthenticationSettings?: AADAuthenticationSettings;
|
|
441
482
|
sqlConnectivityUpdateSettings?: SqlConnectivityUpdateSettings;
|
|
442
483
|
sqlInstanceSettings?: SQLInstanceSettings;
|
|
443
484
|
sqlStorageUpdateSettings?: SqlStorageUpdateSettings;
|
|
@@ -516,6 +557,7 @@ export interface SqlVirtualMachine extends TrackedResource {
|
|
|
516
557
|
sqlVirtualMachineGroupResourceId?: string;
|
|
517
558
|
storageConfigurationSettings?: StorageConfigurationSettings;
|
|
518
559
|
readonly systemData?: SystemData;
|
|
560
|
+
readonly troubleshootingStatus?: TroubleshootingStatus;
|
|
519
561
|
virtualMachineResourceId?: string;
|
|
520
562
|
wsfcDomainCredentials?: WsfcDomainCredentials;
|
|
521
563
|
wsfcStaticIp?: string;
|
|
@@ -541,11 +583,11 @@ export interface SqlVirtualMachineGroupListResult {
|
|
|
541
583
|
|
|
542
584
|
// @public
|
|
543
585
|
export interface SqlVirtualMachineGroups {
|
|
544
|
-
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<
|
|
586
|
+
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>, SqlVirtualMachineGroupsCreateOrUpdateResponse>>;
|
|
545
587
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse>;
|
|
546
|
-
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<
|
|
588
|
+
beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
547
589
|
beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<void>;
|
|
548
|
-
beginUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<
|
|
590
|
+
beginUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachineGroupsUpdateResponse>, SqlVirtualMachineGroupsUpdateResponse>>;
|
|
549
591
|
beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<SqlVirtualMachineGroupsUpdateResponse>;
|
|
550
592
|
get(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsGetOptionalParams): Promise<SqlVirtualMachineGroupsGetResponse>;
|
|
551
593
|
list(options?: SqlVirtualMachineGroupsListOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachineGroup>;
|
|
@@ -561,6 +603,12 @@ export interface SqlVirtualMachineGroupsCreateOrUpdateOptionalParams extends cor
|
|
|
561
603
|
// @public
|
|
562
604
|
export type SqlVirtualMachineGroupsCreateOrUpdateResponse = SqlVirtualMachineGroup;
|
|
563
605
|
|
|
606
|
+
// @public
|
|
607
|
+
export interface SqlVirtualMachineGroupsDeleteHeaders {
|
|
608
|
+
// (undocumented)
|
|
609
|
+
location?: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
564
612
|
// @public
|
|
565
613
|
export interface SqlVirtualMachineGroupsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
566
614
|
resumeFrom?: string;
|
|
@@ -640,6 +688,8 @@ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient
|
|
|
640
688
|
// (undocumented)
|
|
641
689
|
sqlVirtualMachines: SqlVirtualMachines;
|
|
642
690
|
// (undocumented)
|
|
691
|
+
sqlVirtualMachineTroubleshoot: SqlVirtualMachineTroubleshoot;
|
|
692
|
+
// (undocumented)
|
|
643
693
|
subscriptionId: string;
|
|
644
694
|
}
|
|
645
695
|
|
|
@@ -652,15 +702,15 @@ export interface SqlVirtualMachineManagementClientOptionalParams extends coreCli
|
|
|
652
702
|
|
|
653
703
|
// @public
|
|
654
704
|
export interface SqlVirtualMachines {
|
|
655
|
-
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<
|
|
705
|
+
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachinesCreateOrUpdateResponse>, SqlVirtualMachinesCreateOrUpdateResponse>>;
|
|
656
706
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<SqlVirtualMachinesCreateOrUpdateResponse>;
|
|
657
|
-
beginDelete(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<
|
|
707
|
+
beginDelete(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
658
708
|
beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<void>;
|
|
659
|
-
beginRedeploy(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<
|
|
709
|
+
beginRedeploy(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
660
710
|
beginRedeployAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesRedeployOptionalParams): Promise<void>;
|
|
661
|
-
beginStartAssessment(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<
|
|
711
|
+
beginStartAssessment(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
662
712
|
beginStartAssessmentAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesStartAssessmentOptionalParams): Promise<void>;
|
|
663
|
-
beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<
|
|
713
|
+
beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachinesUpdateResponse>, SqlVirtualMachinesUpdateResponse>>;
|
|
664
714
|
beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SqlVirtualMachinesUpdateResponse>;
|
|
665
715
|
get(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesGetOptionalParams): Promise<SqlVirtualMachinesGetResponse>;
|
|
666
716
|
list(options?: SqlVirtualMachinesListOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachine>;
|
|
@@ -677,6 +727,12 @@ export interface SqlVirtualMachinesCreateOrUpdateOptionalParams extends coreClie
|
|
|
677
727
|
// @public
|
|
678
728
|
export type SqlVirtualMachinesCreateOrUpdateResponse = SqlVirtualMachine;
|
|
679
729
|
|
|
730
|
+
// @public
|
|
731
|
+
export interface SqlVirtualMachinesDeleteHeaders {
|
|
732
|
+
// (undocumented)
|
|
733
|
+
location?: string;
|
|
734
|
+
}
|
|
735
|
+
|
|
680
736
|
// @public
|
|
681
737
|
export interface SqlVirtualMachinesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
682
738
|
resumeFrom?: string;
|
|
@@ -733,12 +789,24 @@ export interface SqlVirtualMachinesListOptionalParams extends coreClient.Operati
|
|
|
733
789
|
// @public
|
|
734
790
|
export type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
|
|
735
791
|
|
|
792
|
+
// @public
|
|
793
|
+
export interface SqlVirtualMachinesRedeployHeaders {
|
|
794
|
+
// (undocumented)
|
|
795
|
+
location?: string;
|
|
796
|
+
}
|
|
797
|
+
|
|
736
798
|
// @public
|
|
737
799
|
export interface SqlVirtualMachinesRedeployOptionalParams extends coreClient.OperationOptions {
|
|
738
800
|
resumeFrom?: string;
|
|
739
801
|
updateIntervalInMs?: number;
|
|
740
802
|
}
|
|
741
803
|
|
|
804
|
+
// @public
|
|
805
|
+
export interface SqlVirtualMachinesStartAssessmentHeaders {
|
|
806
|
+
// (undocumented)
|
|
807
|
+
location?: string;
|
|
808
|
+
}
|
|
809
|
+
|
|
742
810
|
// @public
|
|
743
811
|
export interface SqlVirtualMachinesStartAssessmentOptionalParams extends coreClient.OperationOptions {
|
|
744
812
|
resumeFrom?: string;
|
|
@@ -754,6 +822,27 @@ export interface SqlVirtualMachinesUpdateOptionalParams extends coreClient.Opera
|
|
|
754
822
|
// @public
|
|
755
823
|
export type SqlVirtualMachinesUpdateResponse = SqlVirtualMachine;
|
|
756
824
|
|
|
825
|
+
// @public
|
|
826
|
+
export interface SqlVirtualMachineTroubleshoot {
|
|
827
|
+
beginTroubleshoot(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVmTroubleshooting, options?: SqlVirtualMachineTroubleshootTroubleshootOptionalParams): Promise<SimplePollerLike<OperationState<SqlVirtualMachineTroubleshootTroubleshootResponse>, SqlVirtualMachineTroubleshootTroubleshootResponse>>;
|
|
828
|
+
beginTroubleshootAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVmTroubleshooting, options?: SqlVirtualMachineTroubleshootTroubleshootOptionalParams): Promise<SqlVirtualMachineTroubleshootTroubleshootResponse>;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// @public
|
|
832
|
+
export interface SqlVirtualMachineTroubleshootTroubleshootHeaders {
|
|
833
|
+
// (undocumented)
|
|
834
|
+
location?: string;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// @public
|
|
838
|
+
export interface SqlVirtualMachineTroubleshootTroubleshootOptionalParams extends coreClient.OperationOptions {
|
|
839
|
+
resumeFrom?: string;
|
|
840
|
+
updateIntervalInMs?: number;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
// @public
|
|
844
|
+
export type SqlVirtualMachineTroubleshootTroubleshootResponse = SqlVmTroubleshooting;
|
|
845
|
+
|
|
757
846
|
// @public
|
|
758
847
|
export interface SqlVirtualMachineUpdate {
|
|
759
848
|
tags?: {
|
|
@@ -764,6 +853,15 @@ export interface SqlVirtualMachineUpdate {
|
|
|
764
853
|
// @public
|
|
765
854
|
export type SqlVmGroupImageSku = string;
|
|
766
855
|
|
|
856
|
+
// @public
|
|
857
|
+
export interface SqlVmTroubleshooting {
|
|
858
|
+
endTimeUtc?: Date;
|
|
859
|
+
properties?: TroubleshootingAdditionalProperties;
|
|
860
|
+
startTimeUtc?: Date;
|
|
861
|
+
troubleshootingScenario?: TroubleshootingScenario;
|
|
862
|
+
readonly virtualMachineResourceId?: string;
|
|
863
|
+
}
|
|
864
|
+
|
|
767
865
|
// @public
|
|
768
866
|
export type SqlWorkloadType = string;
|
|
769
867
|
|
|
@@ -803,6 +901,29 @@ export interface TrackedResource extends Resource {
|
|
|
803
901
|
};
|
|
804
902
|
}
|
|
805
903
|
|
|
904
|
+
// @public
|
|
905
|
+
export interface TroubleshootingAdditionalProperties {
|
|
906
|
+
unhealthyReplicaInfo?: UnhealthyReplicaInfo;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
// @public
|
|
910
|
+
export type TroubleshootingScenario = string;
|
|
911
|
+
|
|
912
|
+
// @public
|
|
913
|
+
export interface TroubleshootingStatus {
|
|
914
|
+
readonly endTimeUtc?: Date;
|
|
915
|
+
readonly lastTriggerTimeUtc?: Date;
|
|
916
|
+
readonly properties?: TroubleshootingAdditionalProperties;
|
|
917
|
+
readonly rootCause?: string;
|
|
918
|
+
readonly startTimeUtc?: Date;
|
|
919
|
+
readonly troubleshootingScenario?: TroubleshootingScenario;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
// @public
|
|
923
|
+
export interface UnhealthyReplicaInfo {
|
|
924
|
+
availabilityGroupName?: string;
|
|
925
|
+
}
|
|
926
|
+
|
|
806
927
|
// @public
|
|
807
928
|
export interface WsfcDomainCredentials {
|
|
808
929
|
clusterBootstrapAccountPassword?: string;
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
10
11
|
export * from "./models";
|
|
11
12
|
export { SqlVirtualMachineManagementClient } from "./sqlVirtualMachineManagementClient";
|
|
12
13
|
export * from "./operationsInterfaces";
|
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|