diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 694e81b4a476..9037eab1a9bf 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -30,6 +30,7 @@ specifiers:
'@rush-temp/arm-containerservice': file:./projects/arm-containerservice.tgz
'@rush-temp/arm-cosmosdb': file:./projects/arm-cosmosdb.tgz
'@rush-temp/arm-databricks': file:./projects/arm-databricks.tgz
+ '@rush-temp/arm-datacatalog': file:./projects/arm-datacatalog.tgz
'@rush-temp/arm-datafactory': file:./projects/arm-datafactory.tgz
'@rush-temp/arm-datalake-analytics': file:./projects/arm-datalake-analytics.tgz
'@rush-temp/arm-desktopvirtualization': file:./projects/arm-desktopvirtualization.tgz
@@ -211,6 +212,7 @@ dependencies:
'@rush-temp/arm-containerservice': file:projects/arm-containerservice.tgz
'@rush-temp/arm-cosmosdb': file:projects/arm-cosmosdb.tgz
'@rush-temp/arm-databricks': file:projects/arm-databricks.tgz
+ '@rush-temp/arm-datacatalog': file:projects/arm-datacatalog.tgz
'@rush-temp/arm-datafactory': file:projects/arm-datafactory.tgz
'@rush-temp/arm-datalake-analytics': file:projects/arm-datalake-analytics.tgz
'@rush-temp/arm-desktopvirtualization': file:projects/arm-desktopvirtualization.tgz
@@ -6977,7 +6979,7 @@ packages:
hasBin: true
dev: false
- /ts-node/10.4.0_276ff2ad8f60608417677a4691c0f835:
+ /ts-node/10.4.0_28670484a221c7e896c5d6b821a5cbb7:
resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==}
hasBin: true
peerDependencies:
@@ -7003,11 +7005,11 @@ packages:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 4.2.4
+ typescript: 4.4.4
yn: 3.1.1
dev: false
- /ts-node/10.4.0_54d7f9b57c83a5c5120be11b085b9de6:
+ /ts-node/10.4.0_f9f9f28f986ed7ad377c75abc9f416f4:
resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==}
hasBin: true
peerDependencies:
@@ -7033,7 +7035,7 @@ packages:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 4.4.4
+ typescript: 4.2.4
yn: 3.1.1
dev: false
@@ -7629,7 +7631,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -7857,7 +7859,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -7908,7 +7910,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -7965,7 +7967,7 @@ packages:
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-terser: 5.3.1_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -8416,6 +8418,27 @@ packages:
uglify-js: 3.14.5
dev: false
+ file:projects/arm-datacatalog.tgz:
+ resolution: {integrity: sha512-U/jjqqRLl+X7CAxtt9LRHLKVVdWKjjPOjeXJ2nsxNOhQ026Hq9WkGkTH7tOLKVSY+sbkYWJ1cZCUferg5Sz1uQ==, tarball: file:projects/arm-datacatalog.tgz}
+ name: '@rush-temp/arm-datacatalog'
+ version: 0.0.0
+ dependencies:
+ '@microsoft/api-extractor': 7.19.2
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ dev: false
+
file:projects/arm-datafactory.tgz:
resolution: {integrity: sha512-wm2n/Ns8vlhtEN0s+6Dp62FqXTpObLqUM/gtWBopBYVv45/1htEURor+8vevFUbYVOMwLXrqqtk11/5qnu34RQ==, tarball: file:projects/arm-datafactory.tgz}
name: '@rush-temp/arm-datafactory'
@@ -9487,7 +9510,7 @@ packages:
rollup: 1.32.1
safe-buffer: 5.2.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -9982,7 +10005,7 @@ packages:
dev: false
file:projects/core-amqp.tgz:
- resolution: {integrity: sha512-jmyXvDp5FyZIlqp1zATESQp6qO2NqjKSfY5o9ojPsKN/g9WJ45RL4jfy+cD5u8C2t9jSDTsCoL+jbiLptpkDLA==, tarball: file:projects/core-amqp.tgz}
+ resolution: {integrity: sha512-nAZlMW/WFVSloK1iVzoSJNx9CHjvMl4/kJrnq1s5Okn96/AQX19SYkqfdvmew1Oy3bxfDC2g3n3e1CFLrlSyEg==, tarball: file:projects/core-amqp.tgz}
name: '@rush-temp/core-amqp'
version: 0.0.0
dependencies:
@@ -10025,7 +10048,7 @@ packages:
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-terser: 5.3.1_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
url: 0.11.0
@@ -10111,7 +10134,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -10342,7 +10365,7 @@ packages:
shx: 0.3.3
sinon: 9.2.4
tough-cookie: 4.0.0
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
tunnel: 0.0.6
typescript: 4.2.4
@@ -10390,7 +10413,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -10657,7 +10680,7 @@ packages:
sinon: 9.2.4
snap-shot-it: 7.9.6
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
universal-user-agent: 6.0.0
@@ -10714,7 +10737,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -10760,7 +10783,7 @@ packages:
rollup: 1.32.1
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
- ts-node: 10.4.0_54d7f9b57c83a5c5120be11b085b9de6
+ ts-node: 10.4.0_28670484a221c7e896c5d6b821a5cbb7
tslib: 2.3.1
typescript: 4.4.4
yaml: 1.10.2
@@ -10917,7 +10940,7 @@ packages:
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
rollup-plugin-terser: 5.3.1_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -10979,7 +11002,7 @@ packages:
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11034,7 +11057,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -11087,7 +11110,7 @@ packages:
prettier: 2.5.1
rimraf: 3.0.2
rollup: 1.32.1
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -11289,7 +11312,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -11553,7 +11576,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11702,7 +11725,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11774,7 +11797,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11794,7 +11817,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11814,7 +11837,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11834,7 +11857,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11873,7 +11896,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11894,7 +11917,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11917,7 +11940,7 @@ packages:
moment: 2.29.1
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -11937,7 +11960,7 @@ packages:
eslint: 7.32.0
prettier: 1.19.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11957,7 +11980,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -11978,7 +12001,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12000,7 +12023,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12021,7 +12044,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12041,7 +12064,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -12060,7 +12083,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
transitivePeerDependencies:
@@ -12081,7 +12104,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12104,7 +12127,7 @@ packages:
node-fetch: 2.6.6
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12125,7 +12148,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12146,7 +12169,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12167,7 +12190,7 @@ packages:
eslint: 7.32.0
prettier: 2.5.1
rimraf: 3.0.2
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uuid: 8.3.2
@@ -12539,7 +12562,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12608,7 +12631,7 @@ packages:
rimraf: 3.0.2
rollup: 1.32.1
sinon: 9.2.4
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
ws: 8.3.0
@@ -12671,7 +12694,7 @@ packages:
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12734,7 +12757,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12797,7 +12820,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12858,7 +12881,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12916,7 +12939,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -12976,7 +12999,7 @@ packages:
rollup-plugin-terser: 5.3.1_rollup@1.32.1
rollup-plugin-visualizer: 4.2.2_rollup@1.32.1
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
util: 0.12.4
@@ -13028,7 +13051,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -13082,7 +13105,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
@@ -13135,7 +13158,7 @@ packages:
rollup: 1.32.1
sinon: 9.2.4
source-map-support: 0.5.21
- ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835
+ ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4
tslib: 2.3.1
typescript: 4.2.4
uglify-js: 3.14.5
diff --git a/rush.json b/rush.json
index 66a9aa13703f..5155830bc1f8 100644
--- a/rush.json
+++ b/rush.json
@@ -1215,6 +1215,11 @@
"packageName": "@azure/arm-containerinstance",
"projectFolder": "sdk/containerinstance/arm-containerinstance",
"versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-datacatalog",
+ "projectFolder": "sdk/datacatalog/arm-datacatalog",
+ "versionPolicyName": "management"
}
]
}
\ No newline at end of file
diff --git a/sdk/datacatalog/arm-datacatalog/CHANGELOG.md b/sdk/datacatalog/arm-datacatalog/CHANGELOG.md
new file mode 100644
index 000000000000..fddf97634129
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 3.0.0 (2022-01-05)
+
+The package of @azure/arm-datacatalog is using our next generation design principles since version 3.0.0, which contains breaking changes.
+
+To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
+
+To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
+
+To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/datacatalog/arm-datacatalog/LICENSE.txt b/sdk/datacatalog/arm-datacatalog/LICENSE
similarity index 96%
rename from sdk/datacatalog/arm-datacatalog/LICENSE.txt
rename to sdk/datacatalog/arm-datacatalog/LICENSE
index a70e8cf66038..5d1d36e0af80 100644
--- a/sdk/datacatalog/arm-datacatalog/LICENSE.txt
+++ b/sdk/datacatalog/arm-datacatalog/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2018 Microsoft
+Copyright (c) 2022 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/datacatalog/arm-datacatalog/README.md b/sdk/datacatalog/arm-datacatalog/README.md
index bfe24b08786b..54a8eacf4df4 100644
--- a/sdk/datacatalog/arm-datacatalog/README.md
+++ b/sdk/datacatalog/arm-datacatalog/README.md
@@ -1,109 +1,98 @@
-## Azure DataCatalogRestClient SDK for JavaScript
+# Azure DataCatalogRest client library for JavaScript
-This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DataCatalogRestClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure DataCatalogRest client.
+
+The Azure Data Catalog management API provides a RESTful set of web services that interact with Azure Data Catalog services.
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datacatalog/arm-datacatalog) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-datacatalog) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-datacatalog) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### Currently supported environments
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
-- Latest versions of Safari, Chrome, Edge, and Firefox.
+- Latest versions of Safari, Chrome, Edge and Firefox.
### Prerequisites
-You must have an [Azure subscription](https://azure.microsoft.com/free/).
+- An [Azure subscription][azure_sub].
-### How to install
+### Install the `@azure/arm-datacatalog` package
-To use this SDK in your project, you will need to install two packages.
-- `@azure/arm-datacatalog` that contains the client.
-- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
+Install the Azure DataCatalogRest client library for JavaScript with `npm`:
-Install both packages using the below command:
```bash
-npm install --save @azure/arm-datacatalog @azure/identity
+npm install @azure/arm-datacatalog
```
-> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
-If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
+### Create and authenticate a `DataCatalogRestClient`
-### How to use
+To create a client object to access the Azure DataCatalogRest API, you will need the `endpoint` of your Azure DataCatalogRest resource and a `credential`. The Azure DataCatalogRest client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure DataCatalogRest resource in the [Azure Portal][azure_portal].
-- If you are writing a client side browser application,
- - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
- - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
-- If you are writing a server side application,
- - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
- - Complete the set up steps required by the credential if any.
- - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
+You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
-In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
-Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
+
+```bash
+npm install @azure/identity
+```
-#### nodejs - Authentication, client creation, and list aDCOperations as an example written in JavaScript.
+You will also need to **register a new AAD application and grant access to Azure DataCatalogRest** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
+Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
-##### Sample code
+For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
```javascript
-const { DefaultAzureCredential } = require("@azure/identity");
const { DataCatalogRestClient } = require("@azure/arm-datacatalog");
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
-// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
-const creds = new DefaultAzureCredential();
-const client = new DataCatalogRestClient(creds, subscriptionId);
-
-client.aDCOperations.list().then((result) => {
- console.log("The result is:");
- console.log(result);
-}).catch((err) => {
- console.log("An error occurred:");
- console.error(err);
-});
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new DataCatalogRestClient(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation, and list aDCOperations as an example written in JavaScript.
-
-In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
- - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
- - Note down the client Id from the previous step and use it in the browser sample below.
-
-##### Sample code
-
-- index.html
-
-```html
-
-
-
- @azure/arm-datacatalog sample
-
-
-
-
-
-
-
+
+### JavaScript Bundle
+To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
+
+## Key concepts
+
+### DataCatalogRestClient
+
+`DataCatalogRestClient` is the primary interface for developers using the Azure DataCatalogRest client library. Explore the methods on this client object to understand the different features of the Azure DataCatalogRest service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
+
+## Next steps
+
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
## Related projects
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
+
+
-
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/datacatalog/arm-datacatalog/_meta.json b/sdk/datacatalog/arm-datacatalog/_meta.json
new file mode 100644
index 000000000000..ae79630a4dd0
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "fc5d283f8d0a0e67575658b48b1ebfa369d14b8e",
+ "readme": "specification/datacatalog/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/datacatalog/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1"
+}
\ No newline at end of file
diff --git a/sdk/datacatalog/arm-datacatalog/api-extractor.json b/sdk/datacatalog/arm-datacatalog/api-extractor.json
new file mode 100644
index 000000000000..cf165eaa9c8b
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-datacatalog.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/datacatalog/arm-datacatalog/package.json b/sdk/datacatalog/arm-datacatalog/package.json
index d14331b4d263..16e0d4815b3b 100644
--- a/sdk/datacatalog/arm-datacatalog/package.json
+++ b/sdk/datacatalog/arm-datacatalog/package.json
@@ -1,56 +1,90 @@
{
"name": "@azure/arm-datacatalog",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "DataCatalogRestClient Library with typescript type definitions for node.js and browser.",
- "version": "1.2.0",
+ "description": "A generated SDK for DataCatalogRestClient.",
+ "version": "3.0.0",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^1.4.0",
- "@azure/ms-rest-js": "^1.11.0",
- "@azure/core-auth": "^1.1.4",
- "tslib": "^1.9.3"
+ "@azure/core-lro": "^2.2.0",
+ "@azure/abort-controller": "^1.0.0",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-datacatalog.js",
- "module": "./esm/dataCatalogRestClient.js",
- "types": "./esm/dataCatalogRestClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-datacatalog.d.ts",
"devDependencies": {
- "typescript": "^3.6.0",
- "rollup": "^0.66.2",
- "rollup-plugin-node-resolve": "^3.4.0",
- "uglify-js": "^3.4.9"
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
+ "rollup-plugin-sourcemaps": "^0.4.2",
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "rimraf": "^3.0.0",
+ "@azure/identity": "^2.0.1",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
- "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/datacatalog/arm-datacatalog",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datacatalog/arm-datacatalog",
"repository": {
"type": "git",
- "url": "https://github.com/azure/azure-sdk-for-js.git"
- },
- "bugs": {
- "url": "https://github.com/azure/azure-sdk-for-js/issues"
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
},
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
+ "README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-datacatalog.js.map'\" -o ./dist/arm-datacatalog.min.js ./dist/arm-datacatalog.js",
- "prepack": "npm install && npm run build"
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
+ "prepack": "npm run build",
+ "pack": "npm pack 2>&1",
+ "extract-api": "api-extractor run --local",
+ "lint": "echo skipped",
+ "audit": "echo skipped",
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
diff --git a/sdk/datacatalog/arm-datacatalog/review/arm-datacatalog.api.md b/sdk/datacatalog/arm-datacatalog/review/arm-datacatalog.api.md
new file mode 100644
index 000000000000..75e1537d7a33
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/review/arm-datacatalog.api.md
@@ -0,0 +1,157 @@
+## API Report File for "@azure/arm-datacatalog"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PollerLike } from '@azure/core-lro';
+import { PollOperationState } from '@azure/core-lro';
+
+// @public
+export type ADCCatalog = Resource & {
+ sku?: SkuType;
+ units?: number;
+ admins?: Principals[];
+ users?: Principals[];
+ successfullyProvisioned?: boolean;
+ enableAutomaticUnitAdjustment?: boolean;
+};
+
+// @public
+export interface ADCCatalogs {
+ beginDelete(resourceGroupName: string, options?: ADCCatalogsDeleteOptionalParams): Promise, void>>;
+ beginDeleteAndWait(resourceGroupName: string, options?: ADCCatalogsDeleteOptionalParams): Promise;
+ createOrUpdate(resourceGroupName: string, properties: ADCCatalog, options?: ADCCatalogsCreateOrUpdateOptionalParams): Promise;
+ get(resourceGroupName: string, options?: ADCCatalogsGetOptionalParams): Promise;
+ listtByResourceGroup(resourceGroupName: string, options?: ADCCatalogsListtByResourceGroupOptionalParams): Promise;
+ update(resourceGroupName: string, properties: ADCCatalog, options?: ADCCatalogsUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface ADCCatalogsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ADCCatalogsCreateOrUpdateResponse = ADCCatalog;
+
+// @public
+export interface ADCCatalogsDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ADCCatalogsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ADCCatalogsGetResponse = ADCCatalog;
+
+// @public
+export interface ADCCatalogsListResult {
+ value?: ADCCatalog[];
+}
+
+// @public
+export interface ADCCatalogsListtByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult;
+
+// @public
+export interface ADCCatalogsUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ADCCatalogsUpdateResponse = ADCCatalog;
+
+// @public
+export interface ADCOperations {
+ list(options?: ADCOperationsListOptionalParams): Promise;
+}
+
+// @public
+export interface ADCOperationsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ADCOperationsListResponse = OperationEntityListResult;
+
+// @public (undocumented)
+export class DataCatalogRestClient extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, catalogName: string, options?: DataCatalogRestClientOptionalParams);
+ // (undocumented)
+ aDCCatalogs: ADCCatalogs;
+ // (undocumented)
+ aDCOperations: ADCOperations;
+ // (undocumented)
+ apiVersion: string;
+ // (undocumented)
+ catalogName: string;
+ // (undocumented)
+ subscriptionId: string;
+}
+
+// @public
+export interface DataCatalogRestClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ apiVersion?: string;
+ endpoint?: string;
+}
+
+// @public
+export enum KnownSkuType {
+ // (undocumented)
+ Free = "Free",
+ // (undocumented)
+ Standard = "Standard"
+}
+
+// @public
+export interface OperationDisplayInfo {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface OperationEntity {
+ display?: OperationDisplayInfo;
+ name?: string;
+}
+
+// @public
+export interface OperationEntityListResult {
+ value?: OperationEntity[];
+}
+
+// @public
+export interface Principals {
+ objectId?: string;
+ upn?: string;
+}
+
+// @public
+export interface Resource {
+ etag?: string;
+ readonly id?: string;
+ location?: string;
+ readonly name?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ readonly type?: string;
+}
+
+// @public
+export type SkuType = string;
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/datacatalog/arm-datacatalog/rollup.config.js b/sdk/datacatalog/arm-datacatalog/rollup.config.js
index ccc17b025801..9be1955eb7f1 100644
--- a/sdk/datacatalog/arm-datacatalog/rollup.config.js
+++ b/sdk/datacatalog/arm-datacatalog/rollup.config.js
@@ -1,31 +1,188 @@
-import nodeResolve from "rollup-plugin-node-resolve";
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
/**
- * @type {import('rollup').RollupFileOptions}
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
*/
-const config = {
- input: './esm/dataCatalogRestClient.js',
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
- output: {
- file: "./dist/arm-datacatalog.js",
- format: "umd",
- name: "Azure.ArmDatacatalog",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
},
- banner: `/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */`
- },
- plugins: [
- nodeResolve({ module: true })
- ]
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts
index 81ff23bff504..b0dec4371f4e 100644
--- a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts
@@ -1,52 +1,85 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import { TokenCredential } from "@azure/core-auth";
-import * as Models from "./models";
-import * as Mappers from "./models/mappers";
-import * as operations from "./operations";
-import { DataCatalogRestClientContext } from "./dataCatalogRestClientContext";
+import * as coreClient from "@azure/core-client";
+import * as coreAuth from "@azure/core-auth";
+import { ADCOperationsImpl, ADCCatalogsImpl } from "./operations";
+import { ADCOperations, ADCCatalogs } from "./operationsInterfaces";
+import { DataCatalogRestClientOptionalParams } from "./models";
-
-class DataCatalogRestClient extends DataCatalogRestClientContext {
- // Operation groups
- aDCOperations: operations.ADCOperations;
- aDCCatalogs: operations.ADCCatalogs;
+export class DataCatalogRestClient extends coreClient.ServiceClient {
+ $host: string;
+ apiVersion: string;
+ subscriptionId: string;
+ catalogName: string;
/**
* Initializes a new instance of the DataCatalogRestClient class.
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
- * more information about these credentials, see
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
- * @azure/ms-rest-browserauth are also supported.
+ * @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
- * subscription. The subscription ID forms part of the URI for every service call.
- * @param catalogName The name of the data catlog in the specified subscription and resource group.
- * @param [options] The parameter options
+ * subscription. The subscription ID forms part of the URI for every service call.
+ * @param catalogName The name of the data catalog in the specified subscription and resource group.
+ * @param options The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, catalogName: string, options?: Models.DataCatalogRestClientOptions) {
- super(credentials, subscriptionId, catalogName, options);
- this.aDCOperations = new operations.ADCOperations(this);
- this.aDCCatalogs = new operations.ADCCatalogs(this);
- }
-}
+ constructor(
+ credentials: coreAuth.TokenCredential,
+ subscriptionId: string,
+ catalogName: string,
+ options?: DataCatalogRestClientOptionalParams
+ ) {
+ if (credentials === undefined) {
+ throw new Error("'credentials' cannot be null");
+ }
+ if (subscriptionId === undefined) {
+ throw new Error("'subscriptionId' cannot be null");
+ }
+ if (catalogName === undefined) {
+ throw new Error("'catalogName' cannot be null");
+ }
+
+ // Initializing default values for options
+ if (!options) {
+ options = {};
+ }
+ const defaults: DataCatalogRestClientOptionalParams = {
+ requestContentType: "application/json; charset=utf-8",
+ credential: credentials
+ };
-// Operation Specifications
+ const packageDetails = `azsdk-js-arm-datacatalog/3.0.0`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
-export {
- DataCatalogRestClient,
- DataCatalogRestClientContext,
- Models as DataCatalogRestModels,
- Mappers as DataCatalogRestMappers
-};
-export * from "./operations";
+ if (!options.credentialScopes) {
+ options.credentialScopes = ["https://management.azure.com/.default"];
+ }
+ const optionsWithDefaults = {
+ ...defaults,
+ ...options,
+ userAgentOptions: {
+ userAgentPrefix
+ },
+ baseUri: options.endpoint || "https://management.azure.com"
+ };
+ super(optionsWithDefaults);
+ // Parameter assignments
+ this.subscriptionId = subscriptionId;
+ this.catalogName = catalogName;
+
+ // Assigning values to Constant parameters
+ this.$host = options.$host || "https://management.azure.com";
+ this.apiVersion = options.apiVersion || "2016-03-30";
+ this.aDCOperations = new ADCOperationsImpl(this);
+ this.aDCCatalogs = new ADCCatalogsImpl(this);
+ }
+
+ aDCOperations: ADCOperations;
+ aDCCatalogs: ADCCatalogs;
+}
diff --git a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts
deleted file mode 100644
index 80b966832bdc..000000000000
--- a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-import * as Models from "./models";
-import * as msRest from "@azure/ms-rest-js";
-import { TokenCredential } from "@azure/core-auth";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-
-const packageName = "@azure/arm-datacatalog";
-const packageVersion = "1.2.0";
-
-export class DataCatalogRestClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials | TokenCredential;
- subscriptionId: string;
- apiVersion?: string;
- catalogName: string;
-
- /**
- * Initializes a new instance of the DataCatalogRestClient class.
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
- * more information about these credentials, see
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
- * @azure/ms-rest-browserauth are also supported.
- * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
- * subscription. The subscription ID forms part of the URI for every service call.
- * @param catalogName The name of the data catlog in the specified subscription and resource group.
- * @param [options] The parameter options
- */
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, catalogName: string, options?: Models.DataCatalogRestClientOptions) {
- if (credentials == undefined) {
- throw new Error('\'credentials\' cannot be null.');
- }
- if (subscriptionId == undefined) {
- throw new Error('\'subscriptionId\' cannot be null.');
- }
- if (catalogName == undefined) {
- throw new Error('\'catalogName\' cannot be null.');
- }
-
- if (!options) {
- options = {};
- }
- if(!options.userAgent) {
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
-
- super(credentials, options);
-
- this.apiVersion = '2016-03-30';
- this.acceptLanguage = 'en-US';
- this.longRunningOperationRetryTimeout = 30;
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
- this.requestContentType = "application/json; charset=utf-8";
- this.credentials = credentials;
- this.subscriptionId = subscriptionId;
- this.catalogName = catalogName;
-
- if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
- this.acceptLanguage = options.acceptLanguage;
- }
- if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
- }
- }
-}
diff --git a/sdk/datacatalog/arm-datacatalog/src/index.ts b/sdk/datacatalog/arm-datacatalog/src/index.ts
new file mode 100644
index 000000000000..4c15fd0740bc
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/src/index.ts
@@ -0,0 +1,11 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export * from "./models";
+export { DataCatalogRestClient } from "./dataCatalogRestClient";
+export * from "./operationsInterfaces";
diff --git a/sdk/datacatalog/arm-datacatalog/src/lroImpl.ts b/sdk/datacatalog/arm-datacatalog/src/lroImpl.ts
new file mode 100644
index 000000000000..518d5f053b4e
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/src/lroImpl.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { LongRunningOperation, LroResponse } from "@azure/core-lro";
+
+export class LroImpl implements LongRunningOperation {
+ constructor(
+ private sendOperationFn: (args: any, spec: any) => Promise>,
+ private args: Record,
+ private spec: {
+ readonly requestBody?: unknown;
+ readonly path?: string;
+ readonly httpMethod: string;
+ } & Record,
+ public requestPath: string = spec.path!,
+ public requestMethod: string = spec.httpMethod
+ ) {}
+ public async sendInitialRequest(): Promise> {
+ return this.sendOperationFn(this.args, this.spec);
+ }
+ public async sendPollRequest(path: string): Promise> {
+ const { requestBody, ...restSpec } = this.spec;
+ return this.sendOperationFn(this.args, {
+ ...restSpec,
+ path,
+ httpMethod: "GET"
+ });
+ }
+}
diff --git a/sdk/datacatalog/arm-datacatalog/src/models/aDCCatalogsMappers.ts b/sdk/datacatalog/arm-datacatalog/src/models/aDCCatalogsMappers.ts
deleted file mode 100644
index c25ac42f58e0..000000000000
--- a/sdk/datacatalog/arm-datacatalog/src/models/aDCCatalogsMappers.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- ADCCatalogsListResult,
- ADCCatalog,
- Resource,
- BaseResource,
- Principals,
- CloudError
-} from "../models/mappers";
-
diff --git a/sdk/datacatalog/arm-datacatalog/src/models/aDCOperationsMappers.ts b/sdk/datacatalog/arm-datacatalog/src/models/aDCOperationsMappers.ts
deleted file mode 100644
index aba5d8bf047b..000000000000
--- a/sdk/datacatalog/arm-datacatalog/src/models/aDCOperationsMappers.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- OperationEntityListResult,
- OperationEntity,
- OperationDisplayInfo,
- CloudError
-} from "../models/mappers";
-
diff --git a/sdk/datacatalog/arm-datacatalog/src/models/index.ts b/sdk/datacatalog/arm-datacatalog/src/models/index.ts
index 2c3606bc5249..183db7547e2b 100644
--- a/sdk/datacatalog/arm-datacatalog/src/models/index.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/models/index.ts
@@ -1,295 +1,161 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export { BaseResource, CloudError };
+/** The list of Azure data catalog service operation response. */
+export interface OperationEntityListResult {
+ /** The list of operations. */
+ value?: OperationEntity[];
+}
+/** The operation supported by Azure Data Catalog Service. */
+export interface OperationEntity {
+ /** Operation name: {provider}/{resource}/{operation}. */
+ name?: string;
+ /** The operation supported by Azure Data Catalog Service. */
+ display?: OperationDisplayInfo;
+}
-/**
- * @interface
- * An interface representing Principals.
- * User principals.
- *
- */
+/** The operation supported by Azure Data Catalog Service. */
+export interface OperationDisplayInfo {
+ /** The description of the operation. */
+ description?: string;
+ /** The action that users can perform, based on their permission level. */
+ operation?: string;
+ /** Service provider: Azure Data Catalog Service. */
+ provider?: string;
+ /** Resource on which the operation is performed. */
+ resource?: string;
+}
+
+/** The response from the List Azure Data Catalog operation. */
+export interface ADCCatalogsListResult {
+ /** the list of Azure Data Catalogs. */
+ value?: ADCCatalog[];
+}
+
+/** User principals. */
export interface Principals {
- /**
- * @member {string} [upn] UPN of the user.
- */
+ /** UPN of the user. */
upn?: string;
- /**
- * @member {string} [objectId] Object Id for the user
- */
+ /** Object Id for the user */
objectId?: string;
}
-/**
- * @interface
- * An interface representing Resource.
- * The Resource model definition.
- *
- * @extends BaseResource
- */
-export interface Resource extends BaseResource {
+/** The Resource model definition. */
+export interface Resource {
/**
- * @member {string} [id] Resource Id
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Resource Id
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
- * @member {string} [name] Resource name
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Resource name
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
- * @member {string} [type] Resource type
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * Resource type
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
- /**
- * @member {string} [location] Resource location
- */
+ /** Resource location */
location?: string;
- /**
- * @member {{ [propertyName: string]: string }} [tags] Resource tags
- */
+ /** Resource tags */
tags?: { [propertyName: string]: string };
- /**
- * @member {string} [etag] Resource etag
- */
+ /** Resource etag */
etag?: string;
}
-/**
- * @interface
- * An interface representing ADCCatalog.
- * Azure Data Catalog.
- *
- * @extends Resource
- */
-export interface ADCCatalog extends Resource {
- /**
- * @member {SkuType} [sku] Azure data catalog SKU. Possible values include:
- * 'Free', 'Standard'
- */
+/** Azure Data Catalog. */
+export type ADCCatalog = Resource & {
+ /** Azure data catalog SKU. */
sku?: SkuType;
- /**
- * @member {number} [units] Azure data catalog units.
- */
+ /** Azure data catalog units. */
units?: number;
- /**
- * @member {Principals[]} [admins] Azure data catalog admin list.
- */
+ /** Azure data catalog admin list. */
admins?: Principals[];
- /**
- * @member {Principals[]} [users] Azure data catalog user list.
- */
+ /** Azure data catalog user list. */
users?: Principals[];
- /**
- * @member {boolean} [successfullyProvisioned] Azure data catalog provision
- * status.
- */
+ /** Azure data catalog provision status. */
successfullyProvisioned?: boolean;
- /**
- * @member {boolean} [enableAutomaticUnitAdjustment] Automatic unit
- * adjustment enabled or not.
- */
+ /** Automatic unit adjustment enabled or not. */
enableAutomaticUnitAdjustment?: boolean;
-}
+};
-/**
- * @interface
- * An interface representing ADCCatalogsListResult.
- * The response from the List Azure Data Catalog operation.
- *
- */
-export interface ADCCatalogsListResult {
- /**
- * @member {ADCCatalog[]} [value] the list of Azure Data Catalogs.
- */
- value?: ADCCatalog[];
+/** Known values of {@link SkuType} that the service accepts. */
+export enum KnownSkuType {
+ Free = "Free",
+ Standard = "Standard"
}
/**
- * @interface
- * An interface representing OperationDisplayInfo.
- * The operation supported by Azure Data Catalog Service.
- *
+ * Defines values for SkuType. \
+ * {@link KnownSkuType} can be used interchangeably with SkuType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Free** \
+ * **Standard**
*/
-export interface OperationDisplayInfo {
- /**
- * @member {string} [description] The description of the operation.
- */
- description?: string;
- /**
- * @member {string} [operation] The action that users can perform, based on
- * their permission level.
- */
- operation?: string;
- /**
- * @member {string} [provider] Service provider: Azure Data Catalog Service.
- */
- provider?: string;
- /**
- * @member {string} [resource] Resource on which the operation is performed.
- */
- resource?: string;
-}
+export type SkuType = string;
-/**
- * @interface
- * An interface representing OperationEntity.
- * The operation supported by Azure Data Catalog Service.
- *
- */
-export interface OperationEntity {
- /**
- * @member {string} [name] Operation name: {provider}/{resource}/{operation}.
- */
- name?: string;
- /**
- * @member {OperationDisplayInfo} [display] The operation supported by Azure
- * Data Catalog Service.
- */
- display?: OperationDisplayInfo;
-}
+/** Optional parameters. */
+export interface ADCOperationsListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * An interface representing OperationEntityListResult.
- * The list of Azure data catalog service operation response.
- *
- */
-export interface OperationEntityListResult {
- /**
- * @member {OperationEntity[]} [value] The list of operations.
- */
- value?: OperationEntity[];
-}
+/** Contains response data for the list operation. */
+export type ADCOperationsListResponse = OperationEntityListResult;
-/**
- * @interface
- * An interface representing DataCatalogRestClientOptions.
- * @extends AzureServiceClientOptions
- */
-export interface DataCatalogRestClientOptions extends AzureServiceClientOptions {
- /**
- * @member {string} [baseUri]
- */
- baseUri?: string;
-}
+/** Optional parameters. */
+export interface ADCCatalogsListtByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
+/** Contains response data for the listtByResourceGroup operation. */
+export type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult;
-/**
- * Defines values for SkuType.
- * Possible values include: 'Free', 'Standard'
- * @readonly
- * @enum {string}
- */
-export type SkuType = 'Free' | 'Standard';
+/** Optional parameters. */
+export interface ADCCatalogsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type ADCOperationsListResponse = OperationEntityListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationEntityListResult;
- };
-};
+/** Contains response data for the createOrUpdate operation. */
+export type ADCCatalogsCreateOrUpdateResponse = ADCCatalog;
-/**
- * Contains response data for the listtByResourceGroup operation.
- */
-export type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ADCCatalogsListResult;
- };
-};
+/** Optional parameters. */
+export interface ADCCatalogsGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type ADCCatalogsCreateOrUpdateResponse = ADCCatalog & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ADCCatalog;
- };
-};
+/** Contains response data for the get operation. */
+export type ADCCatalogsGetResponse = ADCCatalog;
-/**
- * Contains response data for the get operation.
- */
-export type ADCCatalogsGetResponse = ADCCatalog & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ADCCatalog;
- };
-};
+/** Optional parameters. */
+export interface ADCCatalogsDeleteOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the update operation.
- */
-export type ADCCatalogsUpdateResponse = ADCCatalog & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ADCCatalog;
- };
-};
+/** Optional parameters. */
+export interface ADCCatalogsUpdateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the update operation. */
+export type ADCCatalogsUpdateResponse = ADCCatalog;
+
+/** Optional parameters. */
+export interface DataCatalogRestClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Api Version */
+ apiVersion?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts b/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts
index fd335ff89fc6..8874cc9ae6a8 100644
--- a/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts
@@ -1,21 +1,111 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
+export const OperationEntityListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationEntityListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationEntity"
+ }
+ }
+ }
+ }
+ }
+ }
+};
-export const Principals: msRest.CompositeMapper = {
- serializedName: "Principals",
+export const OperationEntity: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationEntity",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplayInfo"
+ }
+ }
+ }
+ }
+};
+
+export const OperationDisplayInfo: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationDisplayInfo",
+ modelProperties: {
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ provider: {
+ serializedName: "provider",
+ type: {
+ name: "String"
+ }
+ },
+ resource: {
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ADCCatalogsListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ADCCatalogsListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ADCCatalog"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Principals: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Principals",
@@ -36,29 +126,28 @@ export const Principals: msRest.CompositeMapper = {
}
};
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Resource",
modelProperties: {
id: {
- readOnly: true,
serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
name: {
- readOnly: true,
serializedName: "name",
+ readOnly: true,
type: {
name: "String"
}
},
type: {
- readOnly: true,
serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
@@ -73,11 +162,7 @@ export const Resource: msRest.CompositeMapper = {
serializedName: "tags",
type: {
name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ value: { type: { name: "String" } }
}
},
etag: {
@@ -90,8 +175,7 @@ export const Resource: msRest.CompositeMapper = {
}
};
-export const ADCCatalog: msRest.CompositeMapper = {
- serializedName: "ADCCatalog",
+export const ADCCatalog: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ADCCatalog",
@@ -148,104 +232,3 @@ export const ADCCatalog: msRest.CompositeMapper = {
}
}
};
-
-export const ADCCatalogsListResult: msRest.CompositeMapper = {
- serializedName: "ADCCatalogsListResult",
- type: {
- name: "Composite",
- className: "ADCCatalogsListResult",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ADCCatalog"
- }
- }
- }
- }
- }
- }
-};
-
-export const OperationDisplayInfo: msRest.CompositeMapper = {
- serializedName: "OperationDisplayInfo",
- type: {
- name: "Composite",
- className: "OperationDisplayInfo",
- modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- operation: {
- serializedName: "operation",
- type: {
- name: "String"
- }
- },
- provider: {
- serializedName: "provider",
- type: {
- name: "String"
- }
- },
- resource: {
- serializedName: "resource",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const OperationEntity: msRest.CompositeMapper = {
- serializedName: "OperationEntity",
- type: {
- name: "Composite",
- className: "OperationEntity",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- display: {
- serializedName: "display",
- type: {
- name: "Composite",
- className: "OperationDisplayInfo"
- }
- }
- }
- }
-};
-
-export const OperationEntityListResult: msRest.CompositeMapper = {
- serializedName: "OperationEntityListResult",
- type: {
- name: "Composite",
- className: "OperationEntityListResult",
- modelProperties: {
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OperationEntity"
- }
- }
- }
- }
- }
- }
-};
diff --git a/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts b/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts
index 9ec29ab6c2c7..95865dc52feb 100644
--- a/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts
@@ -1,65 +1,103 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import { ADCCatalog as ADCCatalogMapper } from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
type: {
name: "String"
}
}
};
-export const apiVersion: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
+ serializedName: "$host",
required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const apiVersion: OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ defaultValue: "2016-03-30",
+ isConstant: true,
serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const catalogName: msRest.OperationURLParameter = {
- parameterPath: "catalogName",
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
mapper: {
+ serializedName: "subscriptionId",
required: true,
- serializedName: "catalogName",
type: {
name: "String"
}
}
};
-export const resourceGroupName: msRest.OperationURLParameter = {
+
+export const resourceGroupName: OperationURLParameter = {
parameterPath: "resourceGroupName",
mapper: {
- required: true,
- serializedName: "resourceGroupName",
constraints: {
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
MaxLength: 90,
- MinLength: 1,
- Pattern: /^[-\w\._\(\)]+$/
+ MinLength: 1
},
+ serializedName: "resourceGroupName",
+ required: true,
type: {
name: "String"
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
+ mapper: {
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const properties: OperationParameter = {
+ parameterPath: "properties",
+ mapper: ADCCatalogMapper
+};
+
+export const catalogName: OperationURLParameter = {
+ parameterPath: "catalogName",
mapper: {
+ serializedName: "catalogName",
required: true,
- serializedName: "subscriptionId",
type: {
name: "String"
}
diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts b/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts
index a8e717cffe94..17f0932cc3e6 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts
@@ -1,344 +1,285 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/aDCCatalogsMappers";
+import { ADCCatalogs } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { DataCatalogRestClientContext } from "../dataCatalogRestClientContext";
+import { DataCatalogRestClient } from "../dataCatalogRestClient";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ ADCCatalogsListtByResourceGroupOptionalParams,
+ ADCCatalogsListtByResourceGroupResponse,
+ ADCCatalog,
+ ADCCatalogsCreateOrUpdateOptionalParams,
+ ADCCatalogsCreateOrUpdateResponse,
+ ADCCatalogsGetOptionalParams,
+ ADCCatalogsGetResponse,
+ ADCCatalogsDeleteOptionalParams,
+ ADCCatalogsUpdateOptionalParams,
+ ADCCatalogsUpdateResponse
+} from "../models";
-/** Class representing a ADCCatalogs. */
-export class ADCCatalogs {
- private readonly client: DataCatalogRestClientContext;
+/** Class containing ADCCatalogs operations. */
+export class ADCCatalogsImpl implements ADCCatalogs {
+ private readonly client: DataCatalogRestClient;
/**
- * Create a ADCCatalogs.
- * @param {DataCatalogRestClientContext} client Reference to the service client.
+ * Initialize a new instance of the class ADCCatalogs class.
+ * @param client Reference to the service client
*/
- constructor(client: DataCatalogRestClientContext) {
+ constructor(client: DataCatalogRestClient) {
this.client = client;
}
/**
- * The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under
- * the given resource group.
- * @summary List catalogs in Resource Group (GET Resources)
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param [options] The optional parameters
- * @returns Promise
+ * The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under the
+ * given resource group.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
*/
- listtByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param callback The callback
- */
- listtByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param options The optional parameters
- * @param callback The callback
- */
- listtByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listtByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listtByResourceGroup(
+ resourceGroupName: string,
+ options?: ADCCatalogsListtByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listtByResourceGroupOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ listtByResourceGroupOperationSpec
+ );
}
/**
* The Create Azure Data Catalog service operation creates a new data catalog service with the
- * specified parameters. If the specific service already exists, then any patchable properties will
- * be updated and any immutable properties will remain unchanged.
- * @summary Create or Update Azure Data Catalog service (PUT Resource)
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
+ * specified parameters. If the specific service already exists, then any patchable properties will be
+ * updated and any immutable properties will remain unchanged.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
* @param properties Properties supplied to the Create or Update a data catalog.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, properties: Models.ADCCatalog, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param properties Properties supplied to the Create or Update a data catalog.
- * @param callback The callback
- */
- createOrUpdate(resourceGroupName: string, properties: Models.ADCCatalog, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param properties Properties supplied to the Create or Update a data catalog.
- * @param options The optional parameters
- * @param callback The callback
- */
- createOrUpdate(resourceGroupName: string, properties: Models.ADCCatalog, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, properties: Models.ADCCatalog, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ createOrUpdate(
+ resourceGroupName: string,
+ properties: ADCCatalog,
+ options?: ADCCatalogsCreateOrUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- properties,
- options
- },
- createOrUpdateOperationSpec,
- callback) as Promise;
+ { resourceGroupName, properties, options },
+ createOrUpdateOperationSpec
+ );
}
/**
- * The Get Azure Data Catalog Service operation retrieves a json representation of the data
- * catalog.
- * @summary Get Azure Data Catalog service (GET Resources)
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param callback The callback
- */
- get(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param options The optional parameters
- * @param callback The callback
+ * The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ options?: ADCCatalogsGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ getOperationSpec
+ );
}
/**
* The Delete Azure Data Catalog Service operation deletes an existing data catalog.
- * @summary Delete Azure Data Catalog Service (DELETE Resource)
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.beginDeleteMethod(resourceGroupName,options)
- .then(lroPoller => lroPoller.pollUntilFinished());
+ async beginDelete(
+ resourceGroupName: string,
+ options?: ADCCatalogsDeleteOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, options },
+ deleteOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
}
/**
- * The Update Azure Data Catalog Service operation can be used to update the existing deployment.
- * The update call only supports the properties listed in the PATCH body.
- * @summary Update Azure Data Catalog Service (PATCH Resource)
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param properties Properties supplied to the Update a data catalog.
- * @param [options] The optional parameters
- * @returns Promise
- */
- update(resourceGroupName: string, properties: Models.ADCCatalog, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param properties Properties supplied to the Update a data catalog.
- * @param callback The callback
- */
- update(resourceGroupName: string, properties: Models.ADCCatalog, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param properties Properties supplied to the Update a data catalog.
- * @param options The optional parameters
- * @param callback The callback
+ * The Delete Azure Data Catalog Service operation deletes an existing data catalog.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
*/
- update(resourceGroupName: string, properties: Models.ADCCatalog, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, properties: Models.ADCCatalog, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- properties,
- options
- },
- updateOperationSpec,
- callback) as Promise;
+ async beginDeleteAndWait(
+ resourceGroupName: string,
+ options?: ADCCatalogsDeleteOptionalParams
+ ): Promise {
+ const poller = await this.beginDelete(resourceGroupName, options);
+ return poller.pollUntilDone();
}
/**
- * The Delete Azure Data Catalog Service operation deletes an existing data catalog.
- * @summary Delete Azure Data Catalog Service (DELETE Resource)
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
- * is case insensitive.
- * @param [options] The optional parameters
- * @returns Promise
+ * The Update Azure Data Catalog Service operation can be used to update the existing deployment. The
+ * update call only supports the properties listed in the PATCH body.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param properties Properties supplied to the Update a data catalog.
+ * @param options The options parameters.
*/
- beginDeleteMethod(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- options
- },
- beginDeleteMethodOperationSpec,
- options);
+ update(
+ resourceGroupName: string,
+ properties: ADCCatalog,
+ options?: ADCCatalogsUpdateOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, properties, options },
+ updateOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listtByResourceGroupOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listtByResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.ADCCatalogsListResult
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const createOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.catalogName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName
],
- requestBody: {
- parameterPath: "properties",
- mapper: {
- ...Mappers.ADCCatalog,
- required: true
- }
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.ADCCatalog
},
201: {
bodyMapper: Mappers.ADCCatalog
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+ requestBody: Parameters.properties,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.catalogName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ADCCatalog
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.catalogName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+ httpMethod: "DELETE",
+ responses: { 200: {}, 201: {}, 202: {}, 204: {} },
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.catalogName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "properties",
- mapper: {
- ...Mappers.ADCCatalog,
- required: true
- }
- },
+ serializer
+};
+const updateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+ httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.ADCCatalog
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
- serializer
-};
-
-const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}",
+ requestBody: Parameters.properties,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.catalogName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {},
- 202: {},
- 204: {},
- default: {
- bodyMapper: Mappers.CloudError
- }
- },
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
serializer
};
diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts b/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts
index d75dd298f37a..d27ea783852f 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts
@@ -1,74 +1,56 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/aDCOperationsMappers";
+import { ADCOperations } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { DataCatalogRestClientContext } from "../dataCatalogRestClientContext";
+import { DataCatalogRestClient } from "../dataCatalogRestClient";
+import {
+ ADCOperationsListOptionalParams,
+ ADCOperationsListResponse
+} from "../models";
-/** Class representing a ADCOperations. */
-export class ADCOperations {
- private readonly client: DataCatalogRestClientContext;
+/** Class containing ADCOperations operations. */
+export class ADCOperationsImpl implements ADCOperations {
+ private readonly client: DataCatalogRestClient;
/**
- * Create a ADCOperations.
- * @param {DataCatalogRestClientContext} client Reference to the service client.
+ * Initialize a new instance of the class ADCOperations class.
+ * @param client Reference to the service client
*/
- constructor(client: DataCatalogRestClientContext) {
+ constructor(client: DataCatalogRestClient) {
this.client = client;
}
/**
* Lists all the available Azure Data Catalog service operations.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- list(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- options
- },
- listOperationSpec,
- callback) as Promise;
+ list(
+ options?: ADCOperationsListOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.DataCatalog/operations",
httpMethod: "GET",
- path: "providers/Microsoft.DataCatalog/operations",
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.OperationEntityListResult
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/index.ts b/sdk/datacatalog/arm-datacatalog/src/operations/index.ts
index b2d154cbed2d..c26173e68dce 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operations/index.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operations/index.ts
@@ -1,11 +1,9 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./aDCOperations";
diff --git a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCCatalogs.ts b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCCatalogs.ts
new file mode 100644
index 000000000000..e4fddeebb26f
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCCatalogs.ts
@@ -0,0 +1,93 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { PollerLike, PollOperationState } from "@azure/core-lro";
+import {
+ ADCCatalogsListtByResourceGroupOptionalParams,
+ ADCCatalogsListtByResourceGroupResponse,
+ ADCCatalog,
+ ADCCatalogsCreateOrUpdateOptionalParams,
+ ADCCatalogsCreateOrUpdateResponse,
+ ADCCatalogsGetOptionalParams,
+ ADCCatalogsGetResponse,
+ ADCCatalogsDeleteOptionalParams,
+ ADCCatalogsUpdateOptionalParams,
+ ADCCatalogsUpdateResponse
+} from "../models";
+
+/** Interface representing a ADCCatalogs. */
+export interface ADCCatalogs {
+ /**
+ * The List catalogs in Resource Group operation lists all the Azure Data Catalogs available under the
+ * given resource group.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
+ */
+ listtByResourceGroup(
+ resourceGroupName: string,
+ options?: ADCCatalogsListtByResourceGroupOptionalParams
+ ): Promise;
+ /**
+ * The Create Azure Data Catalog service operation creates a new data catalog service with the
+ * specified parameters. If the specific service already exists, then any patchable properties will be
+ * updated and any immutable properties will remain unchanged.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param properties Properties supplied to the Create or Update a data catalog.
+ * @param options The options parameters.
+ */
+ createOrUpdate(
+ resourceGroupName: string,
+ properties: ADCCatalog,
+ options?: ADCCatalogsCreateOrUpdateOptionalParams
+ ): Promise;
+ /**
+ * The Get Azure Data Catalog Service operation retrieves a json representation of the data catalog.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
+ */
+ get(
+ resourceGroupName: string,
+ options?: ADCCatalogsGetOptionalParams
+ ): Promise;
+ /**
+ * The Delete Azure Data Catalog Service operation deletes an existing data catalog.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
+ */
+ beginDelete(
+ resourceGroupName: string,
+ options?: ADCCatalogsDeleteOptionalParams
+ ): Promise, void>>;
+ /**
+ * The Delete Azure Data Catalog Service operation deletes an existing data catalog.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param options The options parameters.
+ */
+ beginDeleteAndWait(
+ resourceGroupName: string,
+ options?: ADCCatalogsDeleteOptionalParams
+ ): Promise;
+ /**
+ * The Update Azure Data Catalog Service operation can be used to update the existing deployment. The
+ * update call only supports the properties listed in the PATCH body.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
+ * case insensitive.
+ * @param properties Properties supplied to the Update a data catalog.
+ * @param options The options parameters.
+ */
+ update(
+ resourceGroupName: string,
+ properties: ADCCatalog,
+ options?: ADCCatalogsUpdateOptionalParams
+ ): Promise;
+}
diff --git a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCOperations.ts b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCOperations.ts
new file mode 100644
index 000000000000..b33fb99f97a0
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCOperations.ts
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import {
+ ADCOperationsListOptionalParams,
+ ADCOperationsListResponse
+} from "../models";
+
+/** Interface representing a ADCOperations. */
+export interface ADCOperations {
+ /**
+ * Lists all the available Azure Data Catalog service operations.
+ * @param options The options parameters.
+ */
+ list(
+ options?: ADCOperationsListOptionalParams
+ ): Promise;
+}
diff --git a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/index.ts b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/index.ts
new file mode 100644
index 000000000000..c26173e68dce
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/index.ts
@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export * from "./aDCOperations";
+export * from "./aDCCatalogs";
diff --git a/sdk/datacatalog/arm-datacatalog/test/sampleTest.ts b/sdk/datacatalog/arm-datacatalog/test/sampleTest.ts
new file mode 100644
index 000000000000..7ed89b043e1b
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/test/sampleTest.ts
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import {
+ env,
+ record,
+ RecorderEnvironmentSetup,
+ Recorder
+} from "@azure-tools/test-recorder";
+import * as assert from "assert";
+
+const recorderEnvSetup: RecorderEnvironmentSetup = {
+ replaceableVariables: {
+ AZURE_CLIENT_ID: "azure_client_id",
+ AZURE_CLIENT_SECRET: "azure_client_secret",
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
+ SUBSCRIPTION_ID: "azure_subscription_id"
+ },
+ customizationsOnRecordings: [
+ (recording: any): any =>
+ recording.replace(
+ /"access_token":"[^"]*"/g,
+ `"access_token":"access_token"`
+ )
+ ],
+ queryParametersToSkip: []
+};
+
+describe("My test", () => {
+ let recorder: Recorder;
+
+ beforeEach(async function() {
+ recorder = record(this, recorderEnvSetup);
+ });
+
+ afterEach(async function() {
+ await recorder.stop();
+ });
+
+ it("sample test", async function() {
+ console.log("Hi, I'm a test!");
+ });
+});
diff --git a/sdk/datacatalog/arm-datacatalog/tsconfig.json b/sdk/datacatalog/arm-datacatalog/tsconfig.json
index 87bbf5b5fa49..6e3251194117 100644
--- a/sdk/datacatalog/arm-datacatalog/tsconfig.json
+++ b/sdk/datacatalog/arm-datacatalog/tsconfig.json
@@ -3,17 +3,17 @@
"module": "es6",
"moduleResolution": "node",
"strict": true,
- "target": "es5",
+ "target": "es6",
"sourceMap": true,
"declarationMap": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
- "lib": ["es6"],
+ "lib": ["es6", "dom"],
"declaration": true,
- "outDir": "./esm",
+ "outDir": "./dist-esm",
"importHelpers": true
},
- "include": ["./src/**/*.ts"],
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
"exclude": ["node_modules"]
}
diff --git a/sdk/datacatalog/ci.yml b/sdk/datacatalog/ci.yml
new file mode 100644
index 000000000000..30de61437a5f
--- /dev/null
+++ b/sdk/datacatalog/ci.yml
@@ -0,0 +1,29 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+trigger:
+ branches:
+ include:
+ - main
+ - release/*
+ - hotfix/*
+ paths:
+ include:
+ - sdk/datacatalog/
+
+pr:
+ branches:
+ include:
+ - main
+ - release/*
+ - hotfix/*
+ paths:
+ include:
+ - sdk/datacatalog/
+
+extends:
+ template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: datacatalog
+ Artifacts:
+ - name: azure-arm-datacatalog
+ safeName: azurearmdatacatalog
+
\ No newline at end of file