@azure/arm-sqlvirtualmachine 5.0.0-beta.5 → 5.0.0-beta.7
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 +397 -144
- 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 +53 -5
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +12 -4
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +12 -4
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +12 -4
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +13 -4
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +11 -3
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +43 -25
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +11 -3
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +12 -4
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +1 -1
- 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/models/index.d.ts +136 -26
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +70 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +78 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.js +19 -8
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +37 -16
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +17 -17
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +121 -90
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +17 -17
- 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.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +22 -20
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
- package/package.json +9 -8
- package/review/arm-sqlvirtualmachine.api.md +66 -86
- package/src/index.ts +1 -0
- package/src/models/index.ts +142 -28
- package/src/models/mappers.ts +83 -1
- package/src/models/parameters.ts +1 -1
- package/src/operations/availabilityGroupListeners.ts +27 -14
- package/src/operations/operations.ts +21 -9
- package/src/operations/sqlVirtualMachineGroups.ts +46 -19
- package/src/operations/sqlVirtualMachines.ts +170 -131
- package/src/operationsInterfaces/sqlVirtualMachines.ts +26 -26
- package/src/pagingHelper.ts +39 -0
- package/src/sqlVirtualMachineManagementClient.ts +28 -22
- package/types/arm-sqlvirtualmachine.d.ts +159 -35
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -38,141 +70,211 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
70
|
/** Known values of {@link Role} that the service accepts. */
|
|
39
71
|
exports.KnownRole = void 0;
|
|
40
72
|
(function (KnownRole) {
|
|
73
|
+
/** Primary */
|
|
41
74
|
KnownRole["Primary"] = "PRIMARY";
|
|
75
|
+
/** Secondary */
|
|
42
76
|
KnownRole["Secondary"] = "SECONDARY";
|
|
43
77
|
})(exports.KnownRole || (exports.KnownRole = {}));
|
|
44
78
|
/** Known values of {@link Commit} that the service accepts. */
|
|
45
79
|
exports.KnownCommit = void 0;
|
|
46
80
|
(function (KnownCommit) {
|
|
81
|
+
/** SynchronousCommit */
|
|
47
82
|
KnownCommit["SynchronousCommit"] = "SYNCHRONOUS_COMMIT";
|
|
83
|
+
/** AsynchronousCommit */
|
|
48
84
|
KnownCommit["AsynchronousCommit"] = "ASYNCHRONOUS_COMMIT";
|
|
49
85
|
})(exports.KnownCommit || (exports.KnownCommit = {}));
|
|
50
86
|
/** Known values of {@link Failover} that the service accepts. */
|
|
51
87
|
exports.KnownFailover = void 0;
|
|
52
88
|
(function (KnownFailover) {
|
|
89
|
+
/** Automatic */
|
|
53
90
|
KnownFailover["Automatic"] = "AUTOMATIC";
|
|
91
|
+
/** Manual */
|
|
54
92
|
KnownFailover["Manual"] = "MANUAL";
|
|
55
93
|
})(exports.KnownFailover || (exports.KnownFailover = {}));
|
|
56
94
|
/** Known values of {@link ReadableSecondary} that the service accepts. */
|
|
57
95
|
exports.KnownReadableSecondary = void 0;
|
|
58
96
|
(function (KnownReadableSecondary) {
|
|
97
|
+
/** NO */
|
|
59
98
|
KnownReadableSecondary["NO"] = "NO";
|
|
99
|
+
/** ALL */
|
|
60
100
|
KnownReadableSecondary["ALL"] = "ALL";
|
|
101
|
+
/** ReadOnly */
|
|
61
102
|
KnownReadableSecondary["ReadOnly"] = "READ_ONLY";
|
|
62
103
|
})(exports.KnownReadableSecondary || (exports.KnownReadableSecondary = {}));
|
|
63
104
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
64
105
|
exports.KnownCreatedByType = void 0;
|
|
65
106
|
(function (KnownCreatedByType) {
|
|
107
|
+
/** User */
|
|
66
108
|
KnownCreatedByType["User"] = "User";
|
|
109
|
+
/** Application */
|
|
67
110
|
KnownCreatedByType["Application"] = "Application";
|
|
111
|
+
/** ManagedIdentity */
|
|
68
112
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
113
|
+
/** Key */
|
|
69
114
|
KnownCreatedByType["Key"] = "Key";
|
|
70
115
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
71
116
|
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
72
117
|
exports.KnownOperationOrigin = void 0;
|
|
73
118
|
(function (KnownOperationOrigin) {
|
|
119
|
+
/** User */
|
|
74
120
|
KnownOperationOrigin["User"] = "user";
|
|
121
|
+
/** System */
|
|
75
122
|
KnownOperationOrigin["System"] = "system";
|
|
76
123
|
})(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
|
|
77
124
|
/** Known values of {@link SqlVmGroupImageSku} that the service accepts. */
|
|
78
125
|
exports.KnownSqlVmGroupImageSku = void 0;
|
|
79
126
|
(function (KnownSqlVmGroupImageSku) {
|
|
127
|
+
/** Developer */
|
|
80
128
|
KnownSqlVmGroupImageSku["Developer"] = "Developer";
|
|
129
|
+
/** Enterprise */
|
|
81
130
|
KnownSqlVmGroupImageSku["Enterprise"] = "Enterprise";
|
|
82
131
|
})(exports.KnownSqlVmGroupImageSku || (exports.KnownSqlVmGroupImageSku = {}));
|
|
83
132
|
/** Known values of {@link ScaleType} that the service accepts. */
|
|
84
133
|
exports.KnownScaleType = void 0;
|
|
85
134
|
(function (KnownScaleType) {
|
|
135
|
+
/** HA */
|
|
86
136
|
KnownScaleType["HA"] = "HA";
|
|
87
137
|
})(exports.KnownScaleType || (exports.KnownScaleType = {}));
|
|
88
138
|
/** Known values of {@link ClusterManagerType} that the service accepts. */
|
|
89
139
|
exports.KnownClusterManagerType = void 0;
|
|
90
140
|
(function (KnownClusterManagerType) {
|
|
141
|
+
/** Wsfc */
|
|
91
142
|
KnownClusterManagerType["Wsfc"] = "WSFC";
|
|
92
143
|
})(exports.KnownClusterManagerType || (exports.KnownClusterManagerType = {}));
|
|
93
144
|
/** Known values of {@link ClusterConfiguration} that the service accepts. */
|
|
94
145
|
exports.KnownClusterConfiguration = void 0;
|
|
95
146
|
(function (KnownClusterConfiguration) {
|
|
147
|
+
/** Domainful */
|
|
96
148
|
KnownClusterConfiguration["Domainful"] = "Domainful";
|
|
97
149
|
})(exports.KnownClusterConfiguration || (exports.KnownClusterConfiguration = {}));
|
|
150
|
+
/** Known values of {@link ClusterSubnetType} that the service accepts. */
|
|
151
|
+
exports.KnownClusterSubnetType = void 0;
|
|
152
|
+
(function (KnownClusterSubnetType) {
|
|
153
|
+
/** SingleSubnet */
|
|
154
|
+
KnownClusterSubnetType["SingleSubnet"] = "SingleSubnet";
|
|
155
|
+
/** MultiSubnet */
|
|
156
|
+
KnownClusterSubnetType["MultiSubnet"] = "MultiSubnet";
|
|
157
|
+
})(exports.KnownClusterSubnetType || (exports.KnownClusterSubnetType = {}));
|
|
98
158
|
/** Known values of {@link IdentityType} that the service accepts. */
|
|
99
159
|
exports.KnownIdentityType = void 0;
|
|
100
160
|
(function (KnownIdentityType) {
|
|
161
|
+
/** None */
|
|
101
162
|
KnownIdentityType["None"] = "None";
|
|
163
|
+
/** SystemAssigned */
|
|
102
164
|
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
103
165
|
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
104
166
|
/** Known values of {@link SqlServerLicenseType} that the service accepts. */
|
|
105
167
|
exports.KnownSqlServerLicenseType = void 0;
|
|
106
168
|
(function (KnownSqlServerLicenseType) {
|
|
169
|
+
/** Payg */
|
|
107
170
|
KnownSqlServerLicenseType["Payg"] = "PAYG";
|
|
171
|
+
/** Ahub */
|
|
108
172
|
KnownSqlServerLicenseType["Ahub"] = "AHUB";
|
|
173
|
+
/** DR */
|
|
109
174
|
KnownSqlServerLicenseType["DR"] = "DR";
|
|
110
175
|
})(exports.KnownSqlServerLicenseType || (exports.KnownSqlServerLicenseType = {}));
|
|
111
176
|
/** Known values of {@link SqlManagementMode} that the service accepts. */
|
|
112
177
|
exports.KnownSqlManagementMode = void 0;
|
|
113
178
|
(function (KnownSqlManagementMode) {
|
|
179
|
+
/** Full */
|
|
114
180
|
KnownSqlManagementMode["Full"] = "Full";
|
|
181
|
+
/** LightWeight */
|
|
115
182
|
KnownSqlManagementMode["LightWeight"] = "LightWeight";
|
|
183
|
+
/** NoAgent */
|
|
116
184
|
KnownSqlManagementMode["NoAgent"] = "NoAgent";
|
|
117
185
|
})(exports.KnownSqlManagementMode || (exports.KnownSqlManagementMode = {}));
|
|
186
|
+
/** Known values of {@link LeastPrivilegeMode} that the service accepts. */
|
|
187
|
+
exports.KnownLeastPrivilegeMode = void 0;
|
|
188
|
+
(function (KnownLeastPrivilegeMode) {
|
|
189
|
+
/** Enabled */
|
|
190
|
+
KnownLeastPrivilegeMode["Enabled"] = "Enabled";
|
|
191
|
+
})(exports.KnownLeastPrivilegeMode || (exports.KnownLeastPrivilegeMode = {}));
|
|
118
192
|
/** Known values of {@link SqlImageSku} that the service accepts. */
|
|
119
193
|
exports.KnownSqlImageSku = void 0;
|
|
120
194
|
(function (KnownSqlImageSku) {
|
|
195
|
+
/** Developer */
|
|
121
196
|
KnownSqlImageSku["Developer"] = "Developer";
|
|
197
|
+
/** Express */
|
|
122
198
|
KnownSqlImageSku["Express"] = "Express";
|
|
199
|
+
/** Standard */
|
|
123
200
|
KnownSqlImageSku["Standard"] = "Standard";
|
|
201
|
+
/** Enterprise */
|
|
124
202
|
KnownSqlImageSku["Enterprise"] = "Enterprise";
|
|
203
|
+
/** Web */
|
|
125
204
|
KnownSqlImageSku["Web"] = "Web";
|
|
126
205
|
})(exports.KnownSqlImageSku || (exports.KnownSqlImageSku = {}));
|
|
127
206
|
/** Known values of {@link BackupScheduleType} that the service accepts. */
|
|
128
207
|
exports.KnownBackupScheduleType = void 0;
|
|
129
208
|
(function (KnownBackupScheduleType) {
|
|
209
|
+
/** Manual */
|
|
130
210
|
KnownBackupScheduleType["Manual"] = "Manual";
|
|
211
|
+
/** Automated */
|
|
131
212
|
KnownBackupScheduleType["Automated"] = "Automated";
|
|
132
213
|
})(exports.KnownBackupScheduleType || (exports.KnownBackupScheduleType = {}));
|
|
133
214
|
/** Known values of {@link FullBackupFrequencyType} that the service accepts. */
|
|
134
215
|
exports.KnownFullBackupFrequencyType = void 0;
|
|
135
216
|
(function (KnownFullBackupFrequencyType) {
|
|
217
|
+
/** Daily */
|
|
136
218
|
KnownFullBackupFrequencyType["Daily"] = "Daily";
|
|
219
|
+
/** Weekly */
|
|
137
220
|
KnownFullBackupFrequencyType["Weekly"] = "Weekly";
|
|
138
221
|
})(exports.KnownFullBackupFrequencyType || (exports.KnownFullBackupFrequencyType = {}));
|
|
139
222
|
/** Known values of {@link AutoBackupDaysOfWeek} that the service accepts. */
|
|
140
223
|
exports.KnownAutoBackupDaysOfWeek = void 0;
|
|
141
224
|
(function (KnownAutoBackupDaysOfWeek) {
|
|
225
|
+
/** Monday */
|
|
142
226
|
KnownAutoBackupDaysOfWeek["Monday"] = "Monday";
|
|
227
|
+
/** Tuesday */
|
|
143
228
|
KnownAutoBackupDaysOfWeek["Tuesday"] = "Tuesday";
|
|
229
|
+
/** Wednesday */
|
|
144
230
|
KnownAutoBackupDaysOfWeek["Wednesday"] = "Wednesday";
|
|
231
|
+
/** Thursday */
|
|
145
232
|
KnownAutoBackupDaysOfWeek["Thursday"] = "Thursday";
|
|
233
|
+
/** Friday */
|
|
146
234
|
KnownAutoBackupDaysOfWeek["Friday"] = "Friday";
|
|
235
|
+
/** Saturday */
|
|
147
236
|
KnownAutoBackupDaysOfWeek["Saturday"] = "Saturday";
|
|
237
|
+
/** Sunday */
|
|
148
238
|
KnownAutoBackupDaysOfWeek["Sunday"] = "Sunday";
|
|
149
239
|
})(exports.KnownAutoBackupDaysOfWeek || (exports.KnownAutoBackupDaysOfWeek = {}));
|
|
150
240
|
/** Known values of {@link ConnectivityType} that the service accepts. */
|
|
151
241
|
exports.KnownConnectivityType = void 0;
|
|
152
242
|
(function (KnownConnectivityType) {
|
|
243
|
+
/** Local */
|
|
153
244
|
KnownConnectivityType["Local"] = "LOCAL";
|
|
245
|
+
/** Private */
|
|
154
246
|
KnownConnectivityType["Private"] = "PRIVATE";
|
|
247
|
+
/** Public */
|
|
155
248
|
KnownConnectivityType["Public"] = "PUBLIC";
|
|
156
249
|
})(exports.KnownConnectivityType || (exports.KnownConnectivityType = {}));
|
|
157
250
|
/** Known values of {@link SqlWorkloadType} that the service accepts. */
|
|
158
251
|
exports.KnownSqlWorkloadType = void 0;
|
|
159
252
|
(function (KnownSqlWorkloadType) {
|
|
253
|
+
/** General */
|
|
160
254
|
KnownSqlWorkloadType["General"] = "GENERAL";
|
|
255
|
+
/** Oltp */
|
|
161
256
|
KnownSqlWorkloadType["Oltp"] = "OLTP";
|
|
257
|
+
/** DW */
|
|
162
258
|
KnownSqlWorkloadType["DW"] = "DW";
|
|
163
259
|
})(exports.KnownSqlWorkloadType || (exports.KnownSqlWorkloadType = {}));
|
|
164
260
|
/** Known values of {@link DiskConfigurationType} that the service accepts. */
|
|
165
261
|
exports.KnownDiskConfigurationType = void 0;
|
|
166
262
|
(function (KnownDiskConfigurationType) {
|
|
263
|
+
/** NEW */
|
|
167
264
|
KnownDiskConfigurationType["NEW"] = "NEW";
|
|
265
|
+
/** Extend */
|
|
168
266
|
KnownDiskConfigurationType["Extend"] = "EXTEND";
|
|
267
|
+
/** ADD */
|
|
169
268
|
KnownDiskConfigurationType["ADD"] = "ADD";
|
|
170
269
|
})(exports.KnownDiskConfigurationType || (exports.KnownDiskConfigurationType = {}));
|
|
171
270
|
/** Known values of {@link StorageWorkloadType} that the service accepts. */
|
|
172
271
|
exports.KnownStorageWorkloadType = void 0;
|
|
173
272
|
(function (KnownStorageWorkloadType) {
|
|
273
|
+
/** General */
|
|
174
274
|
KnownStorageWorkloadType["General"] = "GENERAL";
|
|
275
|
+
/** Oltp */
|
|
175
276
|
KnownStorageWorkloadType["Oltp"] = "OLTP";
|
|
277
|
+
/** DW */
|
|
176
278
|
KnownStorageWorkloadType["DW"] = "DW";
|
|
177
279
|
})(exports.KnownStorageWorkloadType || (exports.KnownStorageWorkloadType = {}));
|
|
178
280
|
|
|
@@ -247,6 +349,28 @@ const PrivateIPAddress = {
|
|
|
247
349
|
}
|
|
248
350
|
}
|
|
249
351
|
};
|
|
352
|
+
const MultiSubnetIpConfiguration = {
|
|
353
|
+
type: {
|
|
354
|
+
name: "Composite",
|
|
355
|
+
className: "MultiSubnetIpConfiguration",
|
|
356
|
+
modelProperties: {
|
|
357
|
+
privateIpAddress: {
|
|
358
|
+
serializedName: "privateIpAddress",
|
|
359
|
+
type: {
|
|
360
|
+
name: "Composite",
|
|
361
|
+
className: "PrivateIPAddress"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
sqlVirtualMachineInstance: {
|
|
365
|
+
serializedName: "sqlVirtualMachineInstance",
|
|
366
|
+
required: true,
|
|
367
|
+
type: {
|
|
368
|
+
name: "String"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
};
|
|
250
374
|
const AgConfiguration = {
|
|
251
375
|
type: {
|
|
252
376
|
name: "Composite",
|
|
@@ -254,7 +378,6 @@ const AgConfiguration = {
|
|
|
254
378
|
modelProperties: {
|
|
255
379
|
replicas: {
|
|
256
380
|
serializedName: "replicas",
|
|
257
|
-
readOnly: true,
|
|
258
381
|
type: {
|
|
259
382
|
name: "Sequence",
|
|
260
383
|
element: {
|
|
@@ -562,6 +685,12 @@ const WsfcDomainProfile = {
|
|
|
562
685
|
type: {
|
|
563
686
|
name: "String"
|
|
564
687
|
}
|
|
688
|
+
},
|
|
689
|
+
clusterSubnetType: {
|
|
690
|
+
serializedName: "clusterSubnetType",
|
|
691
|
+
type: {
|
|
692
|
+
name: "String"
|
|
693
|
+
}
|
|
565
694
|
}
|
|
566
695
|
}
|
|
567
696
|
}
|
|
@@ -1031,6 +1160,18 @@ const SQLInstanceSettings = {
|
|
|
1031
1160
|
type: {
|
|
1032
1161
|
name: "Number"
|
|
1033
1162
|
}
|
|
1163
|
+
},
|
|
1164
|
+
isLpimEnabled: {
|
|
1165
|
+
serializedName: "isLpimEnabled",
|
|
1166
|
+
type: {
|
|
1167
|
+
name: "Boolean"
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
isIfiEnabled: {
|
|
1171
|
+
serializedName: "isIfiEnabled",
|
|
1172
|
+
type: {
|
|
1173
|
+
name: "Boolean"
|
|
1174
|
+
}
|
|
1034
1175
|
}
|
|
1035
1176
|
}
|
|
1036
1177
|
}
|
|
@@ -1142,6 +1283,18 @@ const SQLTempDbSettings = {
|
|
|
1142
1283
|
name: "Number"
|
|
1143
1284
|
}
|
|
1144
1285
|
},
|
|
1286
|
+
persistFolder: {
|
|
1287
|
+
serializedName: "persistFolder",
|
|
1288
|
+
type: {
|
|
1289
|
+
name: "Boolean"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
persistFolderPath: {
|
|
1293
|
+
serializedName: "persistFolderPath",
|
|
1294
|
+
type: {
|
|
1295
|
+
name: "String"
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1145
1298
|
luns: {
|
|
1146
1299
|
serializedName: "luns",
|
|
1147
1300
|
type: {
|
|
@@ -1309,6 +1462,17 @@ const AvailabilityGroupListener = {
|
|
|
1309
1462
|
}
|
|
1310
1463
|
}
|
|
1311
1464
|
}
|
|
1465
|
+
}, multiSubnetIpConfigurations: {
|
|
1466
|
+
serializedName: "properties.multiSubnetIpConfigurations",
|
|
1467
|
+
type: {
|
|
1468
|
+
name: "Sequence",
|
|
1469
|
+
element: {
|
|
1470
|
+
type: {
|
|
1471
|
+
name: "Composite",
|
|
1472
|
+
className: "MultiSubnetIpConfiguration"
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1312
1476
|
}, createDefaultAvailabilityGroupIfNotExist: {
|
|
1313
1477
|
serializedName: "properties.createDefaultAvailabilityGroupIfNotExist",
|
|
1314
1478
|
type: {
|
|
@@ -1423,6 +1587,11 @@ const SqlVirtualMachine = {
|
|
|
1423
1587
|
type: {
|
|
1424
1588
|
name: "String"
|
|
1425
1589
|
}
|
|
1590
|
+
}, leastPrivilegeMode: {
|
|
1591
|
+
serializedName: "properties.leastPrivilegeMode",
|
|
1592
|
+
type: {
|
|
1593
|
+
name: "String"
|
|
1594
|
+
}
|
|
1426
1595
|
}, sqlImageSku: {
|
|
1427
1596
|
serializedName: "properties.sqlImageSku",
|
|
1428
1597
|
type: {
|
|
@@ -1439,6 +1608,11 @@ const SqlVirtualMachine = {
|
|
|
1439
1608
|
name: "Composite",
|
|
1440
1609
|
className: "WsfcDomainCredentials"
|
|
1441
1610
|
}
|
|
1611
|
+
}, wsfcStaticIp: {
|
|
1612
|
+
serializedName: "properties.wsfcStaticIp",
|
|
1613
|
+
type: {
|
|
1614
|
+
name: "String"
|
|
1615
|
+
}
|
|
1442
1616
|
}, autoPatchingSettings: {
|
|
1443
1617
|
serializedName: "properties.autoPatchingSettings",
|
|
1444
1618
|
type: {
|
|
@@ -1475,6 +1649,11 @@ const SqlVirtualMachine = {
|
|
|
1475
1649
|
name: "Composite",
|
|
1476
1650
|
className: "AssessmentSettings"
|
|
1477
1651
|
}
|
|
1652
|
+
}, enableAutomaticUpgrade: {
|
|
1653
|
+
serializedName: "properties.enableAutomaticUpgrade",
|
|
1654
|
+
type: {
|
|
1655
|
+
name: "Boolean"
|
|
1656
|
+
}
|
|
1478
1657
|
} })
|
|
1479
1658
|
}
|
|
1480
1659
|
};
|
|
@@ -1483,6 +1662,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1483
1662
|
__proto__: null,
|
|
1484
1663
|
LoadBalancerConfiguration: LoadBalancerConfiguration,
|
|
1485
1664
|
PrivateIPAddress: PrivateIPAddress,
|
|
1665
|
+
MultiSubnetIpConfiguration: MultiSubnetIpConfiguration,
|
|
1486
1666
|
AgConfiguration: AgConfiguration,
|
|
1487
1667
|
AgReplica: AgReplica,
|
|
1488
1668
|
SystemData: SystemData,
|
|
@@ -1600,7 +1780,7 @@ const subscriptionId = {
|
|
|
1600
1780
|
const apiVersion = {
|
|
1601
1781
|
parameterPath: "apiVersion",
|
|
1602
1782
|
mapper: {
|
|
1603
|
-
defaultValue: "
|
|
1783
|
+
defaultValue: "2022-07-01-preview",
|
|
1604
1784
|
isConstant: true,
|
|
1605
1785
|
serializedName: "api-version",
|
|
1606
1786
|
type: {
|
|
@@ -1722,20 +1902,31 @@ class AvailabilityGroupListenersImpl {
|
|
|
1722
1902
|
[Symbol.asyncIterator]() {
|
|
1723
1903
|
return this;
|
|
1724
1904
|
},
|
|
1725
|
-
byPage: () => {
|
|
1726
|
-
|
|
1905
|
+
byPage: (settings) => {
|
|
1906
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1907
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1908
|
+
}
|
|
1909
|
+
return this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
|
|
1727
1910
|
}
|
|
1728
1911
|
};
|
|
1729
1912
|
}
|
|
1730
|
-
listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
1913
|
+
listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
|
|
1731
1914
|
return tslib.__asyncGenerator(this, arguments, function* listByGroupPagingPage_1() {
|
|
1732
|
-
let result
|
|
1733
|
-
|
|
1734
|
-
|
|
1915
|
+
let result;
|
|
1916
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1917
|
+
if (!continuationToken) {
|
|
1918
|
+
result = yield tslib.__await(this._listByGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
|
|
1919
|
+
let page = result.value || [];
|
|
1920
|
+
continuationToken = result.nextLink;
|
|
1921
|
+
setContinuationToken(page, continuationToken);
|
|
1922
|
+
yield yield tslib.__await(page);
|
|
1923
|
+
}
|
|
1735
1924
|
while (continuationToken) {
|
|
1736
1925
|
result = yield tslib.__await(this._listByGroupNext(resourceGroupName, sqlVirtualMachineGroupName, continuationToken, options));
|
|
1737
1926
|
continuationToken = result.nextLink;
|
|
1738
|
-
|
|
1927
|
+
let page = result.value || [];
|
|
1928
|
+
setContinuationToken(page, continuationToken);
|
|
1929
|
+
yield yield tslib.__await(page);
|
|
1739
1930
|
}
|
|
1740
1931
|
});
|
|
1741
1932
|
}
|
|
@@ -2013,7 +2204,6 @@ const listByGroupNextOperationSpec = {
|
|
|
2013
2204
|
},
|
|
2014
2205
|
default: {}
|
|
2015
2206
|
},
|
|
2016
|
-
queryParameters: [apiVersion],
|
|
2017
2207
|
urlParameters: [
|
|
2018
2208
|
$host,
|
|
2019
2209
|
resourceGroupName,
|
|
@@ -2055,20 +2245,31 @@ class OperationsImpl {
|
|
|
2055
2245
|
[Symbol.asyncIterator]() {
|
|
2056
2246
|
return this;
|
|
2057
2247
|
},
|
|
2058
|
-
byPage: () => {
|
|
2059
|
-
|
|
2248
|
+
byPage: (settings) => {
|
|
2249
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2250
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2251
|
+
}
|
|
2252
|
+
return this.listPagingPage(options, settings);
|
|
2060
2253
|
}
|
|
2061
2254
|
};
|
|
2062
2255
|
}
|
|
2063
|
-
listPagingPage(options) {
|
|
2256
|
+
listPagingPage(options, settings) {
|
|
2064
2257
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2065
|
-
let result
|
|
2066
|
-
|
|
2067
|
-
|
|
2258
|
+
let result;
|
|
2259
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2260
|
+
if (!continuationToken) {
|
|
2261
|
+
result = yield tslib.__await(this._list(options));
|
|
2262
|
+
let page = result.value || [];
|
|
2263
|
+
continuationToken = result.nextLink;
|
|
2264
|
+
setContinuationToken(page, continuationToken);
|
|
2265
|
+
yield yield tslib.__await(page);
|
|
2266
|
+
}
|
|
2068
2267
|
while (continuationToken) {
|
|
2069
2268
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2070
2269
|
continuationToken = result.nextLink;
|
|
2071
|
-
|
|
2270
|
+
let page = result.value || [];
|
|
2271
|
+
setContinuationToken(page, continuationToken);
|
|
2272
|
+
yield yield tslib.__await(page);
|
|
2072
2273
|
}
|
|
2073
2274
|
});
|
|
2074
2275
|
}
|
|
@@ -2131,7 +2332,6 @@ const listNextOperationSpec$2 = {
|
|
|
2131
2332
|
},
|
|
2132
2333
|
default: {}
|
|
2133
2334
|
},
|
|
2134
|
-
queryParameters: [apiVersion],
|
|
2135
2335
|
urlParameters: [$host, nextLink],
|
|
2136
2336
|
headerParameters: [accept],
|
|
2137
2337
|
serializer: serializer$2
|
|
@@ -2169,20 +2369,31 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2169
2369
|
[Symbol.asyncIterator]() {
|
|
2170
2370
|
return this;
|
|
2171
2371
|
},
|
|
2172
|
-
byPage: () => {
|
|
2173
|
-
|
|
2372
|
+
byPage: (settings) => {
|
|
2373
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2374
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2375
|
+
}
|
|
2376
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2174
2377
|
}
|
|
2175
2378
|
};
|
|
2176
2379
|
}
|
|
2177
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2380
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2178
2381
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2179
|
-
let result
|
|
2180
|
-
|
|
2181
|
-
|
|
2382
|
+
let result;
|
|
2383
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2384
|
+
if (!continuationToken) {
|
|
2385
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2386
|
+
let page = result.value || [];
|
|
2387
|
+
continuationToken = result.nextLink;
|
|
2388
|
+
setContinuationToken(page, continuationToken);
|
|
2389
|
+
yield yield tslib.__await(page);
|
|
2390
|
+
}
|
|
2182
2391
|
while (continuationToken) {
|
|
2183
2392
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2184
2393
|
continuationToken = result.nextLink;
|
|
2185
|
-
|
|
2394
|
+
let page = result.value || [];
|
|
2395
|
+
setContinuationToken(page, continuationToken);
|
|
2396
|
+
yield yield tslib.__await(page);
|
|
2186
2397
|
}
|
|
2187
2398
|
});
|
|
2188
2399
|
}
|
|
@@ -2217,20 +2428,31 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2217
2428
|
[Symbol.asyncIterator]() {
|
|
2218
2429
|
return this;
|
|
2219
2430
|
},
|
|
2220
|
-
byPage: () => {
|
|
2221
|
-
|
|
2431
|
+
byPage: (settings) => {
|
|
2432
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2433
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2434
|
+
}
|
|
2435
|
+
return this.listPagingPage(options, settings);
|
|
2222
2436
|
}
|
|
2223
2437
|
};
|
|
2224
2438
|
}
|
|
2225
|
-
listPagingPage(options) {
|
|
2439
|
+
listPagingPage(options, settings) {
|
|
2226
2440
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2227
|
-
let result
|
|
2228
|
-
|
|
2229
|
-
|
|
2441
|
+
let result;
|
|
2442
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2443
|
+
if (!continuationToken) {
|
|
2444
|
+
result = yield tslib.__await(this._list(options));
|
|
2445
|
+
let page = result.value || [];
|
|
2446
|
+
continuationToken = result.nextLink;
|
|
2447
|
+
setContinuationToken(page, continuationToken);
|
|
2448
|
+
yield yield tslib.__await(page);
|
|
2449
|
+
}
|
|
2230
2450
|
while (continuationToken) {
|
|
2231
2451
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2232
2452
|
continuationToken = result.nextLink;
|
|
2233
|
-
|
|
2453
|
+
let page = result.value || [];
|
|
2454
|
+
setContinuationToken(page, continuationToken);
|
|
2455
|
+
yield yield tslib.__await(page);
|
|
2234
2456
|
}
|
|
2235
2457
|
});
|
|
2236
2458
|
}
|
|
@@ -2595,7 +2817,6 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
2595
2817
|
},
|
|
2596
2818
|
default: {}
|
|
2597
2819
|
},
|
|
2598
|
-
queryParameters: [apiVersion],
|
|
2599
2820
|
urlParameters: [
|
|
2600
2821
|
$host,
|
|
2601
2822
|
resourceGroupName,
|
|
@@ -2614,7 +2835,6 @@ const listNextOperationSpec$1 = {
|
|
|
2614
2835
|
},
|
|
2615
2836
|
default: {}
|
|
2616
2837
|
},
|
|
2617
|
-
queryParameters: [apiVersion],
|
|
2618
2838
|
urlParameters: [
|
|
2619
2839
|
$host,
|
|
2620
2840
|
subscriptionId,
|
|
@@ -2657,20 +2877,31 @@ class SqlVirtualMachinesImpl {
|
|
|
2657
2877
|
[Symbol.asyncIterator]() {
|
|
2658
2878
|
return this;
|
|
2659
2879
|
},
|
|
2660
|
-
byPage: () => {
|
|
2661
|
-
|
|
2880
|
+
byPage: (settings) => {
|
|
2881
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2882
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2883
|
+
}
|
|
2884
|
+
return this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
|
|
2662
2885
|
}
|
|
2663
2886
|
};
|
|
2664
2887
|
}
|
|
2665
|
-
listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options) {
|
|
2888
|
+
listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
|
|
2666
2889
|
return tslib.__asyncGenerator(this, arguments, function* listBySqlVmGroupPagingPage_1() {
|
|
2667
|
-
let result
|
|
2668
|
-
|
|
2669
|
-
|
|
2890
|
+
let result;
|
|
2891
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2892
|
+
if (!continuationToken) {
|
|
2893
|
+
result = yield tslib.__await(this._listBySqlVmGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
|
|
2894
|
+
let page = result.value || [];
|
|
2895
|
+
continuationToken = result.nextLink;
|
|
2896
|
+
setContinuationToken(page, continuationToken);
|
|
2897
|
+
yield yield tslib.__await(page);
|
|
2898
|
+
}
|
|
2670
2899
|
while (continuationToken) {
|
|
2671
2900
|
result = yield tslib.__await(this._listBySqlVmGroupNext(resourceGroupName, sqlVirtualMachineGroupName, continuationToken, options));
|
|
2672
2901
|
continuationToken = result.nextLink;
|
|
2673
|
-
|
|
2902
|
+
let page = result.value || [];
|
|
2903
|
+
setContinuationToken(page, continuationToken);
|
|
2904
|
+
yield yield tslib.__await(page);
|
|
2674
2905
|
}
|
|
2675
2906
|
});
|
|
2676
2907
|
}
|
|
@@ -2705,20 +2936,31 @@ class SqlVirtualMachinesImpl {
|
|
|
2705
2936
|
[Symbol.asyncIterator]() {
|
|
2706
2937
|
return this;
|
|
2707
2938
|
},
|
|
2708
|
-
byPage: () => {
|
|
2709
|
-
|
|
2939
|
+
byPage: (settings) => {
|
|
2940
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2941
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2942
|
+
}
|
|
2943
|
+
return this.listPagingPage(options, settings);
|
|
2710
2944
|
}
|
|
2711
2945
|
};
|
|
2712
2946
|
}
|
|
2713
|
-
listPagingPage(options) {
|
|
2947
|
+
listPagingPage(options, settings) {
|
|
2714
2948
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2715
|
-
let result
|
|
2716
|
-
|
|
2717
|
-
|
|
2949
|
+
let result;
|
|
2950
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2951
|
+
if (!continuationToken) {
|
|
2952
|
+
result = yield tslib.__await(this._list(options));
|
|
2953
|
+
let page = result.value || [];
|
|
2954
|
+
continuationToken = result.nextLink;
|
|
2955
|
+
setContinuationToken(page, continuationToken);
|
|
2956
|
+
yield yield tslib.__await(page);
|
|
2957
|
+
}
|
|
2718
2958
|
while (continuationToken) {
|
|
2719
2959
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2720
2960
|
continuationToken = result.nextLink;
|
|
2721
|
-
|
|
2961
|
+
let page = result.value || [];
|
|
2962
|
+
setContinuationToken(page, continuationToken);
|
|
2963
|
+
yield yield tslib.__await(page);
|
|
2722
2964
|
}
|
|
2723
2965
|
});
|
|
2724
2966
|
}
|
|
@@ -2755,20 +2997,31 @@ class SqlVirtualMachinesImpl {
|
|
|
2755
2997
|
[Symbol.asyncIterator]() {
|
|
2756
2998
|
return this;
|
|
2757
2999
|
},
|
|
2758
|
-
byPage: () => {
|
|
2759
|
-
|
|
3000
|
+
byPage: (settings) => {
|
|
3001
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3002
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3003
|
+
}
|
|
3004
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2760
3005
|
}
|
|
2761
3006
|
};
|
|
2762
3007
|
}
|
|
2763
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3008
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2764
3009
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2765
|
-
let result
|
|
2766
|
-
|
|
2767
|
-
|
|
3010
|
+
let result;
|
|
3011
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3012
|
+
if (!continuationToken) {
|
|
3013
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3014
|
+
let page = result.value || [];
|
|
3015
|
+
continuationToken = result.nextLink;
|
|
3016
|
+
setContinuationToken(page, continuationToken);
|
|
3017
|
+
yield yield tslib.__await(page);
|
|
3018
|
+
}
|
|
2768
3019
|
while (continuationToken) {
|
|
2769
3020
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2770
3021
|
continuationToken = result.nextLink;
|
|
2771
|
-
|
|
3022
|
+
let page = result.value || [];
|
|
3023
|
+
setContinuationToken(page, continuationToken);
|
|
3024
|
+
yield yield tslib.__await(page);
|
|
2772
3025
|
}
|
|
2773
3026
|
});
|
|
2774
3027
|
}
|
|
@@ -2808,13 +3061,13 @@ class SqlVirtualMachinesImpl {
|
|
|
2808
3061
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2809
3062
|
}
|
|
2810
3063
|
/**
|
|
2811
|
-
*
|
|
3064
|
+
* Starts Assessment on SQL virtual machine.
|
|
2812
3065
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2813
3066
|
* value from the Azure Resource Manager API or the portal.
|
|
2814
3067
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2815
3068
|
* @param options The options parameters.
|
|
2816
3069
|
*/
|
|
2817
|
-
|
|
3070
|
+
beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2818
3071
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2819
3072
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2820
3073
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -2838,7 +3091,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2838
3091
|
}
|
|
2839
3092
|
};
|
|
2840
3093
|
});
|
|
2841
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options },
|
|
3094
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, startAssessmentOperationSpec);
|
|
2842
3095
|
const poller = new coreLro.LroEngine(lro, {
|
|
2843
3096
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2844
3097
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2848,37 +3101,26 @@ class SqlVirtualMachinesImpl {
|
|
|
2848
3101
|
});
|
|
2849
3102
|
}
|
|
2850
3103
|
/**
|
|
2851
|
-
*
|
|
3104
|
+
* Starts Assessment on SQL virtual machine.
|
|
2852
3105
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2853
3106
|
* value from the Azure Resource Manager API or the portal.
|
|
2854
3107
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2855
3108
|
* @param options The options parameters.
|
|
2856
3109
|
*/
|
|
2857
|
-
|
|
3110
|
+
beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2858
3111
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2859
|
-
const poller = yield this.
|
|
3112
|
+
const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
|
|
2860
3113
|
return poller.pollUntilDone();
|
|
2861
3114
|
});
|
|
2862
3115
|
}
|
|
2863
3116
|
/**
|
|
2864
|
-
*
|
|
2865
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2866
|
-
* value from the Azure Resource Manager API or the portal.
|
|
2867
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2868
|
-
* @param options The options parameters.
|
|
2869
|
-
*/
|
|
2870
|
-
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2871
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
2872
|
-
}
|
|
2873
|
-
/**
|
|
2874
|
-
* Creates or updates a SQL virtual machine.
|
|
3117
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2875
3118
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2876
3119
|
* value from the Azure Resource Manager API or the portal.
|
|
2877
3120
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2878
|
-
* @param parameters The SQL virtual machine.
|
|
2879
3121
|
* @param options The options parameters.
|
|
2880
3122
|
*/
|
|
2881
|
-
|
|
3123
|
+
beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2882
3124
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2883
3125
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2884
3126
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -2902,7 +3144,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2902
3144
|
}
|
|
2903
3145
|
};
|
|
2904
3146
|
});
|
|
2905
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName,
|
|
3147
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, redeployOperationSpec);
|
|
2906
3148
|
const poller = new coreLro.LroEngine(lro, {
|
|
2907
3149
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2908
3150
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2912,27 +3154,37 @@ class SqlVirtualMachinesImpl {
|
|
|
2912
3154
|
});
|
|
2913
3155
|
}
|
|
2914
3156
|
/**
|
|
2915
|
-
*
|
|
3157
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2916
3158
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2917
3159
|
* value from the Azure Resource Manager API or the portal.
|
|
2918
3160
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2919
|
-
* @param parameters The SQL virtual machine.
|
|
2920
3161
|
* @param options The options parameters.
|
|
2921
3162
|
*/
|
|
2922
|
-
|
|
3163
|
+
beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2923
3164
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2924
|
-
const poller = yield this.
|
|
3165
|
+
const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
|
|
2925
3166
|
return poller.pollUntilDone();
|
|
2926
3167
|
});
|
|
2927
3168
|
}
|
|
2928
3169
|
/**
|
|
2929
|
-
*
|
|
3170
|
+
* Gets a SQL virtual machine.
|
|
2930
3171
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2931
3172
|
* value from the Azure Resource Manager API or the portal.
|
|
2932
3173
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2933
3174
|
* @param options The options parameters.
|
|
2934
3175
|
*/
|
|
2935
|
-
|
|
3176
|
+
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3177
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
3178
|
+
}
|
|
3179
|
+
/**
|
|
3180
|
+
* Creates or updates a SQL virtual machine.
|
|
3181
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3182
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3183
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3184
|
+
* @param parameters The SQL virtual machine.
|
|
3185
|
+
* @param options The options parameters.
|
|
3186
|
+
*/
|
|
3187
|
+
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
2936
3188
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2937
3189
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2938
3190
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -2956,7 +3208,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2956
3208
|
}
|
|
2957
3209
|
};
|
|
2958
3210
|
});
|
|
2959
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options },
|
|
3211
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec);
|
|
2960
3212
|
const poller = new coreLro.LroEngine(lro, {
|
|
2961
3213
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2962
3214
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2966,27 +3218,27 @@ class SqlVirtualMachinesImpl {
|
|
|
2966
3218
|
});
|
|
2967
3219
|
}
|
|
2968
3220
|
/**
|
|
2969
|
-
*
|
|
3221
|
+
* Creates or updates a SQL virtual machine.
|
|
2970
3222
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2971
3223
|
* value from the Azure Resource Manager API or the portal.
|
|
2972
3224
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3225
|
+
* @param parameters The SQL virtual machine.
|
|
2973
3226
|
* @param options The options parameters.
|
|
2974
3227
|
*/
|
|
2975
|
-
|
|
3228
|
+
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
2976
3229
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2977
|
-
const poller = yield this.
|
|
3230
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
2978
3231
|
return poller.pollUntilDone();
|
|
2979
3232
|
});
|
|
2980
3233
|
}
|
|
2981
3234
|
/**
|
|
2982
|
-
*
|
|
3235
|
+
* Deletes a SQL virtual machine.
|
|
2983
3236
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2984
3237
|
* value from the Azure Resource Manager API or the portal.
|
|
2985
3238
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2986
|
-
* @param parameters The SQL virtual machine.
|
|
2987
3239
|
* @param options The options parameters.
|
|
2988
3240
|
*/
|
|
2989
|
-
|
|
3241
|
+
beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2990
3242
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2991
3243
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2992
3244
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -3010,7 +3262,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3010
3262
|
}
|
|
3011
3263
|
};
|
|
3012
3264
|
});
|
|
3013
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName,
|
|
3265
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec);
|
|
3014
3266
|
const poller = new coreLro.LroEngine(lro, {
|
|
3015
3267
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3016
3268
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3020,36 +3272,27 @@ class SqlVirtualMachinesImpl {
|
|
|
3020
3272
|
});
|
|
3021
3273
|
}
|
|
3022
3274
|
/**
|
|
3023
|
-
*
|
|
3275
|
+
* Deletes a SQL virtual machine.
|
|
3024
3276
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3025
3277
|
* value from the Azure Resource Manager API or the portal.
|
|
3026
3278
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3027
|
-
* @param parameters The SQL virtual machine.
|
|
3028
3279
|
* @param options The options parameters.
|
|
3029
3280
|
*/
|
|
3030
|
-
|
|
3281
|
+
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3031
3282
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3032
|
-
const poller = yield this.
|
|
3283
|
+
const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
|
|
3033
3284
|
return poller.pollUntilDone();
|
|
3034
3285
|
});
|
|
3035
3286
|
}
|
|
3036
3287
|
/**
|
|
3037
|
-
*
|
|
3038
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3039
|
-
* value from the Azure Resource Manager API or the portal.
|
|
3040
|
-
* @param options The options parameters.
|
|
3041
|
-
*/
|
|
3042
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
3043
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3044
|
-
}
|
|
3045
|
-
/**
|
|
3046
|
-
* Starts Assessment on SQL virtual machine.
|
|
3288
|
+
* Updates a SQL virtual machine.
|
|
3047
3289
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3048
3290
|
* value from the Azure Resource Manager API or the portal.
|
|
3049
3291
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3292
|
+
* @param parameters The SQL virtual machine.
|
|
3050
3293
|
* @param options The options parameters.
|
|
3051
3294
|
*/
|
|
3052
|
-
|
|
3295
|
+
beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3053
3296
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3054
3297
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3055
3298
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -3073,7 +3316,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3073
3316
|
}
|
|
3074
3317
|
};
|
|
3075
3318
|
});
|
|
3076
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options },
|
|
3319
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec);
|
|
3077
3320
|
const poller = new coreLro.LroEngine(lro, {
|
|
3078
3321
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3079
3322
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3083,18 +3326,28 @@ class SqlVirtualMachinesImpl {
|
|
|
3083
3326
|
});
|
|
3084
3327
|
}
|
|
3085
3328
|
/**
|
|
3086
|
-
*
|
|
3329
|
+
* Updates a SQL virtual machine.
|
|
3087
3330
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3088
3331
|
* value from the Azure Resource Manager API or the portal.
|
|
3089
3332
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3333
|
+
* @param parameters The SQL virtual machine.
|
|
3090
3334
|
* @param options The options parameters.
|
|
3091
3335
|
*/
|
|
3092
|
-
|
|
3336
|
+
beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3093
3337
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3094
|
-
const poller = yield this.
|
|
3338
|
+
const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
3095
3339
|
return poller.pollUntilDone();
|
|
3096
3340
|
});
|
|
3097
3341
|
}
|
|
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
|
+
}
|
|
3098
3351
|
/**
|
|
3099
3352
|
* ListBySqlVmGroupNext
|
|
3100
3353
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -3160,6 +3413,19 @@ const listOperationSpec = {
|
|
|
3160
3413
|
headerParameters: [accept],
|
|
3161
3414
|
serializer
|
|
3162
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
|
+
};
|
|
3163
3429
|
const redeployOperationSpec = {
|
|
3164
3430
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
3165
3431
|
httpMethod: "POST",
|
|
@@ -3283,19 +3549,6 @@ const listByResourceGroupOperationSpec = {
|
|
|
3283
3549
|
headerParameters: [accept],
|
|
3284
3550
|
serializer
|
|
3285
3551
|
};
|
|
3286
|
-
const startAssessmentOperationSpec = {
|
|
3287
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
3288
|
-
httpMethod: "POST",
|
|
3289
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3290
|
-
queryParameters: [apiVersion],
|
|
3291
|
-
urlParameters: [
|
|
3292
|
-
$host,
|
|
3293
|
-
resourceGroupName,
|
|
3294
|
-
subscriptionId,
|
|
3295
|
-
sqlVirtualMachineName
|
|
3296
|
-
],
|
|
3297
|
-
serializer
|
|
3298
|
-
};
|
|
3299
3552
|
const listBySqlVmGroupNextOperationSpec = {
|
|
3300
3553
|
path: "{nextLink}",
|
|
3301
3554
|
httpMethod: "GET",
|
|
@@ -3305,7 +3558,6 @@ const listBySqlVmGroupNextOperationSpec = {
|
|
|
3305
3558
|
},
|
|
3306
3559
|
default: {}
|
|
3307
3560
|
},
|
|
3308
|
-
queryParameters: [apiVersion],
|
|
3309
3561
|
urlParameters: [
|
|
3310
3562
|
$host,
|
|
3311
3563
|
resourceGroupName,
|
|
@@ -3325,7 +3577,6 @@ const listNextOperationSpec = {
|
|
|
3325
3577
|
},
|
|
3326
3578
|
default: {}
|
|
3327
3579
|
},
|
|
3328
|
-
queryParameters: [apiVersion],
|
|
3329
3580
|
urlParameters: [
|
|
3330
3581
|
$host,
|
|
3331
3582
|
subscriptionId,
|
|
@@ -3343,7 +3594,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3343
3594
|
},
|
|
3344
3595
|
default: {}
|
|
3345
3596
|
},
|
|
3346
|
-
queryParameters: [apiVersion],
|
|
3347
3597
|
urlParameters: [
|
|
3348
3598
|
$host,
|
|
3349
3599
|
resourceGroupName,
|
|
@@ -3369,7 +3619,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3369
3619
|
* @param options The parameter options
|
|
3370
3620
|
*/
|
|
3371
3621
|
constructor(credentials, subscriptionId, options) {
|
|
3372
|
-
var _a, _b;
|
|
3622
|
+
var _a, _b, _c;
|
|
3373
3623
|
if (credentials === undefined) {
|
|
3374
3624
|
throw new Error("'credentials' cannot be null");
|
|
3375
3625
|
}
|
|
@@ -3384,38 +3634,40 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3384
3634
|
requestContentType: "application/json; charset=utf-8",
|
|
3385
3635
|
credential: credentials
|
|
3386
3636
|
};
|
|
3387
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.
|
|
3637
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.7`;
|
|
3388
3638
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3389
3639
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3390
3640
|
: `${packageDetails}`;
|
|
3391
|
-
if (!options.credentialScopes) {
|
|
3392
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3393
|
-
}
|
|
3394
3641
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3395
3642
|
userAgentPrefix
|
|
3396
|
-
},
|
|
3643
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3397
3644
|
super(optionsWithDefaults);
|
|
3645
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3398
3646
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3399
3647
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3400
|
-
|
|
3648
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3401
3649
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3650
|
+
}
|
|
3651
|
+
if (!options ||
|
|
3652
|
+
!options.pipeline ||
|
|
3653
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3654
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3655
|
+
this.pipeline.removePolicy({
|
|
3656
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3657
|
+
});
|
|
3658
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3659
|
+
credential: credentials,
|
|
3660
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3661
|
+
challengeCallbacks: {
|
|
3662
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3663
|
+
}
|
|
3664
|
+
}));
|
|
3413
3665
|
}
|
|
3414
3666
|
// Parameter assignments
|
|
3415
3667
|
this.subscriptionId = subscriptionId;
|
|
3416
3668
|
// Assigning values to Constant parameters
|
|
3417
3669
|
this.$host = options.$host || "https://management.azure.com";
|
|
3418
|
-
this.apiVersion = options.apiVersion || "
|
|
3670
|
+
this.apiVersion = options.apiVersion || "2022-07-01-preview";
|
|
3419
3671
|
this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
|
|
3420
3672
|
this.operations = new OperationsImpl(this);
|
|
3421
3673
|
this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
|
|
@@ -3435,7 +3687,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3435
3687
|
if (param.length > 1) {
|
|
3436
3688
|
const newParams = param[1].split("&").map((item) => {
|
|
3437
3689
|
if (item.indexOf("api-version") > -1) {
|
|
3438
|
-
return
|
|
3690
|
+
return "api-version=" + apiVersion;
|
|
3439
3691
|
}
|
|
3440
3692
|
else {
|
|
3441
3693
|
return item;
|
|
@@ -3452,4 +3704,5 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3452
3704
|
}
|
|
3453
3705
|
|
|
3454
3706
|
exports.SqlVirtualMachineManagementClient = SqlVirtualMachineManagementClient;
|
|
3707
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3455
3708
|
//# sourceMappingURL=index.js.map
|