@azure/arm-sqlvirtualmachine 5.0.0-beta.2 → 5.0.0-beta.3
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 +11 -0
- package/dist/index.js +641 -81
- 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.js +1 -1
- 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/sqlVirtualMachines.d.ts +33 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +129 -1
- 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.js +2 -2
- package/package.json +28 -10
- 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 +1 -1
- package/src/operations/operations.ts +2 -2
- package/src/operations/sqlVirtualMachines.ts +195 -1
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/sqlVirtualMachines.ts +51 -1
- package/src/sqlVirtualMachineManagementClient.ts +2 -2
- 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
|
@@ -6,6 +6,26 @@ var coreClient = require('@azure/core-client');
|
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var coreLro = require('@azure/core-lro');
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
|
|
9
29
|
/*
|
|
10
30
|
* Copyright (c) Microsoft Corporation.
|
|
11
31
|
* Licensed under the MIT License.
|
|
@@ -13,36 +33,88 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
33
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
34
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
35
|
*/
|
|
36
|
+
/** Known values of {@link Role} that the service accepts. */
|
|
37
|
+
exports.KnownRole = void 0;
|
|
38
|
+
(function (KnownRole) {
|
|
39
|
+
KnownRole["Primary"] = "PRIMARY";
|
|
40
|
+
KnownRole["Secondary"] = "SECONDARY";
|
|
41
|
+
})(exports.KnownRole || (exports.KnownRole = {}));
|
|
42
|
+
/** Known values of {@link Commit} that the service accepts. */
|
|
43
|
+
exports.KnownCommit = void 0;
|
|
44
|
+
(function (KnownCommit) {
|
|
45
|
+
KnownCommit["SynchronousCommit"] = "SYNCHRONOUS_COMMIT";
|
|
46
|
+
KnownCommit["AsynchronousCommit"] = "ASYNCHRONOUS_COMMIT";
|
|
47
|
+
})(exports.KnownCommit || (exports.KnownCommit = {}));
|
|
48
|
+
/** Known values of {@link Failover} that the service accepts. */
|
|
49
|
+
exports.KnownFailover = void 0;
|
|
50
|
+
(function (KnownFailover) {
|
|
51
|
+
KnownFailover["Automatic"] = "AUTOMATIC";
|
|
52
|
+
KnownFailover["Manual"] = "MANUAL";
|
|
53
|
+
})(exports.KnownFailover || (exports.KnownFailover = {}));
|
|
54
|
+
/** Known values of {@link ReadableSecondary} that the service accepts. */
|
|
55
|
+
exports.KnownReadableSecondary = void 0;
|
|
56
|
+
(function (KnownReadableSecondary) {
|
|
57
|
+
KnownReadableSecondary["NO"] = "NO";
|
|
58
|
+
KnownReadableSecondary["ALL"] = "ALL";
|
|
59
|
+
KnownReadableSecondary["ReadOnly"] = "READ_ONLY";
|
|
60
|
+
})(exports.KnownReadableSecondary || (exports.KnownReadableSecondary = {}));
|
|
61
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
62
|
+
exports.KnownCreatedByType = void 0;
|
|
63
|
+
(function (KnownCreatedByType) {
|
|
64
|
+
KnownCreatedByType["User"] = "User";
|
|
65
|
+
KnownCreatedByType["Application"] = "Application";
|
|
66
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
67
|
+
KnownCreatedByType["Key"] = "Key";
|
|
68
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
69
|
+
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
70
|
+
exports.KnownOperationOrigin = void 0;
|
|
16
71
|
(function (KnownOperationOrigin) {
|
|
17
72
|
KnownOperationOrigin["User"] = "user";
|
|
18
73
|
KnownOperationOrigin["System"] = "system";
|
|
19
74
|
})(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
|
|
75
|
+
/** Known values of {@link SqlVmGroupImageSku} that the service accepts. */
|
|
76
|
+
exports.KnownSqlVmGroupImageSku = void 0;
|
|
20
77
|
(function (KnownSqlVmGroupImageSku) {
|
|
21
78
|
KnownSqlVmGroupImageSku["Developer"] = "Developer";
|
|
22
79
|
KnownSqlVmGroupImageSku["Enterprise"] = "Enterprise";
|
|
23
80
|
})(exports.KnownSqlVmGroupImageSku || (exports.KnownSqlVmGroupImageSku = {}));
|
|
81
|
+
/** Known values of {@link ScaleType} that the service accepts. */
|
|
82
|
+
exports.KnownScaleType = void 0;
|
|
24
83
|
(function (KnownScaleType) {
|
|
25
84
|
KnownScaleType["HA"] = "HA";
|
|
26
85
|
})(exports.KnownScaleType || (exports.KnownScaleType = {}));
|
|
86
|
+
/** Known values of {@link ClusterManagerType} that the service accepts. */
|
|
87
|
+
exports.KnownClusterManagerType = void 0;
|
|
27
88
|
(function (KnownClusterManagerType) {
|
|
28
89
|
KnownClusterManagerType["Wsfc"] = "WSFC";
|
|
29
90
|
})(exports.KnownClusterManagerType || (exports.KnownClusterManagerType = {}));
|
|
91
|
+
/** Known values of {@link ClusterConfiguration} that the service accepts. */
|
|
92
|
+
exports.KnownClusterConfiguration = void 0;
|
|
30
93
|
(function (KnownClusterConfiguration) {
|
|
31
94
|
KnownClusterConfiguration["Domainful"] = "Domainful";
|
|
32
95
|
})(exports.KnownClusterConfiguration || (exports.KnownClusterConfiguration = {}));
|
|
96
|
+
/** Known values of {@link IdentityType} that the service accepts. */
|
|
97
|
+
exports.KnownIdentityType = void 0;
|
|
33
98
|
(function (KnownIdentityType) {
|
|
99
|
+
KnownIdentityType["None"] = "None";
|
|
34
100
|
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
35
101
|
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
102
|
+
/** Known values of {@link SqlServerLicenseType} that the service accepts. */
|
|
103
|
+
exports.KnownSqlServerLicenseType = void 0;
|
|
36
104
|
(function (KnownSqlServerLicenseType) {
|
|
37
105
|
KnownSqlServerLicenseType["Payg"] = "PAYG";
|
|
38
106
|
KnownSqlServerLicenseType["Ahub"] = "AHUB";
|
|
39
107
|
KnownSqlServerLicenseType["DR"] = "DR";
|
|
40
108
|
})(exports.KnownSqlServerLicenseType || (exports.KnownSqlServerLicenseType = {}));
|
|
109
|
+
/** Known values of {@link SqlManagementMode} that the service accepts. */
|
|
110
|
+
exports.KnownSqlManagementMode = void 0;
|
|
41
111
|
(function (KnownSqlManagementMode) {
|
|
42
112
|
KnownSqlManagementMode["Full"] = "Full";
|
|
43
113
|
KnownSqlManagementMode["LightWeight"] = "LightWeight";
|
|
44
114
|
KnownSqlManagementMode["NoAgent"] = "NoAgent";
|
|
45
115
|
})(exports.KnownSqlManagementMode || (exports.KnownSqlManagementMode = {}));
|
|
116
|
+
/** Known values of {@link SqlImageSku} that the service accepts. */
|
|
117
|
+
exports.KnownSqlImageSku = void 0;
|
|
46
118
|
(function (KnownSqlImageSku) {
|
|
47
119
|
KnownSqlImageSku["Developer"] = "Developer";
|
|
48
120
|
KnownSqlImageSku["Express"] = "Express";
|
|
@@ -50,29 +122,52 @@ var coreLro = require('@azure/core-lro');
|
|
|
50
122
|
KnownSqlImageSku["Enterprise"] = "Enterprise";
|
|
51
123
|
KnownSqlImageSku["Web"] = "Web";
|
|
52
124
|
})(exports.KnownSqlImageSku || (exports.KnownSqlImageSku = {}));
|
|
125
|
+
/** Known values of {@link BackupScheduleType} that the service accepts. */
|
|
126
|
+
exports.KnownBackupScheduleType = void 0;
|
|
53
127
|
(function (KnownBackupScheduleType) {
|
|
54
128
|
KnownBackupScheduleType["Manual"] = "Manual";
|
|
55
129
|
KnownBackupScheduleType["Automated"] = "Automated";
|
|
56
130
|
})(exports.KnownBackupScheduleType || (exports.KnownBackupScheduleType = {}));
|
|
131
|
+
/** Known values of {@link FullBackupFrequencyType} that the service accepts. */
|
|
132
|
+
exports.KnownFullBackupFrequencyType = void 0;
|
|
57
133
|
(function (KnownFullBackupFrequencyType) {
|
|
58
134
|
KnownFullBackupFrequencyType["Daily"] = "Daily";
|
|
59
135
|
KnownFullBackupFrequencyType["Weekly"] = "Weekly";
|
|
60
136
|
})(exports.KnownFullBackupFrequencyType || (exports.KnownFullBackupFrequencyType = {}));
|
|
137
|
+
/** Known values of {@link DaysOfWeek} that the service accepts. */
|
|
138
|
+
exports.KnownDaysOfWeek = void 0;
|
|
139
|
+
(function (KnownDaysOfWeek) {
|
|
140
|
+
KnownDaysOfWeek["Monday"] = "Monday";
|
|
141
|
+
KnownDaysOfWeek["Tuesday"] = "Tuesday";
|
|
142
|
+
KnownDaysOfWeek["Wednesday"] = "Wednesday";
|
|
143
|
+
KnownDaysOfWeek["Thursday"] = "Thursday";
|
|
144
|
+
KnownDaysOfWeek["Friday"] = "Friday";
|
|
145
|
+
KnownDaysOfWeek["Saturday"] = "Saturday";
|
|
146
|
+
KnownDaysOfWeek["Sunday"] = "Sunday";
|
|
147
|
+
})(exports.KnownDaysOfWeek || (exports.KnownDaysOfWeek = {}));
|
|
148
|
+
/** Known values of {@link ConnectivityType} that the service accepts. */
|
|
149
|
+
exports.KnownConnectivityType = void 0;
|
|
61
150
|
(function (KnownConnectivityType) {
|
|
62
151
|
KnownConnectivityType["Local"] = "LOCAL";
|
|
63
152
|
KnownConnectivityType["Private"] = "PRIVATE";
|
|
64
153
|
KnownConnectivityType["Public"] = "PUBLIC";
|
|
65
154
|
})(exports.KnownConnectivityType || (exports.KnownConnectivityType = {}));
|
|
155
|
+
/** Known values of {@link SqlWorkloadType} that the service accepts. */
|
|
156
|
+
exports.KnownSqlWorkloadType = void 0;
|
|
66
157
|
(function (KnownSqlWorkloadType) {
|
|
67
158
|
KnownSqlWorkloadType["General"] = "GENERAL";
|
|
68
159
|
KnownSqlWorkloadType["Oltp"] = "OLTP";
|
|
69
160
|
KnownSqlWorkloadType["DW"] = "DW";
|
|
70
161
|
})(exports.KnownSqlWorkloadType || (exports.KnownSqlWorkloadType = {}));
|
|
162
|
+
/** Known values of {@link DiskConfigurationType} that the service accepts. */
|
|
163
|
+
exports.KnownDiskConfigurationType = void 0;
|
|
71
164
|
(function (KnownDiskConfigurationType) {
|
|
72
165
|
KnownDiskConfigurationType["NEW"] = "NEW";
|
|
73
166
|
KnownDiskConfigurationType["Extend"] = "EXTEND";
|
|
74
167
|
KnownDiskConfigurationType["ADD"] = "ADD";
|
|
75
168
|
})(exports.KnownDiskConfigurationType || (exports.KnownDiskConfigurationType = {}));
|
|
169
|
+
/** Known values of {@link StorageWorkloadType} that the service accepts. */
|
|
170
|
+
exports.KnownStorageWorkloadType = void 0;
|
|
76
171
|
(function (KnownStorageWorkloadType) {
|
|
77
172
|
KnownStorageWorkloadType["General"] = "GENERAL";
|
|
78
173
|
KnownStorageWorkloadType["Oltp"] = "OLTP";
|
|
@@ -150,6 +245,109 @@ const PrivateIPAddress = {
|
|
|
150
245
|
}
|
|
151
246
|
}
|
|
152
247
|
};
|
|
248
|
+
const AgConfiguration = {
|
|
249
|
+
type: {
|
|
250
|
+
name: "Composite",
|
|
251
|
+
className: "AgConfiguration",
|
|
252
|
+
modelProperties: {
|
|
253
|
+
replicas: {
|
|
254
|
+
serializedName: "replicas",
|
|
255
|
+
readOnly: true,
|
|
256
|
+
type: {
|
|
257
|
+
name: "Sequence",
|
|
258
|
+
element: {
|
|
259
|
+
type: {
|
|
260
|
+
name: "Composite",
|
|
261
|
+
className: "AgReplica"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
const AgReplica = {
|
|
270
|
+
type: {
|
|
271
|
+
name: "Composite",
|
|
272
|
+
className: "AgReplica",
|
|
273
|
+
modelProperties: {
|
|
274
|
+
sqlVirtualMachineInstanceId: {
|
|
275
|
+
serializedName: "sqlVirtualMachineInstanceId",
|
|
276
|
+
type: {
|
|
277
|
+
name: "String"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
role: {
|
|
281
|
+
serializedName: "role",
|
|
282
|
+
type: {
|
|
283
|
+
name: "String"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
commit: {
|
|
287
|
+
serializedName: "commit",
|
|
288
|
+
type: {
|
|
289
|
+
name: "String"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
failover: {
|
|
293
|
+
serializedName: "failover",
|
|
294
|
+
type: {
|
|
295
|
+
name: "String"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
readableSecondary: {
|
|
299
|
+
serializedName: "readableSecondary",
|
|
300
|
+
type: {
|
|
301
|
+
name: "String"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
const SystemData = {
|
|
308
|
+
type: {
|
|
309
|
+
name: "Composite",
|
|
310
|
+
className: "SystemData",
|
|
311
|
+
modelProperties: {
|
|
312
|
+
createdBy: {
|
|
313
|
+
serializedName: "createdBy",
|
|
314
|
+
type: {
|
|
315
|
+
name: "String"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
createdByType: {
|
|
319
|
+
serializedName: "createdByType",
|
|
320
|
+
type: {
|
|
321
|
+
name: "String"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
createdAt: {
|
|
325
|
+
serializedName: "createdAt",
|
|
326
|
+
type: {
|
|
327
|
+
name: "DateTime"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
lastModifiedBy: {
|
|
331
|
+
serializedName: "lastModifiedBy",
|
|
332
|
+
type: {
|
|
333
|
+
name: "String"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
lastModifiedByType: {
|
|
337
|
+
serializedName: "lastModifiedByType",
|
|
338
|
+
type: {
|
|
339
|
+
name: "String"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
lastModifiedAt: {
|
|
343
|
+
serializedName: "lastModifiedAt",
|
|
344
|
+
type: {
|
|
345
|
+
name: "DateTime"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
};
|
|
153
351
|
const Resource = {
|
|
154
352
|
type: {
|
|
155
353
|
name: "Composite",
|
|
@@ -561,6 +759,12 @@ const AutoBackupSettings = {
|
|
|
561
759
|
name: "String"
|
|
562
760
|
}
|
|
563
761
|
},
|
|
762
|
+
storageContainerName: {
|
|
763
|
+
serializedName: "storageContainerName",
|
|
764
|
+
type: {
|
|
765
|
+
name: "String"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
564
768
|
storageAccessKey: {
|
|
565
769
|
serializedName: "storageAccessKey",
|
|
566
770
|
type: {
|
|
@@ -591,6 +795,17 @@ const AutoBackupSettings = {
|
|
|
591
795
|
name: "String"
|
|
592
796
|
}
|
|
593
797
|
},
|
|
798
|
+
daysOfWeek: {
|
|
799
|
+
serializedName: "daysOfWeek",
|
|
800
|
+
type: {
|
|
801
|
+
name: "Sequence",
|
|
802
|
+
element: {
|
|
803
|
+
type: {
|
|
804
|
+
name: "String"
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
},
|
|
594
809
|
fullBackupStartTime: {
|
|
595
810
|
serializedName: "fullBackupStartTime",
|
|
596
811
|
type: {
|
|
@@ -682,6 +897,13 @@ const ServerConfigurationsManagementSettings = {
|
|
|
682
897
|
name: "Composite",
|
|
683
898
|
className: "AdditionalFeaturesServerConfigurations"
|
|
684
899
|
}
|
|
900
|
+
},
|
|
901
|
+
sqlInstanceSettings: {
|
|
902
|
+
serializedName: "sqlInstanceSettings",
|
|
903
|
+
type: {
|
|
904
|
+
name: "Composite",
|
|
905
|
+
className: "SQLInstanceSettings"
|
|
906
|
+
}
|
|
685
907
|
}
|
|
686
908
|
}
|
|
687
909
|
}
|
|
@@ -772,6 +994,44 @@ const AdditionalFeaturesServerConfigurations = {
|
|
|
772
994
|
}
|
|
773
995
|
}
|
|
774
996
|
};
|
|
997
|
+
const SQLInstanceSettings = {
|
|
998
|
+
type: {
|
|
999
|
+
name: "Composite",
|
|
1000
|
+
className: "SQLInstanceSettings",
|
|
1001
|
+
modelProperties: {
|
|
1002
|
+
collation: {
|
|
1003
|
+
serializedName: "collation",
|
|
1004
|
+
type: {
|
|
1005
|
+
name: "String"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
maxDop: {
|
|
1009
|
+
serializedName: "maxDop",
|
|
1010
|
+
type: {
|
|
1011
|
+
name: "Number"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
isOptimizeForAdHocWorkloadsEnabled: {
|
|
1015
|
+
serializedName: "isOptimizeForAdHocWorkloadsEnabled",
|
|
1016
|
+
type: {
|
|
1017
|
+
name: "Boolean"
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
minServerMemoryMB: {
|
|
1021
|
+
serializedName: "minServerMemoryMB",
|
|
1022
|
+
type: {
|
|
1023
|
+
name: "Number"
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
maxServerMemoryMB: {
|
|
1027
|
+
serializedName: "maxServerMemoryMB",
|
|
1028
|
+
type: {
|
|
1029
|
+
name: "Number"
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
775
1035
|
const StorageConfigurationSettings = {
|
|
776
1036
|
type: {
|
|
777
1037
|
name: "Composite",
|
|
@@ -795,7 +1055,13 @@ const StorageConfigurationSettings = {
|
|
|
795
1055
|
serializedName: "sqlTempDbSettings",
|
|
796
1056
|
type: {
|
|
797
1057
|
name: "Composite",
|
|
798
|
-
className: "
|
|
1058
|
+
className: "SQLTempDbSettings"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
sqlSystemDbOnDataDisk: {
|
|
1062
|
+
serializedName: "sqlSystemDbOnDataDisk",
|
|
1063
|
+
type: {
|
|
1064
|
+
name: "Boolean"
|
|
799
1065
|
}
|
|
800
1066
|
},
|
|
801
1067
|
diskConfigurationType: {
|
|
@@ -838,6 +1104,135 @@ const SQLStorageSettings = {
|
|
|
838
1104
|
}
|
|
839
1105
|
}
|
|
840
1106
|
};
|
|
1107
|
+
const SQLTempDbSettings = {
|
|
1108
|
+
type: {
|
|
1109
|
+
name: "Composite",
|
|
1110
|
+
className: "SQLTempDbSettings",
|
|
1111
|
+
modelProperties: {
|
|
1112
|
+
dataFileSize: {
|
|
1113
|
+
serializedName: "dataFileSize",
|
|
1114
|
+
type: {
|
|
1115
|
+
name: "Number"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
dataGrowth: {
|
|
1119
|
+
serializedName: "dataGrowth",
|
|
1120
|
+
type: {
|
|
1121
|
+
name: "Number"
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
logFileSize: {
|
|
1125
|
+
serializedName: "logFileSize",
|
|
1126
|
+
type: {
|
|
1127
|
+
name: "Number"
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
logGrowth: {
|
|
1131
|
+
serializedName: "logGrowth",
|
|
1132
|
+
type: {
|
|
1133
|
+
name: "Number"
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
dataFileCount: {
|
|
1137
|
+
serializedName: "dataFileCount",
|
|
1138
|
+
type: {
|
|
1139
|
+
name: "Number"
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
luns: {
|
|
1143
|
+
serializedName: "luns",
|
|
1144
|
+
type: {
|
|
1145
|
+
name: "Sequence",
|
|
1146
|
+
element: {
|
|
1147
|
+
type: {
|
|
1148
|
+
name: "Number"
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
defaultFilePath: {
|
|
1154
|
+
serializedName: "defaultFilePath",
|
|
1155
|
+
type: {
|
|
1156
|
+
name: "String"
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
};
|
|
1162
|
+
const AssessmentSettings = {
|
|
1163
|
+
type: {
|
|
1164
|
+
name: "Composite",
|
|
1165
|
+
className: "AssessmentSettings",
|
|
1166
|
+
modelProperties: {
|
|
1167
|
+
enable: {
|
|
1168
|
+
serializedName: "enable",
|
|
1169
|
+
type: {
|
|
1170
|
+
name: "Boolean"
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
1173
|
+
runImmediately: {
|
|
1174
|
+
serializedName: "runImmediately",
|
|
1175
|
+
type: {
|
|
1176
|
+
name: "Boolean"
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
schedule: {
|
|
1180
|
+
serializedName: "schedule",
|
|
1181
|
+
type: {
|
|
1182
|
+
name: "Composite",
|
|
1183
|
+
className: "Schedule"
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
const Schedule = {
|
|
1190
|
+
type: {
|
|
1191
|
+
name: "Composite",
|
|
1192
|
+
className: "Schedule",
|
|
1193
|
+
modelProperties: {
|
|
1194
|
+
enable: {
|
|
1195
|
+
serializedName: "enable",
|
|
1196
|
+
type: {
|
|
1197
|
+
name: "Boolean"
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
weeklyInterval: {
|
|
1201
|
+
serializedName: "weeklyInterval",
|
|
1202
|
+
type: {
|
|
1203
|
+
name: "Number"
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
monthlyOccurrence: {
|
|
1207
|
+
serializedName: "monthlyOccurrence",
|
|
1208
|
+
type: {
|
|
1209
|
+
name: "Number"
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
dayOfWeek: {
|
|
1213
|
+
serializedName: "dayOfWeek",
|
|
1214
|
+
type: {
|
|
1215
|
+
name: "Enum",
|
|
1216
|
+
allowedValues: [
|
|
1217
|
+
"Monday",
|
|
1218
|
+
"Tuesday",
|
|
1219
|
+
"Wednesday",
|
|
1220
|
+
"Thursday",
|
|
1221
|
+
"Friday",
|
|
1222
|
+
"Saturday",
|
|
1223
|
+
"Sunday"
|
|
1224
|
+
]
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
startTime: {
|
|
1228
|
+
serializedName: "startTime",
|
|
1229
|
+
type: {
|
|
1230
|
+
name: "String"
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
841
1236
|
const SqlVirtualMachineUpdate = {
|
|
842
1237
|
type: {
|
|
843
1238
|
name: "Composite",
|
|
@@ -883,7 +1278,13 @@ const AvailabilityGroupListener = {
|
|
|
883
1278
|
type: {
|
|
884
1279
|
name: "Composite",
|
|
885
1280
|
className: "AvailabilityGroupListener",
|
|
886
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), {
|
|
1281
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1282
|
+
serializedName: "systemData",
|
|
1283
|
+
type: {
|
|
1284
|
+
name: "Composite",
|
|
1285
|
+
className: "SystemData"
|
|
1286
|
+
}
|
|
1287
|
+
}, provisioningState: {
|
|
887
1288
|
serializedName: "properties.provisioningState",
|
|
888
1289
|
readOnly: true,
|
|
889
1290
|
type: {
|
|
@@ -915,6 +1316,12 @@ const AvailabilityGroupListener = {
|
|
|
915
1316
|
type: {
|
|
916
1317
|
name: "Number"
|
|
917
1318
|
}
|
|
1319
|
+
}, availabilityGroupConfiguration: {
|
|
1320
|
+
serializedName: "properties.availabilityGroupConfiguration",
|
|
1321
|
+
type: {
|
|
1322
|
+
name: "Composite",
|
|
1323
|
+
className: "AgConfiguration"
|
|
1324
|
+
}
|
|
918
1325
|
} })
|
|
919
1326
|
}
|
|
920
1327
|
};
|
|
@@ -922,7 +1329,13 @@ const SqlVirtualMachineGroup = {
|
|
|
922
1329
|
type: {
|
|
923
1330
|
name: "Composite",
|
|
924
1331
|
className: "SqlVirtualMachineGroup",
|
|
925
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), {
|
|
1332
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
|
|
1333
|
+
serializedName: "systemData",
|
|
1334
|
+
type: {
|
|
1335
|
+
name: "Composite",
|
|
1336
|
+
className: "SystemData"
|
|
1337
|
+
}
|
|
1338
|
+
}, provisioningState: {
|
|
926
1339
|
serializedName: "properties.provisioningState",
|
|
927
1340
|
readOnly: true,
|
|
928
1341
|
type: {
|
|
@@ -975,6 +1388,12 @@ const SqlVirtualMachine = {
|
|
|
975
1388
|
name: "Composite",
|
|
976
1389
|
className: "ResourceIdentity"
|
|
977
1390
|
}
|
|
1391
|
+
}, systemData: {
|
|
1392
|
+
serializedName: "systemData",
|
|
1393
|
+
type: {
|
|
1394
|
+
name: "Composite",
|
|
1395
|
+
className: "SystemData"
|
|
1396
|
+
}
|
|
978
1397
|
}, virtualMachineResourceId: {
|
|
979
1398
|
serializedName: "properties.virtualMachineResourceId",
|
|
980
1399
|
type: {
|
|
@@ -1047,6 +1466,12 @@ const SqlVirtualMachine = {
|
|
|
1047
1466
|
name: "Composite",
|
|
1048
1467
|
className: "StorageConfigurationSettings"
|
|
1049
1468
|
}
|
|
1469
|
+
}, assessmentSettings: {
|
|
1470
|
+
serializedName: "properties.assessmentSettings",
|
|
1471
|
+
type: {
|
|
1472
|
+
name: "Composite",
|
|
1473
|
+
className: "AssessmentSettings"
|
|
1474
|
+
}
|
|
1050
1475
|
} })
|
|
1051
1476
|
}
|
|
1052
1477
|
};
|
|
@@ -1055,6 +1480,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1055
1480
|
__proto__: null,
|
|
1056
1481
|
LoadBalancerConfiguration: LoadBalancerConfiguration,
|
|
1057
1482
|
PrivateIPAddress: PrivateIPAddress,
|
|
1483
|
+
AgConfiguration: AgConfiguration,
|
|
1484
|
+
AgReplica: AgReplica,
|
|
1485
|
+
SystemData: SystemData,
|
|
1058
1486
|
Resource: Resource,
|
|
1059
1487
|
AvailabilityGroupListenerListResult: AvailabilityGroupListenerListResult,
|
|
1060
1488
|
OperationListResult: OperationListResult,
|
|
@@ -1074,8 +1502,12 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1074
1502
|
SqlWorkloadTypeUpdateSettings: SqlWorkloadTypeUpdateSettings,
|
|
1075
1503
|
SqlStorageUpdateSettings: SqlStorageUpdateSettings,
|
|
1076
1504
|
AdditionalFeaturesServerConfigurations: AdditionalFeaturesServerConfigurations,
|
|
1505
|
+
SQLInstanceSettings: SQLInstanceSettings,
|
|
1077
1506
|
StorageConfigurationSettings: StorageConfigurationSettings,
|
|
1078
1507
|
SQLStorageSettings: SQLStorageSettings,
|
|
1508
|
+
SQLTempDbSettings: SQLTempDbSettings,
|
|
1509
|
+
AssessmentSettings: AssessmentSettings,
|
|
1510
|
+
Schedule: Schedule,
|
|
1079
1511
|
SqlVirtualMachineUpdate: SqlVirtualMachineUpdate,
|
|
1080
1512
|
ProxyResource: ProxyResource,
|
|
1081
1513
|
TrackedResource: TrackedResource,
|
|
@@ -1143,6 +1575,15 @@ const availabilityGroupListenerName = {
|
|
|
1143
1575
|
}
|
|
1144
1576
|
}
|
|
1145
1577
|
};
|
|
1578
|
+
const expand = {
|
|
1579
|
+
parameterPath: ["options", "expand"],
|
|
1580
|
+
mapper: {
|
|
1581
|
+
serializedName: "$expand",
|
|
1582
|
+
type: {
|
|
1583
|
+
name: "String"
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
};
|
|
1146
1587
|
const subscriptionId = {
|
|
1147
1588
|
parameterPath: "subscriptionId",
|
|
1148
1589
|
mapper: {
|
|
@@ -1156,7 +1597,7 @@ const subscriptionId = {
|
|
|
1156
1597
|
const apiVersion = {
|
|
1157
1598
|
parameterPath: "apiVersion",
|
|
1158
1599
|
mapper: {
|
|
1159
|
-
defaultValue: "
|
|
1600
|
+
defaultValue: "2021-11-01-preview",
|
|
1160
1601
|
isConstant: true,
|
|
1161
1602
|
serializedName: "api-version",
|
|
1162
1603
|
type: {
|
|
@@ -1208,15 +1649,6 @@ const sqlVirtualMachineName = {
|
|
|
1208
1649
|
}
|
|
1209
1650
|
}
|
|
1210
1651
|
};
|
|
1211
|
-
const expand = {
|
|
1212
|
-
parameterPath: ["options", "expand"],
|
|
1213
|
-
mapper: {
|
|
1214
|
-
serializedName: "$expand",
|
|
1215
|
-
type: {
|
|
1216
|
-
name: "String"
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
};
|
|
1220
1652
|
const parameters3 = {
|
|
1221
1653
|
parameterPath: "parameters",
|
|
1222
1654
|
mapper: SqlVirtualMachine
|
|
@@ -1336,7 +1768,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
1336
1768
|
sqlVirtualMachineGroupName,
|
|
1337
1769
|
availabilityGroupListenerName,
|
|
1338
1770
|
options
|
|
1339
|
-
}, getOperationSpec);
|
|
1771
|
+
}, getOperationSpec$2);
|
|
1340
1772
|
}
|
|
1341
1773
|
/**
|
|
1342
1774
|
* Creates or updates an availability group listener.
|
|
@@ -1377,7 +1809,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
1377
1809
|
availabilityGroupListenerName,
|
|
1378
1810
|
parameters,
|
|
1379
1811
|
options
|
|
1380
|
-
}, createOrUpdateOperationSpec);
|
|
1812
|
+
}, createOrUpdateOperationSpec$2);
|
|
1381
1813
|
return new coreLro.LroEngine(lro, {
|
|
1382
1814
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1383
1815
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -1436,7 +1868,7 @@ class AvailabilityGroupListenersImpl {
|
|
|
1436
1868
|
sqlVirtualMachineGroupName,
|
|
1437
1869
|
availabilityGroupListenerName,
|
|
1438
1870
|
options
|
|
1439
|
-
}, deleteOperationSpec);
|
|
1871
|
+
}, deleteOperationSpec$2);
|
|
1440
1872
|
return new coreLro.LroEngine(lro, {
|
|
1441
1873
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1442
1874
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -1480,8 +1912,8 @@ class AvailabilityGroupListenersImpl {
|
|
|
1480
1912
|
}
|
|
1481
1913
|
}
|
|
1482
1914
|
// Operation Specifications
|
|
1483
|
-
const serializer =
|
|
1484
|
-
const getOperationSpec = {
|
|
1915
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1916
|
+
const getOperationSpec$2 = {
|
|
1485
1917
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
1486
1918
|
httpMethod: "GET",
|
|
1487
1919
|
responses: {
|
|
@@ -1490,7 +1922,7 @@ const getOperationSpec = {
|
|
|
1490
1922
|
},
|
|
1491
1923
|
default: {}
|
|
1492
1924
|
},
|
|
1493
|
-
queryParameters: [apiVersion],
|
|
1925
|
+
queryParameters: [expand, apiVersion],
|
|
1494
1926
|
urlParameters: [
|
|
1495
1927
|
$host,
|
|
1496
1928
|
resourceGroupName,
|
|
@@ -1499,9 +1931,9 @@ const getOperationSpec = {
|
|
|
1499
1931
|
subscriptionId
|
|
1500
1932
|
],
|
|
1501
1933
|
headerParameters: [accept],
|
|
1502
|
-
serializer
|
|
1934
|
+
serializer: serializer$3
|
|
1503
1935
|
};
|
|
1504
|
-
const createOrUpdateOperationSpec = {
|
|
1936
|
+
const createOrUpdateOperationSpec$2 = {
|
|
1505
1937
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
1506
1938
|
httpMethod: "PUT",
|
|
1507
1939
|
responses: {
|
|
@@ -1530,9 +1962,9 @@ const createOrUpdateOperationSpec = {
|
|
|
1530
1962
|
],
|
|
1531
1963
|
headerParameters: [accept, contentType],
|
|
1532
1964
|
mediaType: "json",
|
|
1533
|
-
serializer
|
|
1965
|
+
serializer: serializer$3
|
|
1534
1966
|
};
|
|
1535
|
-
const deleteOperationSpec = {
|
|
1967
|
+
const deleteOperationSpec$2 = {
|
|
1536
1968
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}",
|
|
1537
1969
|
httpMethod: "DELETE",
|
|
1538
1970
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
@@ -1544,7 +1976,7 @@ const deleteOperationSpec = {
|
|
|
1544
1976
|
availabilityGroupListenerName,
|
|
1545
1977
|
subscriptionId
|
|
1546
1978
|
],
|
|
1547
|
-
serializer
|
|
1979
|
+
serializer: serializer$3
|
|
1548
1980
|
};
|
|
1549
1981
|
const listByGroupOperationSpec = {
|
|
1550
1982
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners",
|
|
@@ -1563,7 +1995,7 @@ const listByGroupOperationSpec = {
|
|
|
1563
1995
|
subscriptionId
|
|
1564
1996
|
],
|
|
1565
1997
|
headerParameters: [accept],
|
|
1566
|
-
serializer
|
|
1998
|
+
serializer: serializer$3
|
|
1567
1999
|
};
|
|
1568
2000
|
const listByGroupNextOperationSpec = {
|
|
1569
2001
|
path: "{nextLink}",
|
|
@@ -1583,7 +2015,7 @@ const listByGroupNextOperationSpec = {
|
|
|
1583
2015
|
nextLink
|
|
1584
2016
|
],
|
|
1585
2017
|
headerParameters: [accept],
|
|
1586
|
-
serializer
|
|
2018
|
+
serializer: serializer$3
|
|
1587
2019
|
};
|
|
1588
2020
|
|
|
1589
2021
|
/*
|
|
@@ -1604,7 +2036,7 @@ class OperationsImpl {
|
|
|
1604
2036
|
this.client = client;
|
|
1605
2037
|
}
|
|
1606
2038
|
/**
|
|
1607
|
-
* Lists all of the available SQL Rest API operations.
|
|
2039
|
+
* Lists all of the available SQL Virtual Machine Rest API operations.
|
|
1608
2040
|
* @param options The options parameters.
|
|
1609
2041
|
*/
|
|
1610
2042
|
list(options) {
|
|
@@ -1652,11 +2084,11 @@ class OperationsImpl {
|
|
|
1652
2084
|
});
|
|
1653
2085
|
}
|
|
1654
2086
|
/**
|
|
1655
|
-
* Lists all of the available SQL Rest API operations.
|
|
2087
|
+
* Lists all of the available SQL Virtual Machine Rest API operations.
|
|
1656
2088
|
* @param options The options parameters.
|
|
1657
2089
|
*/
|
|
1658
2090
|
_list(options) {
|
|
1659
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2091
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
1660
2092
|
}
|
|
1661
2093
|
/**
|
|
1662
2094
|
* ListNext
|
|
@@ -1664,12 +2096,12 @@ class OperationsImpl {
|
|
|
1664
2096
|
* @param options The options parameters.
|
|
1665
2097
|
*/
|
|
1666
2098
|
_listNext(nextLink, options) {
|
|
1667
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2099
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
1668
2100
|
}
|
|
1669
2101
|
}
|
|
1670
2102
|
// Operation Specifications
|
|
1671
|
-
const serializer$
|
|
1672
|
-
const listOperationSpec = {
|
|
2103
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2104
|
+
const listOperationSpec$2 = {
|
|
1673
2105
|
path: "/providers/Microsoft.SqlVirtualMachine/operations",
|
|
1674
2106
|
httpMethod: "GET",
|
|
1675
2107
|
responses: {
|
|
@@ -1681,9 +2113,9 @@ const listOperationSpec = {
|
|
|
1681
2113
|
queryParameters: [apiVersion],
|
|
1682
2114
|
urlParameters: [$host],
|
|
1683
2115
|
headerParameters: [accept],
|
|
1684
|
-
serializer: serializer$
|
|
2116
|
+
serializer: serializer$2
|
|
1685
2117
|
};
|
|
1686
|
-
const listNextOperationSpec = {
|
|
2118
|
+
const listNextOperationSpec$2 = {
|
|
1687
2119
|
path: "{nextLink}",
|
|
1688
2120
|
httpMethod: "GET",
|
|
1689
2121
|
responses: {
|
|
@@ -1695,7 +2127,7 @@ const listNextOperationSpec = {
|
|
|
1695
2127
|
queryParameters: [apiVersion],
|
|
1696
2128
|
urlParameters: [$host, nextLink],
|
|
1697
2129
|
headerParameters: [accept],
|
|
1698
|
-
serializer: serializer$
|
|
2130
|
+
serializer: serializer$2
|
|
1699
2131
|
};
|
|
1700
2132
|
|
|
1701
2133
|
/*
|
|
@@ -1959,7 +2391,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
1959
2391
|
}
|
|
1960
2392
|
};
|
|
1961
2393
|
});
|
|
1962
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, parameters, options }, updateOperationSpec);
|
|
2394
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineGroupName, parameters, options }, updateOperationSpec$1);
|
|
1963
2395
|
return new coreLro.LroEngine(lro, {
|
|
1964
2396
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1965
2397
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -1987,7 +2419,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
1987
2419
|
* @param options The options parameters.
|
|
1988
2420
|
*/
|
|
1989
2421
|
_listByResourceGroup(resourceGroupName, options) {
|
|
1990
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2422
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
1991
2423
|
}
|
|
1992
2424
|
/**
|
|
1993
2425
|
* Gets all SQL virtual machine groups in a subscription.
|
|
@@ -2004,7 +2436,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2004
2436
|
* @param options The options parameters.
|
|
2005
2437
|
*/
|
|
2006
2438
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2007
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2439
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
2008
2440
|
}
|
|
2009
2441
|
/**
|
|
2010
2442
|
* ListNext
|
|
@@ -2016,7 +2448,7 @@ class SqlVirtualMachineGroupsImpl {
|
|
|
2016
2448
|
}
|
|
2017
2449
|
}
|
|
2018
2450
|
// Operation Specifications
|
|
2019
|
-
const serializer$
|
|
2451
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2020
2452
|
const getOperationSpec$1 = {
|
|
2021
2453
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
2022
2454
|
httpMethod: "GET",
|
|
@@ -2034,7 +2466,7 @@ const getOperationSpec$1 = {
|
|
|
2034
2466
|
subscriptionId
|
|
2035
2467
|
],
|
|
2036
2468
|
headerParameters: [accept],
|
|
2037
|
-
serializer: serializer$
|
|
2469
|
+
serializer: serializer$1
|
|
2038
2470
|
};
|
|
2039
2471
|
const createOrUpdateOperationSpec$1 = {
|
|
2040
2472
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
@@ -2064,7 +2496,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
2064
2496
|
],
|
|
2065
2497
|
headerParameters: [accept, contentType],
|
|
2066
2498
|
mediaType: "json",
|
|
2067
|
-
serializer: serializer$
|
|
2499
|
+
serializer: serializer$1
|
|
2068
2500
|
};
|
|
2069
2501
|
const deleteOperationSpec$1 = {
|
|
2070
2502
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
@@ -2077,9 +2509,9 @@ const deleteOperationSpec$1 = {
|
|
|
2077
2509
|
sqlVirtualMachineGroupName,
|
|
2078
2510
|
subscriptionId
|
|
2079
2511
|
],
|
|
2080
|
-
serializer: serializer$
|
|
2512
|
+
serializer: serializer$1
|
|
2081
2513
|
};
|
|
2082
|
-
const updateOperationSpec = {
|
|
2514
|
+
const updateOperationSpec$1 = {
|
|
2083
2515
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}",
|
|
2084
2516
|
httpMethod: "PATCH",
|
|
2085
2517
|
responses: {
|
|
@@ -2107,9 +2539,9 @@ const updateOperationSpec = {
|
|
|
2107
2539
|
],
|
|
2108
2540
|
headerParameters: [accept, contentType],
|
|
2109
2541
|
mediaType: "json",
|
|
2110
|
-
serializer: serializer$
|
|
2542
|
+
serializer: serializer$1
|
|
2111
2543
|
};
|
|
2112
|
-
const listByResourceGroupOperationSpec = {
|
|
2544
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
2113
2545
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
2114
2546
|
httpMethod: "GET",
|
|
2115
2547
|
responses: {
|
|
@@ -2125,7 +2557,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
2125
2557
|
subscriptionId
|
|
2126
2558
|
],
|
|
2127
2559
|
headerParameters: [accept],
|
|
2128
|
-
serializer: serializer$
|
|
2560
|
+
serializer: serializer$1
|
|
2129
2561
|
};
|
|
2130
2562
|
const listOperationSpec$1 = {
|
|
2131
2563
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups",
|
|
@@ -2139,9 +2571,9 @@ const listOperationSpec$1 = {
|
|
|
2139
2571
|
queryParameters: [apiVersion],
|
|
2140
2572
|
urlParameters: [$host, subscriptionId],
|
|
2141
2573
|
headerParameters: [accept],
|
|
2142
|
-
serializer: serializer$
|
|
2574
|
+
serializer: serializer$1
|
|
2143
2575
|
};
|
|
2144
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2576
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
2145
2577
|
path: "{nextLink}",
|
|
2146
2578
|
httpMethod: "GET",
|
|
2147
2579
|
responses: {
|
|
@@ -2158,7 +2590,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2158
2590
|
nextLink
|
|
2159
2591
|
],
|
|
2160
2592
|
headerParameters: [accept],
|
|
2161
|
-
serializer: serializer$
|
|
2593
|
+
serializer: serializer$1
|
|
2162
2594
|
};
|
|
2163
2595
|
const listNextOperationSpec$1 = {
|
|
2164
2596
|
path: "{nextLink}",
|
|
@@ -2176,7 +2608,7 @@ const listNextOperationSpec$1 = {
|
|
|
2176
2608
|
nextLink
|
|
2177
2609
|
],
|
|
2178
2610
|
headerParameters: [accept],
|
|
2179
|
-
serializer: serializer$
|
|
2611
|
+
serializer: serializer$1
|
|
2180
2612
|
};
|
|
2181
2613
|
|
|
2182
2614
|
/*
|
|
@@ -2360,7 +2792,58 @@ class SqlVirtualMachinesImpl {
|
|
|
2360
2792
|
* @param options The options parameters.
|
|
2361
2793
|
*/
|
|
2362
2794
|
_list(options) {
|
|
2363
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
2795
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2796
|
+
}
|
|
2797
|
+
/**
|
|
2798
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2799
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2800
|
+
* value from the Azure Resource Manager API or the portal.
|
|
2801
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2802
|
+
* @param options The options parameters.
|
|
2803
|
+
*/
|
|
2804
|
+
beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2805
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2806
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2807
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2808
|
+
});
|
|
2809
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2810
|
+
var _a;
|
|
2811
|
+
let currentRawResponse = undefined;
|
|
2812
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2813
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2814
|
+
currentRawResponse = rawResponse;
|
|
2815
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2816
|
+
};
|
|
2817
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2818
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2819
|
+
return {
|
|
2820
|
+
flatResponse,
|
|
2821
|
+
rawResponse: {
|
|
2822
|
+
statusCode: currentRawResponse.status,
|
|
2823
|
+
body: currentRawResponse.parsedBody,
|
|
2824
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2825
|
+
}
|
|
2826
|
+
};
|
|
2827
|
+
});
|
|
2828
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, redeployOperationSpec);
|
|
2829
|
+
return new coreLro.LroEngine(lro, {
|
|
2830
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2831
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2832
|
+
});
|
|
2833
|
+
});
|
|
2834
|
+
}
|
|
2835
|
+
/**
|
|
2836
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2837
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2838
|
+
* value from the Azure Resource Manager API or the portal.
|
|
2839
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2840
|
+
* @param options The options parameters.
|
|
2841
|
+
*/
|
|
2842
|
+
beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2843
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2844
|
+
const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
|
|
2845
|
+
return poller.pollUntilDone();
|
|
2846
|
+
});
|
|
2364
2847
|
}
|
|
2365
2848
|
/**
|
|
2366
2849
|
* Gets a SQL virtual machine.
|
|
@@ -2370,7 +2853,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2370
2853
|
* @param options The options parameters.
|
|
2371
2854
|
*/
|
|
2372
2855
|
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2373
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec
|
|
2856
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
2374
2857
|
}
|
|
2375
2858
|
/**
|
|
2376
2859
|
* Creates or updates a SQL virtual machine.
|
|
@@ -2404,7 +2887,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2404
2887
|
}
|
|
2405
2888
|
};
|
|
2406
2889
|
});
|
|
2407
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec
|
|
2890
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec);
|
|
2408
2891
|
return new coreLro.LroEngine(lro, {
|
|
2409
2892
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2410
2893
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2456,7 +2939,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2456
2939
|
}
|
|
2457
2940
|
};
|
|
2458
2941
|
});
|
|
2459
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec
|
|
2942
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec);
|
|
2460
2943
|
return new coreLro.LroEngine(lro, {
|
|
2461
2944
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2462
2945
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2508,7 +2991,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2508
2991
|
}
|
|
2509
2992
|
};
|
|
2510
2993
|
});
|
|
2511
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec
|
|
2994
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec);
|
|
2512
2995
|
return new coreLro.LroEngine(lro, {
|
|
2513
2996
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2514
2997
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2536,7 +3019,58 @@ class SqlVirtualMachinesImpl {
|
|
|
2536
3019
|
* @param options The options parameters.
|
|
2537
3020
|
*/
|
|
2538
3021
|
_listByResourceGroup(resourceGroupName, options) {
|
|
2539
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec
|
|
3022
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3023
|
+
}
|
|
3024
|
+
/**
|
|
3025
|
+
* Starts Assessment on SQL virtual machine.
|
|
3026
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3027
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3028
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3029
|
+
* @param options The options parameters.
|
|
3030
|
+
*/
|
|
3031
|
+
beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3032
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3033
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3034
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3035
|
+
});
|
|
3036
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3037
|
+
var _a;
|
|
3038
|
+
let currentRawResponse = undefined;
|
|
3039
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3040
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3041
|
+
currentRawResponse = rawResponse;
|
|
3042
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3043
|
+
};
|
|
3044
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3045
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3046
|
+
return {
|
|
3047
|
+
flatResponse,
|
|
3048
|
+
rawResponse: {
|
|
3049
|
+
statusCode: currentRawResponse.status,
|
|
3050
|
+
body: currentRawResponse.parsedBody,
|
|
3051
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3052
|
+
}
|
|
3053
|
+
};
|
|
3054
|
+
});
|
|
3055
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, startAssessmentOperationSpec);
|
|
3056
|
+
return new coreLro.LroEngine(lro, {
|
|
3057
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3058
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3059
|
+
});
|
|
3060
|
+
});
|
|
3061
|
+
}
|
|
3062
|
+
/**
|
|
3063
|
+
* Starts Assessment on SQL virtual machine.
|
|
3064
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3065
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3066
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3067
|
+
* @param options The options parameters.
|
|
3068
|
+
*/
|
|
3069
|
+
beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3070
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3071
|
+
const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
|
|
3072
|
+
return poller.pollUntilDone();
|
|
3073
|
+
});
|
|
2540
3074
|
}
|
|
2541
3075
|
/**
|
|
2542
3076
|
* ListBySqlVmGroupNext
|
|
@@ -2555,7 +3089,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2555
3089
|
* @param options The options parameters.
|
|
2556
3090
|
*/
|
|
2557
3091
|
_listNext(nextLink, options) {
|
|
2558
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
3092
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2559
3093
|
}
|
|
2560
3094
|
/**
|
|
2561
3095
|
* ListByResourceGroupNext
|
|
@@ -2565,11 +3099,11 @@ class SqlVirtualMachinesImpl {
|
|
|
2565
3099
|
* @param options The options parameters.
|
|
2566
3100
|
*/
|
|
2567
3101
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2568
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec
|
|
3102
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2569
3103
|
}
|
|
2570
3104
|
}
|
|
2571
3105
|
// Operation Specifications
|
|
2572
|
-
const serializer
|
|
3106
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2573
3107
|
const listBySqlVmGroupOperationSpec = {
|
|
2574
3108
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/sqlVirtualMachines",
|
|
2575
3109
|
httpMethod: "GET",
|
|
@@ -2587,9 +3121,9 @@ const listBySqlVmGroupOperationSpec = {
|
|
|
2587
3121
|
subscriptionId
|
|
2588
3122
|
],
|
|
2589
3123
|
headerParameters: [accept],
|
|
2590
|
-
serializer
|
|
3124
|
+
serializer
|
|
2591
3125
|
};
|
|
2592
|
-
const listOperationSpec
|
|
3126
|
+
const listOperationSpec = {
|
|
2593
3127
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
|
|
2594
3128
|
httpMethod: "GET",
|
|
2595
3129
|
responses: {
|
|
@@ -2601,9 +3135,22 @@ const listOperationSpec$2 = {
|
|
|
2601
3135
|
queryParameters: [apiVersion],
|
|
2602
3136
|
urlParameters: [$host, subscriptionId],
|
|
2603
3137
|
headerParameters: [accept],
|
|
2604
|
-
serializer
|
|
3138
|
+
serializer
|
|
2605
3139
|
};
|
|
2606
|
-
const
|
|
3140
|
+
const redeployOperationSpec = {
|
|
3141
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
3142
|
+
httpMethod: "POST",
|
|
3143
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3144
|
+
queryParameters: [apiVersion],
|
|
3145
|
+
urlParameters: [
|
|
3146
|
+
$host,
|
|
3147
|
+
resourceGroupName,
|
|
3148
|
+
subscriptionId,
|
|
3149
|
+
sqlVirtualMachineName
|
|
3150
|
+
],
|
|
3151
|
+
serializer
|
|
3152
|
+
};
|
|
3153
|
+
const getOperationSpec = {
|
|
2607
3154
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2608
3155
|
httpMethod: "GET",
|
|
2609
3156
|
responses: {
|
|
@@ -2612,7 +3159,7 @@ const getOperationSpec$2 = {
|
|
|
2612
3159
|
},
|
|
2613
3160
|
default: {}
|
|
2614
3161
|
},
|
|
2615
|
-
queryParameters: [
|
|
3162
|
+
queryParameters: [expand, apiVersion],
|
|
2616
3163
|
urlParameters: [
|
|
2617
3164
|
$host,
|
|
2618
3165
|
resourceGroupName,
|
|
@@ -2620,9 +3167,9 @@ const getOperationSpec$2 = {
|
|
|
2620
3167
|
sqlVirtualMachineName
|
|
2621
3168
|
],
|
|
2622
3169
|
headerParameters: [accept],
|
|
2623
|
-
serializer
|
|
3170
|
+
serializer
|
|
2624
3171
|
};
|
|
2625
|
-
const createOrUpdateOperationSpec
|
|
3172
|
+
const createOrUpdateOperationSpec = {
|
|
2626
3173
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2627
3174
|
httpMethod: "PUT",
|
|
2628
3175
|
responses: {
|
|
@@ -2650,9 +3197,9 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
2650
3197
|
],
|
|
2651
3198
|
headerParameters: [accept, contentType],
|
|
2652
3199
|
mediaType: "json",
|
|
2653
|
-
serializer
|
|
3200
|
+
serializer
|
|
2654
3201
|
};
|
|
2655
|
-
const deleteOperationSpec
|
|
3202
|
+
const deleteOperationSpec = {
|
|
2656
3203
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2657
3204
|
httpMethod: "DELETE",
|
|
2658
3205
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
@@ -2663,9 +3210,9 @@ const deleteOperationSpec$2 = {
|
|
|
2663
3210
|
subscriptionId,
|
|
2664
3211
|
sqlVirtualMachineName
|
|
2665
3212
|
],
|
|
2666
|
-
serializer
|
|
3213
|
+
serializer
|
|
2667
3214
|
};
|
|
2668
|
-
const updateOperationSpec
|
|
3215
|
+
const updateOperationSpec = {
|
|
2669
3216
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}",
|
|
2670
3217
|
httpMethod: "PATCH",
|
|
2671
3218
|
responses: {
|
|
@@ -2693,9 +3240,9 @@ const updateOperationSpec$1 = {
|
|
|
2693
3240
|
],
|
|
2694
3241
|
headerParameters: [accept, contentType],
|
|
2695
3242
|
mediaType: "json",
|
|
2696
|
-
serializer
|
|
3243
|
+
serializer
|
|
2697
3244
|
};
|
|
2698
|
-
const listByResourceGroupOperationSpec
|
|
3245
|
+
const listByResourceGroupOperationSpec = {
|
|
2699
3246
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines",
|
|
2700
3247
|
httpMethod: "GET",
|
|
2701
3248
|
responses: {
|
|
@@ -2711,7 +3258,20 @@ const listByResourceGroupOperationSpec$1 = {
|
|
|
2711
3258
|
subscriptionId
|
|
2712
3259
|
],
|
|
2713
3260
|
headerParameters: [accept],
|
|
2714
|
-
serializer
|
|
3261
|
+
serializer
|
|
3262
|
+
};
|
|
3263
|
+
const startAssessmentOperationSpec = {
|
|
3264
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
3265
|
+
httpMethod: "POST",
|
|
3266
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3267
|
+
queryParameters: [apiVersion],
|
|
3268
|
+
urlParameters: [
|
|
3269
|
+
$host,
|
|
3270
|
+
resourceGroupName,
|
|
3271
|
+
subscriptionId,
|
|
3272
|
+
sqlVirtualMachineName
|
|
3273
|
+
],
|
|
3274
|
+
serializer
|
|
2715
3275
|
};
|
|
2716
3276
|
const listBySqlVmGroupNextOperationSpec = {
|
|
2717
3277
|
path: "{nextLink}",
|
|
@@ -2731,9 +3291,9 @@ const listBySqlVmGroupNextOperationSpec = {
|
|
|
2731
3291
|
nextLink
|
|
2732
3292
|
],
|
|
2733
3293
|
headerParameters: [accept],
|
|
2734
|
-
serializer
|
|
3294
|
+
serializer
|
|
2735
3295
|
};
|
|
2736
|
-
const listNextOperationSpec
|
|
3296
|
+
const listNextOperationSpec = {
|
|
2737
3297
|
path: "{nextLink}",
|
|
2738
3298
|
httpMethod: "GET",
|
|
2739
3299
|
responses: {
|
|
@@ -2749,9 +3309,9 @@ const listNextOperationSpec$2 = {
|
|
|
2749
3309
|
nextLink
|
|
2750
3310
|
],
|
|
2751
3311
|
headerParameters: [accept],
|
|
2752
|
-
serializer
|
|
3312
|
+
serializer
|
|
2753
3313
|
};
|
|
2754
|
-
const listByResourceGroupNextOperationSpec
|
|
3314
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2755
3315
|
path: "{nextLink}",
|
|
2756
3316
|
httpMethod: "GET",
|
|
2757
3317
|
responses: {
|
|
@@ -2768,7 +3328,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
2768
3328
|
nextLink
|
|
2769
3329
|
],
|
|
2770
3330
|
headerParameters: [accept],
|
|
2771
|
-
serializer
|
|
3331
|
+
serializer
|
|
2772
3332
|
};
|
|
2773
3333
|
|
|
2774
3334
|
/*
|
|
@@ -2778,7 +3338,7 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
2778
3338
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2779
3339
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2780
3340
|
*/
|
|
2781
|
-
class SqlVirtualMachineManagementClient extends
|
|
3341
|
+
class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceClient {
|
|
2782
3342
|
/**
|
|
2783
3343
|
* Initializes a new instance of the SqlVirtualMachineManagementClient class.
|
|
2784
3344
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -2800,7 +3360,7 @@ class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
|
|
|
2800
3360
|
requestContentType: "application/json; charset=utf-8",
|
|
2801
3361
|
credential: credentials
|
|
2802
3362
|
};
|
|
2803
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.
|
|
3363
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.3`;
|
|
2804
3364
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2805
3365
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2806
3366
|
: `${packageDetails}`;
|
|
@@ -2815,7 +3375,7 @@ class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
|
|
|
2815
3375
|
this.subscriptionId = subscriptionId;
|
|
2816
3376
|
// Assigning values to Constant parameters
|
|
2817
3377
|
this.$host = options.$host || "https://management.azure.com";
|
|
2818
|
-
this.apiVersion = options.apiVersion || "
|
|
3378
|
+
this.apiVersion = options.apiVersion || "2021-11-01-preview";
|
|
2819
3379
|
this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
|
|
2820
3380
|
this.operations = new OperationsImpl(this);
|
|
2821
3381
|
this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
|