@azure/arm-sqlvirtualmachine 5.0.0-beta.1 → 5.0.0-beta.4
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 +7 -10
- package/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/index.js +689 -90
- 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/src/models/index.d.ts +233 -2
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +45 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +333 -3
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +10 -10
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityGroupListeners.js +7 -3
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.js +2 -2
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +9 -3
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +33 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +142 -4
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +33 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +21 -3
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
- package/package.json +31 -13
- package/review/arm-sqlvirtualmachine.api.md +171 -1
- package/rollup.config.js +6 -72
- package/src/models/index.ts +258 -3
- package/src/models/mappers.ts +343 -1
- package/src/models/parameters.ts +11 -11
- package/src/operations/availabilityGroupListeners.ts +7 -3
- package/src/operations/operations.ts +2 -2
- package/src/operations/sqlVirtualMachineGroups.ts +9 -3
- package/src/operations/sqlVirtualMachines.ts +208 -4
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/sqlVirtualMachines.ts +51 -1
- package/src/sqlVirtualMachineManagementClient.ts +28 -3
- package/tsconfig.json +12 -4
- package/types/arm-sqlvirtualmachine.d.ts +287 -3
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,9 +3,31 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
9
31
|
/*
|
|
10
32
|
* Copyright (c) Microsoft Corporation.
|
|
11
33
|
* Licensed under the MIT License.
|
|
@@ -13,36 +35,88 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
37
|
*/
|
|
38
|
+
/** Known values of {@link Role} that the service accepts. */
|
|
39
|
+
exports.KnownRole = void 0;
|
|
40
|
+
(function (KnownRole) {
|
|
41
|
+
KnownRole["Primary"] = "PRIMARY";
|
|
42
|
+
KnownRole["Secondary"] = "SECONDARY";
|
|
43
|
+
})(exports.KnownRole || (exports.KnownRole = {}));
|
|
44
|
+
/** Known values of {@link Commit} that the service accepts. */
|
|
45
|
+
exports.KnownCommit = void 0;
|
|
46
|
+
(function (KnownCommit) {
|
|
47
|
+
KnownCommit["SynchronousCommit"] = "SYNCHRONOUS_COMMIT";
|
|
48
|
+
KnownCommit["AsynchronousCommit"] = "ASYNCHRONOUS_COMMIT";
|
|
49
|
+
})(exports.KnownCommit || (exports.KnownCommit = {}));
|
|
50
|
+
/** Known values of {@link Failover} that the service accepts. */
|
|
51
|
+
exports.KnownFailover = void 0;
|
|
52
|
+
(function (KnownFailover) {
|
|
53
|
+
KnownFailover["Automatic"] = "AUTOMATIC";
|
|
54
|
+
KnownFailover["Manual"] = "MANUAL";
|
|
55
|
+
})(exports.KnownFailover || (exports.KnownFailover = {}));
|
|
56
|
+
/** Known values of {@link ReadableSecondary} that the service accepts. */
|
|
57
|
+
exports.KnownReadableSecondary = void 0;
|
|
58
|
+
(function (KnownReadableSecondary) {
|
|
59
|
+
KnownReadableSecondary["NO"] = "NO";
|
|
60
|
+
KnownReadableSecondary["ALL"] = "ALL";
|
|
61
|
+
KnownReadableSecondary["ReadOnly"] = "READ_ONLY";
|
|
62
|
+
})(exports.KnownReadableSecondary || (exports.KnownReadableSecondary = {}));
|
|
63
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
64
|
+
exports.KnownCreatedByType = void 0;
|
|
65
|
+
(function (KnownCreatedByType) {
|
|
66
|
+
KnownCreatedByType["User"] = "User";
|
|
67
|
+
KnownCreatedByType["Application"] = "Application";
|
|
68
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
69
|
+
KnownCreatedByType["Key"] = "Key";
|
|
70
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
71
|
+
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
72
|
+
exports.KnownOperationOrigin = void 0;
|
|
16
73
|
(function (KnownOperationOrigin) {
|
|
17
74
|
KnownOperationOrigin["User"] = "user";
|
|
18
75
|
KnownOperationOrigin["System"] = "system";
|
|
19
76
|
})(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
|
|
77
|
+
/** Known values of {@link SqlVmGroupImageSku} that the service accepts. */
|
|
78
|
+
exports.KnownSqlVmGroupImageSku = void 0;
|
|
20
79
|
(function (KnownSqlVmGroupImageSku) {
|
|
21
80
|
KnownSqlVmGroupImageSku["Developer"] = "Developer";
|
|
22
81
|
KnownSqlVmGroupImageSku["Enterprise"] = "Enterprise";
|
|
23
82
|
})(exports.KnownSqlVmGroupImageSku || (exports.KnownSqlVmGroupImageSku = {}));
|
|
83
|
+
/** Known values of {@link ScaleType} that the service accepts. */
|
|
84
|
+
exports.KnownScaleType = void 0;
|
|
24
85
|
(function (KnownScaleType) {
|
|
25
86
|
KnownScaleType["HA"] = "HA";
|
|
26
87
|
})(exports.KnownScaleType || (exports.KnownScaleType = {}));
|
|
88
|
+
/** Known values of {@link ClusterManagerType} that the service accepts. */
|
|
89
|
+
exports.KnownClusterManagerType = void 0;
|
|
27
90
|
(function (KnownClusterManagerType) {
|
|
28
91
|
KnownClusterManagerType["Wsfc"] = "WSFC";
|
|
29
92
|
})(exports.KnownClusterManagerType || (exports.KnownClusterManagerType = {}));
|
|
93
|
+
/** Known values of {@link ClusterConfiguration} that the service accepts. */
|
|
94
|
+
exports.KnownClusterConfiguration = void 0;
|
|
30
95
|
(function (KnownClusterConfiguration) {
|
|
31
96
|
KnownClusterConfiguration["Domainful"] = "Domainful";
|
|
32
97
|
})(exports.KnownClusterConfiguration || (exports.KnownClusterConfiguration = {}));
|
|
98
|
+
/** Known values of {@link IdentityType} that the service accepts. */
|
|
99
|
+
exports.KnownIdentityType = void 0;
|
|
33
100
|
(function (KnownIdentityType) {
|
|
101
|
+
KnownIdentityType["None"] = "None";
|
|
34
102
|
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
35
103
|
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
104
|
+
/** Known values of {@link SqlServerLicenseType} that the service accepts. */
|
|
105
|
+
exports.KnownSqlServerLicenseType = void 0;
|
|
36
106
|
(function (KnownSqlServerLicenseType) {
|
|
37
107
|
KnownSqlServerLicenseType["Payg"] = "PAYG";
|
|
38
108
|
KnownSqlServerLicenseType["Ahub"] = "AHUB";
|
|
39
109
|
KnownSqlServerLicenseType["DR"] = "DR";
|
|
40
110
|
})(exports.KnownSqlServerLicenseType || (exports.KnownSqlServerLicenseType = {}));
|
|
111
|
+
/** Known values of {@link SqlManagementMode} that the service accepts. */
|
|
112
|
+
exports.KnownSqlManagementMode = void 0;
|
|
41
113
|
(function (KnownSqlManagementMode) {
|
|
42
114
|
KnownSqlManagementMode["Full"] = "Full";
|
|
43
115
|
KnownSqlManagementMode["LightWeight"] = "LightWeight";
|
|
44
116
|
KnownSqlManagementMode["NoAgent"] = "NoAgent";
|
|
45
117
|
})(exports.KnownSqlManagementMode || (exports.KnownSqlManagementMode = {}));
|
|
118
|
+
/** Known values of {@link SqlImageSku} that the service accepts. */
|
|
119
|
+
exports.KnownSqlImageSku = void 0;
|
|
46
120
|
(function (KnownSqlImageSku) {
|
|
47
121
|
KnownSqlImageSku["Developer"] = "Developer";
|
|
48
122
|
KnownSqlImageSku["Express"] = "Express";
|
|
@@ -50,29 +124,52 @@ var coreLro = require('@azure/core-lro');
|
|
|
50
124
|
KnownSqlImageSku["Enterprise"] = "Enterprise";
|
|
51
125
|
KnownSqlImageSku["Web"] = "Web";
|
|
52
126
|
})(exports.KnownSqlImageSku || (exports.KnownSqlImageSku = {}));
|
|
127
|
+
/** Known values of {@link BackupScheduleType} that the service accepts. */
|
|
128
|
+
exports.KnownBackupScheduleType = void 0;
|
|
53
129
|
(function (KnownBackupScheduleType) {
|
|
54
130
|
KnownBackupScheduleType["Manual"] = "Manual";
|
|
55
131
|
KnownBackupScheduleType["Automated"] = "Automated";
|
|
56
132
|
})(exports.KnownBackupScheduleType || (exports.KnownBackupScheduleType = {}));
|
|
133
|
+
/** Known values of {@link FullBackupFrequencyType} that the service accepts. */
|
|
134
|
+
exports.KnownFullBackupFrequencyType = void 0;
|
|
57
135
|
(function (KnownFullBackupFrequencyType) {
|
|
58
136
|
KnownFullBackupFrequencyType["Daily"] = "Daily";
|
|
59
137
|
KnownFullBackupFrequencyType["Weekly"] = "Weekly";
|
|
60
138
|
})(exports.KnownFullBackupFrequencyType || (exports.KnownFullBackupFrequencyType = {}));
|
|
139
|
+
/** Known values of {@link DaysOfWeek} that the service accepts. */
|
|
140
|
+
exports.KnownDaysOfWeek = void 0;
|
|
141
|
+
(function (KnownDaysOfWeek) {
|
|
142
|
+
KnownDaysOfWeek["Monday"] = "Monday";
|
|
143
|
+
KnownDaysOfWeek["Tuesday"] = "Tuesday";
|
|
144
|
+
KnownDaysOfWeek["Wednesday"] = "Wednesday";
|
|
145
|
+
KnownDaysOfWeek["Thursday"] = "Thursday";
|
|
146
|
+
KnownDaysOfWeek["Friday"] = "Friday";
|
|
147
|
+
KnownDaysOfWeek["Saturday"] = "Saturday";
|
|
148
|
+
KnownDaysOfWeek["Sunday"] = "Sunday";
|
|
149
|
+
})(exports.KnownDaysOfWeek || (exports.KnownDaysOfWeek = {}));
|
|
150
|
+
/** Known values of {@link ConnectivityType} that the service accepts. */
|
|
151
|
+
exports.KnownConnectivityType = void 0;
|
|
61
152
|
(function (KnownConnectivityType) {
|
|
62
153
|
KnownConnectivityType["Local"] = "LOCAL";
|
|
63
154
|
KnownConnectivityType["Private"] = "PRIVATE";
|
|
64
155
|
KnownConnectivityType["Public"] = "PUBLIC";
|
|
65
156
|
})(exports.KnownConnectivityType || (exports.KnownConnectivityType = {}));
|
|
157
|
+
/** Known values of {@link SqlWorkloadType} that the service accepts. */
|
|
158
|
+
exports.KnownSqlWorkloadType = void 0;
|
|
66
159
|
(function (KnownSqlWorkloadType) {
|
|
67
160
|
KnownSqlWorkloadType["General"] = "GENERAL";
|
|
68
161
|
KnownSqlWorkloadType["Oltp"] = "OLTP";
|
|
69
162
|
KnownSqlWorkloadType["DW"] = "DW";
|
|
70
163
|
})(exports.KnownSqlWorkloadType || (exports.KnownSqlWorkloadType = {}));
|
|
164
|
+
/** Known values of {@link DiskConfigurationType} that the service accepts. */
|
|
165
|
+
exports.KnownDiskConfigurationType = void 0;
|
|
71
166
|
(function (KnownDiskConfigurationType) {
|
|
72
167
|
KnownDiskConfigurationType["NEW"] = "NEW";
|
|
73
168
|
KnownDiskConfigurationType["Extend"] = "EXTEND";
|
|
74
169
|
KnownDiskConfigurationType["ADD"] = "ADD";
|
|
75
170
|
})(exports.KnownDiskConfigurationType || (exports.KnownDiskConfigurationType = {}));
|
|
171
|
+
/** Known values of {@link StorageWorkloadType} that the service accepts. */
|
|
172
|
+
exports.KnownStorageWorkloadType = void 0;
|
|
76
173
|
(function (KnownStorageWorkloadType) {
|
|
77
174
|
KnownStorageWorkloadType["General"] = "GENERAL";
|
|
78
175
|
KnownStorageWorkloadType["Oltp"] = "OLTP";
|
|
@@ -150,6 +247,109 @@ const PrivateIPAddress = {
|
|
|
150
247
|
}
|
|
151
248
|
}
|
|
152
249
|
};
|
|
250
|
+
const AgConfiguration = {
|
|
251
|
+
type: {
|
|
252
|
+
name: "Composite",
|
|
253
|
+
className: "AgConfiguration",
|
|
254
|
+
modelProperties: {
|
|
255
|
+
replicas: {
|
|
256
|
+
serializedName: "replicas",
|
|
257
|
+
readOnly: true,
|
|
258
|
+
type: {
|
|
259
|
+
name: "Sequence",
|
|
260
|
+
element: {
|
|
261
|
+
type: {
|
|
262
|
+
name: "Composite",
|
|
263
|
+
className: "AgReplica"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
const AgReplica = {
|
|
272
|
+
type: {
|
|
273
|
+
name: "Composite",
|
|
274
|
+
className: "AgReplica",
|
|
275
|
+
modelProperties: {
|
|
276
|
+
sqlVirtualMachineInstanceId: {
|
|
277
|
+
serializedName: "sqlVirtualMachineInstanceId",
|
|
278
|
+
type: {
|
|
279
|
+
name: "String"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
role: {
|
|
283
|
+
serializedName: "role",
|
|
284
|
+
type: {
|
|
285
|
+
name: "String"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
commit: {
|
|
289
|
+
serializedName: "commit",
|
|
290
|
+
type: {
|
|
291
|
+
name: "String"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
failover: {
|
|
295
|
+
serializedName: "failover",
|
|
296
|
+
type: {
|
|
297
|
+
name: "String"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
readableSecondary: {
|
|
301
|
+
serializedName: "readableSecondary",
|
|
302
|
+
type: {
|
|
303
|
+
name: "String"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
const SystemData = {
|
|
310
|
+
type: {
|
|
311
|
+
name: "Composite",
|
|
312
|
+
className: "SystemData",
|
|
313
|
+
modelProperties: {
|
|
314
|
+
createdBy: {
|
|
315
|
+
serializedName: "createdBy",
|
|
316
|
+
type: {
|
|
317
|
+
name: "String"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
createdByType: {
|
|
321
|
+
serializedName: "createdByType",
|
|
322
|
+
type: {
|
|
323
|
+
name: "String"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
createdAt: {
|
|
327
|
+
serializedName: "createdAt",
|
|
328
|
+
type: {
|
|
329
|
+
name: "DateTime"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
lastModifiedBy: {
|
|
333
|
+
serializedName: "lastModifiedBy",
|
|
334
|
+
type: {
|
|
335
|
+
name: "String"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
lastModifiedByType: {
|
|
339
|
+
serializedName: "lastModifiedByType",
|
|
340
|
+
type: {
|
|
341
|
+
name: "String"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
lastModifiedAt: {
|
|
345
|
+
serializedName: "lastModifiedAt",
|
|
346
|
+
type: {
|
|
347
|
+
name: "DateTime"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
};
|
|
153
353
|
const Resource = {
|
|
154
354
|
type: {
|
|
155
355
|
name: "Composite",
|
|
@@ -561,6 +761,12 @@ const AutoBackupSettings = {
|
|
|
561
761
|
name: "String"
|
|
562
762
|
}
|
|
563
763
|
},
|
|
764
|
+
storageContainerName: {
|
|
765
|
+
serializedName: "storageContainerName",
|
|
766
|
+
type: {
|
|
767
|
+
name: "String"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
564
770
|
storageAccessKey: {
|
|
565
771
|
serializedName: "storageAccessKey",
|
|
566
772
|
type: {
|
|
@@ -591,6 +797,17 @@ const AutoBackupSettings = {
|
|
|
591
797
|
name: "String"
|
|
592
798
|
}
|
|
593
799
|
},
|
|
800
|
+
daysOfWeek: {
|
|
801
|
+
serializedName: "daysOfWeek",
|
|
802
|
+
type: {
|
|
803
|
+
name: "Sequence",
|
|
804
|
+
element: {
|
|
805
|
+
type: {
|
|
806
|
+
name: "String"
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
},
|
|
594
811
|
fullBackupStartTime: {
|
|
595
812
|
serializedName: "fullBackupStartTime",
|
|
596
813
|
type: {
|
|
@@ -682,6 +899,13 @@ const ServerConfigurationsManagementSettings = {
|
|
|
682
899
|
name: "Composite",
|
|
683
900
|
className: "AdditionalFeaturesServerConfigurations"
|
|
684
901
|
}
|
|
902
|
+
},
|
|
903
|
+
sqlInstanceSettings: {
|
|
904
|
+
serializedName: "sqlInstanceSettings",
|
|
905
|
+
type: {
|
|
906
|
+
name: "Composite",
|
|
907
|
+
className: "SQLInstanceSettings"
|
|
908
|
+
}
|
|
685
909
|
}
|
|
686
910
|
}
|
|
687
911
|
}
|
|
@@ -772,6 +996,44 @@ const AdditionalFeaturesServerConfigurations = {
|
|
|
772
996
|
}
|
|
773
997
|
}
|
|
774
998
|
};
|
|
999
|
+
const SQLInstanceSettings = {
|
|
1000
|
+
type: {
|
|
1001
|
+
name: "Composite",
|
|
1002
|
+
className: "SQLInstanceSettings",
|
|
1003
|
+
modelProperties: {
|
|
1004
|
+
collation: {
|
|
1005
|
+
serializedName: "collation",
|
|
1006
|
+
type: {
|
|
1007
|
+
name: "String"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
maxDop: {
|
|
1011
|
+
serializedName: "maxDop",
|
|
1012
|
+
type: {
|
|
1013
|
+
name: "Number"
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
isOptimizeForAdHocWorkloadsEnabled: {
|
|
1017
|
+
serializedName: "isOptimizeForAdHocWorkloadsEnabled",
|
|
1018
|
+
type: {
|
|
1019
|
+
name: "Boolean"
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
minServerMemoryMB: {
|
|
1023
|
+
serializedName: "minServerMemoryMB",
|
|
1024
|
+
type: {
|
|
1025
|
+
name: "Number"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
maxServerMemoryMB: {
|
|
1029
|
+
serializedName: "maxServerMemoryMB",
|
|
1030
|
+
type: {
|
|
1031
|
+
name: "Number"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
775
1037
|
const StorageConfigurationSettings = {
|
|
776
1038
|
type: {
|
|
777
1039
|
name: "Composite",
|
|
@@ -795,7 +1057,13 @@ const StorageConfigurationSettings = {
|
|
|
795
1057
|
serializedName: "sqlTempDbSettings",
|
|
796
1058
|
type: {
|
|
797
1059
|
name: "Composite",
|
|
798
|
-
className: "
|
|
1060
|
+
className: "SQLTempDbSettings"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
sqlSystemDbOnDataDisk: {
|
|
1064
|
+
serializedName: "sqlSystemDbOnDataDisk",
|
|
1065
|
+
type: {
|
|
1066
|
+
name: "Boolean"
|
|
799
1067
|
}
|
|
800
1068
|
},
|
|
801
1069
|
diskConfigurationType: {
|
|
@@ -838,6 +1106,135 @@ const SQLStorageSettings = {
|
|
|
838
1106
|
}
|
|
839
1107
|
}
|
|
840
1108
|
};
|
|
1109
|
+
const SQLTempDbSettings = {
|
|
1110
|
+
type: {
|
|
1111
|
+
name: "Composite",
|
|
1112
|
+
className: "SQLTempDbSettings",
|
|
1113
|
+
modelProperties: {
|
|
1114
|
+
dataFileSize: {
|
|
1115
|
+
serializedName: "dataFileSize",
|
|
1116
|
+
type: {
|
|
1117
|
+
name: "Number"
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
dataGrowth: {
|
|
1121
|
+
serializedName: "dataGrowth",
|
|
1122
|
+
type: {
|
|
1123
|
+
name: "Number"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
logFileSize: {
|
|
1127
|
+
serializedName: "logFileSize",
|
|
1128
|
+
type: {
|
|
1129
|
+
name: "Number"
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
logGrowth: {
|
|
1133
|
+
serializedName: "logGrowth",
|
|
1134
|
+
type: {
|
|
1135
|
+
name: "Number"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
dataFileCount: {
|
|
1139
|
+
serializedName: "dataFileCount",
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "Number"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
luns: {
|
|
1145
|
+
serializedName: "luns",
|
|
1146
|
+
type: {
|
|
1147
|
+
name: "Sequence",
|
|
1148
|
+
element: {
|
|
1149
|
+
type: {
|
|
1150
|
+
name: "Number"
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
defaultFilePath: {
|
|
1156
|
+
serializedName: "defaultFilePath",
|
|
1157
|
+
type: {
|
|
1158
|
+
name: "String"
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
const AssessmentSettings = {
|
|
1165
|
+
type: {
|
|
1166
|
+
name: "Composite",
|
|
1167
|
+
className: "AssessmentSettings",
|
|
1168
|
+
modelProperties: {
|
|
1169
|
+
enable: {
|
|
1170
|
+
serializedName: "enable",
|
|
1171
|
+
type: {
|
|
1172
|
+
name: "Boolean"
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
runImmediately: {
|
|
1176
|
+
serializedName: "runImmediately",
|
|
1177
|
+
type: {
|
|
1178
|
+
name: "Boolean"
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
schedule: {
|
|
1182
|
+
serializedName: "schedule",
|
|
1183
|
+
type: {
|
|
1184
|
+
name: "Composite",
|
|
1185
|
+
className: "Schedule"
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
const Schedule = {
|
|
1192
|
+
type: {
|
|
1193
|
+
name: "Composite",
|
|
1194
|
+
className: "Schedule",
|
|
1195
|
+
modelProperties: {
|
|
1196
|
+
enable: {
|
|
1197
|
+
serializedName: "enable",
|
|
1198
|
+
type: {
|
|
1199
|
+
name: "Boolean"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
weeklyInterval: {
|
|
1203
|
+
serializedName: "weeklyInterval",
|
|
1204
|
+
type: {
|
|
1205
|
+
name: "Number"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
monthlyOccurrence: {
|
|
1209
|
+
serializedName: "monthlyOccurrence",
|
|
1210
|
+
type: {
|
|
1211
|
+
name: "Number"
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
dayOfWeek: {
|
|
1215
|
+
serializedName: "dayOfWeek",
|
|
1216
|
+
type: {
|
|
1217
|
+
name: "Enum",
|
|
1218
|
+
allowedValues: [
|
|
1219
|
+
"Monday",
|
|
1220
|
+
"Tuesday",
|
|
1221
|
+
"Wednesday",
|
|
1222
|
+
"Thursday",
|
|
1223
|
+
"Friday",
|
|
1224
|
+
"Saturday",
|
|
1225
|
+
"Sunday"
|
|
1226
|
+
]
|
|
1227
|
+
}
|
|
1228
|
+
},
|
|
1229
|
+
startTime: {
|
|
1230
|
+
serializedName: "startTime",
|
|
1231
|
+
type: {
|
|
1232
|
+
name: "String"
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
841
1238
|
const SqlVirtualMachineUpdate = {
|
|
842
1239
|
type: {
|
|
843
1240
|
name: "Composite",
|
|
@@ -883,7 +1280,13 @@ const AvailabilityGroupListener = {
|
|
|
883
1280
|
type: {
|
|
884
1281
|
name: "Composite",
|
|
885
1282
|
className: "AvailabilityGroupListener",
|
|
886
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), {
|
|
1283
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1284
|
+
serializedName: "systemData",
|
|
1285
|
+
type: {
|
|
1286
|
+
name: "Composite",
|
|
1287
|
+
className: "SystemData"
|
|
1288
|
+
}
|
|
1289
|
+
}, provisioningState: {
|
|
887
1290
|
serializedName: "properties.provisioningState",
|
|
888
1291
|
readOnly: true,
|
|
889
1292
|
type: {
|
|
@@ -915,6 +1318,12 @@ const AvailabilityGroupListener = {
|
|
|
915
1318
|
type: {
|
|
916
1319
|
name: "Number"
|
|
917
1320
|
}
|
|
1321
|
+
}, availabilityGroupConfiguration: {
|
|
1322
|
+
serializedName: "properties.availabilityGroupConfiguration",
|
|
1323
|
+
type: {
|
|
1324
|
+
name: "Composite",
|
|
1325
|
+
className: "AgConfiguration"
|
|
1326
|
+
}
|
|
918
1327
|
} })
|
|
919
1328
|
}
|
|
920
1329
|
};
|
|
@@ -922,7 +1331,13 @@ const SqlVirtualMachineGroup = {
|
|
|
922
1331
|
type: {
|
|
923
1332
|
name: "Composite",
|
|
924
1333
|
className: "SqlVirtualMachineGroup",
|
|
925
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), {
|
|
1334
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
|
|
1335
|
+
serializedName: "systemData",
|
|
1336
|
+
type: {
|
|
1337
|
+
name: "Composite",
|
|
1338
|
+
className: "SystemData"
|
|
1339
|
+
}
|
|
1340
|
+
}, provisioningState: {
|
|
926
1341
|
serializedName: "properties.provisioningState",
|
|
927
1342
|
readOnly: true,
|
|
928
1343
|
type: {
|
|
@@ -975,6 +1390,12 @@ const SqlVirtualMachine = {
|
|
|
975
1390
|
name: "Composite",
|
|
976
1391
|
className: "ResourceIdentity"
|
|
977
1392
|
}
|
|
1393
|
+
}, systemData: {
|
|
1394
|
+
serializedName: "systemData",
|
|
1395
|
+
type: {
|
|
1396
|
+
name: "Composite",
|
|
1397
|
+
className: "SystemData"
|
|
1398
|
+
}
|
|
978
1399
|
}, virtualMachineResourceId: {
|
|
979
1400
|
serializedName: "properties.virtualMachineResourceId",
|
|
980
1401
|
type: {
|
|
@@ -1047,6 +1468,12 @@ const SqlVirtualMachine = {
|
|
|
1047
1468
|
name: "Composite",
|
|
1048
1469
|
className: "StorageConfigurationSettings"
|
|
1049
1470
|
}
|
|
1471
|
+
}, assessmentSettings: {
|
|
1472
|
+
serializedName: "properties.assessmentSettings",
|
|
1473
|
+
type: {
|
|
1474
|
+
name: "Composite",
|
|
1475
|
+
className: "AssessmentSettings"
|
|
1476
|
+
}
|
|
1050
1477
|
} })
|
|
1051
1478
|
}
|
|
1052
1479
|
};
|
|
@@ -1055,6 +1482,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1055
1482
|
__proto__: null,
|
|
1056
1483
|
LoadBalancerConfiguration: LoadBalancerConfiguration,
|
|
1057
1484
|
PrivateIPAddress: PrivateIPAddress,
|
|
1485
|
+
AgConfiguration: AgConfiguration,
|
|
1486
|
+
AgReplica: AgReplica,
|
|
1487
|
+
SystemData: SystemData,
|
|
1058
1488
|
Resource: Resource,
|
|
1059
1489
|
AvailabilityGroupListenerListResult: AvailabilityGroupListenerListResult,
|
|
1060
1490
|
OperationListResult: OperationListResult,
|
|
@@ -1074,8 +1504,12 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1074
1504
|
SqlWorkloadTypeUpdateSettings: SqlWorkloadTypeUpdateSettings,
|
|
1075
1505
|
SqlStorageUpdateSettings: SqlStorageUpdateSettings,
|
|
1076
1506
|
AdditionalFeaturesServerConfigurations: AdditionalFeaturesServerConfigurations,
|
|
1507
|
+
SQLInstanceSettings: SQLInstanceSettings,
|
|
1077
1508
|
StorageConfigurationSettings: StorageConfigurationSettings,
|
|
1078
1509
|
SQLStorageSettings: SQLStorageSettings,
|
|
1510
|
+
SQLTempDbSettings: SQLTempDbSettings,
|
|
1511
|
+
AssessmentSettings: AssessmentSettings,
|
|
1512
|
+
Schedule: Schedule,
|
|
1079
1513
|
SqlVirtualMachineUpdate: SqlVirtualMachineUpdate,
|
|
1080
1514
|
ProxyResource: ProxyResource,
|
|
1081
1515
|
TrackedResource: TrackedResource,
|
|
@@ -1143,6 +1577,15 @@ const availabilityGroupListenerName = {
|
|
|
1143
1577
|
}
|
|
1144
1578
|
}
|
|
1145
1579
|
};
|
|
1580
|
+
const expand = {
|
|
1581
|
+
parameterPath: ["options", "expand"],
|
|
1582
|
+
mapper: {
|
|
1583
|
+
serializedName: "$expand",
|
|
1584
|
+
type: {
|
|
1585
|
+
name: "String"
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
};
|
|
1146
1589
|
const subscriptionId = {
|
|
1147
1590
|
parameterPath: "subscriptionId",
|
|
1148
1591
|
mapper: {
|
|
@@ -1156,7 +1599,7 @@ const subscriptionId = {
|
|
|
1156
1599
|
const apiVersion = {
|
|
1157
1600
|
parameterPath: "apiVersion",
|
|
1158
1601
|
mapper: {
|
|
1159
|
-
defaultValue: "
|
|
1602
|
+
defaultValue: "2021-11-01-preview",
|
|
1160
1603
|
isConstant: true,
|
|
1161
1604
|
serializedName: "api-version",
|
|
1162
1605
|
type: {
|
|
@@ -1208,15 +1651,6 @@ const sqlVirtualMachineName = {
|
|
|
1208
1651
|
}
|
|
1209
1652
|
}
|
|
1210
1653
|
};
|
|
1211
|
-
const expand = {
|
|
1212
|
-
parameterPath: ["options", "expand"],
|
|
1213
|
-
mapper: {
|
|
1214
|
-
serializedName: "$expand",
|
|
1215
|
-
type: {
|
|
1216
|
-
name: "String"
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
};
|
|
1220
1654
|
const parameters3 = {
|
|
1221
1655
|
parameterPath: "parameters",
|
|
1222
1656
|
mapper: SqlVirtualMachine
|
|
@@ -1336,7 +1770,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
1336
1770
|
sqlVirtualMachineGroupName,
|
|
1337
1771
|
availabilityGroupListenerName,
|
|
1338
1772
|
options
|
|
1339
|
-
}, getOperationSpec);
|
|
1773
|
+
}, getOperationSpec$2);
|
|
1340
1774
|
}
|
|
1341
1775
|
/**
|
|
1342
1776
|
* Creates or updates an availability group listener.
|
|
@@ -1377,11 +1811,13 @@ class AvailabilityGroupListenersImpl {
|
|
|
1377
1811
|
availabilityGroupListenerName,
|
|
1378
1812
|
parameters,
|
|
1379
1813
|
options
|
|
1380
|
-
}, createOrUpdateOperationSpec);
|
|
1381
|
-
|
|
1814
|
+
}, createOrUpdateOperationSpec$2);
|
|
1815
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1382
1816
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1383
1817
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1384
1818
|
});
|
|
1819
|
+
yield poller.poll();
|
|
1820
|
+
return poller;
|
|
1385
1821
|
});
|
|
1386
1822
|
}
|
|
1387
1823
|
/**
|
|
@@ -1436,11 +1872,13 @@ class AvailabilityGroupListenersImpl {
|
|
|
1436
1872
|
sqlVirtualMachineGroupName,
|
|
1437
1873
|
availabilityGroupListenerName,
|
|
1438
1874
|
options
|
|
1439
|
-
}, deleteOperationSpec);
|
|
1440
|
-
|
|
1875
|
+
}, deleteOperationSpec$2);
|
|
1876
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1441
1877
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1442
1878
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1443
1879
|
});
|
|
1880
|
+
yield poller.poll();
|
|
1881
|
+
return poller;
|
|
1444
1882
|
});
|
|
1445
1883
|
}
|
|
1446
1884
|
/**
|
|
@@ -1480,8 +1918,8 @@ class AvailabilityGroupListenersImpl {
|
|
|
1480
1918
|
}
|
|
1481
1919
|
}
|
|
1482
1920
|
// Operation Specifications
|
|
1483
|
-
const serializer =
|
|
1484
|
-
const getOperationSpec = {
|
|
1921
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1922
|
+
const getOperationSpec$2 = {
|
|
1485
1923
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
1486
1924
|
httpMethod: "GET",
|
|
1487
1925
|
responses: {
|
|
@@ -1490,7 +1928,7 @@ const getOperationSpec = {
|
|
|
1490
1928
|
},
|
|
1491
1929
|
default: {}
|
|
1492
1930
|
},
|
|
1493
|
-
queryParameters: [apiVersion],
|
|
1931
|
+
queryParameters: [expand, apiVersion],
|
|
1494
1932
|
urlParameters: [
|
|
1495
1933
|
$host,
|
|
1496
1934
|
resourceGroupName,
|
|
@@ -1499,9 +1937,9 @@ const getOperationSpec = {
|
|
|
1499
1937
|
subscriptionId
|
|
1500
1938
|
],
|
|
1501
1939
|
headerParameters: [accept],
|
|
1502
|
-
serializer
|
|
1940
|
+
serializer: serializer$3
|
|
1503
1941
|
};
|
|
1504
|
-
const createOrUpdateOperationSpec = {
|
|
1942
|
+
const createOrUpdateOperationSpec$2 = {
|
|
1505
1943
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
1506
1944
|
httpMethod: "PUT",
|
|
1507
1945
|
responses: {
|
|
@@ -1530,9 +1968,9 @@ const createOrUpdateOperationSpec = {
|
|
|
1530
1968
|
],
|
|
1531
1969
|
headerParameters: [accept, contentType],
|
|
1532
1970
|
mediaType: "json",
|
|
1533
|
-
serializer
|
|
1971
|
+
serializer: serializer$3
|
|
1534
1972
|
};
|
|
1535
|
-
const deleteOperationSpec = {
|
|
1973
|
+
const deleteOperationSpec$2 = {
|
|
1536
1974
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
1537
1975
|
httpMethod: "DELETE",
|
|
1538
1976
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
@@ -1544,7 +1982,7 @@ const deleteOperationSpec = {
|
|
|
1544
1982
|
availabilityGroupListenerName,
|
|
1545
1983
|
subscriptionId
|
|
1546
1984
|
],
|
|
1547
|
-
serializer
|
|
1985
|
+
serializer: serializer$3
|
|
1548
1986
|
};
|
|
1549
1987
|
const listByGroupOperationSpec = {
|
|
1550
1988
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners",
|
|
@@ -1563,7 +2001,7 @@ const listByGroupOperationSpec = {
|
|
|
1563
2001
|
subscriptionId
|
|
1564
2002
|
],
|
|
1565
2003
|
headerParameters: [accept],
|
|
1566
|
-
serializer
|
|
2004
|
+
serializer: serializer$3
|
|
1567
2005
|
};
|
|
1568
2006
|
const listByGroupNextOperationSpec = {
|
|
1569
2007
|
path: "{nextLink}",
|
|
@@ -1583,7 +2021,7 @@ const listByGroupNextOperationSpec = {
|
|
|
1583
2021
|
nextLink
|
|
1584
2022
|
],
|
|
1585
2023
|
headerParameters: [accept],
|
|
1586
|
-
serializer
|
|
2024
|
+
serializer: serializer$3
|
|
1587
2025
|
};
|
|
1588
2026
|
|
|
1589
2027
|
/*
|
|
@@ -1604,7 +2042,7 @@ class OperationsImpl {
|
|
|
1604
2042
|
this.client = client;
|
|
1605
2043
|
}
|
|
1606
2044
|
/**
|
|
1607
|
-
* Lists all of the available SQL Rest API operations.
|
|
2045
|
+
* Lists all of the available SQL Virtual Machine Rest API operations.
|
|
1608
2046
|
* @param options The options parameters.
|
|
1609
2047
|
*/
|
|
1610
2048
|
list(options) {
|
|
@@ -1652,11 +2090,11 @@ class OperationsImpl {
|
|
|
1652
2090
|
});
|
|
1653
2091
|
}
|
|
1654
2092
|
/**
|
|
1655
|
-
* Lists all of the available SQL Rest API operations.
|
|
2093
|
+
* Lists all of the available SQL Virtual Machine Rest API operations.
|
|
1656
2094
|
* @param options The options parameters.
|
|
1657
2095
|
*/
|
|
1658
2096
|
_list(options) {
|
|
1659
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2097
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
1660
2098
|
}
|
|
1661
2099
|
/**
|
|
1662
2100
|
* ListNext
|
|
@@ -1664,12 +2102,12 @@ class OperationsImpl {
|
|
|
1664
2102
|
* @param options The options parameters.
|
|
1665
2103
|
*/
|
|
1666
2104
|
_listNext(nextLink, options) {
|
|
1667
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2105
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
1668
2106
|
}
|
|
1669
2107
|
}
|
|
1670
2108
|
// Operation Specifications
|
|
1671
|
-
const serializer$
|
|
1672
|
-
const listOperationSpec = {
|
|
2109
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2110
|
+
const listOperationSpec$2 = {
|
|
1673
2111
|
path: "/providers/Microsoft.SqlVirtualMachine/operations",
|
|
1674
2112
|
httpMethod: "GET",
|
|
1675
2113
|
responses: {
|
|
@@ -1681,9 +2119,9 @@ const listOperationSpec = {
|
|
|
1681
2119
|
queryParameters: [apiVersion],
|
|
1682
2120
|
urlParameters: [$host],
|
|
1683
2121
|
headerParameters: [accept],
|
|
1684
|
-
serializer: serializer$
|
|
2122
|
+
serializer: serializer$2
|
|
1685
2123
|
};
|
|
1686
|
-
const listNextOperationSpec = {
|
|
2124
|
+
const listNextOperationSpec$2 = {
|
|
1687
2125
|
path: "{nextLink}",
|
|
1688
2126
|
httpMethod: "GET",
|
|
1689
2127
|
responses: {
|
|
@@ -1695,7 +2133,7 @@ const listNextOperationSpec = {
|
|
|
1695
2133
|
queryParameters: [apiVersion],
|
|
1696
2134
|
urlParameters: [$host, nextLink],
|
|
1697
2135
|
headerParameters: [accept],
|
|
1698
|
-
serializer: serializer$
|
|
2136
|
+
serializer: serializer$2
|
|
1699
2137
|
};
|
|
1700
2138
|
|
|
1701
2139
|
/*
|
|
@@ -1856,10 +2294,12 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
1856
2294
|
};
|
|
1857
2295
|
});
|
|
1858
2296
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
1859
|
-
|
|
2297
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1860
2298
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1861
2299
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1862
2300
|
});
|
|
2301
|
+
yield poller.poll();
|
|
2302
|
+
return poller;
|
|
1863
2303
|
});
|
|
1864
2304
|
}
|
|
1865
2305
|
/**
|
|
@@ -1908,10 +2348,12 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
1908
2348
|
};
|
|
1909
2349
|
});
|
|
1910
2350
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, options }, deleteOperationSpec$1);
|
|
1911
|
-
|
|
2351
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1912
2352
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1913
2353
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1914
2354
|
});
|
|
2355
|
+
yield poller.poll();
|
|
2356
|
+
return poller;
|
|
1915
2357
|
});
|
|
1916
2358
|
}
|
|
1917
2359
|
/**
|
|
@@ -1959,11 +2401,13 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
1959
2401
|
}
|
|
1960
2402
|
};
|
|
1961
2403
|
});
|
|
1962
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, parameters, options }, updateOperationSpec);
|
|
1963
|
-
|
|
2404
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, parameters, options }, updateOperationSpec$1);
|
|
2405
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1964
2406
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1965
2407
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1966
2408
|
});
|
|
2409
|
+
yield poller.poll();
|
|
2410
|
+
return poller;
|
|
1967
2411
|
});
|
|
1968
2412
|
}
|
|
1969
2413
|
/**
|
|
@@ -1987,7 +2431,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
1987
2431
|
* @param options The options parameters.
|
|
1988
2432
|
*/
|
|
1989
2433
|
_listByResourceGroup(resourceGroupName, options) {
|
|
1990
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2434
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
1991
2435
|
}
|
|
1992
2436
|
/**
|
|
1993
2437
|
* Gets all SQL virtual machine groups in a subscription.
|
|
@@ -2004,7 +2448,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2004
2448
|
* @param options The options parameters.
|
|
2005
2449
|
*/
|
|
2006
2450
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2007
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2451
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
2008
2452
|
}
|
|
2009
2453
|
/**
|
|
2010
2454
|
* ListNext
|
|
@@ -2016,7 +2460,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2016
2460
|
}
|
|
2017
2461
|
}
|
|
2018
2462
|
// Operation Specifications
|
|
2019
|
-
const serializer$
|
|
2463
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2020
2464
|
const getOperationSpec$1 = {
|
|
2021
2465
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
2022
2466
|
httpMethod: "GET",
|
|
@@ -2034,7 +2478,7 @@ const getOperationSpec$1 = {
|
|
|
2034
2478
|
subscriptionId
|
|
2035
2479
|
],
|
|
2036
2480
|
headerParameters: [accept],
|
|
2037
|
-
serializer: serializer$
|
|
2481
|
+
serializer: serializer$1
|
|
2038
2482
|
};
|
|
2039
2483
|
const createOrUpdateOperationSpec$1 = {
|
|
2040
2484
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
@@ -2064,7 +2508,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
2064
2508
|
],
|
|
2065
2509
|
headerParameters: [accept, contentType],
|
|
2066
2510
|
mediaType: "json",
|
|
2067
|
-
serializer: serializer$
|
|
2511
|
+
serializer: serializer$1
|
|
2068
2512
|
};
|
|
2069
2513
|
const deleteOperationSpec$1 = {
|
|
2070
2514
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
@@ -2077,9 +2521,9 @@ const deleteOperationSpec$1 = {
|
|
|
2077
2521
|
sqlVirtualMachineGroupName,
|
|
2078
2522
|
subscriptionId
|
|
2079
2523
|
],
|
|
2080
|
-
serializer: serializer$
|
|
2524
|
+
serializer: serializer$1
|
|
2081
2525
|
};
|
|
2082
|
-
const updateOperationSpec = {
|
|
2526
|
+
const updateOperationSpec$1 = {
|
|
2083
2527
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
2084
2528
|
httpMethod: "PATCH",
|
|
2085
2529
|
responses: {
|
|
@@ -2107,9 +2551,9 @@ const updateOperationSpec = {
|
|
|
2107
2551
|
],
|
|
2108
2552
|
headerParameters: [accept, contentType],
|
|
2109
2553
|
mediaType: "json",
|
|
2110
|
-
serializer: serializer$
|
|
2554
|
+
serializer: serializer$1
|
|
2111
2555
|
};
|
|
2112
|
-
const listByResourceGroupOperationSpec = {
|
|
2556
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
2113
2557
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
2114
2558
|
httpMethod: "GET",
|
|
2115
2559
|
responses: {
|
|
@@ -2125,7 +2569,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
2125
2569
|
subscriptionId
|
|
2126
2570
|
],
|
|
2127
2571
|
headerParameters: [accept],
|
|
2128
|
-
serializer: serializer$
|
|
2572
|
+
serializer: serializer$1
|
|
2129
2573
|
};
|
|
2130
2574
|
const listOperationSpec$1 = {
|
|
2131
2575
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
@@ -2139,9 +2583,9 @@ const listOperationSpec$1 = {
|
|
|
2139
2583
|
queryParameters: [apiVersion],
|
|
2140
2584
|
urlParameters: [$host, subscriptionId],
|
|
2141
2585
|
headerParameters: [accept],
|
|
2142
|
-
serializer: serializer$
|
|
2586
|
+
serializer: serializer$1
|
|
2143
2587
|
};
|
|
2144
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2588
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
2145
2589
|
path: "{nextLink}",
|
|
2146
2590
|
httpMethod: "GET",
|
|
2147
2591
|
responses: {
|
|
@@ -2158,7 +2602,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2158
2602
|
nextLink
|
|
2159
2603
|
],
|
|
2160
2604
|
headerParameters: [accept],
|
|
2161
|
-
serializer: serializer$
|
|
2605
|
+
serializer: serializer$1
|
|
2162
2606
|
};
|
|
2163
2607
|
const listNextOperationSpec$1 = {
|
|
2164
2608
|
path: "{nextLink}",
|
|
@@ -2176,7 +2620,7 @@ const listNextOperationSpec$1 = {
|
|
|
2176
2620
|
nextLink
|
|
2177
2621
|
],
|
|
2178
2622
|
headerParameters: [accept],
|
|
2179
|
-
serializer: serializer$
|
|
2623
|
+
serializer: serializer$1
|
|
2180
2624
|
};
|
|
2181
2625
|
|
|
2182
2626
|
/*
|
|
@@ -2360,7 +2804,60 @@ class SqlVirtualMachinesImpl {
|
|
|
2360
2804
|
* @param options The options parameters.
|
|
2361
2805
|
*/
|
|
2362
2806
|
_list(options) {
|
|
2363
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
2807
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2811
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2812
|
+
* value from the Azure Resource Manager API or the portal.
|
|
2813
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2814
|
+
* @param options The options parameters.
|
|
2815
|
+
*/
|
|
2816
|
+
beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2817
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2818
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2819
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2820
|
+
});
|
|
2821
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2822
|
+
var _a;
|
|
2823
|
+
let currentRawResponse = undefined;
|
|
2824
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2825
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2826
|
+
currentRawResponse = rawResponse;
|
|
2827
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2828
|
+
};
|
|
2829
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2830
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2831
|
+
return {
|
|
2832
|
+
flatResponse,
|
|
2833
|
+
rawResponse: {
|
|
2834
|
+
statusCode: currentRawResponse.status,
|
|
2835
|
+
body: currentRawResponse.parsedBody,
|
|
2836
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2837
|
+
}
|
|
2838
|
+
};
|
|
2839
|
+
});
|
|
2840
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, redeployOperationSpec);
|
|
2841
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2842
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2843
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2844
|
+
});
|
|
2845
|
+
yield poller.poll();
|
|
2846
|
+
return poller;
|
|
2847
|
+
});
|
|
2848
|
+
}
|
|
2849
|
+
/**
|
|
2850
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2851
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2852
|
+
* value from the Azure Resource Manager API or the portal.
|
|
2853
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2854
|
+
* @param options The options parameters.
|
|
2855
|
+
*/
|
|
2856
|
+
beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2857
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2858
|
+
const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
|
|
2859
|
+
return poller.pollUntilDone();
|
|
2860
|
+
});
|
|
2364
2861
|
}
|
|
2365
2862
|
/**
|
|
2366
2863
|
* Gets a SQL virtual machine.
|
|
@@ -2370,7 +2867,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2370
2867
|
* @param options The options parameters.
|
|
2371
2868
|
*/
|
|
2372
2869
|
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2373
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec
|
|
2870
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
2374
2871
|
}
|
|
2375
2872
|
/**
|
|
2376
2873
|
* Creates or updates a SQL virtual machine.
|
|
@@ -2404,11 +2901,13 @@ class SqlVirtualMachinesImpl {
|
|
|
2404
2901
|
}
|
|
2405
2902
|
};
|
|
2406
2903
|
});
|
|
2407
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec
|
|
2408
|
-
|
|
2904
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec);
|
|
2905
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2409
2906
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2410
2907
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2411
2908
|
});
|
|
2909
|
+
yield poller.poll();
|
|
2910
|
+
return poller;
|
|
2412
2911
|
});
|
|
2413
2912
|
}
|
|
2414
2913
|
/**
|
|
@@ -2456,11 +2955,13 @@ class SqlVirtualMachinesImpl {
|
|
|
2456
2955
|
}
|
|
2457
2956
|
};
|
|
2458
2957
|
});
|
|
2459
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec
|
|
2460
|
-
|
|
2958
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec);
|
|
2959
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2461
2960
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2462
2961
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2463
2962
|
});
|
|
2963
|
+
yield poller.poll();
|
|
2964
|
+
return poller;
|
|
2464
2965
|
});
|
|
2465
2966
|
}
|
|
2466
2967
|
/**
|
|
@@ -2508,11 +3009,13 @@ class SqlVirtualMachinesImpl {
|
|
|
2508
3009
|
}
|
|
2509
3010
|
};
|
|
2510
3011
|
});
|
|
2511
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec
|
|
2512
|
-
|
|
3012
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec);
|
|
3013
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2513
3014
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2514
3015
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2515
3016
|
});
|
|
3017
|
+
yield poller.poll();
|
|
3018
|
+
return poller;
|
|
2516
3019
|
});
|
|
2517
3020
|
}
|
|
2518
3021
|
/**
|
|
@@ -2536,7 +3039,60 @@ class SqlVirtualMachinesImpl {
|
|
|
2536
3039
|
* @param options The options parameters.
|
|
2537
3040
|
*/
|
|
2538
3041
|
_listByResourceGroup(resourceGroupName, options) {
|
|
2539
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec
|
|
3042
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3043
|
+
}
|
|
3044
|
+
/**
|
|
3045
|
+
* Starts Assessment on SQL virtual machine.
|
|
3046
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3047
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3048
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3049
|
+
* @param options The options parameters.
|
|
3050
|
+
*/
|
|
3051
|
+
beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3052
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3053
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3054
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3055
|
+
});
|
|
3056
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3057
|
+
var _a;
|
|
3058
|
+
let currentRawResponse = undefined;
|
|
3059
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3060
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3061
|
+
currentRawResponse = rawResponse;
|
|
3062
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3063
|
+
};
|
|
3064
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3065
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3066
|
+
return {
|
|
3067
|
+
flatResponse,
|
|
3068
|
+
rawResponse: {
|
|
3069
|
+
statusCode: currentRawResponse.status,
|
|
3070
|
+
body: currentRawResponse.parsedBody,
|
|
3071
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3072
|
+
}
|
|
3073
|
+
};
|
|
3074
|
+
});
|
|
3075
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, startAssessmentOperationSpec);
|
|
3076
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3077
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3078
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3079
|
+
});
|
|
3080
|
+
yield poller.poll();
|
|
3081
|
+
return poller;
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* Starts Assessment on SQL virtual machine.
|
|
3086
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3087
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3088
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3089
|
+
* @param options The options parameters.
|
|
3090
|
+
*/
|
|
3091
|
+
beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3092
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3093
|
+
const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
|
|
3094
|
+
return poller.pollUntilDone();
|
|
3095
|
+
});
|
|
2540
3096
|
}
|
|
2541
3097
|
/**
|
|
2542
3098
|
* ListBySqlVmGroupNext
|
|
@@ -2555,7 +3111,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2555
3111
|
* @param options The options parameters.
|
|
2556
3112
|
*/
|
|
2557
3113
|
_listNext(nextLink, options) {
|
|
2558
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
3114
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2559
3115
|
}
|
|
2560
3116
|
/**
|
|
2561
3117
|
* ListByResourceGroupNext
|
|
@@ -2565,11 +3121,11 @@ class SqlVirtualMachinesImpl {
|
|
|
2565
3121
|
* @param options The options parameters.
|
|
2566
3122
|
*/
|
|
2567
3123
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2568
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec
|
|
3124
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2569
3125
|
}
|
|
2570
3126
|
}
|
|
2571
3127
|
// Operation Specifications
|
|
2572
|
-
const serializer
|
|
3128
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2573
3129
|
const listBySqlVmGroupOperationSpec = {
|
|
2574
3130
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/sqlVirtualMachines",
|
|
2575
3131
|
httpMethod: "GET",
|
|
@@ -2587,9 +3143,9 @@ const listBySqlVmGroupOperationSpec = {
|
|
|
2587
3143
|
subscriptionId
|
|
2588
3144
|
],
|
|
2589
3145
|
headerParameters: [accept],
|
|
2590
|
-
serializer
|
|
3146
|
+
serializer
|
|
2591
3147
|
};
|
|
2592
|
-
const listOperationSpec
|
|
3148
|
+
const listOperationSpec = {
|
|
2593
3149
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
|
|
2594
3150
|
httpMethod: "GET",
|
|
2595
3151
|
responses: {
|
|
@@ -2601,9 +3157,22 @@ const listOperationSpec$2 = {
|
|
|
2601
3157
|
queryParameters: [apiVersion],
|
|
2602
3158
|
urlParameters: [$host, subscriptionId],
|
|
2603
3159
|
headerParameters: [accept],
|
|
2604
|
-
serializer
|
|
3160
|
+
serializer
|
|
2605
3161
|
};
|
|
2606
|
-
const
|
|
3162
|
+
const redeployOperationSpec = {
|
|
3163
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
3164
|
+
httpMethod: "POST",
|
|
3165
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3166
|
+
queryParameters: [apiVersion],
|
|
3167
|
+
urlParameters: [
|
|
3168
|
+
$host,
|
|
3169
|
+
resourceGroupName,
|
|
3170
|
+
subscriptionId,
|
|
3171
|
+
sqlVirtualMachineName
|
|
3172
|
+
],
|
|
3173
|
+
serializer
|
|
3174
|
+
};
|
|
3175
|
+
const getOperationSpec = {
|
|
2607
3176
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2608
3177
|
httpMethod: "GET",
|
|
2609
3178
|
responses: {
|
|
@@ -2612,7 +3181,7 @@ const getOperationSpec$2 = {
|
|
|
2612
3181
|
},
|
|
2613
3182
|
default: {}
|
|
2614
3183
|
},
|
|
2615
|
-
queryParameters: [
|
|
3184
|
+
queryParameters: [expand, apiVersion],
|
|
2616
3185
|
urlParameters: [
|
|
2617
3186
|
$host,
|
|
2618
3187
|
resourceGroupName,
|
|
@@ -2620,9 +3189,9 @@ const getOperationSpec$2 = {
|
|
|
2620
3189
|
sqlVirtualMachineName
|
|
2621
3190
|
],
|
|
2622
3191
|
headerParameters: [accept],
|
|
2623
|
-
serializer
|
|
3192
|
+
serializer
|
|
2624
3193
|
};
|
|
2625
|
-
const createOrUpdateOperationSpec
|
|
3194
|
+
const createOrUpdateOperationSpec = {
|
|
2626
3195
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2627
3196
|
httpMethod: "PUT",
|
|
2628
3197
|
responses: {
|
|
@@ -2650,9 +3219,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
2650
3219
|
],
|
|
2651
3220
|
headerParameters: [accept, contentType],
|
|
2652
3221
|
mediaType: "json",
|
|
2653
|
-
serializer
|
|
3222
|
+
serializer
|
|
2654
3223
|
};
|
|
2655
|
-
const deleteOperationSpec
|
|
3224
|
+
const deleteOperationSpec = {
|
|
2656
3225
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2657
3226
|
httpMethod: "DELETE",
|
|
2658
3227
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
@@ -2663,9 +3232,9 @@ const deleteOperationSpec$2 = {
|
|
|
2663
3232
|
subscriptionId,
|
|
2664
3233
|
sqlVirtualMachineName
|
|
2665
3234
|
],
|
|
2666
|
-
serializer
|
|
3235
|
+
serializer
|
|
2667
3236
|
};
|
|
2668
|
-
const updateOperationSpec
|
|
3237
|
+
const updateOperationSpec = {
|
|
2669
3238
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2670
3239
|
httpMethod: "PATCH",
|
|
2671
3240
|
responses: {
|
|
@@ -2693,9 +3262,9 @@ const updateOperationSpec$1 = {
|
|
|
2693
3262
|
],
|
|
2694
3263
|
headerParameters: [accept, contentType],
|
|
2695
3264
|
mediaType: "json",
|
|
2696
|
-
serializer
|
|
3265
|
+
serializer
|
|
2697
3266
|
};
|
|
2698
|
-
const listByResourceGroupOperationSpec
|
|
3267
|
+
const listByResourceGroupOperationSpec = {
|
|
2699
3268
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
|
|
2700
3269
|
httpMethod: "GET",
|
|
2701
3270
|
responses: {
|
|
@@ -2711,7 +3280,20 @@ const listByResourceGroupOperationSpec$1 = {
|
|
|
2711
3280
|
subscriptionId
|
|
2712
3281
|
],
|
|
2713
3282
|
headerParameters: [accept],
|
|
2714
|
-
serializer
|
|
3283
|
+
serializer
|
|
3284
|
+
};
|
|
3285
|
+
const startAssessmentOperationSpec = {
|
|
3286
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
3287
|
+
httpMethod: "POST",
|
|
3288
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3289
|
+
queryParameters: [apiVersion],
|
|
3290
|
+
urlParameters: [
|
|
3291
|
+
$host,
|
|
3292
|
+
resourceGroupName,
|
|
3293
|
+
subscriptionId,
|
|
3294
|
+
sqlVirtualMachineName
|
|
3295
|
+
],
|
|
3296
|
+
serializer
|
|
2715
3297
|
};
|
|
2716
3298
|
const listBySqlVmGroupNextOperationSpec = {
|
|
2717
3299
|
path: "{nextLink}",
|
|
@@ -2731,9 +3313,9 @@ const listBySqlVmGroupNextOperationSpec = {
|
|
|
2731
3313
|
nextLink
|
|
2732
3314
|
],
|
|
2733
3315
|
headerParameters: [accept],
|
|
2734
|
-
serializer
|
|
3316
|
+
serializer
|
|
2735
3317
|
};
|
|
2736
|
-
const listNextOperationSpec
|
|
3318
|
+
const listNextOperationSpec = {
|
|
2737
3319
|
path: "{nextLink}",
|
|
2738
3320
|
httpMethod: "GET",
|
|
2739
3321
|
responses: {
|
|
@@ -2749,9 +3331,9 @@ const listNextOperationSpec$2 = {
|
|
|
2749
3331
|
nextLink
|
|
2750
3332
|
],
|
|
2751
3333
|
headerParameters: [accept],
|
|
2752
|
-
serializer
|
|
3334
|
+
serializer
|
|
2753
3335
|
};
|
|
2754
|
-
const listByResourceGroupNextOperationSpec
|
|
3336
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2755
3337
|
path: "{nextLink}",
|
|
2756
3338
|
httpMethod: "GET",
|
|
2757
3339
|
responses: {
|
|
@@ -2768,7 +3350,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
2768
3350
|
nextLink
|
|
2769
3351
|
],
|
|
2770
3352
|
headerParameters: [accept],
|
|
2771
|
-
serializer
|
|
3353
|
+
serializer
|
|
2772
3354
|
};
|
|
2773
3355
|
|
|
2774
3356
|
/*
|
|
@@ -2778,7 +3360,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
2778
3360
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2779
3361
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2780
3362
|
*/
|
|
2781
|
-
class SqlVirtualMachineManagementClient extends
|
|
3363
|
+
class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceClient {
|
|
2782
3364
|
/**
|
|
2783
3365
|
* Initializes a new instance of the SqlVirtualMachineManagementClient class.
|
|
2784
3366
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -2786,6 +3368,7 @@ class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
|
|
|
2786
3368
|
* @param options The parameter options
|
|
2787
3369
|
*/
|
|
2788
3370
|
constructor(credentials, subscriptionId, options) {
|
|
3371
|
+
var _a, _b;
|
|
2789
3372
|
if (credentials === undefined) {
|
|
2790
3373
|
throw new Error("'credentials' cannot be null");
|
|
2791
3374
|
}
|
|
@@ -2800,7 +3383,7 @@ class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
|
|
|
2800
3383
|
requestContentType: "application/json; charset=utf-8",
|
|
2801
3384
|
credential: credentials
|
|
2802
3385
|
};
|
|
2803
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/
|
|
3386
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.4`;
|
|
2804
3387
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2805
3388
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2806
3389
|
: `${packageDetails}`;
|
|
@@ -2809,13 +3392,29 @@ class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
|
|
|
2809
3392
|
}
|
|
2810
3393
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2811
3394
|
userAgentPrefix
|
|
2812
|
-
}, baseUri: options.endpoint
|
|
3395
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2813
3396
|
super(optionsWithDefaults);
|
|
3397
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3398
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3399
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3400
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3401
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
3402
|
+
this.pipeline.removePolicy({
|
|
3403
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3404
|
+
});
|
|
3405
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3406
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
3407
|
+
challengeCallbacks: {
|
|
3408
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3409
|
+
}
|
|
3410
|
+
}));
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
2814
3413
|
// Parameter assignments
|
|
2815
3414
|
this.subscriptionId = subscriptionId;
|
|
2816
3415
|
// Assigning values to Constant parameters
|
|
2817
3416
|
this.$host = options.$host || "https://management.azure.com";
|
|
2818
|
-
this.apiVersion = options.apiVersion || "
|
|
3417
|
+
this.apiVersion = options.apiVersion || "2021-11-01-preview";
|
|
2819
3418
|
this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
|
|
2820
3419
|
this.operations = new OperationsImpl(this);
|
|
2821
3420
|
this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
|