@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
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
19
19
|
/** Class containing MigrationServices operations. */
|
20
20
|
class MigrationServicesImpl {
|
21
|
+
client;
|
21
22
|
/**
|
22
23
|
* Initialize a new instance of the class MigrationServices class.
|
23
24
|
* @param client Reference to the service client
|
@@ -41,52 +42,35 @@ class MigrationServicesImpl {
|
|
41
42
|
return this;
|
42
43
|
},
|
43
44
|
byPage: (settings) => {
|
44
|
-
if (settings
|
45
|
+
if (settings?.maxPageSize) {
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
46
47
|
}
|
47
48
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
48
49
|
},
|
49
50
|
};
|
50
51
|
}
|
51
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
}
|
69
|
-
});
|
52
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
53
|
+
let result;
|
54
|
+
let continuationToken = settings?.continuationToken;
|
55
|
+
if (!continuationToken) {
|
56
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
57
|
+
let page = result.value || [];
|
58
|
+
continuationToken = result.nextLink;
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
60
|
+
yield page;
|
61
|
+
}
|
62
|
+
while (continuationToken) {
|
63
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
64
|
+
continuationToken = result.nextLink;
|
65
|
+
let page = result.value || [];
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
67
|
+
yield page;
|
68
|
+
}
|
70
69
|
}
|
71
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
76
|
-
_c = _f.value;
|
77
|
-
_d = false;
|
78
|
-
const page = _c;
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
80
|
-
}
|
81
|
-
}
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
83
|
-
finally {
|
84
|
-
try {
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
86
|
-
}
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
88
|
-
}
|
89
|
-
});
|
70
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
71
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
72
|
+
yield* page;
|
73
|
+
}
|
90
74
|
}
|
91
75
|
/**
|
92
76
|
* Retrieve all migration services in the subscriptions.
|
@@ -102,52 +86,35 @@ class MigrationServicesImpl {
|
|
102
86
|
return this;
|
103
87
|
},
|
104
88
|
byPage: (settings) => {
|
105
|
-
if (settings
|
89
|
+
if (settings?.maxPageSize) {
|
106
90
|
throw new Error("maxPageSize is not supported by this operation.");
|
107
91
|
}
|
108
92
|
return this.listBySubscriptionPagingPage(options, settings);
|
109
93
|
},
|
110
94
|
};
|
111
95
|
}
|
112
|
-
listBySubscriptionPagingPage(options, settings) {
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
}
|
130
|
-
});
|
96
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
97
|
+
let result;
|
98
|
+
let continuationToken = settings?.continuationToken;
|
99
|
+
if (!continuationToken) {
|
100
|
+
result = await this._listBySubscription(options);
|
101
|
+
let page = result.value || [];
|
102
|
+
continuationToken = result.nextLink;
|
103
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
104
|
+
yield page;
|
105
|
+
}
|
106
|
+
while (continuationToken) {
|
107
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
108
|
+
continuationToken = result.nextLink;
|
109
|
+
let page = result.value || [];
|
110
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
111
|
+
yield page;
|
112
|
+
}
|
131
113
|
}
|
132
|
-
listBySubscriptionPagingAll(options) {
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
137
|
-
_c = _f.value;
|
138
|
-
_d = false;
|
139
|
-
const page = _c;
|
140
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__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 tslib_1.__await(_b.call(_e));
|
147
|
-
}
|
148
|
-
finally { if (e_2) throw e_2.error; }
|
149
|
-
}
|
150
|
-
});
|
114
|
+
async *listBySubscriptionPagingAll(options) {
|
115
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
116
|
+
yield* page;
|
117
|
+
}
|
151
118
|
}
|
152
119
|
/**
|
153
120
|
* Retrieve the List of database migrations attached to the service.
|
@@ -166,52 +133,35 @@ class MigrationServicesImpl {
|
|
166
133
|
return this;
|
167
134
|
},
|
168
135
|
byPage: (settings) => {
|
169
|
-
if (settings
|
136
|
+
if (settings?.maxPageSize) {
|
170
137
|
throw new Error("maxPageSize is not supported by this operation.");
|
171
138
|
}
|
172
139
|
return this.listMigrationsPagingPage(resourceGroupName, migrationServiceName, options, settings);
|
173
140
|
},
|
174
141
|
};
|
175
142
|
}
|
176
|
-
listMigrationsPagingPage(resourceGroupName, migrationServiceName, options, settings) {
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
}
|
194
|
-
});
|
143
|
+
async *listMigrationsPagingPage(resourceGroupName, migrationServiceName, options, settings) {
|
144
|
+
let result;
|
145
|
+
let continuationToken = settings?.continuationToken;
|
146
|
+
if (!continuationToken) {
|
147
|
+
result = await this._listMigrations(resourceGroupName, migrationServiceName, options);
|
148
|
+
let page = result.value || [];
|
149
|
+
continuationToken = result.nextLink;
|
150
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
151
|
+
yield page;
|
152
|
+
}
|
153
|
+
while (continuationToken) {
|
154
|
+
result = await this._listMigrationsNext(resourceGroupName, migrationServiceName, continuationToken, options);
|
155
|
+
continuationToken = result.nextLink;
|
156
|
+
let page = result.value || [];
|
157
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
158
|
+
yield page;
|
159
|
+
}
|
195
160
|
}
|
196
|
-
listMigrationsPagingAll(resourceGroupName, migrationServiceName, options) {
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listMigrationsPagingPage(resourceGroupName, migrationServiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
201
|
-
_c = _f.value;
|
202
|
-
_d = false;
|
203
|
-
const page = _c;
|
204
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
205
|
-
}
|
206
|
-
}
|
207
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
208
|
-
finally {
|
209
|
-
try {
|
210
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
211
|
-
}
|
212
|
-
finally { if (e_3) throw e_3.error; }
|
213
|
-
}
|
214
|
-
});
|
161
|
+
async *listMigrationsPagingAll(resourceGroupName, migrationServiceName, options) {
|
162
|
+
for await (const page of this.listMigrationsPagingPage(resourceGroupName, migrationServiceName, options)) {
|
163
|
+
yield* page;
|
164
|
+
}
|
215
165
|
}
|
216
166
|
/**
|
217
167
|
* Retrieve the Database Migration Service
|
@@ -236,14 +186,19 @@ class MigrationServicesImpl {
|
|
236
186
|
return this.client.sendOperationRequest(args, spec);
|
237
187
|
};
|
238
188
|
const sendOperationFn = async (args, spec) => {
|
239
|
-
var _a;
|
240
189
|
let currentRawResponse = undefined;
|
241
|
-
const providedCallback =
|
190
|
+
const providedCallback = args.options?.onResponse;
|
242
191
|
const callback = (rawResponse, flatResponse) => {
|
243
192
|
currentRawResponse = rawResponse;
|
244
|
-
providedCallback
|
193
|
+
providedCallback?.(rawResponse, flatResponse);
|
194
|
+
};
|
195
|
+
const updatedArgs = {
|
196
|
+
...args,
|
197
|
+
options: {
|
198
|
+
...args.options,
|
199
|
+
onResponse: callback,
|
200
|
+
},
|
245
201
|
};
|
246
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
247
202
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
248
203
|
return {
|
249
204
|
flatResponse,
|
@@ -260,8 +215,8 @@ class MigrationServicesImpl {
|
|
260
215
|
spec: createOrUpdateOperationSpec,
|
261
216
|
});
|
262
217
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
263
|
-
restoreFrom: options
|
264
|
-
intervalInMs: options
|
218
|
+
restoreFrom: options?.resumeFrom,
|
219
|
+
intervalInMs: options?.updateIntervalInMs,
|
265
220
|
});
|
266
221
|
await poller.poll();
|
267
222
|
return poller;
|
@@ -290,14 +245,19 @@ class MigrationServicesImpl {
|
|
290
245
|
return this.client.sendOperationRequest(args, spec);
|
291
246
|
};
|
292
247
|
const sendOperationFn = async (args, spec) => {
|
293
|
-
var _a;
|
294
248
|
let currentRawResponse = undefined;
|
295
|
-
const providedCallback =
|
249
|
+
const providedCallback = args.options?.onResponse;
|
296
250
|
const callback = (rawResponse, flatResponse) => {
|
297
251
|
currentRawResponse = rawResponse;
|
298
|
-
providedCallback
|
252
|
+
providedCallback?.(rawResponse, flatResponse);
|
253
|
+
};
|
254
|
+
const updatedArgs = {
|
255
|
+
...args,
|
256
|
+
options: {
|
257
|
+
...args.options,
|
258
|
+
onResponse: callback,
|
259
|
+
},
|
299
260
|
};
|
300
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
301
261
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
302
262
|
return {
|
303
263
|
flatResponse,
|
@@ -314,8 +274,8 @@ class MigrationServicesImpl {
|
|
314
274
|
spec: deleteOperationSpec,
|
315
275
|
});
|
316
276
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
317
|
-
restoreFrom: options
|
318
|
-
intervalInMs: options
|
277
|
+
restoreFrom: options?.resumeFrom,
|
278
|
+
intervalInMs: options?.updateIntervalInMs,
|
319
279
|
});
|
320
280
|
await poller.poll();
|
321
281
|
return poller;
|
@@ -344,14 +304,19 @@ class MigrationServicesImpl {
|
|
344
304
|
return this.client.sendOperationRequest(args, spec);
|
345
305
|
};
|
346
306
|
const sendOperationFn = async (args, spec) => {
|
347
|
-
var _a;
|
348
307
|
let currentRawResponse = undefined;
|
349
|
-
const providedCallback =
|
308
|
+
const providedCallback = args.options?.onResponse;
|
350
309
|
const callback = (rawResponse, flatResponse) => {
|
351
310
|
currentRawResponse = rawResponse;
|
352
|
-
providedCallback
|
311
|
+
providedCallback?.(rawResponse, flatResponse);
|
312
|
+
};
|
313
|
+
const updatedArgs = {
|
314
|
+
...args,
|
315
|
+
options: {
|
316
|
+
...args.options,
|
317
|
+
onResponse: callback,
|
318
|
+
},
|
353
319
|
};
|
354
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
355
320
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
356
321
|
return {
|
357
322
|
flatResponse,
|
@@ -368,8 +333,8 @@ class MigrationServicesImpl {
|
|
368
333
|
spec: updateOperationSpec,
|
369
334
|
});
|
370
335
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
371
|
-
restoreFrom: options
|
372
|
-
intervalInMs: options
|
336
|
+
restoreFrom: options?.resumeFrom,
|
337
|
+
intervalInMs: options?.updateIntervalInMs,
|
373
338
|
});
|
374
339
|
await poller.poll();
|
375
340
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrationServices.js","sourceRoot":"","sources":["../../../src/operations/migrationServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD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aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,oBAAoB;KAChC;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 { MigrationServices } 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 MigrationService,\n MigrationServicesListByResourceGroupNextOptionalParams,\n MigrationServicesListByResourceGroupOptionalParams,\n MigrationServicesListByResourceGroupResponse,\n MigrationServicesListBySubscriptionNextOptionalParams,\n MigrationServicesListBySubscriptionOptionalParams,\n MigrationServicesListBySubscriptionResponse,\n DatabaseMigrationBase,\n MigrationServicesListMigrationsNextOptionalParams,\n MigrationServicesListMigrationsOptionalParams,\n MigrationServicesListMigrationsResponse,\n MigrationServicesGetOptionalParams,\n MigrationServicesGetResponse,\n MigrationServicesCreateOrUpdateOptionalParams,\n MigrationServicesCreateOrUpdateResponse,\n MigrationServicesDeleteOptionalParams,\n MigrationServicesDeleteResponse,\n MigrationServiceUpdate,\n MigrationServicesUpdateOptionalParams,\n MigrationServicesUpdateResponse,\n MigrationServicesListByResourceGroupNextResponse,\n MigrationServicesListBySubscriptionNextResponse,\n MigrationServicesListMigrationsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MigrationServices operations. */\nexport class MigrationServicesImpl implements MigrationServices {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class MigrationServices class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all 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?: MigrationServicesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<MigrationService> {\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?: MigrationServicesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<MigrationService[]> {\n let result: MigrationServicesListByResourceGroupResponse;\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?: MigrationServicesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<MigrationService> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve all migration services in the subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: MigrationServicesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<MigrationService> {\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?: MigrationServicesListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<MigrationService[]> {\n let result: MigrationServicesListBySubscriptionResponse;\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?: MigrationServicesListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<MigrationService> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n public listMigrations(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n ): PagedAsyncIterableIterator<DatabaseMigrationBase> {\n const iter = this.listMigrationsPagingAll(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listMigrationsPagingPage(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DatabaseMigrationBase[]> {\n let result: MigrationServicesListMigrationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listMigrations(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName,\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 migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n ): AsyncIterableIterator<DatabaseMigrationBase> {\n for await (const page of this.listMigrationsPagingPage(\n resourceGroupName,\n migrationServiceName,\n options,\n )) {\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesGetOptionalParams,\n ): Promise<MigrationServicesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, migrationServiceName, 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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationService,\n options?: MigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<MigrationServicesCreateOrUpdateResponse>,\n MigrationServicesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<MigrationServicesCreateOrUpdateResponse> => {\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, migrationServiceName, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n MigrationServicesCreateOrUpdateResponse,\n OperationState<MigrationServicesCreateOrUpdateResponse>\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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationService,\n options?: MigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<MigrationServicesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<MigrationServicesDeleteResponse>,\n MigrationServicesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<MigrationServicesDeleteResponse> => {\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, migrationServiceName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n MigrationServicesDeleteResponse,\n OperationState<MigrationServicesDeleteResponse>\n >(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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesDeleteOptionalParams,\n ): Promise<MigrationServicesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationServiceUpdate,\n options?: MigrationServicesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<MigrationServicesUpdateResponse>,\n MigrationServicesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<MigrationServicesUpdateResponse> => {\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, migrationServiceName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n MigrationServicesUpdateResponse,\n OperationState<MigrationServicesUpdateResponse>\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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationServiceUpdate,\n options?: MigrationServicesUpdateOptionalParams,\n ): Promise<MigrationServicesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n migrationServiceName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve all 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?: MigrationServicesListByResourceGroupOptionalParams,\n ): Promise<MigrationServicesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Retrieve all migration services in the subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: MigrationServicesListBySubscriptionOptionalParams,\n ): Promise<MigrationServicesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n private _listMigrations(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n ): Promise<MigrationServicesListMigrationsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, migrationServiceName, options },\n listMigrationsOperationSpec,\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?: MigrationServicesListByResourceGroupNextOptionalParams,\n ): Promise<MigrationServicesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\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?: MigrationServicesListBySubscriptionNextOptionalParams,\n ): Promise<MigrationServicesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\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 migrationServiceName Name of the 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 migrationServiceName: string,\n nextLink: string,\n options?: MigrationServicesListMigrationsNextOptionalParams,\n ): Promise<MigrationServicesListMigrationsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, migrationServiceName, nextLink, options },\n listMigrationsNextOperationSpec,\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/migrationServices/{migrationServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationService,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationService,\n },\n 201: {\n bodyMapper: Mappers.MigrationService,\n },\n 202: {\n bodyMapper: Mappers.MigrationService,\n },\n 204: {\n bodyMapper: Mappers.MigrationService,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\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/migrationServices/{migrationServiceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationService,\n },\n 201: {\n bodyMapper: Mappers.MigrationService,\n },\n 202: {\n bodyMapper: Mappers.MigrationService,\n },\n 204: {\n bodyMapper: Mappers.MigrationService,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\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/migrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\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 listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/migrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listMigrationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}/listMigrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationBaseListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\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.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\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.DatabaseMigrationBaseListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
1
|
+
{"version":3,"file":"migrationServices.js","sourceRoot":"","sources":["../../../src/operations/migrationServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA2B9C,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBA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KACF;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;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,oBAAoB;KAChC;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 { MigrationServices } 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 MigrationService,\n MigrationServicesListByResourceGroupNextOptionalParams,\n MigrationServicesListByResourceGroupOptionalParams,\n MigrationServicesListByResourceGroupResponse,\n MigrationServicesListBySubscriptionNextOptionalParams,\n MigrationServicesListBySubscriptionOptionalParams,\n MigrationServicesListBySubscriptionResponse,\n DatabaseMigrationBase,\n MigrationServicesListMigrationsNextOptionalParams,\n MigrationServicesListMigrationsOptionalParams,\n MigrationServicesListMigrationsResponse,\n MigrationServicesGetOptionalParams,\n MigrationServicesGetResponse,\n MigrationServicesCreateOrUpdateOptionalParams,\n MigrationServicesCreateOrUpdateResponse,\n MigrationServicesDeleteOptionalParams,\n MigrationServicesDeleteResponse,\n MigrationServiceUpdate,\n MigrationServicesUpdateOptionalParams,\n MigrationServicesUpdateResponse,\n MigrationServicesListByResourceGroupNextResponse,\n MigrationServicesListBySubscriptionNextResponse,\n MigrationServicesListMigrationsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MigrationServices operations. */\nexport class MigrationServicesImpl implements MigrationServices {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class MigrationServices class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all 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?: MigrationServicesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<MigrationService> {\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?: MigrationServicesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<MigrationService[]> {\n let result: MigrationServicesListByResourceGroupResponse;\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?: MigrationServicesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<MigrationService> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve all migration services in the subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: MigrationServicesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<MigrationService> {\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?: MigrationServicesListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<MigrationService[]> {\n let result: MigrationServicesListBySubscriptionResponse;\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?: MigrationServicesListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<MigrationService> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n public listMigrations(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n ): PagedAsyncIterableIterator<DatabaseMigrationBase> {\n const iter = this.listMigrationsPagingAll(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listMigrationsPagingPage(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DatabaseMigrationBase[]> {\n let result: MigrationServicesListMigrationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listMigrations(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName,\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 migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n ): AsyncIterableIterator<DatabaseMigrationBase> {\n for await (const page of this.listMigrationsPagingPage(\n resourceGroupName,\n migrationServiceName,\n options,\n )) {\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesGetOptionalParams,\n ): Promise<MigrationServicesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, migrationServiceName, 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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationService,\n options?: MigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<MigrationServicesCreateOrUpdateResponse>,\n MigrationServicesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<MigrationServicesCreateOrUpdateResponse> => {\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, migrationServiceName, parameters, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n MigrationServicesCreateOrUpdateResponse,\n OperationState<MigrationServicesCreateOrUpdateResponse>\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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationService,\n options?: MigrationServicesCreateOrUpdateOptionalParams,\n ): Promise<MigrationServicesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<MigrationServicesDeleteResponse>,\n MigrationServicesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<MigrationServicesDeleteResponse> => {\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, migrationServiceName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n MigrationServicesDeleteResponse,\n OperationState<MigrationServicesDeleteResponse>\n >(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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesDeleteOptionalParams,\n ): Promise<MigrationServicesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n migrationServiceName,\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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationServiceUpdate,\n options?: MigrationServicesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<MigrationServicesUpdateResponse>,\n MigrationServicesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<MigrationServicesUpdateResponse> => {\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, migrationServiceName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n MigrationServicesUpdateResponse,\n OperationState<MigrationServicesUpdateResponse>\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 migrationServiceName Name of the Migration Service.\n * @param parameters Details of MigrationService resource.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n migrationServiceName: string,\n parameters: MigrationServiceUpdate,\n options?: MigrationServicesUpdateOptionalParams,\n ): Promise<MigrationServicesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n migrationServiceName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve all 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?: MigrationServicesListByResourceGroupOptionalParams,\n ): Promise<MigrationServicesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Retrieve all migration services in the subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: MigrationServicesListBySubscriptionOptionalParams,\n ): Promise<MigrationServicesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\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 migrationServiceName Name of the Migration Service.\n * @param options The options parameters.\n */\n private _listMigrations(\n resourceGroupName: string,\n migrationServiceName: string,\n options?: MigrationServicesListMigrationsOptionalParams,\n ): Promise<MigrationServicesListMigrationsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, migrationServiceName, options },\n listMigrationsOperationSpec,\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?: MigrationServicesListByResourceGroupNextOptionalParams,\n ): Promise<MigrationServicesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\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?: MigrationServicesListBySubscriptionNextOptionalParams,\n ): Promise<MigrationServicesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\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 migrationServiceName Name of the 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 migrationServiceName: string,\n nextLink: string,\n options?: MigrationServicesListMigrationsNextOptionalParams,\n ): Promise<MigrationServicesListMigrationsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, migrationServiceName, nextLink, options },\n listMigrationsNextOperationSpec,\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/migrationServices/{migrationServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationService,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationService,\n },\n 201: {\n bodyMapper: Mappers.MigrationService,\n },\n 202: {\n bodyMapper: Mappers.MigrationService,\n },\n 204: {\n bodyMapper: Mappers.MigrationService,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\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/migrationServices/{migrationServiceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.MigrationServicesDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationService,\n },\n 201: {\n bodyMapper: Mappers.MigrationService,\n },\n 202: {\n bodyMapper: Mappers.MigrationService,\n },\n 204: {\n bodyMapper: Mappers.MigrationService,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\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/migrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\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 listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/migrationServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listMigrationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}/listMigrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationBaseListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\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.MigrationServiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\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.DatabaseMigrationBaseListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.migrationServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|