@azure/arm-sqlvirtualmachine 5.0.0-beta.5 → 5.0.0-beta.6
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/dist/index.js +236 -83
- 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 +136 -26
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +70 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +78 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +17 -17
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlVirtualMachines.js +66 -66
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +17 -17
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -1
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +20 -15
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -1
- package/package.json +5 -14
- package/review/arm-sqlvirtualmachine.api.md +63 -86
- package/src/models/index.ts +142 -28
- package/src/models/mappers.ts +83 -1
- package/src/models/parameters.ts +1 -1
- package/src/operations/sqlVirtualMachines.ts +99 -99
- package/src/operationsInterfaces/sqlVirtualMachines.ts +26 -26
- package/src/sqlVirtualMachineManagementClient.ts +25 -18
- package/tsconfig.json +2 -8
- package/types/arm-sqlvirtualmachine.d.ts +150 -35
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js +0 -50
- package/dist-esm/samples-dev/availabilityGroupListenersCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js +0 -32
- package/dist-esm/samples-dev/availabilityGroupListenersDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js +0 -32
- package/dist-esm/samples-dev/availabilityGroupListenersGetSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js +0 -45
- package/dist-esm/samples-dev/availabilityGroupListenersListByGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -43
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js +0 -46
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js +0 -31
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js +0 -43
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsListSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js +0 -32
- package/dist-esm/samples-dev/sqlVirtualMachineGroupsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js +0 -269
- package/dist-esm/samples-dev/sqlVirtualMachinesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js +0 -31
- package/dist-esm/samples-dev/sqlVirtualMachinesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js +0 -31
- package/dist-esm/samples-dev/sqlVirtualMachinesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/sqlVirtualMachinesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js +0 -45
- package/dist-esm/samples-dev/sqlVirtualMachinesListBySqlVMGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js +0 -43
- package/dist-esm/samples-dev/sqlVirtualMachinesListSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js +0 -31
- package/dist-esm/samples-dev/sqlVirtualMachinesRedeploySample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js +0 -31
- package/dist-esm/samples-dev/sqlVirtualMachinesStartAssessmentSample.js.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js +0 -32
- package/dist-esm/samples-dev/sqlVirtualMachinesUpdateSample.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -38,141 +38,211 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
38
|
/** Known values of {@link Role} that the service accepts. */
|
|
39
39
|
exports.KnownRole = void 0;
|
|
40
40
|
(function (KnownRole) {
|
|
41
|
+
/** Primary */
|
|
41
42
|
KnownRole["Primary"] = "PRIMARY";
|
|
43
|
+
/** Secondary */
|
|
42
44
|
KnownRole["Secondary"] = "SECONDARY";
|
|
43
45
|
})(exports.KnownRole || (exports.KnownRole = {}));
|
|
44
46
|
/** Known values of {@link Commit} that the service accepts. */
|
|
45
47
|
exports.KnownCommit = void 0;
|
|
46
48
|
(function (KnownCommit) {
|
|
49
|
+
/** SynchronousCommit */
|
|
47
50
|
KnownCommit["SynchronousCommit"] = "SYNCHRONOUS_COMMIT";
|
|
51
|
+
/** AsynchronousCommit */
|
|
48
52
|
KnownCommit["AsynchronousCommit"] = "ASYNCHRONOUS_COMMIT";
|
|
49
53
|
})(exports.KnownCommit || (exports.KnownCommit = {}));
|
|
50
54
|
/** Known values of {@link Failover} that the service accepts. */
|
|
51
55
|
exports.KnownFailover = void 0;
|
|
52
56
|
(function (KnownFailover) {
|
|
57
|
+
/** Automatic */
|
|
53
58
|
KnownFailover["Automatic"] = "AUTOMATIC";
|
|
59
|
+
/** Manual */
|
|
54
60
|
KnownFailover["Manual"] = "MANUAL";
|
|
55
61
|
})(exports.KnownFailover || (exports.KnownFailover = {}));
|
|
56
62
|
/** Known values of {@link ReadableSecondary} that the service accepts. */
|
|
57
63
|
exports.KnownReadableSecondary = void 0;
|
|
58
64
|
(function (KnownReadableSecondary) {
|
|
65
|
+
/** NO */
|
|
59
66
|
KnownReadableSecondary["NO"] = "NO";
|
|
67
|
+
/** ALL */
|
|
60
68
|
KnownReadableSecondary["ALL"] = "ALL";
|
|
69
|
+
/** ReadOnly */
|
|
61
70
|
KnownReadableSecondary["ReadOnly"] = "READ_ONLY";
|
|
62
71
|
})(exports.KnownReadableSecondary || (exports.KnownReadableSecondary = {}));
|
|
63
72
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
64
73
|
exports.KnownCreatedByType = void 0;
|
|
65
74
|
(function (KnownCreatedByType) {
|
|
75
|
+
/** User */
|
|
66
76
|
KnownCreatedByType["User"] = "User";
|
|
77
|
+
/** Application */
|
|
67
78
|
KnownCreatedByType["Application"] = "Application";
|
|
79
|
+
/** ManagedIdentity */
|
|
68
80
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
81
|
+
/** Key */
|
|
69
82
|
KnownCreatedByType["Key"] = "Key";
|
|
70
83
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
71
84
|
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
72
85
|
exports.KnownOperationOrigin = void 0;
|
|
73
86
|
(function (KnownOperationOrigin) {
|
|
87
|
+
/** User */
|
|
74
88
|
KnownOperationOrigin["User"] = "user";
|
|
89
|
+
/** System */
|
|
75
90
|
KnownOperationOrigin["System"] = "system";
|
|
76
91
|
})(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
|
|
77
92
|
/** Known values of {@link SqlVmGroupImageSku} that the service accepts. */
|
|
78
93
|
exports.KnownSqlVmGroupImageSku = void 0;
|
|
79
94
|
(function (KnownSqlVmGroupImageSku) {
|
|
95
|
+
/** Developer */
|
|
80
96
|
KnownSqlVmGroupImageSku["Developer"] = "Developer";
|
|
97
|
+
/** Enterprise */
|
|
81
98
|
KnownSqlVmGroupImageSku["Enterprise"] = "Enterprise";
|
|
82
99
|
})(exports.KnownSqlVmGroupImageSku || (exports.KnownSqlVmGroupImageSku = {}));
|
|
83
100
|
/** Known values of {@link ScaleType} that the service accepts. */
|
|
84
101
|
exports.KnownScaleType = void 0;
|
|
85
102
|
(function (KnownScaleType) {
|
|
103
|
+
/** HA */
|
|
86
104
|
KnownScaleType["HA"] = "HA";
|
|
87
105
|
})(exports.KnownScaleType || (exports.KnownScaleType = {}));
|
|
88
106
|
/** Known values of {@link ClusterManagerType} that the service accepts. */
|
|
89
107
|
exports.KnownClusterManagerType = void 0;
|
|
90
108
|
(function (KnownClusterManagerType) {
|
|
109
|
+
/** Wsfc */
|
|
91
110
|
KnownClusterManagerType["Wsfc"] = "WSFC";
|
|
92
111
|
})(exports.KnownClusterManagerType || (exports.KnownClusterManagerType = {}));
|
|
93
112
|
/** Known values of {@link ClusterConfiguration} that the service accepts. */
|
|
94
113
|
exports.KnownClusterConfiguration = void 0;
|
|
95
114
|
(function (KnownClusterConfiguration) {
|
|
115
|
+
/** Domainful */
|
|
96
116
|
KnownClusterConfiguration["Domainful"] = "Domainful";
|
|
97
117
|
})(exports.KnownClusterConfiguration || (exports.KnownClusterConfiguration = {}));
|
|
118
|
+
/** Known values of {@link ClusterSubnetType} that the service accepts. */
|
|
119
|
+
exports.KnownClusterSubnetType = void 0;
|
|
120
|
+
(function (KnownClusterSubnetType) {
|
|
121
|
+
/** SingleSubnet */
|
|
122
|
+
KnownClusterSubnetType["SingleSubnet"] = "SingleSubnet";
|
|
123
|
+
/** MultiSubnet */
|
|
124
|
+
KnownClusterSubnetType["MultiSubnet"] = "MultiSubnet";
|
|
125
|
+
})(exports.KnownClusterSubnetType || (exports.KnownClusterSubnetType = {}));
|
|
98
126
|
/** Known values of {@link IdentityType} that the service accepts. */
|
|
99
127
|
exports.KnownIdentityType = void 0;
|
|
100
128
|
(function (KnownIdentityType) {
|
|
129
|
+
/** None */
|
|
101
130
|
KnownIdentityType["None"] = "None";
|
|
131
|
+
/** SystemAssigned */
|
|
102
132
|
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
103
133
|
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
104
134
|
/** Known values of {@link SqlServerLicenseType} that the service accepts. */
|
|
105
135
|
exports.KnownSqlServerLicenseType = void 0;
|
|
106
136
|
(function (KnownSqlServerLicenseType) {
|
|
137
|
+
/** Payg */
|
|
107
138
|
KnownSqlServerLicenseType["Payg"] = "PAYG";
|
|
139
|
+
/** Ahub */
|
|
108
140
|
KnownSqlServerLicenseType["Ahub"] = "AHUB";
|
|
141
|
+
/** DR */
|
|
109
142
|
KnownSqlServerLicenseType["DR"] = "DR";
|
|
110
143
|
})(exports.KnownSqlServerLicenseType || (exports.KnownSqlServerLicenseType = {}));
|
|
111
144
|
/** Known values of {@link SqlManagementMode} that the service accepts. */
|
|
112
145
|
exports.KnownSqlManagementMode = void 0;
|
|
113
146
|
(function (KnownSqlManagementMode) {
|
|
147
|
+
/** Full */
|
|
114
148
|
KnownSqlManagementMode["Full"] = "Full";
|
|
149
|
+
/** LightWeight */
|
|
115
150
|
KnownSqlManagementMode["LightWeight"] = "LightWeight";
|
|
151
|
+
/** NoAgent */
|
|
116
152
|
KnownSqlManagementMode["NoAgent"] = "NoAgent";
|
|
117
153
|
})(exports.KnownSqlManagementMode || (exports.KnownSqlManagementMode = {}));
|
|
154
|
+
/** Known values of {@link LeastPrivilegeMode} that the service accepts. */
|
|
155
|
+
exports.KnownLeastPrivilegeMode = void 0;
|
|
156
|
+
(function (KnownLeastPrivilegeMode) {
|
|
157
|
+
/** Enabled */
|
|
158
|
+
KnownLeastPrivilegeMode["Enabled"] = "Enabled";
|
|
159
|
+
})(exports.KnownLeastPrivilegeMode || (exports.KnownLeastPrivilegeMode = {}));
|
|
118
160
|
/** Known values of {@link SqlImageSku} that the service accepts. */
|
|
119
161
|
exports.KnownSqlImageSku = void 0;
|
|
120
162
|
(function (KnownSqlImageSku) {
|
|
163
|
+
/** Developer */
|
|
121
164
|
KnownSqlImageSku["Developer"] = "Developer";
|
|
165
|
+
/** Express */
|
|
122
166
|
KnownSqlImageSku["Express"] = "Express";
|
|
167
|
+
/** Standard */
|
|
123
168
|
KnownSqlImageSku["Standard"] = "Standard";
|
|
169
|
+
/** Enterprise */
|
|
124
170
|
KnownSqlImageSku["Enterprise"] = "Enterprise";
|
|
171
|
+
/** Web */
|
|
125
172
|
KnownSqlImageSku["Web"] = "Web";
|
|
126
173
|
})(exports.KnownSqlImageSku || (exports.KnownSqlImageSku = {}));
|
|
127
174
|
/** Known values of {@link BackupScheduleType} that the service accepts. */
|
|
128
175
|
exports.KnownBackupScheduleType = void 0;
|
|
129
176
|
(function (KnownBackupScheduleType) {
|
|
177
|
+
/** Manual */
|
|
130
178
|
KnownBackupScheduleType["Manual"] = "Manual";
|
|
179
|
+
/** Automated */
|
|
131
180
|
KnownBackupScheduleType["Automated"] = "Automated";
|
|
132
181
|
})(exports.KnownBackupScheduleType || (exports.KnownBackupScheduleType = {}));
|
|
133
182
|
/** Known values of {@link FullBackupFrequencyType} that the service accepts. */
|
|
134
183
|
exports.KnownFullBackupFrequencyType = void 0;
|
|
135
184
|
(function (KnownFullBackupFrequencyType) {
|
|
185
|
+
/** Daily */
|
|
136
186
|
KnownFullBackupFrequencyType["Daily"] = "Daily";
|
|
187
|
+
/** Weekly */
|
|
137
188
|
KnownFullBackupFrequencyType["Weekly"] = "Weekly";
|
|
138
189
|
})(exports.KnownFullBackupFrequencyType || (exports.KnownFullBackupFrequencyType = {}));
|
|
139
190
|
/** Known values of {@link AutoBackupDaysOfWeek} that the service accepts. */
|
|
140
191
|
exports.KnownAutoBackupDaysOfWeek = void 0;
|
|
141
192
|
(function (KnownAutoBackupDaysOfWeek) {
|
|
193
|
+
/** Monday */
|
|
142
194
|
KnownAutoBackupDaysOfWeek["Monday"] = "Monday";
|
|
195
|
+
/** Tuesday */
|
|
143
196
|
KnownAutoBackupDaysOfWeek["Tuesday"] = "Tuesday";
|
|
197
|
+
/** Wednesday */
|
|
144
198
|
KnownAutoBackupDaysOfWeek["Wednesday"] = "Wednesday";
|
|
199
|
+
/** Thursday */
|
|
145
200
|
KnownAutoBackupDaysOfWeek["Thursday"] = "Thursday";
|
|
201
|
+
/** Friday */
|
|
146
202
|
KnownAutoBackupDaysOfWeek["Friday"] = "Friday";
|
|
203
|
+
/** Saturday */
|
|
147
204
|
KnownAutoBackupDaysOfWeek["Saturday"] = "Saturday";
|
|
205
|
+
/** Sunday */
|
|
148
206
|
KnownAutoBackupDaysOfWeek["Sunday"] = "Sunday";
|
|
149
207
|
})(exports.KnownAutoBackupDaysOfWeek || (exports.KnownAutoBackupDaysOfWeek = {}));
|
|
150
208
|
/** Known values of {@link ConnectivityType} that the service accepts. */
|
|
151
209
|
exports.KnownConnectivityType = void 0;
|
|
152
210
|
(function (KnownConnectivityType) {
|
|
211
|
+
/** Local */
|
|
153
212
|
KnownConnectivityType["Local"] = "LOCAL";
|
|
213
|
+
/** Private */
|
|
154
214
|
KnownConnectivityType["Private"] = "PRIVATE";
|
|
215
|
+
/** Public */
|
|
155
216
|
KnownConnectivityType["Public"] = "PUBLIC";
|
|
156
217
|
})(exports.KnownConnectivityType || (exports.KnownConnectivityType = {}));
|
|
157
218
|
/** Known values of {@link SqlWorkloadType} that the service accepts. */
|
|
158
219
|
exports.KnownSqlWorkloadType = void 0;
|
|
159
220
|
(function (KnownSqlWorkloadType) {
|
|
221
|
+
/** General */
|
|
160
222
|
KnownSqlWorkloadType["General"] = "GENERAL";
|
|
223
|
+
/** Oltp */
|
|
161
224
|
KnownSqlWorkloadType["Oltp"] = "OLTP";
|
|
225
|
+
/** DW */
|
|
162
226
|
KnownSqlWorkloadType["DW"] = "DW";
|
|
163
227
|
})(exports.KnownSqlWorkloadType || (exports.KnownSqlWorkloadType = {}));
|
|
164
228
|
/** Known values of {@link DiskConfigurationType} that the service accepts. */
|
|
165
229
|
exports.KnownDiskConfigurationType = void 0;
|
|
166
230
|
(function (KnownDiskConfigurationType) {
|
|
231
|
+
/** NEW */
|
|
167
232
|
KnownDiskConfigurationType["NEW"] = "NEW";
|
|
233
|
+
/** Extend */
|
|
168
234
|
KnownDiskConfigurationType["Extend"] = "EXTEND";
|
|
235
|
+
/** ADD */
|
|
169
236
|
KnownDiskConfigurationType["ADD"] = "ADD";
|
|
170
237
|
})(exports.KnownDiskConfigurationType || (exports.KnownDiskConfigurationType = {}));
|
|
171
238
|
/** Known values of {@link StorageWorkloadType} that the service accepts. */
|
|
172
239
|
exports.KnownStorageWorkloadType = void 0;
|
|
173
240
|
(function (KnownStorageWorkloadType) {
|
|
241
|
+
/** General */
|
|
174
242
|
KnownStorageWorkloadType["General"] = "GENERAL";
|
|
243
|
+
/** Oltp */
|
|
175
244
|
KnownStorageWorkloadType["Oltp"] = "OLTP";
|
|
245
|
+
/** DW */
|
|
176
246
|
KnownStorageWorkloadType["DW"] = "DW";
|
|
177
247
|
})(exports.KnownStorageWorkloadType || (exports.KnownStorageWorkloadType = {}));
|
|
178
248
|
|
|
@@ -247,6 +317,28 @@ const PrivateIPAddress = {
|
|
|
247
317
|
}
|
|
248
318
|
}
|
|
249
319
|
};
|
|
320
|
+
const MultiSubnetIpConfiguration = {
|
|
321
|
+
type: {
|
|
322
|
+
name: "Composite",
|
|
323
|
+
className: "MultiSubnetIpConfiguration",
|
|
324
|
+
modelProperties: {
|
|
325
|
+
privateIpAddress: {
|
|
326
|
+
serializedName: "privateIpAddress",
|
|
327
|
+
type: {
|
|
328
|
+
name: "Composite",
|
|
329
|
+
className: "PrivateIPAddress"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
sqlVirtualMachineInstance: {
|
|
333
|
+
serializedName: "sqlVirtualMachineInstance",
|
|
334
|
+
required: true,
|
|
335
|
+
type: {
|
|
336
|
+
name: "String"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
};
|
|
250
342
|
const AgConfiguration = {
|
|
251
343
|
type: {
|
|
252
344
|
name: "Composite",
|
|
@@ -254,7 +346,6 @@ const AgConfiguration = {
|
|
|
254
346
|
modelProperties: {
|
|
255
347
|
replicas: {
|
|
256
348
|
serializedName: "replicas",
|
|
257
|
-
readOnly: true,
|
|
258
349
|
type: {
|
|
259
350
|
name: "Sequence",
|
|
260
351
|
element: {
|
|
@@ -562,6 +653,12 @@ const WsfcDomainProfile = {
|
|
|
562
653
|
type: {
|
|
563
654
|
name: "String"
|
|
564
655
|
}
|
|
656
|
+
},
|
|
657
|
+
clusterSubnetType: {
|
|
658
|
+
serializedName: "clusterSubnetType",
|
|
659
|
+
type: {
|
|
660
|
+
name: "String"
|
|
661
|
+
}
|
|
565
662
|
}
|
|
566
663
|
}
|
|
567
664
|
}
|
|
@@ -1031,6 +1128,18 @@ const SQLInstanceSettings = {
|
|
|
1031
1128
|
type: {
|
|
1032
1129
|
name: "Number"
|
|
1033
1130
|
}
|
|
1131
|
+
},
|
|
1132
|
+
isLpimEnabled: {
|
|
1133
|
+
serializedName: "isLpimEnabled",
|
|
1134
|
+
type: {
|
|
1135
|
+
name: "Boolean"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
isIfiEnabled: {
|
|
1139
|
+
serializedName: "isIfiEnabled",
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "Boolean"
|
|
1142
|
+
}
|
|
1034
1143
|
}
|
|
1035
1144
|
}
|
|
1036
1145
|
}
|
|
@@ -1142,6 +1251,18 @@ const SQLTempDbSettings = {
|
|
|
1142
1251
|
name: "Number"
|
|
1143
1252
|
}
|
|
1144
1253
|
},
|
|
1254
|
+
persistFolder: {
|
|
1255
|
+
serializedName: "persistFolder",
|
|
1256
|
+
type: {
|
|
1257
|
+
name: "Boolean"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
persistFolderPath: {
|
|
1261
|
+
serializedName: "persistFolderPath",
|
|
1262
|
+
type: {
|
|
1263
|
+
name: "String"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1145
1266
|
luns: {
|
|
1146
1267
|
serializedName: "luns",
|
|
1147
1268
|
type: {
|
|
@@ -1309,6 +1430,17 @@ const AvailabilityGroupListener = {
|
|
|
1309
1430
|
}
|
|
1310
1431
|
}
|
|
1311
1432
|
}
|
|
1433
|
+
}, multiSubnetIpConfigurations: {
|
|
1434
|
+
serializedName: "properties.multiSubnetIpConfigurations",
|
|
1435
|
+
type: {
|
|
1436
|
+
name: "Sequence",
|
|
1437
|
+
element: {
|
|
1438
|
+
type: {
|
|
1439
|
+
name: "Composite",
|
|
1440
|
+
className: "MultiSubnetIpConfiguration"
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1312
1444
|
}, createDefaultAvailabilityGroupIfNotExist: {
|
|
1313
1445
|
serializedName: "properties.createDefaultAvailabilityGroupIfNotExist",
|
|
1314
1446
|
type: {
|
|
@@ -1423,6 +1555,11 @@ const SqlVirtualMachine = {
|
|
|
1423
1555
|
type: {
|
|
1424
1556
|
name: "String"
|
|
1425
1557
|
}
|
|
1558
|
+
}, leastPrivilegeMode: {
|
|
1559
|
+
serializedName: "properties.leastPrivilegeMode",
|
|
1560
|
+
type: {
|
|
1561
|
+
name: "String"
|
|
1562
|
+
}
|
|
1426
1563
|
}, sqlImageSku: {
|
|
1427
1564
|
serializedName: "properties.sqlImageSku",
|
|
1428
1565
|
type: {
|
|
@@ -1439,6 +1576,11 @@ const SqlVirtualMachine = {
|
|
|
1439
1576
|
name: "Composite",
|
|
1440
1577
|
className: "WsfcDomainCredentials"
|
|
1441
1578
|
}
|
|
1579
|
+
}, wsfcStaticIp: {
|
|
1580
|
+
serializedName: "properties.wsfcStaticIp",
|
|
1581
|
+
type: {
|
|
1582
|
+
name: "String"
|
|
1583
|
+
}
|
|
1442
1584
|
}, autoPatchingSettings: {
|
|
1443
1585
|
serializedName: "properties.autoPatchingSettings",
|
|
1444
1586
|
type: {
|
|
@@ -1475,6 +1617,11 @@ const SqlVirtualMachine = {
|
|
|
1475
1617
|
name: "Composite",
|
|
1476
1618
|
className: "AssessmentSettings"
|
|
1477
1619
|
}
|
|
1620
|
+
}, enableAutomaticUpgrade: {
|
|
1621
|
+
serializedName: "properties.enableAutomaticUpgrade",
|
|
1622
|
+
type: {
|
|
1623
|
+
name: "Boolean"
|
|
1624
|
+
}
|
|
1478
1625
|
} })
|
|
1479
1626
|
}
|
|
1480
1627
|
};
|
|
@@ -1483,6 +1630,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1483
1630
|
__proto__: null,
|
|
1484
1631
|
LoadBalancerConfiguration: LoadBalancerConfiguration,
|
|
1485
1632
|
PrivateIPAddress: PrivateIPAddress,
|
|
1633
|
+
MultiSubnetIpConfiguration: MultiSubnetIpConfiguration,
|
|
1486
1634
|
AgConfiguration: AgConfiguration,
|
|
1487
1635
|
AgReplica: AgReplica,
|
|
1488
1636
|
SystemData: SystemData,
|
|
@@ -1600,7 +1748,7 @@ const subscriptionId = {
|
|
|
1600
1748
|
const apiVersion = {
|
|
1601
1749
|
parameterPath: "apiVersion",
|
|
1602
1750
|
mapper: {
|
|
1603
|
-
defaultValue: "
|
|
1751
|
+
defaultValue: "2022-07-01-preview",
|
|
1604
1752
|
isConstant: true,
|
|
1605
1753
|
serializedName: "api-version",
|
|
1606
1754
|
type: {
|
|
@@ -2808,13 +2956,13 @@ class SqlVirtualMachinesImpl {
|
|
|
2808
2956
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2809
2957
|
}
|
|
2810
2958
|
/**
|
|
2811
|
-
*
|
|
2959
|
+
* Starts Assessment on SQL virtual machine.
|
|
2812
2960
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2813
2961
|
* value from the Azure Resource Manager API or the portal.
|
|
2814
2962
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2815
2963
|
* @param options The options parameters.
|
|
2816
2964
|
*/
|
|
2817
|
-
|
|
2965
|
+
beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2818
2966
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2819
2967
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2820
2968
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -2838,7 +2986,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2838
2986
|
}
|
|
2839
2987
|
};
|
|
2840
2988
|
});
|
|
2841
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options },
|
|
2989
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, startAssessmentOperationSpec);
|
|
2842
2990
|
const poller = new coreLro.LroEngine(lro, {
|
|
2843
2991
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2844
2992
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2848,37 +2996,26 @@ class SqlVirtualMachinesImpl {
|
|
|
2848
2996
|
});
|
|
2849
2997
|
}
|
|
2850
2998
|
/**
|
|
2851
|
-
*
|
|
2999
|
+
* Starts Assessment on SQL virtual machine.
|
|
2852
3000
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2853
3001
|
* value from the Azure Resource Manager API or the portal.
|
|
2854
3002
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2855
3003
|
* @param options The options parameters.
|
|
2856
3004
|
*/
|
|
2857
|
-
|
|
3005
|
+
beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2858
3006
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2859
|
-
const poller = yield this.
|
|
3007
|
+
const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
|
|
2860
3008
|
return poller.pollUntilDone();
|
|
2861
3009
|
});
|
|
2862
3010
|
}
|
|
2863
3011
|
/**
|
|
2864
|
-
*
|
|
2865
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2866
|
-
* value from the Azure Resource Manager API or the portal.
|
|
2867
|
-
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2868
|
-
* @param options The options parameters.
|
|
2869
|
-
*/
|
|
2870
|
-
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2871
|
-
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
2872
|
-
}
|
|
2873
|
-
/**
|
|
2874
|
-
* Creates or updates a SQL virtual machine.
|
|
3012
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2875
3013
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2876
3014
|
* value from the Azure Resource Manager API or the portal.
|
|
2877
3015
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2878
|
-
* @param parameters The SQL virtual machine.
|
|
2879
3016
|
* @param options The options parameters.
|
|
2880
3017
|
*/
|
|
2881
|
-
|
|
3018
|
+
beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2882
3019
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2883
3020
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2884
3021
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -2902,7 +3039,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2902
3039
|
}
|
|
2903
3040
|
};
|
|
2904
3041
|
});
|
|
2905
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName,
|
|
3042
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, redeployOperationSpec);
|
|
2906
3043
|
const poller = new coreLro.LroEngine(lro, {
|
|
2907
3044
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2908
3045
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2912,27 +3049,37 @@ class SqlVirtualMachinesImpl {
|
|
|
2912
3049
|
});
|
|
2913
3050
|
}
|
|
2914
3051
|
/**
|
|
2915
|
-
*
|
|
3052
|
+
* Uninstalls and reinstalls the SQL Iaas Extension.
|
|
2916
3053
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2917
3054
|
* value from the Azure Resource Manager API or the portal.
|
|
2918
3055
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2919
|
-
* @param parameters The SQL virtual machine.
|
|
2920
3056
|
* @param options The options parameters.
|
|
2921
3057
|
*/
|
|
2922
|
-
|
|
3058
|
+
beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2923
3059
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2924
|
-
const poller = yield this.
|
|
3060
|
+
const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
|
|
2925
3061
|
return poller.pollUntilDone();
|
|
2926
3062
|
});
|
|
2927
3063
|
}
|
|
2928
3064
|
/**
|
|
2929
|
-
*
|
|
3065
|
+
* Gets a SQL virtual machine.
|
|
2930
3066
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2931
3067
|
* value from the Azure Resource Manager API or the portal.
|
|
2932
3068
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2933
3069
|
* @param options The options parameters.
|
|
2934
3070
|
*/
|
|
2935
|
-
|
|
3071
|
+
get(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3072
|
+
return this.client.sendOperationRequest({ resourceGroupName, sqlVirtualMachineName, options }, getOperationSpec);
|
|
3073
|
+
}
|
|
3074
|
+
/**
|
|
3075
|
+
* Creates or updates a SQL virtual machine.
|
|
3076
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3077
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3078
|
+
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3079
|
+
* @param parameters The SQL virtual machine.
|
|
3080
|
+
* @param options The options parameters.
|
|
3081
|
+
*/
|
|
3082
|
+
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
2936
3083
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2937
3084
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2938
3085
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -2956,7 +3103,7 @@ class SqlVirtualMachinesImpl {
|
|
|
2956
3103
|
}
|
|
2957
3104
|
};
|
|
2958
3105
|
});
|
|
2959
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options },
|
|
3106
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, createOrUpdateOperationSpec);
|
|
2960
3107
|
const poller = new coreLro.LroEngine(lro, {
|
|
2961
3108
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2962
3109
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -2966,27 +3113,27 @@ class SqlVirtualMachinesImpl {
|
|
|
2966
3113
|
});
|
|
2967
3114
|
}
|
|
2968
3115
|
/**
|
|
2969
|
-
*
|
|
3116
|
+
* Creates or updates a SQL virtual machine.
|
|
2970
3117
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2971
3118
|
* value from the Azure Resource Manager API or the portal.
|
|
2972
3119
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3120
|
+
* @param parameters The SQL virtual machine.
|
|
2973
3121
|
* @param options The options parameters.
|
|
2974
3122
|
*/
|
|
2975
|
-
|
|
3123
|
+
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
2976
3124
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2977
|
-
const poller = yield this.
|
|
3125
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
2978
3126
|
return poller.pollUntilDone();
|
|
2979
3127
|
});
|
|
2980
3128
|
}
|
|
2981
3129
|
/**
|
|
2982
|
-
*
|
|
3130
|
+
* Deletes a SQL virtual machine.
|
|
2983
3131
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
2984
3132
|
* value from the Azure Resource Manager API or the portal.
|
|
2985
3133
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
2986
|
-
* @param parameters The SQL virtual machine.
|
|
2987
3134
|
* @param options The options parameters.
|
|
2988
3135
|
*/
|
|
2989
|
-
|
|
3136
|
+
beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
|
|
2990
3137
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2991
3138
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2992
3139
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -3010,7 +3157,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3010
3157
|
}
|
|
3011
3158
|
};
|
|
3012
3159
|
});
|
|
3013
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName,
|
|
3160
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options }, deleteOperationSpec);
|
|
3014
3161
|
const poller = new coreLro.LroEngine(lro, {
|
|
3015
3162
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3016
3163
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3020,36 +3167,27 @@ class SqlVirtualMachinesImpl {
|
|
|
3020
3167
|
});
|
|
3021
3168
|
}
|
|
3022
3169
|
/**
|
|
3023
|
-
*
|
|
3170
|
+
* Deletes a SQL virtual machine.
|
|
3024
3171
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3025
3172
|
* value from the Azure Resource Manager API or the portal.
|
|
3026
3173
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3027
|
-
* @param parameters The SQL virtual machine.
|
|
3028
3174
|
* @param options The options parameters.
|
|
3029
3175
|
*/
|
|
3030
|
-
|
|
3176
|
+
beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
|
|
3031
3177
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3032
|
-
const poller = yield this.
|
|
3178
|
+
const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
|
|
3033
3179
|
return poller.pollUntilDone();
|
|
3034
3180
|
});
|
|
3035
3181
|
}
|
|
3036
3182
|
/**
|
|
3037
|
-
*
|
|
3038
|
-
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3039
|
-
* value from the Azure Resource Manager API or the portal.
|
|
3040
|
-
* @param options The options parameters.
|
|
3041
|
-
*/
|
|
3042
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
3043
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3044
|
-
}
|
|
3045
|
-
/**
|
|
3046
|
-
* Starts Assessment on SQL virtual machine.
|
|
3183
|
+
* Updates a SQL virtual machine.
|
|
3047
3184
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3048
3185
|
* value from the Azure Resource Manager API or the portal.
|
|
3049
3186
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3187
|
+
* @param parameters The SQL virtual machine.
|
|
3050
3188
|
* @param options The options parameters.
|
|
3051
3189
|
*/
|
|
3052
|
-
|
|
3190
|
+
beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3053
3191
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3054
3192
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3055
3193
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -3073,7 +3211,7 @@ class SqlVirtualMachinesImpl {
|
|
|
3073
3211
|
}
|
|
3074
3212
|
};
|
|
3075
3213
|
});
|
|
3076
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, options },
|
|
3214
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlVirtualMachineName, parameters, options }, updateOperationSpec);
|
|
3077
3215
|
const poller = new coreLro.LroEngine(lro, {
|
|
3078
3216
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3079
3217
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
@@ -3083,18 +3221,28 @@ class SqlVirtualMachinesImpl {
|
|
|
3083
3221
|
});
|
|
3084
3222
|
}
|
|
3085
3223
|
/**
|
|
3086
|
-
*
|
|
3224
|
+
* Updates a SQL virtual machine.
|
|
3087
3225
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3088
3226
|
* value from the Azure Resource Manager API or the portal.
|
|
3089
3227
|
* @param sqlVirtualMachineName Name of the SQL virtual machine.
|
|
3228
|
+
* @param parameters The SQL virtual machine.
|
|
3090
3229
|
* @param options The options parameters.
|
|
3091
3230
|
*/
|
|
3092
|
-
|
|
3231
|
+
beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
|
|
3093
3232
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3094
|
-
const poller = yield this.
|
|
3233
|
+
const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
|
|
3095
3234
|
return poller.pollUntilDone();
|
|
3096
3235
|
});
|
|
3097
3236
|
}
|
|
3237
|
+
/**
|
|
3238
|
+
* Gets all SQL virtual machines in a resource group.
|
|
3239
|
+
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
3240
|
+
* value from the Azure Resource Manager API or the portal.
|
|
3241
|
+
* @param options The options parameters.
|
|
3242
|
+
*/
|
|
3243
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
3244
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3245
|
+
}
|
|
3098
3246
|
/**
|
|
3099
3247
|
* ListBySqlVmGroupNext
|
|
3100
3248
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
|
@@ -3160,6 +3308,19 @@ const listOperationSpec = {
|
|
|
3160
3308
|
headerParameters: [accept],
|
|
3161
3309
|
serializer
|
|
3162
3310
|
};
|
|
3311
|
+
const startAssessmentOperationSpec = {
|
|
3312
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
3313
|
+
httpMethod: "POST",
|
|
3314
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3315
|
+
queryParameters: [apiVersion],
|
|
3316
|
+
urlParameters: [
|
|
3317
|
+
$host,
|
|
3318
|
+
resourceGroupName,
|
|
3319
|
+
subscriptionId,
|
|
3320
|
+
sqlVirtualMachineName
|
|
3321
|
+
],
|
|
3322
|
+
serializer
|
|
3323
|
+
};
|
|
3163
3324
|
const redeployOperationSpec = {
|
|
3164
3325
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/redeploy",
|
|
3165
3326
|
httpMethod: "POST",
|
|
@@ -3283,19 +3444,6 @@ const listByResourceGroupOperationSpec = {
|
|
|
3283
3444
|
headerParameters: [accept],
|
|
3284
3445
|
serializer
|
|
3285
3446
|
};
|
|
3286
|
-
const startAssessmentOperationSpec = {
|
|
3287
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/startAssessment",
|
|
3288
|
-
httpMethod: "POST",
|
|
3289
|
-
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
3290
|
-
queryParameters: [apiVersion],
|
|
3291
|
-
urlParameters: [
|
|
3292
|
-
$host,
|
|
3293
|
-
resourceGroupName,
|
|
3294
|
-
subscriptionId,
|
|
3295
|
-
sqlVirtualMachineName
|
|
3296
|
-
],
|
|
3297
|
-
serializer
|
|
3298
|
-
};
|
|
3299
3447
|
const listBySqlVmGroupNextOperationSpec = {
|
|
3300
3448
|
path: "{nextLink}",
|
|
3301
3449
|
httpMethod: "GET",
|
|
@@ -3384,7 +3532,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3384
3532
|
requestContentType: "application/json; charset=utf-8",
|
|
3385
3533
|
credential: credentials
|
|
3386
3534
|
};
|
|
3387
|
-
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.
|
|
3535
|
+
const packageDetails = `azsdk-js-arm-sqlvirtualmachine/5.0.0-beta.6`;
|
|
3388
3536
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3389
3537
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3390
3538
|
: `${packageDetails}`;
|
|
@@ -3395,27 +3543,32 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3395
3543
|
userAgentPrefix
|
|
3396
3544
|
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3397
3545
|
super(optionsWithDefaults);
|
|
3546
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3398
3547
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3399
3548
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3400
|
-
|
|
3549
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3401
3550
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3551
|
+
}
|
|
3552
|
+
if (!options ||
|
|
3553
|
+
!options.pipeline ||
|
|
3554
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3555
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3556
|
+
this.pipeline.removePolicy({
|
|
3557
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3558
|
+
});
|
|
3559
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3560
|
+
credential: credentials,
|
|
3561
|
+
scopes: `${optionsWithDefaults.credentialScopes}`,
|
|
3562
|
+
challengeCallbacks: {
|
|
3563
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3564
|
+
}
|
|
3565
|
+
}));
|
|
3413
3566
|
}
|
|
3414
3567
|
// Parameter assignments
|
|
3415
3568
|
this.subscriptionId = subscriptionId;
|
|
3416
3569
|
// Assigning values to Constant parameters
|
|
3417
3570
|
this.$host = options.$host || "https://management.azure.com";
|
|
3418
|
-
this.apiVersion = options.apiVersion || "
|
|
3571
|
+
this.apiVersion = options.apiVersion || "2022-07-01-preview";
|
|
3419
3572
|
this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
|
|
3420
3573
|
this.operations = new OperationsImpl(this);
|
|
3421
3574
|
this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
|
|
@@ -3435,7 +3588,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3435
3588
|
if (param.length > 1) {
|
|
3436
3589
|
const newParams = param[1].split("&").map((item) => {
|
|
3437
3590
|
if (item.indexOf("api-version") > -1) {
|
|
3438
|
-
return
|
|
3591
|
+
return "api-version=" + apiVersion;
|
|
3439
3592
|
}
|
|
3440
3593
|
else {
|
|
3441
3594
|
return item;
|