@azure/arm-datamigration 3.0.0-alpha.20250723.2 → 3.0.0-alpha.20250730.1
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/dist/browser/dataMigrationManagementClient.js +28 -5
- package/dist/browser/dataMigrationManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +1601 -737
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -52
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -52
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
- package/dist/browser/operations/databaseMigrationsSqlDb.js +34 -18
- package/dist/browser/operations/databaseMigrationsSqlDb.js.map +1 -1
- package/dist/browser/operations/databaseMigrationsSqlMi.js +34 -18
- package/dist/browser/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/browser/operations/databaseMigrationsSqlVm.js +34 -18
- package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/browser/operations/files.js +23 -40
- package/dist/browser/operations/files.js.map +1 -1
- package/dist/browser/operations/migrationServices.js +100 -136
- package/dist/browser/operations/migrationServices.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/projects.js +23 -40
- package/dist/browser/operations/projects.js.map +1 -1
- package/dist/browser/operations/resourceSkus.js +23 -40
- package/dist/browser/operations/resourceSkus.js.map +1 -1
- package/dist/browser/operations/serviceTasks.js +23 -40
- package/dist/browser/operations/serviceTasks.js.map +1 -1
- package/dist/browser/operations/services.js +122 -148
- package/dist/browser/operations/services.js.map +1 -1
- package/dist/browser/operations/sqlMigrationServices.js +100 -136
- package/dist/browser/operations/sqlMigrationServices.js.map +1 -1
- package/dist/browser/operations/tasks.js +23 -40
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operations/usages.js +23 -40
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/dataMigrationManagementClient.js +28 -5
- package/dist/commonjs/dataMigrationManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +1601 -737
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -51
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -51
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsSqlDb.js +34 -18
- package/dist/commonjs/operations/databaseMigrationsSqlDb.js.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsSqlMi.js +34 -18
- package/dist/commonjs/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsSqlVm.js +34 -18
- package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/commonjs/operations/files.js +23 -39
- package/dist/commonjs/operations/files.js.map +1 -1
- package/dist/commonjs/operations/migrationServices.js +100 -135
- package/dist/commonjs/operations/migrationServices.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/projects.js +23 -39
- package/dist/commonjs/operations/projects.js.map +1 -1
- package/dist/commonjs/operations/resourceSkus.js +23 -39
- package/dist/commonjs/operations/resourceSkus.js.map +1 -1
- package/dist/commonjs/operations/serviceTasks.js +23 -39
- package/dist/commonjs/operations/serviceTasks.js.map +1 -1
- package/dist/commonjs/operations/services.js +122 -147
- package/dist/commonjs/operations/services.js.map +1 -1
- package/dist/commonjs/operations/sqlMigrationServices.js +100 -135
- package/dist/commonjs/operations/sqlMigrationServices.js.map +1 -1
- package/dist/commonjs/operations/tasks.js +23 -39
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operations/usages.js +23 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/dataMigrationManagementClient.js +28 -5
- package/dist/esm/dataMigrationManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +1601 -737
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -52
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -52
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
- package/dist/esm/operations/databaseMigrationsSqlDb.js +34 -18
- package/dist/esm/operations/databaseMigrationsSqlDb.js.map +1 -1
- package/dist/esm/operations/databaseMigrationsSqlMi.js +34 -18
- package/dist/esm/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/esm/operations/databaseMigrationsSqlVm.js +34 -18
- package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/esm/operations/files.js +23 -40
- package/dist/esm/operations/files.js.map +1 -1
- package/dist/esm/operations/migrationServices.js +100 -136
- package/dist/esm/operations/migrationServices.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/projects.js +23 -40
- package/dist/esm/operations/projects.js.map +1 -1
- package/dist/esm/operations/resourceSkus.js +23 -40
- package/dist/esm/operations/resourceSkus.js.map +1 -1
- package/dist/esm/operations/serviceTasks.js +23 -40
- package/dist/esm/operations/serviceTasks.js.map +1 -1
- package/dist/esm/operations/services.js +122 -148
- package/dist/esm/operations/services.js.map +1 -1
- package/dist/esm/operations/sqlMigrationServices.js +100 -136
- package/dist/esm/operations/sqlMigrationServices.js.map +1 -1
- package/dist/esm/operations/tasks.js +23 -40
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operations/usages.js +23 -40
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/dataMigrationManagementClient.js +28 -5
- package/dist/react-native/dataMigrationManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +1601 -737
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +45 -52
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +45 -52
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
- package/dist/react-native/operations/databaseMigrationsSqlDb.js +34 -18
- package/dist/react-native/operations/databaseMigrationsSqlDb.js.map +1 -1
- package/dist/react-native/operations/databaseMigrationsSqlMi.js +34 -18
- package/dist/react-native/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/react-native/operations/databaseMigrationsSqlVm.js +34 -18
- package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/react-native/operations/files.js +23 -40
- package/dist/react-native/operations/files.js.map +1 -1
- package/dist/react-native/operations/migrationServices.js +100 -136
- package/dist/react-native/operations/migrationServices.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/projects.js +23 -40
- package/dist/react-native/operations/projects.js.map +1 -1
- package/dist/react-native/operations/resourceSkus.js +23 -40
- package/dist/react-native/operations/resourceSkus.js.map +1 -1
- package/dist/react-native/operations/serviceTasks.js +23 -40
- package/dist/react-native/operations/serviceTasks.js.map +1 -1
- package/dist/react-native/operations/services.js +122 -148
- package/dist/react-native/operations/services.js.map +1 -1
- package/dist/react-native/operations/sqlMigrationServices.js +100 -136
- package/dist/react-native/operations/sqlMigrationServices.js.map +1 -1
- package/dist/react-native/operations/tasks.js +23 -40
- package/dist/react-native/operations/tasks.js.map +1 -1
- package/dist/react-native/operations/usages.js +23 -40
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +1 -1
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
16
15
|
/** Class containing SqlMigrationServices operations. */
|
17
16
|
export class SqlMigrationServicesImpl {
|
17
|
+
client;
|
18
18
|
/**
|
19
19
|
* Initialize a new instance of the class SqlMigrationServices class.
|
20
20
|
* @param client Reference to the service client
|
@@ -38,52 +38,35 @@ export class SqlMigrationServicesImpl {
|
|
38
38
|
return this;
|
39
39
|
},
|
40
40
|
byPage: (settings) => {
|
41
|
-
if (settings
|
41
|
+
if (settings?.maxPageSize) {
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
43
43
|
}
|
44
44
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
45
45
|
},
|
46
46
|
};
|
47
47
|
}
|
48
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
}
|
66
|
-
});
|
48
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
49
|
+
let result;
|
50
|
+
let continuationToken = settings?.continuationToken;
|
51
|
+
if (!continuationToken) {
|
52
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
53
|
+
let page = result.value || [];
|
54
|
+
continuationToken = result.nextLink;
|
55
|
+
setContinuationToken(page, continuationToken);
|
56
|
+
yield page;
|
57
|
+
}
|
58
|
+
while (continuationToken) {
|
59
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
60
|
+
continuationToken = result.nextLink;
|
61
|
+
let page = result.value || [];
|
62
|
+
setContinuationToken(page, continuationToken);
|
63
|
+
yield page;
|
64
|
+
}
|
67
65
|
}
|
68
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
73
|
-
_c = _f.value;
|
74
|
-
_d = false;
|
75
|
-
const page = _c;
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
77
|
-
}
|
78
|
-
}
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
80
|
-
finally {
|
81
|
-
try {
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
83
|
-
}
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
85
|
-
}
|
86
|
-
});
|
66
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
67
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
68
|
+
yield* page;
|
69
|
+
}
|
87
70
|
}
|
88
71
|
/**
|
89
72
|
* Retrieve the List of database migrations attached to the service.
|
@@ -102,52 +85,35 @@ export class SqlMigrationServicesImpl {
|
|
102
85
|
return this;
|
103
86
|
},
|
104
87
|
byPage: (settings) => {
|
105
|
-
if (settings
|
88
|
+
if (settings?.maxPageSize) {
|
106
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
107
90
|
}
|
108
91
|
return this.listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options, settings);
|
109
92
|
},
|
110
93
|
};
|
111
94
|
}
|
112
|
-
listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options, settings) {
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
}
|
130
|
-
});
|
95
|
+
async *listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options, settings) {
|
96
|
+
let result;
|
97
|
+
let continuationToken = settings?.continuationToken;
|
98
|
+
if (!continuationToken) {
|
99
|
+
result = await this._listMigrations(resourceGroupName, sqlMigrationServiceName, options);
|
100
|
+
let page = result.value || [];
|
101
|
+
continuationToken = result.nextLink;
|
102
|
+
setContinuationToken(page, continuationToken);
|
103
|
+
yield page;
|
104
|
+
}
|
105
|
+
while (continuationToken) {
|
106
|
+
result = await this._listMigrationsNext(resourceGroupName, sqlMigrationServiceName, continuationToken, options);
|
107
|
+
continuationToken = result.nextLink;
|
108
|
+
let page = result.value || [];
|
109
|
+
setContinuationToken(page, continuationToken);
|
110
|
+
yield page;
|
111
|
+
}
|
131
112
|
}
|
132
|
-
listMigrationsPagingAll(resourceGroupName, sqlMigrationServiceName, options) {
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
for (var _d = true, _e = __asyncValues(this.listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
137
|
-
_c = _f.value;
|
138
|
-
_d = false;
|
139
|
-
const page = _c;
|
140
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
141
|
-
}
|
142
|
-
}
|
143
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
144
|
-
finally {
|
145
|
-
try {
|
146
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
147
|
-
}
|
148
|
-
finally { if (e_2) throw e_2.error; }
|
149
|
-
}
|
150
|
-
});
|
113
|
+
async *listMigrationsPagingAll(resourceGroupName, sqlMigrationServiceName, options) {
|
114
|
+
for await (const page of this.listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options)) {
|
115
|
+
yield* page;
|
116
|
+
}
|
151
117
|
}
|
152
118
|
/**
|
153
119
|
* Retrieve all SQL migration services in the subscriptions.
|
@@ -163,52 +129,35 @@ export class SqlMigrationServicesImpl {
|
|
163
129
|
return this;
|
164
130
|
},
|
165
131
|
byPage: (settings) => {
|
166
|
-
if (settings
|
132
|
+
if (settings?.maxPageSize) {
|
167
133
|
throw new Error("maxPageSize is not supported by this operation.");
|
168
134
|
}
|
169
135
|
return this.listBySubscriptionPagingPage(options, settings);
|
170
136
|
},
|
171
137
|
};
|
172
138
|
}
|
173
|
-
listBySubscriptionPagingPage(options, settings) {
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
}
|
191
|
-
});
|
139
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
140
|
+
let result;
|
141
|
+
let continuationToken = settings?.continuationToken;
|
142
|
+
if (!continuationToken) {
|
143
|
+
result = await this._listBySubscription(options);
|
144
|
+
let page = result.value || [];
|
145
|
+
continuationToken = result.nextLink;
|
146
|
+
setContinuationToken(page, continuationToken);
|
147
|
+
yield page;
|
148
|
+
}
|
149
|
+
while (continuationToken) {
|
150
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
151
|
+
continuationToken = result.nextLink;
|
152
|
+
let page = result.value || [];
|
153
|
+
setContinuationToken(page, continuationToken);
|
154
|
+
yield page;
|
155
|
+
}
|
192
156
|
}
|
193
|
-
listBySubscriptionPagingAll(options) {
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
198
|
-
_c = _f.value;
|
199
|
-
_d = false;
|
200
|
-
const page = _c;
|
201
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
202
|
-
}
|
203
|
-
}
|
204
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
205
|
-
finally {
|
206
|
-
try {
|
207
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
208
|
-
}
|
209
|
-
finally { if (e_3) throw e_3.error; }
|
210
|
-
}
|
211
|
-
});
|
157
|
+
async *listBySubscriptionPagingAll(options) {
|
158
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
159
|
+
yield* page;
|
160
|
+
}
|
212
161
|
}
|
213
162
|
/**
|
214
163
|
* Retrieve the Database Migration Service
|
@@ -233,14 +182,19 @@ export class SqlMigrationServicesImpl {
|
|
233
182
|
return this.client.sendOperationRequest(args, spec);
|
234
183
|
};
|
235
184
|
const sendOperationFn = async (args, spec) => {
|
236
|
-
var _a;
|
237
185
|
let currentRawResponse = undefined;
|
238
|
-
const providedCallback =
|
186
|
+
const providedCallback = args.options?.onResponse;
|
239
187
|
const callback = (rawResponse, flatResponse) => {
|
240
188
|
currentRawResponse = rawResponse;
|
241
|
-
providedCallback
|
189
|
+
providedCallback?.(rawResponse, flatResponse);
|
190
|
+
};
|
191
|
+
const updatedArgs = {
|
192
|
+
...args,
|
193
|
+
options: {
|
194
|
+
...args.options,
|
195
|
+
onResponse: callback,
|
196
|
+
},
|
242
197
|
};
|
243
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
244
198
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
245
199
|
return {
|
246
200
|
flatResponse,
|
@@ -257,8 +211,8 @@ export class SqlMigrationServicesImpl {
|
|
257
211
|
spec: createOrUpdateOperationSpec,
|
258
212
|
});
|
259
213
|
const poller = await createHttpPoller(lro, {
|
260
|
-
restoreFrom: options
|
261
|
-
intervalInMs: options
|
214
|
+
restoreFrom: options?.resumeFrom,
|
215
|
+
intervalInMs: options?.updateIntervalInMs,
|
262
216
|
});
|
263
217
|
await poller.poll();
|
264
218
|
return poller;
|
@@ -287,14 +241,19 @@ export class SqlMigrationServicesImpl {
|
|
287
241
|
return this.client.sendOperationRequest(args, spec);
|
288
242
|
};
|
289
243
|
const sendOperationFn = async (args, spec) => {
|
290
|
-
var _a;
|
291
244
|
let currentRawResponse = undefined;
|
292
|
-
const providedCallback =
|
245
|
+
const providedCallback = args.options?.onResponse;
|
293
246
|
const callback = (rawResponse, flatResponse) => {
|
294
247
|
currentRawResponse = rawResponse;
|
295
|
-
providedCallback
|
248
|
+
providedCallback?.(rawResponse, flatResponse);
|
249
|
+
};
|
250
|
+
const updatedArgs = {
|
251
|
+
...args,
|
252
|
+
options: {
|
253
|
+
...args.options,
|
254
|
+
onResponse: callback,
|
255
|
+
},
|
296
256
|
};
|
297
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
298
257
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
299
258
|
return {
|
300
259
|
flatResponse,
|
@@ -311,8 +270,8 @@ export class SqlMigrationServicesImpl {
|
|
311
270
|
spec: deleteOperationSpec,
|
312
271
|
});
|
313
272
|
const poller = await createHttpPoller(lro, {
|
314
|
-
restoreFrom: options
|
315
|
-
intervalInMs: options
|
273
|
+
restoreFrom: options?.resumeFrom,
|
274
|
+
intervalInMs: options?.updateIntervalInMs,
|
316
275
|
});
|
317
276
|
await poller.poll();
|
318
277
|
return poller;
|
@@ -341,14 +300,19 @@ export class SqlMigrationServicesImpl {
|
|
341
300
|
return this.client.sendOperationRequest(args, spec);
|
342
301
|
};
|
343
302
|
const sendOperationFn = async (args, spec) => {
|
344
|
-
var _a;
|
345
303
|
let currentRawResponse = undefined;
|
346
|
-
const providedCallback =
|
304
|
+
const providedCallback = args.options?.onResponse;
|
347
305
|
const callback = (rawResponse, flatResponse) => {
|
348
306
|
currentRawResponse = rawResponse;
|
349
|
-
providedCallback
|
307
|
+
providedCallback?.(rawResponse, flatResponse);
|
308
|
+
};
|
309
|
+
const updatedArgs = {
|
310
|
+
...args,
|
311
|
+
options: {
|
312
|
+
...args.options,
|
313
|
+
onResponse: callback,
|
314
|
+
},
|
350
315
|
};
|
351
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
352
316
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
353
317
|
return {
|
354
318
|
flatResponse,
|
@@ -365,8 +329,8 @@ export class SqlMigrationServicesImpl {
|
|
365
329
|
spec: updateOperationSpec,
|
366
330
|
});
|
367
331
|
const poller = await createHttpPoller(lro, {
|
368
|
-
restoreFrom: options
|
369
|
-
intervalInMs: options
|
332
|
+
restoreFrom: options?.resumeFrom,
|
333
|
+
intervalInMs: options?.updateIntervalInMs,
|
370
334
|
});
|
371
335
|
await poller.poll();
|
372
336
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sqlMigrationServices.js","source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C3C;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SqlMigrationServices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SqlMigrationService,\n SqlMigrationServicesListByResourceGroupNextOptionalParams,\n SqlMigrationServicesListByResourceGroupOptionalParams,\n SqlMigrationServicesListByResourceGroupResponse,\n DatabaseMigration,\n SqlMigrationServicesListMigrationsNextOptionalParams,\n SqlMigrationServicesListMigrationsOptionalParams,\n SqlMigrationServicesListMigrationsResponse,\n SqlMigrationServicesListBySubscriptionNextOptionalParams,\n SqlMigrationServicesListBySubscriptionOptionalParams,\n SqlMigrationServicesListBySubscriptionResponse,\n SqlMigrationServicesGetOptionalParams,\n SqlMigrationServicesGetResponse,\n SqlMigrationServicesCreateOrUpdateOptionalParams,\n SqlMigrationServicesCreateOrUpdateResponse,\n SqlMigrationServicesDeleteOptionalParams,\n SqlMigrationServiceUpdate,\n SqlMigrationServicesUpdateOptionalParams,\n SqlMigrationServicesUpdateResponse,\n SqlMigrationServicesListAuthKeysOptionalParams,\n SqlMigrationServicesListAuthKeysResponse,\n RegenAuthKeys,\n SqlMigrationServicesRegenerateAuthKeysOptionalParams,\n SqlMigrationServicesRegenerateAuthKeysResponse,\n DeleteNode,\n SqlMigrationServicesDeleteNodeOptionalParams,\n SqlMigrationServicesDeleteNodeResponse,\n SqlMigrationServicesListMonitoringDataOptionalParams,\n SqlMigrationServicesListMonitoringDataResponse,\n SqlMigrationServicesListByResourceGroupNextResponse,\n SqlMigrationServicesListMigrationsNextResponse,\n SqlMigrationServicesListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SqlMigrationServices operations. */\nexport class SqlMigrationServicesImpl implements SqlMigrationServices {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class SqlMigrationServices class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all SQL migration services in the resource group.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<SqlMigrationService> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SqlMigrationService[]> {\n let result: SqlMigrationServicesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<SqlMigrationService> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the List of database migrations attached to the service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n public listMigrations(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n ): PagedAsyncIterableIterator<DatabaseMigration> {\n const iter = this.listMigrationsPagingAll(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listMigrationsPagingPage(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listMigrationsPagingPage(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DatabaseMigration[]> {\n let result: SqlMigrationServicesListMigrationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listMigrations(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listMigrationsNext(\n resourceGroupName,\n sqlMigrationServiceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listMigrationsPagingAll(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n ): AsyncIterableIterator<DatabaseMigration> {\n for await (const page of this.listMigrationsPagingPage(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve all SQL migration services in the subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<SqlMigrationService> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SqlMigrationService[]> {\n let result: SqlMigrationServicesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<SqlMigrationService> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the Database Migration Service\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesGetOptionalParams,\n ): Promise<SqlMigrationServicesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationService,\n options?: SqlMigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SqlMigrationServicesCreateOrUpdateResponse>,\n SqlMigrationServicesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SqlMigrationServicesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, sqlMigrationServiceName, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SqlMigrationServicesCreateOrUpdateResponse,\n OperationState<SqlMigrationServicesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationService,\n options?: SqlMigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<SqlMigrationServicesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n sqlMigrationServiceName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, sqlMigrationServiceName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationServiceUpdate,\n options?: SqlMigrationServicesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SqlMigrationServicesUpdateResponse>,\n SqlMigrationServicesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SqlMigrationServicesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, sqlMigrationServiceName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SqlMigrationServicesUpdateResponse,\n OperationState<SqlMigrationServicesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationServiceUpdate,\n options?: SqlMigrationServicesUpdateOptionalParams,\n ): Promise<SqlMigrationServicesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n sqlMigrationServiceName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve all SQL migration services in the resource group.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n ): Promise<SqlMigrationServicesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n listAuthKeys(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListAuthKeysOptionalParams,\n ): Promise<SqlMigrationServicesListAuthKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n listAuthKeysOperationSpec,\n );\n }\n\n /**\n * Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n regenerateAuthKeys(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: RegenAuthKeys,\n options?: SqlMigrationServicesRegenerateAuthKeysOptionalParams,\n ): Promise<SqlMigrationServicesRegenerateAuthKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, parameters, options },\n regenerateAuthKeysOperationSpec,\n );\n }\n\n /**\n * Delete the integration runtime node.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n deleteNode(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: DeleteNode,\n options?: SqlMigrationServicesDeleteNodeOptionalParams,\n ): Promise<SqlMigrationServicesDeleteNodeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, parameters, options },\n deleteNodeOperationSpec,\n );\n }\n\n /**\n * Retrieve the List of database migrations attached to the service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n private _listMigrations(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n ): Promise<SqlMigrationServicesListMigrationsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n listMigrationsOperationSpec,\n );\n }\n\n /**\n * Retrieve the registered Integration Runtime nodes and their monitoring data for a given Database\n * Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n listMonitoringData(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMonitoringDataOptionalParams,\n ): Promise<SqlMigrationServicesListMonitoringDataResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n listMonitoringDataOperationSpec,\n );\n }\n\n /**\n * Retrieve all SQL migration services in the subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n ): Promise<SqlMigrationServicesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: SqlMigrationServicesListByResourceGroupNextOptionalParams,\n ): Promise<SqlMigrationServicesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListMigrationsNext\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param nextLink The nextLink from the previous successful call to the ListMigrations method.\n * @param options The options parameters.\n */\n private _listMigrationsNext(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n nextLink: string,\n options?: SqlMigrationServicesListMigrationsNextOptionalParams,\n ): Promise<SqlMigrationServicesListMigrationsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, nextLink, options },\n listMigrationsNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SqlMigrationServicesListBySubscriptionNextOptionalParams,\n ): Promise<SqlMigrationServicesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 201: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 202: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 204: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n default: {},\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 201: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 202: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 204: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n default: {},\n },\n requestBody: Parameters.parameters8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAuthKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthenticationKeys,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst regenerateAuthKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegenAuthKeys,\n },\n default: {},\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteNodeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeleteNode,\n },\n default: {},\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listMigrationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listMonitoringDataOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IntegrationRuntimeMonitoringData,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listMigrationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
1
|
+
{"version":3,"file":"sqlMigrationServices.js","sourceRoot":"","sources":["../../../src/operations/sqlMigrationServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoC9C,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,mBAAmB,CAC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AAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SqlMigrationServices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SqlMigrationService,\n SqlMigrationServicesListByResourceGroupNextOptionalParams,\n SqlMigrationServicesListByResourceGroupOptionalParams,\n SqlMigrationServicesListByResourceGroupResponse,\n DatabaseMigration,\n SqlMigrationServicesListMigrationsNextOptionalParams,\n SqlMigrationServicesListMigrationsOptionalParams,\n SqlMigrationServicesListMigrationsResponse,\n SqlMigrationServicesListBySubscriptionNextOptionalParams,\n SqlMigrationServicesListBySubscriptionOptionalParams,\n SqlMigrationServicesListBySubscriptionResponse,\n SqlMigrationServicesGetOptionalParams,\n SqlMigrationServicesGetResponse,\n SqlMigrationServicesCreateOrUpdateOptionalParams,\n SqlMigrationServicesCreateOrUpdateResponse,\n SqlMigrationServicesDeleteOptionalParams,\n SqlMigrationServiceUpdate,\n SqlMigrationServicesUpdateOptionalParams,\n SqlMigrationServicesUpdateResponse,\n SqlMigrationServicesListAuthKeysOptionalParams,\n SqlMigrationServicesListAuthKeysResponse,\n RegenAuthKeys,\n SqlMigrationServicesRegenerateAuthKeysOptionalParams,\n SqlMigrationServicesRegenerateAuthKeysResponse,\n DeleteNode,\n SqlMigrationServicesDeleteNodeOptionalParams,\n SqlMigrationServicesDeleteNodeResponse,\n SqlMigrationServicesListMonitoringDataOptionalParams,\n SqlMigrationServicesListMonitoringDataResponse,\n SqlMigrationServicesListByResourceGroupNextResponse,\n SqlMigrationServicesListMigrationsNextResponse,\n SqlMigrationServicesListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SqlMigrationServices operations. */\nexport class SqlMigrationServicesImpl implements SqlMigrationServices {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class SqlMigrationServices class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all SQL migration services in the resource group.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<SqlMigrationService> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SqlMigrationService[]> {\n let result: SqlMigrationServicesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<SqlMigrationService> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the List of database migrations attached to the service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n public listMigrations(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n ): PagedAsyncIterableIterator<DatabaseMigration> {\n const iter = this.listMigrationsPagingAll(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listMigrationsPagingPage(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listMigrationsPagingPage(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DatabaseMigration[]> {\n let result: SqlMigrationServicesListMigrationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listMigrations(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listMigrationsNext(\n resourceGroupName,\n sqlMigrationServiceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listMigrationsPagingAll(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n ): AsyncIterableIterator<DatabaseMigration> {\n for await (const page of this.listMigrationsPagingPage(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve all SQL migration services in the subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<SqlMigrationService> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SqlMigrationService[]> {\n let result: SqlMigrationServicesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<SqlMigrationService> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the Database Migration Service\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesGetOptionalParams,\n ): Promise<SqlMigrationServicesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationService,\n options?: SqlMigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SqlMigrationServicesCreateOrUpdateResponse>,\n SqlMigrationServicesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SqlMigrationServicesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, sqlMigrationServiceName, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SqlMigrationServicesCreateOrUpdateResponse,\n OperationState<SqlMigrationServicesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationService,\n options?: SqlMigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<SqlMigrationServicesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n sqlMigrationServiceName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, sqlMigrationServiceName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n sqlMigrationServiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationServiceUpdate,\n options?: SqlMigrationServicesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SqlMigrationServicesUpdateResponse>,\n SqlMigrationServicesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SqlMigrationServicesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, sqlMigrationServiceName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SqlMigrationServicesUpdateResponse,\n OperationState<SqlMigrationServicesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update Database Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: SqlMigrationServiceUpdate,\n options?: SqlMigrationServicesUpdateOptionalParams,\n ): Promise<SqlMigrationServicesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n sqlMigrationServiceName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve all SQL migration services in the resource group.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: SqlMigrationServicesListByResourceGroupOptionalParams,\n ): Promise<SqlMigrationServicesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n listAuthKeys(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListAuthKeysOptionalParams,\n ): Promise<SqlMigrationServicesListAuthKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n listAuthKeysOperationSpec,\n );\n }\n\n /**\n * Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n regenerateAuthKeys(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: RegenAuthKeys,\n options?: SqlMigrationServicesRegenerateAuthKeysOptionalParams,\n ): Promise<SqlMigrationServicesRegenerateAuthKeysResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, parameters, options },\n regenerateAuthKeysOperationSpec,\n );\n }\n\n /**\n * Delete the integration runtime node.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n deleteNode(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n parameters: DeleteNode,\n options?: SqlMigrationServicesDeleteNodeOptionalParams,\n ): Promise<SqlMigrationServicesDeleteNodeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, parameters, options },\n deleteNodeOperationSpec,\n );\n }\n\n /**\n * Retrieve the List of database migrations attached to the service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n private _listMigrations(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMigrationsOptionalParams,\n ): Promise<SqlMigrationServicesListMigrationsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n listMigrationsOperationSpec,\n );\n }\n\n /**\n * Retrieve the registered Integration Runtime nodes and their monitoring data for a given Database\n * Migration Service.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param options The options parameters.\n */\n listMonitoringData(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n options?: SqlMigrationServicesListMonitoringDataOptionalParams,\n ): Promise<SqlMigrationServicesListMonitoringDataResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, options },\n listMonitoringDataOperationSpec,\n );\n }\n\n /**\n * Retrieve all SQL migration services in the subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SqlMigrationServicesListBySubscriptionOptionalParams,\n ): Promise<SqlMigrationServicesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: SqlMigrationServicesListByResourceGroupNextOptionalParams,\n ): Promise<SqlMigrationServicesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListMigrationsNext\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlMigrationServiceName Name of the SQL Migration Service.\n * @param nextLink The nextLink from the previous successful call to the ListMigrations method.\n * @param options The options parameters.\n */\n private _listMigrationsNext(\n resourceGroupName: string,\n sqlMigrationServiceName: string,\n nextLink: string,\n options?: SqlMigrationServicesListMigrationsNextOptionalParams,\n ): Promise<SqlMigrationServicesListMigrationsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlMigrationServiceName, nextLink, options },\n listMigrationsNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SqlMigrationServicesListBySubscriptionNextOptionalParams,\n ): Promise<SqlMigrationServicesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 201: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 202: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 204: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n default: {},\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 201: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 202: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n 204: {\n bodyMapper: Mappers.SqlMigrationService,\n },\n default: {},\n },\n requestBody: Parameters.parameters8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAuthKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AuthenticationKeys,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst regenerateAuthKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RegenAuthKeys,\n },\n default: {},\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteNodeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeleteNode,\n },\n default: {},\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listMigrationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listMonitoringDataOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IntegrationRuntimeMonitoringData,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listMigrationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.sqlMigrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SqlMigrationListResult,\n },\n default: {},\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|