@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
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
9
10
|
import * as coreClient from "@azure/core-client";
|
|
10
11
|
import * as Mappers from "../models/mappers";
|
|
11
12
|
import * as Parameters from "../models/parameters";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
13
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl";
|
|
14
15
|
/// <reference lib="esnext.asynciterable" />
|
|
15
16
|
/** Class containing SqlVirtualMachines operations. */
|
|
16
17
|
export class SqlVirtualMachinesImpl {
|
|
@@ -37,36 +38,54 @@ export class SqlVirtualMachinesImpl {
|
|
|
37
38
|
[Symbol.asyncIterator]() {
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
|
-
byPage: () => {
|
|
41
|
-
|
|
41
|
+
byPage: (settings) => {
|
|
42
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
43
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
+
}
|
|
45
|
+
return this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
|
|
42
46
|
}
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
|
-
listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
49
|
+
listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
|
|
46
50
|
return __asyncGenerator(this, arguments, function* listBySqlVmGroupPagingPage_1() {
|
|
47
|
-
let result
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = yield __await(this._listBySqlVmGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield yield __await(page);
|
|
59
|
+
}
|
|
50
60
|
while (continuationToken) {
|
|
51
61
|
result = yield __await(this._listBySqlVmGroupNext(resourceGroupName, sqlVirtualMachineGroupName, continuationToken, options));
|
|
52
62
|
continuationToken = result.nextLink;
|
|
53
|
-
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield yield __await(page);
|
|
54
66
|
}
|
|
55
67
|
});
|
|
56
68
|
}
|
|
57
69
|
listBySqlVmGroupPagingAll(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
58
70
|
return __asyncGenerator(this, arguments, function* listBySqlVmGroupPagingAll_1() {
|
|
59
|
-
var e_1,
|
|
71
|
+
var _a, e_1, _b, _c;
|
|
60
72
|
try {
|
|
61
|
-
for (var
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
for (var _d = true, _e = __asyncValues(this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
74
|
+
_c = _f.value;
|
|
75
|
+
_d = false;
|
|
76
|
+
try {
|
|
77
|
+
const page = _c;
|
|
78
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
79
|
+
}
|
|
80
|
+
finally {
|
|
81
|
+
_d = true;
|
|
82
|
+
}
|
|
64
83
|
}
|
|
65
84
|
}
|
|
66
85
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
86
|
finally {
|
|
68
87
|
try {
|
|
69
|
-
if (
|
|
88
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
70
89
|
}
|
|
71
90
|
finally { if (e_1) throw e_1.error; }
|
|
72
91
|
}
|
|
@@ -85,36 +104,54 @@ export class SqlVirtualMachinesImpl {
|
|
|
85
104
|
[Symbol.asyncIterator]() {
|
|
86
105
|
return this;
|
|
87
106
|
},
|
|
88
|
-
byPage: () => {
|
|
89
|
-
|
|
107
|
+
byPage: (settings) => {
|
|
108
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
109
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
110
|
+
}
|
|
111
|
+
return this.listPagingPage(options, settings);
|
|
90
112
|
}
|
|
91
113
|
};
|
|
92
114
|
}
|
|
93
|
-
listPagingPage(options) {
|
|
115
|
+
listPagingPage(options, settings) {
|
|
94
116
|
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
95
|
-
let result
|
|
96
|
-
|
|
97
|
-
|
|
117
|
+
let result;
|
|
118
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
119
|
+
if (!continuationToken) {
|
|
120
|
+
result = yield __await(this._list(options));
|
|
121
|
+
let page = result.value || [];
|
|
122
|
+
continuationToken = result.nextLink;
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield yield __await(page);
|
|
125
|
+
}
|
|
98
126
|
while (continuationToken) {
|
|
99
127
|
result = yield __await(this._listNext(continuationToken, options));
|
|
100
128
|
continuationToken = result.nextLink;
|
|
101
|
-
|
|
129
|
+
let page = result.value || [];
|
|
130
|
+
setContinuationToken(page, continuationToken);
|
|
131
|
+
yield yield __await(page);
|
|
102
132
|
}
|
|
103
133
|
});
|
|
104
134
|
}
|
|
105
135
|
listPagingAll(options) {
|
|
106
136
|
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
107
|
-
var e_2,
|
|
137
|
+
var _a, e_2, _b, _c;
|
|
108
138
|
try {
|
|
109
|
-
for (var
|
|
110
|
-
|
|
111
|
-
|
|
139
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
140
|
+
_c = _f.value;
|
|
141
|
+
_d = false;
|
|
142
|
+
try {
|
|
143
|
+
const page = _c;
|
|
144
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
145
|
+
}
|
|
146
|
+
finally {
|
|
147
|
+
_d = true;
|
|
148
|
+
}
|
|
112
149
|
}
|
|
113
150
|
}
|
|
114
151
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
115
152
|
finally {
|
|
116
153
|
try {
|
|
117
|
-
if (
|
|
154
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
118
155
|
}
|
|
119
156
|
finally { if (e_2) throw e_2.error; }
|
|
120
157
|
}
|
|
@@ -135,36 +172,54 @@ export class SqlVirtualMachinesImpl {
|
|
|
135
172
|
[Symbol.asyncIterator]() {
|
|
136
173
|
return this;
|
|
137
174
|
},
|
|
138
|
-
byPage: () => {
|
|
139
|
-
|
|
175
|
+
byPage: (settings) => {
|
|
176
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
177
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
178
|
+
}
|
|
179
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
140
180
|
}
|
|
141
181
|
};
|
|
142
182
|
}
|
|
143
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
183
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
144
184
|
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
145
|
-
let result
|
|
146
|
-
|
|
147
|
-
|
|
185
|
+
let result;
|
|
186
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
187
|
+
if (!continuationToken) {
|
|
188
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
189
|
+
let page = result.value || [];
|
|
190
|
+
continuationToken = result.nextLink;
|
|
191
|
+
setContinuationToken(page, continuationToken);
|
|
192
|
+
yield yield __await(page);
|
|
193
|
+
}
|
|
148
194
|
while (continuationToken) {
|
|
149
195
|
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
150
196
|
continuationToken = result.nextLink;
|
|
151
|
-
|
|
197
|
+
let page = result.value || [];
|
|
198
|
+
setContinuationToken(page, continuationToken);
|
|
199
|
+
yield yield __await(page);
|
|
152
200
|
}
|
|
153
201
|
});
|
|
154
202
|
}
|
|
155
203
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
156
204
|
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
157
|
-
var e_3,
|
|
205
|
+
var _a, e_3, _b, _c;
|
|
158
206
|
try {
|
|
159
|
-
for (var
|
|
160
|
-
|
|
161
|
-
|
|
207
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
208
|
+
_c = _f.value;
|
|
209
|
+
_d = false;
|
|
210
|
+
try {
|
|
211
|
+
const page = _c;
|
|
212
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
213
|
+
}
|
|
214
|
+
finally {
|
|
215
|
+
_d = true;
|
|
216
|
+
}
|
|
162
217
|
}
|
|
163
218
|
}
|
|
164
219
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
165
220
|
finally {
|
|
166
221
|
try {
|
|
167
|
-
if (
|
|
222
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
168
223
|
}
|
|
169
224
|
finally { if (e_3) throw e_3.error; }
|
|
170
225
|
}
|
|
@@ -188,18 +243,29 @@ export class SqlVirtualMachinesImpl {
|
|
|
188
243
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
189
244
|
}
|
|
190
245
|
/**
|
|
191
|
-
*
|
|
246
|
+
* Gets a SQL virtual machine.
|
|
192
247
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
193
248
|
* value from the Azure Resource Manager API or the portal.
|
|
194
249
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
195
250
|
* @param options The options parameters.
|
|
196
251
|
*/
|
|
197
|
-
|
|
252
|
+
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
253
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Creates or updates a SQL virtual machine.
|
|
257
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
258
|
+
* value from the Azure Resource Manager API or the portal.
|
|
259
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
260
|
+
* @param parameters The SQL virtual machine.
|
|
261
|
+
* @param options The options parameters.
|
|
262
|
+
*/
|
|
263
|
+
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
198
264
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
265
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
200
266
|
return this.client.sendOperationRequest(args, spec);
|
|
201
267
|
});
|
|
202
|
-
const
|
|
268
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
203
269
|
var _a;
|
|
204
270
|
let currentRawResponse = undefined;
|
|
205
271
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -218,41 +284,47 @@ export class SqlVirtualMachinesImpl {
|
|
|
218
284
|
}
|
|
219
285
|
};
|
|
220
286
|
});
|
|
221
|
-
const lro =
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
287
|
+
const lro = createLroSpec({
|
|
288
|
+
sendOperationFn,
|
|
289
|
+
args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
|
|
290
|
+
spec: createOrUpdateOperationSpec
|
|
291
|
+
});
|
|
292
|
+
const poller = yield createHttpPoller(lro, {
|
|
293
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
294
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
295
|
+
resourceLocationConfig: "azure-async-operation"
|
|
225
296
|
});
|
|
226
297
|
yield poller.poll();
|
|
227
298
|
return poller;
|
|
228
299
|
});
|
|
229
300
|
}
|
|
230
301
|
/**
|
|
231
|
-
*
|
|
302
|
+
* Creates or updates a SQL virtual machine.
|
|
232
303
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
233
304
|
* value from the Azure Resource Manager API or the portal.
|
|
234
305
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
306
|
+
* @param parameters The SQL virtual machine.
|
|
235
307
|
* @param options The options parameters.
|
|
236
308
|
*/
|
|
237
|
-
|
|
309
|
+
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
238
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
-
const poller = yield this.
|
|
311
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
240
312
|
return poller.pollUntilDone();
|
|
241
313
|
});
|
|
242
314
|
}
|
|
243
315
|
/**
|
|
244
|
-
*
|
|
316
|
+
* Deletes a SQL virtual machine.
|
|
245
317
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
246
318
|
* value from the Azure Resource Manager API or the portal.
|
|
247
319
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
248
320
|
* @param options The options parameters.
|
|
249
321
|
*/
|
|
250
|
-
|
|
322
|
+
beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
|
|
251
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
324
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
253
325
|
return this.client.sendOperationRequest(args, spec);
|
|
254
326
|
});
|
|
255
|
-
const
|
|
327
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
256
328
|
var _a;
|
|
257
329
|
let currentRawResponse = undefined;
|
|
258
330
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -271,52 +343,47 @@ export class SqlVirtualMachinesImpl {
|
|
|
271
343
|
}
|
|
272
344
|
};
|
|
273
345
|
});
|
|
274
|
-
const lro =
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
346
|
+
const lro = createLroSpec({
|
|
347
|
+
sendOperationFn,
|
|
348
|
+
args: { resourceGroupName, sqlVirtualMachineName, options },
|
|
349
|
+
spec: deleteOperationSpec
|
|
350
|
+
});
|
|
351
|
+
const poller = yield createHttpPoller(lro, {
|
|
352
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
353
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
354
|
+
resourceLocationConfig: "location"
|
|
278
355
|
});
|
|
279
356
|
yield poller.poll();
|
|
280
357
|
return poller;
|
|
281
358
|
});
|
|
282
359
|
}
|
|
283
360
|
/**
|
|
284
|
-
*
|
|
361
|
+
* Deletes a SQL virtual machine.
|
|
285
362
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
286
363
|
* value from the Azure Resource Manager API or the portal.
|
|
287
364
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
288
365
|
* @param options The options parameters.
|
|
289
366
|
*/
|
|
290
|
-
|
|
367
|
+
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
291
368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
const poller = yield this.
|
|
369
|
+
const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
|
|
293
370
|
return poller.pollUntilDone();
|
|
294
371
|
});
|
|
295
372
|
}
|
|
296
373
|
/**
|
|
297
|
-
*
|
|
298
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
299
|
-
* value from the Azure Resource Manager API or the portal.
|
|
300
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
301
|
-
* @param options The options parameters.
|
|
302
|
-
*/
|
|
303
|
-
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
304
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Creates or updates a SQL virtual machine.
|
|
374
|
+
* Updates a SQL virtual machine.
|
|
308
375
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
309
376
|
* value from the Azure Resource Manager API or the portal.
|
|
310
377
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
311
378
|
* @param parameters The SQL virtual machine.
|
|
312
379
|
* @param options The options parameters.
|
|
313
380
|
*/
|
|
314
|
-
|
|
381
|
+
beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
315
382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
316
383
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
317
384
|
return this.client.sendOperationRequest(args, spec);
|
|
318
385
|
});
|
|
319
|
-
const
|
|
386
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
320
387
|
var _a;
|
|
321
388
|
let currentRawResponse = undefined;
|
|
322
389
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -335,42 +402,56 @@ export class SqlVirtualMachinesImpl {
|
|
|
335
402
|
}
|
|
336
403
|
};
|
|
337
404
|
});
|
|
338
|
-
const lro =
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
405
|
+
const lro = createLroSpec({
|
|
406
|
+
sendOperationFn,
|
|
407
|
+
args: { resourceGroupName, sqlVirtualMachineName, parameters, options },
|
|
408
|
+
spec: updateOperationSpec
|
|
409
|
+
});
|
|
410
|
+
const poller = yield createHttpPoller(lro, {
|
|
411
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
412
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
413
|
+
resourceLocationConfig: "azure-async-operation"
|
|
342
414
|
});
|
|
343
415
|
yield poller.poll();
|
|
344
416
|
return poller;
|
|
345
417
|
});
|
|
346
418
|
}
|
|
347
419
|
/**
|
|
348
|
-
*
|
|
420
|
+
* Updates a SQL virtual machine.
|
|
349
421
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
350
422
|
* value from the Azure Resource Manager API or the portal.
|
|
351
423
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
352
424
|
* @param parameters The SQL virtual machine.
|
|
353
425
|
* @param options The options parameters.
|
|
354
426
|
*/
|
|
355
|
-
|
|
427
|
+
beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
356
428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
-
const poller = yield this.
|
|
429
|
+
const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
358
430
|
return poller.pollUntilDone();
|
|
359
431
|
});
|
|
360
432
|
}
|
|
361
433
|
/**
|
|
362
|
-
*
|
|
434
|
+
* Gets all SQL virtual machines in a resource group.
|
|
435
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
436
|
+
* value from the Azure Resource Manager API or the portal.
|
|
437
|
+
* @param options The options parameters.
|
|
438
|
+
*/
|
|
439
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
440
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Starts SQL best practices Assessment on SQL virtual machine.
|
|
363
444
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
364
445
|
* value from the Azure Resource Manager API or the portal.
|
|
365
446
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
366
447
|
* @param options The options parameters.
|
|
367
448
|
*/
|
|
368
|
-
|
|
449
|
+
beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
|
|
369
450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
370
451
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
371
452
|
return this.client.sendOperationRequest(args, spec);
|
|
372
453
|
});
|
|
373
|
-
const
|
|
454
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
374
455
|
var _a;
|
|
375
456
|
let currentRawResponse = undefined;
|
|
376
457
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -389,42 +470,46 @@ export class SqlVirtualMachinesImpl {
|
|
|
389
470
|
}
|
|
390
471
|
};
|
|
391
472
|
});
|
|
392
|
-
const lro =
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
473
|
+
const lro = createLroSpec({
|
|
474
|
+
sendOperationFn,
|
|
475
|
+
args: { resourceGroupName, sqlVirtualMachineName, options },
|
|
476
|
+
spec: startAssessmentOperationSpec
|
|
477
|
+
});
|
|
478
|
+
const poller = yield createHttpPoller(lro, {
|
|
479
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
480
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
481
|
+
resourceLocationConfig: "location"
|
|
396
482
|
});
|
|
397
483
|
yield poller.poll();
|
|
398
484
|
return poller;
|
|
399
485
|
});
|
|
400
486
|
}
|
|
401
487
|
/**
|
|
402
|
-
*
|
|
488
|
+
* Starts SQL best practices Assessment on SQL virtual machine.
|
|
403
489
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
404
490
|
* value from the Azure Resource Manager API or the portal.
|
|
405
491
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
406
492
|
* @param options The options parameters.
|
|
407
493
|
*/
|
|
408
|
-
|
|
494
|
+
beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
409
495
|
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
-
const poller = yield this.
|
|
496
|
+
const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
|
|
411
497
|
return poller.pollUntilDone();
|
|
412
498
|
});
|
|
413
499
|
}
|
|
414
500
|
/**
|
|
415
|
-
*
|
|
501
|
+
* Uninstalls and reinstalls the SQL IaaS Extension.
|
|
416
502
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
417
503
|
* value from the Azure Resource Manager API or the portal.
|
|
418
504
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
419
|
-
* @param parameters The SQL virtual machine.
|
|
420
505
|
* @param options The options parameters.
|
|
421
506
|
*/
|
|
422
|
-
|
|
507
|
+
beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
|
|
423
508
|
return __awaiter(this, void 0, void 0, function* () {
|
|
424
509
|
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
425
510
|
return this.client.sendOperationRequest(args, spec);
|
|
426
511
|
});
|
|
427
|
-
const
|
|
512
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
428
513
|
var _a;
|
|
429
514
|
let currentRawResponse = undefined;
|
|
430
515
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -443,38 +528,33 @@ export class SqlVirtualMachinesImpl {
|
|
|
443
528
|
}
|
|
444
529
|
};
|
|
445
530
|
});
|
|
446
|
-
const lro =
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
531
|
+
const lro = createLroSpec({
|
|
532
|
+
sendOperationFn,
|
|
533
|
+
args: { resourceGroupName, sqlVirtualMachineName, options },
|
|
534
|
+
spec: redeployOperationSpec
|
|
535
|
+
});
|
|
536
|
+
const poller = yield createHttpPoller(lro, {
|
|
537
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
538
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
539
|
+
resourceLocationConfig: "location"
|
|
450
540
|
});
|
|
451
541
|
yield poller.poll();
|
|
452
542
|
return poller;
|
|
453
543
|
});
|
|
454
544
|
}
|
|
455
545
|
/**
|
|
456
|
-
*
|
|
546
|
+
* Uninstalls and reinstalls the SQL IaaS Extension.
|
|
457
547
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
458
548
|
* value from the Azure Resource Manager API or the portal.
|
|
459
549
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
460
|
-
* @param parameters The SQL virtual machine.
|
|
461
550
|
* @param options The options parameters.
|
|
462
551
|
*/
|
|
463
|
-
|
|
552
|
+
beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
464
553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
-
const poller = yield this.
|
|
554
|
+
const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
|
|
466
555
|
return poller.pollUntilDone();
|
|
467
556
|
});
|
|
468
557
|
}
|
|
469
|
-
/**
|
|
470
|
-
* Gets all SQL virtual machines in a resource group.
|
|
471
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
472
|
-
* value from the Azure Resource Manager API or the portal.
|
|
473
|
-
* @param options The options parameters.
|
|
474
|
-
*/
|
|
475
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
476
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
477
|
-
}
|
|
478
558
|
/**
|
|
479
559
|
* ListBySqlVmGroupNext
|
|
480
560
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -514,7 +594,9 @@ const listBySqlVmGroupOperationSpec = {
|
|
|
514
594
|
200: {
|
|
515
595
|
bodyMapper: Mappers.SqlVirtualMachineListResult
|
|
516
596
|
},
|
|
517
|
-
default: {
|
|
597
|
+
default: {
|
|
598
|
+
bodyMapper: Mappers.ErrorResponse
|
|
599
|
+
}
|
|
518
600
|
},
|
|
519
601
|
queryParameters: [Parameters.apiVersion],
|
|
520
602
|
urlParameters: [
|
|
@@ -533,39 +615,15 @@ const listOperationSpec = {
|
|
|
533
615
|
200: {
|
|
534
616
|
bodyMapper: Mappers.SqlVirtualMachineListResult
|
|
535
617
|
},
|
|
536
|
-
default: {
|
|
618
|
+
default: {
|
|
619
|
+
bodyMapper: Mappers.ErrorResponse
|
|
620
|
+
}
|
|
537
621
|
},
|
|
538
622
|
queryParameters: [Parameters.apiVersion],
|
|
539
623
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
540
624
|
headerParameters: [Parameters.accept],
|
|
541
625
|
serializer
|
|
542
626
|
};
|
|
543
|
-
const startAssessmentOperationSpec = {
|
|
544
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
545
|
-
httpMethod: "POST",
|
|
546
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
547
|
-
queryParameters: [Parameters.apiVersion],
|
|
548
|
-
urlParameters: [
|
|
549
|
-
Parameters.$host,
|
|
550
|
-
Parameters.resourceGroupName,
|
|
551
|
-
Parameters.subscriptionId,
|
|
552
|
-
Parameters.sqlVirtualMachineName
|
|
553
|
-
],
|
|
554
|
-
serializer
|
|
555
|
-
};
|
|
556
|
-
const redeployOperationSpec = {
|
|
557
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
558
|
-
httpMethod: "POST",
|
|
559
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
560
|
-
queryParameters: [Parameters.apiVersion],
|
|
561
|
-
urlParameters: [
|
|
562
|
-
Parameters.$host,
|
|
563
|
-
Parameters.resourceGroupName,
|
|
564
|
-
Parameters.subscriptionId,
|
|
565
|
-
Parameters.sqlVirtualMachineName
|
|
566
|
-
],
|
|
567
|
-
serializer
|
|
568
|
-
};
|
|
569
627
|
const getOperationSpec = {
|
|
570
628
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
571
629
|
httpMethod: "GET",
|
|
@@ -573,7 +631,9 @@ const getOperationSpec = {
|
|
|
573
631
|
200: {
|
|
574
632
|
bodyMapper: Mappers.SqlVirtualMachine
|
|
575
633
|
},
|
|
576
|
-
default: {
|
|
634
|
+
default: {
|
|
635
|
+
bodyMapper: Mappers.ErrorResponse
|
|
636
|
+
}
|
|
577
637
|
},
|
|
578
638
|
queryParameters: [Parameters.expand, Parameters.apiVersion],
|
|
579
639
|
urlParameters: [
|
|
@@ -601,7 +661,9 @@ const createOrUpdateOperationSpec = {
|
|
|
601
661
|
204: {
|
|
602
662
|
bodyMapper: Mappers.SqlVirtualMachine
|
|
603
663
|
},
|
|
604
|
-
default: {
|
|
664
|
+
default: {
|
|
665
|
+
bodyMapper: Mappers.ErrorResponse
|
|
666
|
+
}
|
|
605
667
|
},
|
|
606
668
|
requestBody: Parameters.parameters3,
|
|
607
669
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -618,7 +680,15 @@ const createOrUpdateOperationSpec = {
|
|
|
618
680
|
const deleteOperationSpec = {
|
|
619
681
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
620
682
|
httpMethod: "DELETE",
|
|
621
|
-
responses: {
|
|
683
|
+
responses: {
|
|
684
|
+
200: {},
|
|
685
|
+
201: {},
|
|
686
|
+
202: {},
|
|
687
|
+
204: {},
|
|
688
|
+
default: {
|
|
689
|
+
bodyMapper: Mappers.ErrorResponse
|
|
690
|
+
}
|
|
691
|
+
},
|
|
622
692
|
queryParameters: [Parameters.apiVersion],
|
|
623
693
|
urlParameters: [
|
|
624
694
|
Parameters.$host,
|
|
@@ -626,6 +696,7 @@ const deleteOperationSpec = {
|
|
|
626
696
|
Parameters.subscriptionId,
|
|
627
697
|
Parameters.sqlVirtualMachineName
|
|
628
698
|
],
|
|
699
|
+
headerParameters: [Parameters.accept],
|
|
629
700
|
serializer
|
|
630
701
|
};
|
|
631
702
|
const updateOperationSpec = {
|
|
@@ -644,7 +715,9 @@ const updateOperationSpec = {
|
|
|
644
715
|
204: {
|
|
645
716
|
bodyMapper: Mappers.SqlVirtualMachine
|
|
646
717
|
},
|
|
647
|
-
default: {
|
|
718
|
+
default: {
|
|
719
|
+
bodyMapper: Mappers.ErrorResponse
|
|
720
|
+
}
|
|
648
721
|
},
|
|
649
722
|
requestBody: Parameters.parameters4,
|
|
650
723
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -665,7 +738,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
665
738
|
200: {
|
|
666
739
|
bodyMapper: Mappers.SqlVirtualMachineListResult
|
|
667
740
|
},
|
|
668
|
-
default: {
|
|
741
|
+
default: {
|
|
742
|
+
bodyMapper: Mappers.ErrorResponse
|
|
743
|
+
}
|
|
669
744
|
},
|
|
670
745
|
queryParameters: [Parameters.apiVersion],
|
|
671
746
|
urlParameters: [
|
|
@@ -676,6 +751,50 @@ const listByResourceGroupOperationSpec = {
|
|
|
676
751
|
headerParameters: [Parameters.accept],
|
|
677
752
|
serializer
|
|
678
753
|
};
|
|
754
|
+
const startAssessmentOperationSpec = {
|
|
755
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
756
|
+
httpMethod: "POST",
|
|
757
|
+
responses: {
|
|
758
|
+
200: {},
|
|
759
|
+
201: {},
|
|
760
|
+
202: {},
|
|
761
|
+
204: {},
|
|
762
|
+
default: {
|
|
763
|
+
bodyMapper: Mappers.ErrorResponse
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
queryParameters: [Parameters.apiVersion],
|
|
767
|
+
urlParameters: [
|
|
768
|
+
Parameters.$host,
|
|
769
|
+
Parameters.resourceGroupName,
|
|
770
|
+
Parameters.subscriptionId,
|
|
771
|
+
Parameters.sqlVirtualMachineName
|
|
772
|
+
],
|
|
773
|
+
headerParameters: [Parameters.accept],
|
|
774
|
+
serializer
|
|
775
|
+
};
|
|
776
|
+
const redeployOperationSpec = {
|
|
777
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
778
|
+
httpMethod: "POST",
|
|
779
|
+
responses: {
|
|
780
|
+
200: {},
|
|
781
|
+
201: {},
|
|
782
|
+
202: {},
|
|
783
|
+
204: {},
|
|
784
|
+
default: {
|
|
785
|
+
bodyMapper: Mappers.ErrorResponse
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
queryParameters: [Parameters.apiVersion],
|
|
789
|
+
urlParameters: [
|
|
790
|
+
Parameters.$host,
|
|
791
|
+
Parameters.resourceGroupName,
|
|
792
|
+
Parameters.subscriptionId,
|
|
793
|
+
Parameters.sqlVirtualMachineName
|
|
794
|
+
],
|
|
795
|
+
headerParameters: [Parameters.accept],
|
|
796
|
+
serializer
|
|
797
|
+
};
|
|
679
798
|
const listBySqlVmGroupNextOperationSpec = {
|
|
680
799
|
path: "{nextLink}",
|
|
681
800
|
httpMethod: "GET",
|
|
@@ -683,9 +802,10 @@ const listBySqlVmGroupNextOperationSpec = {
|
|
|
683
802
|
200: {
|
|
684
803
|
bodyMapper: Mappers.SqlVirtualMachineListResult
|
|
685
804
|
},
|
|
686
|
-
default: {
|
|
805
|
+
default: {
|
|
806
|
+
bodyMapper: Mappers.ErrorResponse
|
|
807
|
+
}
|
|
687
808
|
},
|
|
688
|
-
queryParameters: [Parameters.apiVersion],
|
|
689
809
|
urlParameters: [
|
|
690
810
|
Parameters.$host,
|
|
691
811
|
Parameters.resourceGroupName,
|
|
@@ -703,9 +823,10 @@ const listNextOperationSpec = {
|
|
|
703
823
|
200: {
|
|
704
824
|
bodyMapper: Mappers.SqlVirtualMachineListResult
|
|
705
825
|
},
|
|
706
|
-
default: {
|
|
826
|
+
default: {
|
|
827
|
+
bodyMapper: Mappers.ErrorResponse
|
|
828
|
+
}
|
|
707
829
|
},
|
|
708
|
-
queryParameters: [Parameters.apiVersion],
|
|
709
830
|
urlParameters: [
|
|
710
831
|
Parameters.$host,
|
|
711
832
|
Parameters.subscriptionId,
|
|
@@ -721,9 +842,10 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
721
842
|
200: {
|
|
722
843
|
bodyMapper: Mappers.SqlVirtualMachineListResult
|
|
723
844
|
},
|
|
724
|
-
default: {
|
|
845
|
+
default: {
|
|
846
|
+
bodyMapper: Mappers.ErrorResponse
|
|
847
|
+
}
|
|
725
848
|
},
|
|
726
|
-
queryParameters: [Parameters.apiVersion],
|
|
727
849
|
urlParameters: [
|
|
728
850
|
Parameters.$host,
|
|
729
851
|
Parameters.resourceGroupName,
|