@azure/arm-datamigration 3.0.0-beta.2 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/README.md +1 -1
- package/dist/index.js +630 -110
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/src/dataMigrationManagementClient.d.ts +2 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dataMigrationManagementClient.js +49 -18
- package/dist-esm/src/dataMigrationManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +556 -240
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +314 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/files.d.ts.map +1 -1
- package/dist-esm/src/operations/files.js +19 -7
- package/dist-esm/src/operations/files.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/projects.d.ts.map +1 -1
- package/dist-esm/src/operations/projects.js +19 -7
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -1
- package/dist-esm/src/operations/resourceSkus.js +19 -7
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -1
- package/dist-esm/src/operations/serviceTasks.js +19 -7
- package/dist-esm/src/operations/serviceTasks.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +55 -21
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlMigrationServices.js +55 -21
- package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
- package/dist-esm/src/operations/tasks.d.ts.map +1 -1
- package/dist-esm/src/operations/tasks.js +19 -7
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -7
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +14 -10
- package/review/arm-datamigration.api.md +564 -872
- package/src/dataMigrationManagementClient.ts +60 -20
- package/src/index.ts +1 -0
- package/src/models/index.ts +646 -246
- package/src/operations/files.ts +22 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/projects.ts +21 -8
- package/src/operations/resourceSkus.ts +21 -8
- package/src/operations/serviceTasks.ts +21 -8
- package/src/operations/services.ts +67 -25
- package/src/operations/sqlMigrationServices.ts +71 -29
- package/src/operations/tasks.ts +22 -8
- package/src/operations/usages.ts +21 -8
- package/src/pagingHelper.ts +39 -0
- package/types/arm-datamigration.d.ts +567 -240
- package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface PageInfo {
|
2
|
+
continuationToken?: string;
|
3
|
+
}
|
4
|
+
/**
|
5
|
+
* Given a result page from a pageable operation, returns a
|
6
|
+
* continuation token that can be used to begin paging from
|
7
|
+
* that point later.
|
8
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
9
|
+
* @returns The continuation token that can be passed into byPage().
|
10
|
+
*/
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
const pageMap = new WeakMap();
|
9
|
+
/**
|
10
|
+
* Given a result page from a pageable operation, returns a
|
11
|
+
* continuation token that can be used to begin paging from
|
12
|
+
* that point later.
|
13
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
14
|
+
* @returns The continuation token that can be passed into byPage().
|
15
|
+
*/
|
16
|
+
export function getContinuationToken(page) {
|
17
|
+
var _a;
|
18
|
+
if (typeof page !== "object" || page === null) {
|
19
|
+
return undefined;
|
20
|
+
}
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
22
|
+
}
|
23
|
+
export function setContinuationToken(page, continuationToken) {
|
24
|
+
var _a;
|
25
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
29
|
+
pageInfo.continuationToken = continuationToken;
|
30
|
+
pageMap.set(page, pageInfo);
|
31
|
+
}
|
32
|
+
//# sourceMappingURL=pagingHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
@@ -6,24 +6,22 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
import { __awaiter } from "tslib";
|
9
|
-
import {
|
10
|
-
const
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
19
|
-
],
|
20
|
-
queryParametersToSkip: []
|
9
|
+
import { Recorder } from "@azure-tools/test-recorder";
|
10
|
+
const replaceableVariables = {
|
11
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
12
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
13
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
14
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
15
|
+
};
|
16
|
+
const recorderOptions = {
|
17
|
+
envSetupForPlayback: replaceableVariables
|
21
18
|
};
|
22
19
|
describe("My test", () => {
|
23
20
|
let recorder;
|
24
21
|
beforeEach(function () {
|
25
22
|
return __awaiter(this, void 0, void 0, function* () {
|
26
|
-
recorder =
|
23
|
+
recorder = new Recorder(this.currentTest);
|
24
|
+
yield recorder.start(recorderOptions);
|
27
25
|
});
|
28
26
|
});
|
29
27
|
afterEach(function () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
"sdk-type": "mgmt",
|
4
4
|
"author": "Microsoft Corporation",
|
5
5
|
"description": "A generated SDK for DataMigrationManagementClient.",
|
6
|
-
"version": "3.0.0-beta.
|
6
|
+
"version": "3.0.0-beta.3",
|
7
7
|
"engines": {
|
8
|
-
"node": ">=
|
8
|
+
"node": ">=14.0.0"
|
9
9
|
},
|
10
10
|
"dependencies": {
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
14
|
-
"@azure/core-client": "^1.
|
14
|
+
"@azure/core-client": "^1.6.1",
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
17
17
|
"tslib": "^2.2.0"
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"module": "./dist-esm/src/index.js",
|
29
29
|
"types": "./types/arm-datamigration.d.ts",
|
30
30
|
"devDependencies": {
|
31
|
-
"@microsoft/api-extractor": "^7.
|
31
|
+
"@microsoft/api-extractor": "^7.31.1",
|
32
32
|
"@rollup/plugin-commonjs": "^21.0.1",
|
33
33
|
"@rollup/plugin-json": "^4.1.0",
|
34
34
|
"@rollup/plugin-multi-entry": "^4.1.0",
|
@@ -36,13 +36,18 @@
|
|
36
36
|
"mkdirp": "^1.0.4",
|
37
37
|
"rollup": "^2.66.1",
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
39
|
-
"typescript": "~4.
|
39
|
+
"typescript": "~4.8.0",
|
40
40
|
"uglify-js": "^3.4.9",
|
41
41
|
"rimraf": "^3.0.0",
|
42
42
|
"@azure/identity": "^2.0.1",
|
43
|
-
"@azure-tools/test-recorder": "^
|
43
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
44
|
+
"@azure-tools/test-credential": "^1.0.0",
|
44
45
|
"mocha": "^7.1.1",
|
45
|
-
"
|
46
|
+
"@types/chai": "^4.2.8",
|
47
|
+
"chai": "^4.2.0",
|
48
|
+
"cross-env": "^7.0.2",
|
49
|
+
"@types/node": "^14.0.0",
|
50
|
+
"@azure/dev-tool": "^1.0.0"
|
46
51
|
},
|
47
52
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datamigration/arm-datamigration",
|
48
53
|
"repository": {
|
@@ -93,9 +98,8 @@
|
|
93
98
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
94
99
|
"unit-test:browser": "echo skipped",
|
95
100
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
96
|
-
"integration-test:node": "
|
97
|
-
"integration-test:browser": "echo skipped"
|
98
|
-
"docs": "echo skipped"
|
101
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
102
|
+
"integration-test:browser": "echo skipped"
|
99
103
|
},
|
100
104
|
"sideEffects": false,
|
101
105
|
"//metadata": {
|