diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 694e81b4a476..752e77aef2bd 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -47,6 +47,7 @@ specifiers:
'@rush-temp/arm-logic': file:./projects/arm-logic.tgz
'@rush-temp/arm-managedapplications': file:./projects/arm-managedapplications.tgz
'@rush-temp/arm-managementgroups': file:./projects/arm-managementgroups.tgz
+ '@rush-temp/arm-maps': file:./projects/arm-maps.tgz
'@rush-temp/arm-mediaservices': file:./projects/arm-mediaservices.tgz
'@rush-temp/arm-monitor': file:./projects/arm-monitor.tgz
'@rush-temp/arm-msi': file:./projects/arm-msi.tgz
@@ -228,6 +229,7 @@ dependencies:
'@rush-temp/arm-logic': file:projects/arm-logic.tgz
'@rush-temp/arm-managedapplications': file:projects/arm-managedapplications.tgz
'@rush-temp/arm-managementgroups': file:projects/arm-managementgroups.tgz
+ '@rush-temp/arm-maps': file:projects/arm-maps.tgz
'@rush-temp/arm-mediaservices': file:projects/arm-mediaservices.tgz
'@rush-temp/arm-monitor': file:projects/arm-monitor.tgz
'@rush-temp/arm-msi': file:projects/arm-msi.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
@@ -8770,6 +8772,27 @@ packages:
uglify-js: 3.14.5
dev: false
+ file:projects/arm-maps.tgz:
+ resolution: {integrity: sha512-3v9U9UdfVizvzwWzsyTiq3ZzT3mNfAOqiIJZ7BOjCLE7+N48Oi8iSvHthNDW8xvwxNB3aP6LZVQSqQprKFLT0A==, tarball: file:projects/arm-maps.tgz}
+ name: '@rush-temp/arm-maps'
+ 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-mediaservices.tgz:
resolution: {integrity: sha512-wt5O7fsBlkomvh57wJRSiBwgIAAmjjLwaX3HhUj2WNHhIjY/M3PQ8n/172v99nzZ2hTxBQPmokO4eyz9sKSqDA==, tarball: file:projects/arm-mediaservices.tgz}
name: '@rush-temp/arm-mediaservices'
@@ -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..bfe1d59bcc7b 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-maps",
+ "projectFolder": "sdk/maps/arm-maps",
+ "versionPolicyName": "management"
}
]
}
\ No newline at end of file
diff --git a/sdk/maps/arm-maps/CHANGELOG.md b/sdk/maps/arm-maps/CHANGELOG.md
new file mode 100644
index 000000000000..1d7e604a864b
--- /dev/null
+++ b/sdk/maps/arm-maps/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 3.0.0-beta.1 (2022-01-05)
+
+The package of @azure/arm-maps is using our next generation design principles since version 3.0.0-beta.1, 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/maps/arm-maps/LICENSE.txt b/sdk/maps/arm-maps/LICENSE
similarity index 96%
rename from sdk/maps/arm-maps/LICENSE.txt
rename to sdk/maps/arm-maps/LICENSE
index 2d3163745319..5d1d36e0af80 100644
--- a/sdk/maps/arm-maps/LICENSE.txt
+++ b/sdk/maps/arm-maps/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2021 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/maps/arm-maps/README.md b/sdk/maps/arm-maps/README.md
index 22680ed2cf7c..5d32e3894055 100644
--- a/sdk/maps/arm-maps/README.md
+++ b/sdk/maps/arm-maps/README.md
@@ -1,111 +1,98 @@
-## Azure AzureMapsManagementClient SDK for JavaScript
+# AzureMapsManagement client library for JavaScript
-This package contains an isomorphic SDK for AzureMapsManagementClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMapsManagement client.
+
+Azure Maps
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/arm-maps) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-maps) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-maps?view=azure-node-preview) |
+[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
+
+- An [Azure subscription][azure_sub].
-### How to Install
+### Install the `@azure/arm-maps` package
+
+Install the AzureMapsManagement client library for JavaScript with `npm`:
```bash
npm install @azure/arm-maps
```
-### How to use
+### Create and authenticate a `AzureMapsManagementClient`
-#### nodejs - client creation and get accounts as an example written in TypeScript.
+To create a client object to access the AzureMapsManagement API, you will need the `endpoint` of your AzureMapsManagement resource and a `credential`. The AzureMapsManagement client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your AzureMapsManagement resource in the [Azure Portal][azure_portal].
-##### Install @azure/ms-rest-nodeauth
+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).
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
+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/ms-rest-nodeauth@"^3.0.0"
+npm install @azure/identity
```
-##### Sample code
+You will also need to **register a new AAD application and grant access to AzureMapsManagement** 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`.
-While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
+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).
-```typescript
-const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+```javascript
const { AzureMapsManagementClient } = require("@azure/arm-maps");
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth
- .interactiveLogin()
- .then((creds) => {
- const client = new AzureMapsManagementClient(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- const accountName = "testaccountName";
- client.accounts.get(resourceGroupName, accountName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
- })
- .catch((err) => {
- console.error(err);
- });
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new AzureMapsManagementClient(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation and get accounts as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
+### 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).
-```bash
-npm install @azure/ms-rest-browserauth
-```
+## Key concepts
+
+### AzureMapsManagementClient
+
+`AzureMapsManagementClient` is the primary interface for developers using the AzureMapsManagement client library. Explore the methods on this client object to understand the different features of the AzureMapsManagement service that you can access.
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-
-```html
-
-
-
- @azure/arm-maps sample
-
-
-
-
-
-
-
-
+## 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)
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmaps%2Farm-maps%2FREADME.png)
-![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/maps/arm-maps/README.png)
+[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/maps/arm-maps/_meta.json b/sdk/maps/arm-maps/_meta.json
new file mode 100644
index 000000000000..5aa8fbe3726f
--- /dev/null
+++ b/sdk/maps/arm-maps/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "e8c6db17dc13a00155936dcaeacf4da0a1fabf77",
+ "readme": "specification/maps/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/maps/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/maps/arm-maps/api-extractor.json b/sdk/maps/arm-maps/api-extractor.json
new file mode 100644
index 000000000000..823040788d92
--- /dev/null
+++ b/sdk/maps/arm-maps/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-maps.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/maps/arm-maps/package.json b/sdk/maps/arm-maps/package.json
index dad087f10ae7..78a9851f44b3 100644
--- a/sdk/maps/arm-maps/package.json
+++ b/sdk/maps/arm-maps/package.json
@@ -1,57 +1,89 @@
{
"name": "@azure/arm-maps",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "AzureMapsManagementClient Library with typescript type definitions for node.js and browser.",
- "version": "2.0.0",
+ "description": "A generated SDK for AzureMapsManagementClient.",
+ "version": "3.0.0-beta.1",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
- "tslib": "^1.10.0"
+ "@azure/core-paging": "^1.2.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-maps.js",
- "module": "./esm/azureMapsManagementClient.js",
- "types": "./esm/azureMapsManagementClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-maps.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
- "rollup": "^1.18.0",
- "rollup-plugin-node-resolve": "^5.2.0",
+ "@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",
- "uglify-js": "^3.6.0"
+ "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/maps/arm-maps",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
- "bugs": {
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
- },
+ "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-maps.js.map'\" -o ./dist/arm-maps.min.js ./dist/arm-maps.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/maps/arm-maps/review/arm-maps.api.md b/sdk/maps/arm-maps/review/arm-maps.api.md
new file mode 100644
index 000000000000..27ea79d8b6f1
--- /dev/null
+++ b/sdk/maps/arm-maps/review/arm-maps.api.md
@@ -0,0 +1,501 @@
+## API Report File for "@azure/arm-maps"
+
+> 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 { PagedAsyncIterableIterator } from '@azure/core-paging';
+
+// @public
+export interface Accounts {
+ createOrUpdate(resourceGroupName: string, accountName: string, mapsAccount: MapsAccount, options?: AccountsCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listBySubscription(options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator;
+ listKeys(resourceGroupName: string, accountName: string, options?: AccountsListKeysOptionalParams): Promise;
+ listSas(resourceGroupName: string, accountName: string, mapsAccountSasParameters: AccountSasParameters, options?: AccountsListSasOptionalParams): Promise;
+ regenerateKeys(resourceGroupName: string, accountName: string, keySpecification: MapsKeySpecification, options?: AccountsRegenerateKeysOptionalParams): Promise;
+ update(resourceGroupName: string, accountName: string, mapsAccountUpdateParameters: MapsAccountUpdateParameters, options?: AccountsUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface AccountSasParameters {
+ expiry: string;
+ maxRatePerSecond: number;
+ principalId: string;
+ regions?: string[];
+ signingKey: SigningKey;
+ start: string;
+}
+
+// @public
+export interface AccountsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsCreateOrUpdateResponse = MapsAccount;
+
+// @public
+export interface AccountsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface AccountsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsGetResponse = MapsAccount;
+
+// @public
+export interface AccountsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListByResourceGroupNextResponse = MapsAccounts;
+
+// @public
+export interface AccountsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListByResourceGroupResponse = MapsAccounts;
+
+// @public
+export interface AccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListBySubscriptionNextResponse = MapsAccounts;
+
+// @public
+export interface AccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListBySubscriptionResponse = MapsAccounts;
+
+// @public
+export interface AccountsListKeysOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListKeysResponse = MapsAccountKeys;
+
+// @public
+export interface AccountsListSasOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListSasResponse = MapsAccountSasToken;
+
+// @public
+export interface AccountsRegenerateKeysOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsRegenerateKeysResponse = MapsAccountKeys;
+
+// @public
+export interface AccountsUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsUpdateResponse = MapsAccount;
+
+// @public (undocumented)
+export class AzureMapsManagementClient extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMapsManagementClientOptionalParams);
+ // (undocumented)
+ accounts: Accounts;
+ // (undocumented)
+ apiVersion: string;
+ // (undocumented)
+ creators: Creators;
+ // (undocumented)
+ maps: Maps;
+ // (undocumented)
+ subscriptionId: string;
+}
+
+// @public
+export interface AzureMapsManagementClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ apiVersion?: string;
+ endpoint?: string;
+}
+
+// @public (undocumented)
+export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties {
+ readonly clientId?: string;
+ readonly principalId?: string;
+}
+
+// @public
+export interface CorsRule {
+ allowedOrigins: string[];
+}
+
+// @public
+export interface CorsRules {
+ corsRules?: CorsRule[];
+}
+
+// @public
+export type CreatedByType = string;
+
+// @public
+export type Creator = TrackedResource & {
+ properties: CreatorProperties;
+ readonly systemData?: SystemData;
+};
+
+// @public
+export interface CreatorList {
+ nextLink?: string;
+ readonly value?: Creator[];
+}
+
+// @public
+export interface CreatorProperties {
+ readonly provisioningState?: string;
+ storageUnits: number;
+}
+
+// @public
+export interface Creators {
+ createOrUpdate(resourceGroupName: string, accountName: string, creatorName: string, creatorResource: Creator, options?: CreatorsCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, accountName: string, creatorName: string, options?: CreatorsDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, accountName: string, creatorName: string, options?: CreatorsGetOptionalParams): Promise;
+ listByAccount(resourceGroupName: string, accountName: string, options?: CreatorsListByAccountOptionalParams): PagedAsyncIterableIterator;
+ update(resourceGroupName: string, accountName: string, creatorName: string, creatorUpdateParameters: CreatorUpdateParameters, options?: CreatorsUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface CreatorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type CreatorsCreateOrUpdateResponse = Creator;
+
+// @public
+export interface CreatorsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface CreatorsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type CreatorsGetResponse = Creator;
+
+// @public
+export interface CreatorsListByAccountNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type CreatorsListByAccountNextResponse = CreatorList;
+
+// @public
+export interface CreatorsListByAccountOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type CreatorsListByAccountResponse = CreatorList;
+
+// @public
+export interface CreatorsUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type CreatorsUpdateResponse = Creator;
+
+// @public
+export interface CreatorUpdateParameters {
+ readonly provisioningState?: string;
+ storageUnits?: number;
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export interface Dimension {
+ displayName?: string;
+ internalMetricName?: string;
+ internalName?: string;
+ name?: string;
+ sourceMdmNamespace?: string;
+ toBeExportedToShoebox?: boolean;
+}
+
+// @public
+export interface ErrorAdditionalInfo {
+ readonly info?: Record;
+ readonly type?: string;
+}
+
+// @public
+export interface ErrorDetail {
+ readonly additionalInfo?: ErrorAdditionalInfo[];
+ readonly code?: string;
+ readonly details?: ErrorDetail[];
+ readonly message?: string;
+ readonly target?: string;
+}
+
+// @public
+export interface ErrorResponse {
+ error?: ErrorDetail;
+}
+
+// @public
+type KeyType_2 = string;
+export { KeyType_2 as KeyType }
+
+// @public
+export type Kind = string;
+
+// @public
+export enum KnownCreatedByType {
+ // (undocumented)
+ Application = "Application",
+ // (undocumented)
+ Key = "Key",
+ // (undocumented)
+ ManagedIdentity = "ManagedIdentity",
+ // (undocumented)
+ User = "User"
+}
+
+// @public
+export enum KnownKeyType {
+ // (undocumented)
+ Primary = "primary",
+ // (undocumented)
+ Secondary = "secondary"
+}
+
+// @public
+export enum KnownKind {
+ // (undocumented)
+ Gen1 = "Gen1",
+ // (undocumented)
+ Gen2 = "Gen2"
+}
+
+// @public
+export enum KnownName {
+ // (undocumented)
+ G2 = "G2",
+ // (undocumented)
+ S0 = "S0",
+ // (undocumented)
+ S1 = "S1"
+}
+
+// @public
+export enum KnownSigningKey {
+ // (undocumented)
+ PrimaryKey = "primaryKey",
+ // (undocumented)
+ SecondaryKey = "secondaryKey"
+}
+
+// @public
+export interface LinkedResource {
+ id: string;
+ uniqueName: string;
+}
+
+// @public
+export interface ManagedServiceIdentity {
+ readonly principalId?: string;
+ readonly tenantId?: string;
+ type?: ResourceIdentityType;
+ userAssignedIdentities?: {
+ [propertyName: string]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties;
+ };
+}
+
+// @public
+export interface Maps {
+ listOperations(options?: MapsListOperationsOptionalParams): PagedAsyncIterableIterator;
+ listSubscriptionOperations(options?: MapsListSubscriptionOperationsOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export type MapsAccount = TrackedResource & {
+ sku: Sku;
+ kind?: Kind;
+ readonly systemData?: SystemData;
+ identity?: ManagedServiceIdentity;
+ properties?: MapsAccountProperties;
+};
+
+// @public
+export interface MapsAccountKeys {
+ readonly primaryKey?: string;
+ readonly primaryKeyLastUpdated?: string;
+ readonly secondaryKey?: string;
+ readonly secondaryKeyLastUpdated?: string;
+}
+
+// @public
+export interface MapsAccountProperties {
+ cors?: CorsRules;
+ disableLocalAuth?: boolean;
+ linkedResources?: LinkedResource[];
+ readonly provisioningState?: string;
+ readonly uniqueId?: string;
+}
+
+// @public
+export interface MapsAccounts {
+ nextLink?: string;
+ readonly value?: MapsAccount[];
+}
+
+// @public
+export interface MapsAccountSasToken {
+ readonly accountSasToken?: string;
+}
+
+// @public
+export interface MapsAccountUpdateParameters {
+ cors?: CorsRules;
+ disableLocalAuth?: boolean;
+ identity?: ManagedServiceIdentity;
+ kind?: Kind;
+ linkedResources?: LinkedResource[];
+ readonly provisioningState?: string;
+ sku?: Sku;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ readonly uniqueId?: string;
+}
+
+// @public
+export interface MapsKeySpecification {
+ keyType: KeyType_2;
+}
+
+// @public
+export interface MapsListOperationsNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MapsListOperationsNextResponse = MapsOperations;
+
+// @public
+export interface MapsListOperationsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MapsListOperationsResponse = MapsOperations;
+
+// @public
+export interface MapsListSubscriptionOperationsNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MapsListSubscriptionOperationsNextResponse = MapsOperations;
+
+// @public
+export interface MapsListSubscriptionOperationsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MapsListSubscriptionOperationsResponse = MapsOperations;
+
+// @public
+export interface MapsOperations {
+ nextLink?: string;
+ readonly value?: OperationDetail[];
+}
+
+// @public
+export interface MetricSpecification {
+ aggregationType?: string;
+ category?: string;
+ dimensions?: Dimension[];
+ displayDescription?: string;
+ displayName?: string;
+ fillGapWithZero?: boolean;
+ internalMetricName?: string;
+ name?: string;
+ resourceIdDimensionNameOverride?: string;
+ sourceMdmAccount?: string;
+ unit?: string;
+}
+
+// @public
+export type Name = string;
+
+// @public
+export interface OperationDetail {
+ display?: OperationDisplay;
+ isDataAction?: boolean;
+ name?: string;
+ origin?: string;
+ serviceSpecification?: ServiceSpecification;
+}
+
+// @public
+export interface OperationDisplay {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface Resource {
+ readonly id?: string;
+ readonly name?: string;
+ readonly type?: string;
+}
+
+// @public
+export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None";
+
+// @public
+export interface ServiceSpecification {
+ metricSpecifications?: MetricSpecification[];
+}
+
+// @public
+export type SigningKey = string;
+
+// @public
+export interface Sku {
+ name: Name;
+ readonly tier?: string;
+}
+
+// @public
+export interface SystemData {
+ createdAt?: Date;
+ createdBy?: string;
+ createdByType?: CreatedByType;
+ lastModifiedAt?: Date;
+ lastModifiedBy?: string;
+ lastModifiedByType?: CreatedByType;
+}
+
+// @public
+export type TrackedResource = Resource & {
+ tags?: {
+ [propertyName: string]: string;
+ };
+ location: string;
+};
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/maps/arm-maps/rollup.config.js b/sdk/maps/arm-maps/rollup.config.js
index d90d6eb3dd94..9be1955eb7f1 100644
--- a/sdk/maps/arm-maps/rollup.config.js
+++ b/sdk/maps/arm-maps/rollup.config.js
@@ -1,31 +1,188 @@
-import rollup from "rollup";
-import nodeResolve from "rollup-plugin-node-resolve";
-import sourcemaps from "rollup-plugin-sourcemaps";
-
-/**
- * @type {rollup.RollupFileOptions}
- */
-const config = {
- input: "./esm/azureMapsManagementClient.js",
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
- output: {
- file: "./dist/arm-maps.js",
- format: "umd",
- name: "Azure.ArmMaps",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
- },
- banner: `/*
+/*
* 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.
- */`
- },
- plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()]
+ */
+
+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
+];
+
+/**
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
+ */
+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/**"]
+ },
+ 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/maps/arm-maps/src/azureMapsManagementClient.ts b/sdk/maps/arm-maps/src/azureMapsManagementClient.ts
index 57e460bf2f28..b84b39319c38 100644
--- a/sdk/maps/arm-maps/src/azureMapsManagementClient.ts
+++ b/sdk/maps/arm-maps/src/azureMapsManagementClient.ts
@@ -3,46 +3,77 @@
* 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/mappers";
-import * as operations from "./operations";
-import { AzureMapsManagementClientContext } from "./azureMapsManagementClientContext";
+import * as coreClient from "@azure/core-client";
+import * as coreAuth from "@azure/core-auth";
+import { AccountsImpl, MapsImpl, CreatorsImpl } from "./operations";
+import { Accounts, Maps, Creators } from "./operationsInterfaces";
+import { AzureMapsManagementClientOptionalParams } from "./models";
-class AzureMapsManagementClient extends AzureMapsManagementClientContext {
- // Operation groups
- accounts: operations.Accounts;
- maps: operations.Maps;
- creators: operations.Creators;
+export class AzureMapsManagementClient extends coreClient.ServiceClient {
+ $host: string;
+ apiVersion: string;
+ subscriptionId: string;
/**
* Initializes a new instance of the AzureMapsManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId The ID of the target subscription.
- * @param [options] The parameter options
+ * @param options The parameter options
*/
constructor(
- credentials: msRest.ServiceClientCredentials,
+ credentials: coreAuth.TokenCredential,
subscriptionId: string,
- options?: Models.AzureMapsManagementClientOptions
+ options?: AzureMapsManagementClientOptionalParams
) {
- super(credentials, subscriptionId, options);
- this.accounts = new operations.Accounts(this);
- this.maps = new operations.Maps(this);
- this.creators = new operations.Creators(this);
- }
-}
+ if (credentials === undefined) {
+ throw new Error("'credentials' cannot be null");
+ }
+ if (subscriptionId === undefined) {
+ throw new Error("'subscriptionId' cannot be null");
+ }
+
+ // Initializing default values for options
+ if (!options) {
+ options = {};
+ }
+ const defaults: AzureMapsManagementClientOptionalParams = {
+ requestContentType: "application/json; charset=utf-8",
+ credential: credentials
+ };
+
+ const packageDetails = `azsdk-js-arm-maps/3.0.0-beta.1`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
-// Operation Specifications
+ 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;
-export {
- AzureMapsManagementClient,
- AzureMapsManagementClientContext,
- Models as AzureMapsManagementModels,
- Mappers as AzureMapsManagementMappers
-};
-export * from "./operations";
+ // Assigning values to Constant parameters
+ this.$host = options.$host || "https://management.azure.com";
+ this.apiVersion = options.apiVersion || "2021-12-01-preview";
+ this.accounts = new AccountsImpl(this);
+ this.maps = new MapsImpl(this);
+ this.creators = new CreatorsImpl(this);
+ }
+
+ accounts: Accounts;
+ maps: Maps;
+ creators: Creators;
+}
diff --git a/sdk/maps/arm-maps/src/azureMapsManagementClientContext.ts b/sdk/maps/arm-maps/src/azureMapsManagementClientContext.ts
deleted file mode 100644
index 38d1304d4cdc..000000000000
--- a/sdk/maps/arm-maps/src/azureMapsManagementClientContext.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * 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 * as Models from "./models";
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-
-const packageName = "@azure/arm-maps";
-const packageVersion = "2.0.0";
-
-export class AzureMapsManagementClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
- subscriptionId: string;
- apiVersion?: string;
-
- /**
- * Initializes a new instance of the AzureMapsManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
- * @param subscriptionId The ID of the target subscription.
- * @param [options] The parameter options
- */
- constructor(
- credentials: msRest.ServiceClientCredentials,
- subscriptionId: string,
- options?: Models.AzureMapsManagementClientOptions
- ) {
- if (credentials == undefined) {
- throw new Error("'credentials' cannot be null.");
- }
- if (subscriptionId == undefined) {
- throw new Error("'subscriptionId' cannot be null.");
- }
-
- if (!options) {
- options = {};
- }
- if (!options.userAgent) {
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
-
- super(credentials, options);
-
- this.apiVersion = "2021-02-01";
- 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;
-
- 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/maps/arm-maps/src/models/mapsMappers.ts b/sdk/maps/arm-maps/src/index.ts
similarity index 52%
rename from sdk/maps/arm-maps/src/models/mapsMappers.ts
rename to sdk/maps/arm-maps/src/index.ts
index 0d8432abb799..cda081e577f5 100644
--- a/sdk/maps/arm-maps/src/models/mapsMappers.ts
+++ b/sdk/maps/arm-maps/src/index.ts
@@ -6,14 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export {
- Dimension,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- MapsOperations,
- MetricSpecification,
- OperationDetail,
- OperationDisplay,
- ServiceSpecification
-} from "../models/mappers";
+///
+export * from "./models";
+export { AzureMapsManagementClient } from "./azureMapsManagementClient";
+export * from "./operationsInterfaces";
diff --git a/sdk/maps/arm-maps/src/models/accountsMappers.ts b/sdk/maps/arm-maps/src/models/accountsMappers.ts
deleted file mode 100644
index 3fe2d6b37e1c..000000000000
--- a/sdk/maps/arm-maps/src/models/accountsMappers.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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 {
- AzureEntityResource,
- BaseResource,
- Creator,
- CreatorProperties,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- MapsAccount,
- MapsAccountKeys,
- MapsAccountProperties,
- MapsAccounts,
- MapsAccountUpdateParameters,
- MapsKeySpecification,
- ProxyResource,
- Resource,
- Sku,
- SystemData,
- TrackedResource
-} from "../models/mappers";
diff --git a/sdk/maps/arm-maps/src/models/creatorsMappers.ts b/sdk/maps/arm-maps/src/models/creatorsMappers.ts
deleted file mode 100644
index 9c48734d5e7d..000000000000
--- a/sdk/maps/arm-maps/src/models/creatorsMappers.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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 {
- AzureEntityResource,
- BaseResource,
- Creator,
- CreatorList,
- CreatorProperties,
- CreatorUpdateParameters,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- MapsAccount,
- MapsAccountProperties,
- ProxyResource,
- Resource,
- Sku,
- SystemData,
- TrackedResource
-} from "../models/mappers";
diff --git a/sdk/maps/arm-maps/src/models/index.ts b/sdk/maps/arm-maps/src/models/index.ts
index a47bee234da0..2d1cac75b224 100644
--- a/sdk/maps/arm-maps/src/models/index.ts
+++ b/sdk/maps/arm-maps/src/models/index.ts
@@ -6,851 +6,675 @@
* 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 };
-
-/**
- * Creator resource properties
- */
-export interface CreatorProperties {
- /**
- * The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningState?: string;
- /**
- * The storage units to be allocated. Integer values from 1 to 100, inclusive.
- */
- storageUnits: number;
-}
-
-/**
- * An Azure resource which represents Maps Creator product and provides ability to manage private
- * location data.
- */
-export interface Creator extends BaseResource {
- /**
- * The Creator resource properties.
- */
- properties: CreatorProperties;
-}
-
-/**
- * The SKU of the Maps Account.
- */
+/** The SKU of the Maps Account. */
export interface Sku {
- /**
- * The name of the SKU, in standard format (such as S0). Possible values include: 'S0', 'S1',
- * 'G2'
- */
+ /** The name of the SKU, in standard format (such as S0). */
name: Name;
/**
* Gets the sku tier. This is based on the SKU name.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tier?: string;
}
-/**
- * Metadata pertaining to creation and last modification of the resource.
- */
+/** Metadata pertaining to creation and last modification of the resource. */
export interface SystemData {
- /**
- * The identity that created the resource.
- */
+ /** The identity that created the resource. */
createdBy?: string;
- /**
- * The type of identity that created the resource. Possible values include: 'User',
- * 'Application', 'ManagedIdentity', 'Key'
- */
+ /** The type of identity that created the resource. */
createdByType?: CreatedByType;
+ /** The timestamp of resource creation (UTC). */
+ createdAt?: Date;
+ /** The identity that last modified the resource. */
+ lastModifiedBy?: string;
+ /** The type of identity that last modified the resource. */
+ lastModifiedByType?: CreatedByType;
+ /** The timestamp of resource last modification (UTC) */
+ lastModifiedAt?: Date;
+}
+
+/** Identity for the resource. */
+export interface ManagedServiceIdentity {
/**
- * The timestamp of resource creation (UTC).
+ * The principal ID of resource identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- createdAt?: Date;
+ readonly principalId?: string;
/**
- * The identity that last modified the resource.
+ * The tenant ID of resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- lastModifiedBy?: string;
+ readonly tenantId?: string;
+ /** The identity type. */
+ type?: ResourceIdentityType;
+ /** The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
+ userAssignedIdentities?: {
+ [propertyName: string]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties;
+ };
+}
+
+export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties {
/**
- * The type of identity that last modified the resource. Possible values include: 'User',
- * 'Application', 'ManagedIdentity', 'Key'
+ * The principal id of user assigned identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- lastModifiedByType?: CreatedByType;
+ readonly principalId?: string;
/**
- * The timestamp of resource last modification (UTC)
+ * The client id of user assigned identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- lastModifiedAt?: Date;
+ readonly clientId?: string;
}
-/**
- * Additional Map account properties
- */
+/** Additional Map account properties */
export interface MapsAccountProperties {
/**
* A unique identifier for the maps account
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly uniqueId?: string;
- /**
- * Allows toggle functionality on Azure Policy to disable Azure Maps local authentication
- * support. This will disable Shared Keys authentication from any usage. Default value: false.
- */
+ /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
disableLocalAuth?: boolean;
/**
- * the state of the provisioning.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The provisioning state of the Map account resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: string;
+ /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
+ linkedResources?: LinkedResource[];
+ /** Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. */
+ cors?: CorsRules;
}
-/**
- * An Azure resource which represents access to a suite of Maps REST APIs.
- */
-export interface MapsAccount extends BaseResource {
+/** Linked resource is reference to a resource deployed in an Azure subscription, add the linked resource `uniqueName` value as an optional parameter for operations on Azure Maps Geospatial REST APIs. */
+export interface LinkedResource {
+ /** A provided name which uniquely identifies the linked resource. */
+ uniqueName: string;
+ /** ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'. */
+ id: string;
+}
+
+/** Sets the CORS rules. You can include up to five CorsRule elements in the request. */
+export interface CorsRules {
+ /** The list of CORS rules. You can include up to five CorsRule elements in the request. */
+ corsRules?: CorsRule[];
+}
+
+/** Specifies a CORS rule for the Map Account. */
+export interface CorsRule {
+ /** Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains */
+ allowedOrigins: string[];
+}
+
+/** Common fields that are returned in the response for all Azure Resource Manager resources */
+export interface Resource {
/**
- * The SKU of this account.
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- sku: Sku;
+ readonly id?: string;
/**
- * Get or Set Kind property. Possible values include: 'Gen1', 'Gen2'. Default value: 'Gen1'.
+ * The name of the resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- kind?: Kind;
+ readonly name?: string;
/**
- * The system meta data relating to this resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly systemData?: SystemData;
+ readonly type?: string;
+}
+
+/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
+export interface ErrorResponse {
+ /** The error object. */
+ error?: ErrorDetail;
+}
+
+/** The error detail. */
+export interface ErrorDetail {
/**
- * The map account properties.
+ * The error code.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- properties?: MapsAccountProperties;
+ readonly code?: string;
+ /**
+ * The error message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+ /**
+ * The error target.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly target?: string;
+ /**
+ * The error details.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly details?: ErrorDetail[];
+ /**
+ * The error additional info.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly additionalInfo?: ErrorAdditionalInfo[];
}
-/**
- * Parameters used to update an existing Maps Account.
- */
-export interface MapsAccountUpdateParameters {
+/** The resource management error additional info. */
+export interface ErrorAdditionalInfo {
/**
- * Gets or sets a list of key value pairs that describe the resource. These tags can be used in
- * viewing and grouping this resource (across resource groups). A maximum of 15 tags can be
- * provided for a resource. Each tag must have a key no greater than 128 characters and value no
- * greater than 256 characters.
+ * The additional info type.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- tags?: { [propertyName: string]: string };
+ readonly type?: string;
/**
- * Get or Set Kind property. Possible values include: 'Gen1', 'Gen2'. Default value: 'Gen1'.
+ * The additional info.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly info?: Record;
+}
+
+/** Parameters used to update an existing Maps Account. */
+export interface MapsAccountUpdateParameters {
+ /** Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. */
+ tags?: { [propertyName: string]: string };
+ /** Get or Set Kind property. */
kind?: Kind;
- /**
- * The SKU of this account.
- */
+ /** The SKU of this account. */
sku?: Sku;
+ /** Sets the identity property for maps account. */
+ identity?: ManagedServiceIdentity;
/**
* A unique identifier for the maps account
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly uniqueId?: string;
- /**
- * Allows toggle functionality on Azure Policy to disable Azure Maps local authentication
- * support. This will disable Shared Keys authentication from any usage. Default value: false.
- */
+ /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
disableLocalAuth?: boolean;
/**
- * the state of the provisioning.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The provisioning state of the Map account resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: string;
+ /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
+ linkedResources?: LinkedResource[];
+ /** Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. */
+ cors?: CorsRules;
}
-/**
- * Parameters used to update an existing Creator resource.
- */
-export interface CreatorUpdateParameters {
+/** A list of Maps Accounts. */
+export interface MapsAccounts {
/**
- * Gets or sets a list of key value pairs that describe the resource. These tags can be used in
- * viewing and grouping this resource (across resource groups). A maximum of 15 tags can be
- * provided for a resource. Each tag must have a key no greater than 128 characters and value no
- * greater than 256 characters.
+ * a Maps Account.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- tags?: { [propertyName: string]: string };
+ readonly value?: MapsAccount[];
/**
- * The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningState?: string;
- /**
- * The storage units to be allocated. Integer values from 1 to 100, inclusive.
+ * URL client should use to fetch the next page (per server side paging).
+ * It's null for now, added for future use.
*/
- storageUnits: number;
+ nextLink?: string;
}
-/**
- * Whether the operation refers to the primary or secondary key.
- */
-export interface MapsKeySpecification {
+/** Parameters used to create an account Shared Access Signature (SAS) token. The REST API access control is provided by Azure Maps Role Based Access (RBAC) identity and access. */
+export interface AccountSasParameters {
+ /** The Map account key to use for signing. */
+ signingKey: SigningKey;
+ /** The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Map Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id. */
+ principalId: string;
+ /** Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible. */
+ regions?: string[];
+ /** Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement. */
+ maxRatePerSecond: number;
+ /** The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". */
+ start: string;
+ /** The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z" */
+ expiry: string;
+}
+
+/** A new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed identity permissions on Azure (IAM) Role Based Access Control. */
+export interface MapsAccountSasToken {
/**
- * Whether the operation refers to the primary or secondary key. Possible values include:
- * 'primary', 'secondary'
+ * The shared access signature access token.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- keyType: KeyType;
+ readonly accountSasToken?: string;
}
-/**
- * The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key
- * rotation without interruption.
- */
+/** The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key rotation without interruption. */
export interface MapsAccountKeys {
/**
* The last updated date and time of the primary key.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly primaryKeyLastUpdated?: string;
/**
* The primary key for accessing the Maps REST APIs.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly primaryKey?: string;
/**
* The secondary key for accessing the Maps REST APIs.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly secondaryKey?: string;
/**
* The last updated date and time of the secondary key.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly secondaryKeyLastUpdated?: string;
}
-/**
- * Operation display payload
- */
-export interface OperationDisplay {
+/** Whether the operation refers to the primary or secondary key. */
+export interface MapsKeySpecification {
+ /** Whether the operation refers to the primary or secondary key. */
+ keyType: KeyType;
+}
+
+/** The set of operations available for Maps. */
+export interface MapsOperations {
/**
- * Resource provider of the operation
+ * An operation available for Maps.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- provider?: string;
+ readonly value?: OperationDetail[];
/**
- * Resource of the operation
+ * URL client should use to fetch the next page (per server side paging).
+ * It's null for now, added for future use.
*/
+ nextLink?: string;
+}
+
+/** Operation detail payload */
+export interface OperationDetail {
+ /** Name of the operation */
+ name?: string;
+ /** Indicates whether the operation is a data action */
+ isDataAction?: boolean;
+ /** Display of the operation */
+ display?: OperationDisplay;
+ /** Origin of the operation */
+ origin?: string;
+ /** One property of operation, include metric specifications. */
+ serviceSpecification?: ServiceSpecification;
+}
+
+/** Operation display payload */
+export interface OperationDisplay {
+ /** Resource provider of the operation */
+ provider?: string;
+ /** Resource of the operation */
resource?: string;
- /**
- * Localized friendly name for the operation
- */
+ /** Localized friendly name for the operation */
operation?: string;
- /**
- * Localized friendly description for the operation
- */
+ /** Localized friendly description for the operation */
description?: string;
}
-/**
- * Dimension of map account, for example API Category, Api Name, Result Type, and Response Code.
- */
-export interface Dimension {
- /**
- * Display name of dimension.
- */
- name?: string;
- /**
- * Display name of dimension.
- */
- displayName?: string;
+/** One property of operation, include metric specifications. */
+export interface ServiceSpecification {
+ /** Metric specifications of operation. */
+ metricSpecifications?: MetricSpecification[];
}
-/**
- * Metric specification of operation.
- */
+/** Metric specification of operation. */
export interface MetricSpecification {
- /**
- * Name of metric specification.
- */
+ /** Name of metric specification. */
name?: string;
- /**
- * Display name of metric specification.
- */
+ /** Display name of metric specification. */
displayName?: string;
- /**
- * Display description of metric specification.
- */
+ /** Display description of metric specification. */
displayDescription?: string;
- /**
- * Unit could be Count.
- */
+ /** Unit could be Count. */
unit?: string;
- /**
- * Dimensions of map account.
- */
+ /** Dimensions of map account. */
dimensions?: Dimension[];
- /**
- * Aggregation type could be Average.
- */
+ /** Aggregation type could be Average. */
aggregationType?: string;
- /**
- * The property to decide fill gap with zero or not.
- */
+ /** The property to decide fill gap with zero or not. */
fillGapWithZero?: boolean;
- /**
- * The category this metric specification belong to, could be Capacity.
- */
+ /** The category this metric specification belong to, could be Capacity. */
category?: string;
- /**
- * Account Resource Id.
- */
+ /** Account Resource Id. */
resourceIdDimensionNameOverride?: string;
+ /** Source metrics account. */
+ sourceMdmAccount?: string;
+ /** Internal metric name. */
+ internalMetricName?: string;
}
-/**
- * One property of operation, include metric specifications.
- */
-export interface ServiceSpecification {
- /**
- * Metric specifications of operation.
- */
- metricSpecifications?: MetricSpecification[];
+/** Dimension of map account, for example API Category, Api Name, Result Type, and Response Code. */
+export interface Dimension {
+ /** Display name of dimension. */
+ name?: string;
+ /** Display name of dimension. */
+ displayName?: string;
+ /** Internal name of the dimension. */
+ internalName?: string;
+ /** Internal metric name of the dimension. */
+ internalMetricName?: string;
+ /** Source Mdm Namespace of the dimension. */
+ sourceMdmNamespace?: string;
+ /** Flag to indicate exporting to Azure Monitor. */
+ toBeExportedToShoebox?: boolean;
}
-/**
- * Operation detail payload
- */
-export interface OperationDetail {
+/** A list of Creator resources. */
+export interface CreatorList {
/**
- * Name of the operation
+ * a Creator account.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- name?: string;
- /**
- * Indicates whether the operation is a data action
- */
- isDataAction?: boolean;
- /**
- * Display of the operation
- */
- display?: OperationDisplay;
+ readonly value?: Creator[];
/**
- * Origin of the operation
- */
- origin?: string;
- /**
- * One property of operation, include metric specifications.
+ * URL client should use to fetch the next page (per server side paging).
+ * It's null for now, added for future use.
*/
- serviceSpecification?: ServiceSpecification;
+ nextLink?: string;
}
-/**
- * Common fields that are returned in the response for all Azure Resource Manager resources
- * @summary Resource
- */
-export interface Resource extends BaseResource {
- /**
- * Fully qualified resource ID for the resource. Ex -
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The name of the resource
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
+/** Creator resource properties */
+export interface CreatorProperties {
/**
- * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
- * "Microsoft.Storage/storageAccounts"
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly type?: string;
+ readonly provisioningState?: string;
+ /** The storage units to be allocated. Integer values from 1 to 100, inclusive. */
+ storageUnits: number;
}
-/**
- * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags
- * and a location
- * @summary Proxy Resource
- */
-export interface ProxyResource extends Resource {}
-
-/**
- * The resource model definition for an Azure Resource Manager resource with an etag.
- * @summary Entity Resource
- */
-export interface AzureEntityResource extends Resource {
+/** Parameters used to update an existing Creator resource. */
+export interface CreatorUpdateParameters {
+ /** Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. */
+ tags?: { [propertyName: string]: string };
/**
- * Resource Etag.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly etag?: string;
+ readonly provisioningState?: string;
+ /** The storage units to be allocated. Integer values from 1 to 100, inclusive. */
+ storageUnits?: number;
}
-/**
- * The resource model definition for an Azure Resource Manager tracked top level resource which has
- * 'tags' and a 'location'
- * @summary Tracked Resource
- */
-export interface TrackedResource extends Resource {
- /**
- * Resource tags.
- */
+/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
+export type TrackedResource = Resource & {
+ /** Resource tags. */
tags?: { [propertyName: string]: string };
- /**
- * The geo-location where the resource lives
- */
+ /** The geo-location where the resource lives */
location: string;
-}
+};
-/**
- * The resource management error additional info.
- */
-export interface ErrorAdditionalInfo {
- /**
- * The additional info type.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
+/** An Azure resource which represents access to a suite of Maps REST APIs. */
+export type MapsAccount = TrackedResource & {
+ /** The SKU of this account. */
+ sku: Sku;
+ /** Get or Set Kind property. */
+ kind?: Kind;
/**
- * The additional info.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The system meta data relating to this resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly info?: any;
-}
+ readonly systemData?: SystemData;
+ /** Sets the identity property for maps account. */
+ identity?: ManagedServiceIdentity;
+ /** The map account properties. */
+ properties?: MapsAccountProperties;
+};
-/**
- * The error detail.
- */
-export interface ErrorDetail {
- /**
- * The error code.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly code?: string;
- /**
- * The error message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
- /**
- * The error target.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly target?: string;
- /**
- * The error details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly details?: ErrorDetail[];
+/** An Azure resource which represents Maps Creator product and provides ability to manage private location data. */
+export type Creator = TrackedResource & {
+ /** The Creator resource properties. */
+ properties: CreatorProperties;
/**
- * The error additional info.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The system meta data relating to this resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly additionalInfo?: ErrorAdditionalInfo[];
-}
+ readonly systemData?: SystemData;
+};
-/**
- * Common error response for all Azure Resource Manager APIs to return error details for failed
- * operations. (This also follows the OData error response format.).
- * @summary Error response
- */
-export interface ErrorResponse {
- /**
- * The error object.
- */
- error?: ErrorDetail;
+/** Known values of {@link Name} that the service accepts. */
+export enum KnownName {
+ S0 = "S0",
+ S1 = "S1",
+ G2 = "G2"
}
/**
- * An interface representing AzureMapsManagementClientOptions.
+ * Defines values for Name. \
+ * {@link KnownName} can be used interchangeably with Name,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **S0** \
+ * **S1** \
+ * **G2**
*/
-export interface AzureMapsManagementClientOptions extends AzureServiceClientOptions {
- baseUri?: string;
+export type Name = string;
+
+/** Known values of {@link Kind} that the service accepts. */
+export enum KnownKind {
+ Gen1 = "Gen1",
+ Gen2 = "Gen2"
}
/**
- * @interface
- * A list of Maps Accounts.
- * @extends Array
+ * Defines values for Kind. \
+ * {@link KnownKind} can be used interchangeably with Kind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Gen1** \
+ * **Gen2**
*/
-export interface MapsAccounts extends Array {
- /**
- * URL client should use to fetch the next page (per server side paging).
- * It's null for now, added for future use.
- */
- nextLink?: string;
+export type Kind = string;
+
+/** Known values of {@link CreatedByType} that the service accepts. */
+export enum KnownCreatedByType {
+ User = "User",
+ Application = "Application",
+ ManagedIdentity = "ManagedIdentity",
+ Key = "Key"
}
/**
- * @interface
- * The set of operations available for Maps.
- * @extends Array
+ * Defines values for CreatedByType. \
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **User** \
+ * **Application** \
+ * **ManagedIdentity** \
+ * **Key**
*/
-export interface MapsOperations extends Array {
- /**
- * URL client should use to fetch the next page (per server side paging).
- * It's null for now, added for future use.
- */
- nextLink?: string;
+export type CreatedByType = string;
+
+/** Known values of {@link SigningKey} that the service accepts. */
+export enum KnownSigningKey {
+ PrimaryKey = "primaryKey",
+ SecondaryKey = "secondaryKey"
}
/**
- * @interface
- * A list of Creator resources.
- * @extends Array
+ * Defines values for SigningKey. \
+ * {@link KnownSigningKey} can be used interchangeably with SigningKey,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **primaryKey** \
+ * **secondaryKey**
*/
-export interface CreatorList extends Array {
- /**
- * URL client should use to fetch the next page (per server side paging).
- * It's null for now, added for future use.
- */
- nextLink?: string;
+export type SigningKey = string;
+
+/** Known values of {@link KeyType} that the service accepts. */
+export enum KnownKeyType {
+ Primary = "primary",
+ Secondary = "secondary"
}
/**
- * Defines values for Name.
- * Possible values include: 'S0', 'S1', 'G2'
- * @readonly
- * @enum {string}
+ * Defines values for KeyType. \
+ * {@link KnownKeyType} can be used interchangeably with KeyType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **primary** \
+ * **secondary**
*/
-export type Name = "S0" | "S1" | "G2";
+export type KeyType = string;
+/** Defines values for ResourceIdentityType. */
+export type ResourceIdentityType =
+ | "SystemAssigned"
+ | "UserAssigned"
+ | "SystemAssigned, UserAssigned"
+ | "None";
-/**
- * Defines values for Kind.
- * Possible values include: 'Gen1', 'Gen2'
- * @readonly
- * @enum {string}
- */
-export type Kind = "Gen1" | "Gen2";
+/** Optional parameters. */
+export interface AccountsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for CreatedByType.
- * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
- * @readonly
- * @enum {string}
- */
-export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key";
+/** Contains response data for the createOrUpdate operation. */
+export type AccountsCreateOrUpdateResponse = MapsAccount;
-/**
- * Defines values for KeyType.
- * Possible values include: 'primary', 'secondary'
- * @readonly
- * @enum {string}
- */
-export type KeyType = "primary" | "secondary";
+/** Optional parameters. */
+export interface AccountsUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type AccountsCreateOrUpdateResponse = MapsAccount & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Contains response data for the update operation. */
+export type AccountsUpdateResponse = MapsAccount;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccount;
- };
-};
+/** Optional parameters. */
+export interface AccountsDeleteOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the update operation.
- */
-export type AccountsUpdateResponse = MapsAccount & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsGetOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccount;
- };
-};
+/** Contains response data for the get operation. */
+export type AccountsGetResponse = MapsAccount;
-/**
- * Contains response data for the get operation.
- */
-export type AccountsGetResponse = MapsAccount & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccount;
- };
-};
+/** Contains response data for the listByResourceGroup operation. */
+export type AccountsListByResourceGroupResponse = MapsAccounts;
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type AccountsListByResourceGroupResponse = MapsAccounts & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsListBySubscriptionOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccounts;
- };
-};
+/** Contains response data for the listBySubscription operation. */
+export type AccountsListBySubscriptionResponse = MapsAccounts;
-/**
- * Contains response data for the listBySubscription operation.
- */
-export type AccountsListBySubscriptionResponse = MapsAccounts & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsListSasOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccounts;
- };
-};
+/** Contains response data for the listSas operation. */
+export type AccountsListSasResponse = MapsAccountSasToken;
-/**
- * Contains response data for the listKeys operation.
- */
-export type AccountsListKeysResponse = MapsAccountKeys & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsListKeysOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccountKeys;
- };
-};
+/** Contains response data for the listKeys operation. */
+export type AccountsListKeysResponse = MapsAccountKeys;
-/**
- * Contains response data for the regenerateKeys operation.
- */
-export type AccountsRegenerateKeysResponse = MapsAccountKeys & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsRegenerateKeysOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccountKeys;
- };
-};
+/** Contains response data for the regenerateKeys operation. */
+export type AccountsRegenerateKeysResponse = MapsAccountKeys;
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type AccountsListByResourceGroupNextResponse = MapsAccounts & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccounts;
- };
-};
+/** Contains response data for the listByResourceGroupNext operation. */
+export type AccountsListByResourceGroupNextResponse = MapsAccounts;
-/**
- * Contains response data for the listBySubscriptionNext operation.
- */
-export type AccountsListBySubscriptionNextResponse = MapsAccounts & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface AccountsListBySubscriptionNextOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsAccounts;
- };
-};
+/** Contains response data for the listBySubscriptionNext operation. */
+export type AccountsListBySubscriptionNextResponse = MapsAccounts;
-/**
- * Contains response data for the listOperations operation.
- */
-export type MapsListOperationsResponse = MapsOperations & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface MapsListOperationsOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsOperations;
- };
-};
+/** Contains response data for the listOperations operation. */
+export type MapsListOperationsResponse = MapsOperations;
-/**
- * Contains response data for the listOperationsNext operation.
- */
-export type MapsListOperationsNextResponse = MapsOperations & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface MapsListSubscriptionOperationsOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MapsOperations;
- };
-};
+/** Contains response data for the listSubscriptionOperations operation. */
+export type MapsListSubscriptionOperationsResponse = MapsOperations;
-/**
- * Contains response data for the listByAccount operation.
- */
-export type CreatorsListByAccountResponse = CreatorList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface MapsListOperationsNextOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: CreatorList;
- };
-};
+/** Contains response data for the listOperationsNext operation. */
+export type MapsListOperationsNextResponse = MapsOperations;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type CreatorsCreateOrUpdateResponse = Creator & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface MapsListSubscriptionOperationsNextOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Creator;
- };
-};
+/** Contains response data for the listSubscriptionOperationsNext operation. */
+export type MapsListSubscriptionOperationsNextResponse = MapsOperations;
-/**
- * Contains response data for the update operation.
- */
-export type CreatorsUpdateResponse = Creator & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface CreatorsListByAccountOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Creator;
- };
-};
+/** Contains response data for the listByAccount operation. */
+export type CreatorsListByAccountResponse = CreatorList;
-/**
- * Contains response data for the get operation.
- */
-export type CreatorsGetResponse = Creator & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface CreatorsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Creator;
- };
-};
+/** Contains response data for the createOrUpdate operation. */
+export type CreatorsCreateOrUpdateResponse = Creator;
-/**
- * Contains response data for the listByAccountNext operation.
- */
-export type CreatorsListByAccountNextResponse = CreatorList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
+/** Optional parameters. */
+export interface CreatorsUpdateOptionalParams
+ extends coreClient.OperationOptions {}
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: CreatorList;
- };
-};
+/** Contains response data for the update operation. */
+export type CreatorsUpdateResponse = Creator;
+
+/** Optional parameters. */
+export interface CreatorsDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface CreatorsGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type CreatorsGetResponse = Creator;
+
+/** Optional parameters. */
+export interface CreatorsListByAccountNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByAccountNext operation. */
+export type CreatorsListByAccountNextResponse = CreatorList;
+
+/** Optional parameters. */
+export interface AzureMapsManagementClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Api Version */
+ apiVersion?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/maps/arm-maps/src/models/mappers.ts b/sdk/maps/arm-maps/src/models/mappers.ts
index 6f3b2a3f270a..abf7a7302b38 100644
--- a/sdk/maps/arm-maps/src/models/mappers.ts
+++ b/sdk/maps/arm-maps/src/models/mappers.ts
@@ -6,74 +6,23 @@
* 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 CreatorProperties: msRest.CompositeMapper = {
- serializedName: "CreatorProperties",
- type: {
- name: "Composite",
- className: "CreatorProperties",
- modelProperties: {
- provisioningState: {
- readOnly: true,
- serializedName: "provisioningState",
- type: {
- name: "String"
- }
- },
- storageUnits: {
- required: true,
- serializedName: "storageUnits",
- constraints: {
- InclusiveMaximum: 100,
- InclusiveMinimum: 1
- },
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const Creator: msRest.CompositeMapper = {
- serializedName: "Creator",
- type: {
- name: "Composite",
- className: "Creator",
- modelProperties: {
- properties: {
- required: true,
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "CreatorProperties"
- }
- }
- }
- }
-};
-
-export const Sku: msRest.CompositeMapper = {
- serializedName: "Sku",
+export const Sku: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Sku",
modelProperties: {
name: {
- required: true,
serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
tier: {
- readOnly: true,
serializedName: "tier",
+ readOnly: true,
type: {
name: "String"
}
@@ -82,8 +31,7 @@ export const Sku: msRest.CompositeMapper = {
}
};
-export const SystemData: msRest.CompositeMapper = {
- serializedName: "systemData",
+export const SystemData: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "SystemData",
@@ -128,219 +76,220 @@ export const SystemData: msRest.CompositeMapper = {
}
};
-export const MapsAccountProperties: msRest.CompositeMapper = {
- serializedName: "MapsAccountProperties",
+export const ManagedServiceIdentity: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MapsAccountProperties",
+ className: "ManagedServiceIdentity",
modelProperties: {
- uniqueId: {
+ principalId: {
+ serializedName: "principalId",
readOnly: true,
- serializedName: "uniqueId",
type: {
name: "String"
}
},
- disableLocalAuth: {
- serializedName: "disableLocalAuth",
- defaultValue: false,
+ tenantId: {
+ serializedName: "tenantId",
+ readOnly: true,
type: {
- name: "Boolean"
+ name: "String"
}
},
- provisioningState: {
- readOnly: true,
- serializedName: "provisioningState",
+ type: {
+ serializedName: "type",
type: {
- name: "String"
+ name: "Enum",
+ allowedValues: [
+ "SystemAssigned",
+ "UserAssigned",
+ "SystemAssigned, UserAssigned",
+ "None"
+ ]
+ }
+ },
+ userAssignedIdentities: {
+ serializedName: "userAssignedIdentities",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "Composite",
+ className:
+ "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties"
+ }
+ }
}
}
}
}
};
-export const MapsAccount: msRest.CompositeMapper = {
- serializedName: "MapsAccount",
+export const Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MapsAccount",
+ className:
+ "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties",
modelProperties: {
- sku: {
- required: true,
- serializedName: "sku",
- type: {
- name: "Composite",
- className: "Sku"
- }
- },
- kind: {
- serializedName: "kind",
- defaultValue: "Gen1",
+ principalId: {
+ serializedName: "principalId",
+ readOnly: true,
type: {
name: "String"
}
},
- systemData: {
+ clientId: {
+ serializedName: "clientId",
readOnly: true,
- serializedName: "systemData",
- type: {
- name: "Composite",
- className: "SystemData"
- }
- },
- properties: {
- serializedName: "properties",
type: {
- name: "Composite",
- className: "MapsAccountProperties"
+ name: "String"
}
}
}
}
};
-export const MapsAccountUpdateParameters: msRest.CompositeMapper = {
- serializedName: "MapsAccountUpdateParameters",
+export const MapsAccountProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MapsAccountUpdateParameters",
+ className: "MapsAccountProperties",
modelProperties: {
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
- kind: {
- serializedName: "kind",
- defaultValue: "Gen1",
- type: {
- name: "String"
- }
- },
- sku: {
- serializedName: "sku",
- type: {
- name: "Composite",
- className: "Sku"
- }
- },
uniqueId: {
+ serializedName: "uniqueId",
readOnly: true,
- serializedName: "properties.uniqueId",
type: {
name: "String"
}
},
disableLocalAuth: {
- serializedName: "properties.disableLocalAuth",
defaultValue: false,
+ serializedName: "disableLocalAuth",
type: {
name: "Boolean"
}
},
provisioningState: {
+ serializedName: "provisioningState",
readOnly: true,
- serializedName: "properties.provisioningState",
type: {
name: "String"
}
+ },
+ linkedResources: {
+ constraints: {
+ MaxItems: 10
+ },
+ serializedName: "linkedResources",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "LinkedResource"
+ }
+ }
+ }
+ },
+ cors: {
+ serializedName: "cors",
+ type: {
+ name: "Composite",
+ className: "CorsRules"
+ }
}
}
}
};
-export const CreatorUpdateParameters: msRest.CompositeMapper = {
- serializedName: "CreatorUpdateParameters",
+export const LinkedResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CreatorUpdateParameters",
+ className: "LinkedResource",
modelProperties: {
- tags: {
- serializedName: "tags",
+ uniqueName: {
+ serializedName: "uniqueName",
+ required: true,
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
+ id: {
+ serializedName: "id",
+ required: true,
type: {
name: "String"
}
- },
- storageUnits: {
- required: true,
- serializedName: "properties.storageUnits",
+ }
+ }
+ }
+};
+
+export const CorsRules: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CorsRules",
+ modelProperties: {
+ corsRules: {
constraints: {
- InclusiveMaximum: 100,
- InclusiveMinimum: 1
+ MaxItems: 5
},
+ serializedName: "corsRules",
type: {
- name: "Number"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CorsRule"
+ }
+ }
}
}
}
}
};
-export const MapsKeySpecification: msRest.CompositeMapper = {
- serializedName: "MapsKeySpecification",
+export const CorsRule: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MapsKeySpecification",
+ className: "CorsRule",
modelProperties: {
- keyType: {
+ allowedOrigins: {
+ serializedName: "allowedOrigins",
required: true,
- serializedName: "keyType",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
}
}
}
};
-export const MapsAccountKeys: msRest.CompositeMapper = {
- serializedName: "MapsAccountKeys",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MapsAccountKeys",
+ className: "Resource",
modelProperties: {
- primaryKeyLastUpdated: {
- readOnly: true,
- serializedName: "primaryKeyLastUpdated",
- type: {
- name: "String"
- }
- },
- primaryKey: {
+ id: {
+ serializedName: "id",
readOnly: true,
- serializedName: "primaryKey",
type: {
name: "String"
}
},
- secondaryKey: {
+ name: {
+ serializedName: "name",
readOnly: true,
- serializedName: "secondaryKey",
type: {
name: "String"
}
},
- secondaryKeyLastUpdated: {
+ type: {
+ serializedName: "type",
readOnly: true,
- serializedName: "secondaryKeyLastUpdated",
type: {
name: "String"
}
@@ -349,248 +298,315 @@ export const MapsAccountKeys: msRest.CompositeMapper = {
}
};
-export const OperationDisplay: msRest.CompositeMapper = {
- serializedName: "OperationDisplay",
+export const ErrorResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationDisplay",
+ className: "ErrorResponse",
modelProperties: {
- provider: {
- serializedName: "provider",
- type: {
- name: "String"
- }
- },
- resource: {
- serializedName: "resource",
- type: {
- name: "String"
- }
- },
- operation: {
- serializedName: "operation",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
+ error: {
+ serializedName: "error",
type: {
- name: "String"
+ name: "Composite",
+ className: "ErrorDetail"
}
}
}
}
};
-export const Dimension: msRest.CompositeMapper = {
- serializedName: "Dimension",
+export const ErrorDetail: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Dimension",
+ className: "ErrorDetail",
modelProperties: {
- name: {
- serializedName: "name",
+ code: {
+ serializedName: "code",
+ readOnly: true,
type: {
name: "String"
}
},
- displayName: {
- serializedName: "displayName",
+ message: {
+ serializedName: "message",
+ readOnly: true,
type: {
name: "String"
}
- }
- }
- }
-};
+ },
+ target: {
+ serializedName: "target",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ details: {
+ serializedName: "details",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDetail"
+ }
+ }
+ }
+ },
+ additionalInfo: {
+ serializedName: "additionalInfo",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorAdditionalInfo"
+ }
+ }
+ }
+ }
+ }
+ }
+};
-export const MetricSpecification: msRest.CompositeMapper = {
- serializedName: "MetricSpecification",
+export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MetricSpecification",
+ className: "ErrorAdditionalInfo",
modelProperties: {
- name: {
- serializedName: "name",
+ type: {
+ serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
},
- displayName: {
- serializedName: "displayName",
+ info: {
+ serializedName: "info",
+ readOnly: true,
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
+ }
+ }
+ }
+ }
+};
+
+export const MapsAccountUpdateParameters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MapsAccountUpdateParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- displayDescription: {
- serializedName: "displayDescription",
+ kind: {
+ defaultValue: "Gen1",
+ serializedName: "kind",
type: {
name: "String"
}
},
- unit: {
- serializedName: "unit",
+ sku: {
+ serializedName: "sku",
type: {
- name: "String"
+ name: "Composite",
+ className: "Sku"
}
},
- dimensions: {
- serializedName: "dimensions",
+ identity: {
+ serializedName: "identity",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Dimension"
- }
- }
+ name: "Composite",
+ className: "ManagedServiceIdentity"
}
},
- aggregationType: {
- serializedName: "aggregationType",
+ uniqueId: {
+ serializedName: "properties.uniqueId",
+ readOnly: true,
type: {
name: "String"
}
},
- fillGapWithZero: {
- serializedName: "fillGapWithZero",
+ disableLocalAuth: {
+ defaultValue: false,
+ serializedName: "properties.disableLocalAuth",
type: {
name: "Boolean"
}
},
- category: {
- serializedName: "category",
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
name: "String"
}
},
- resourceIdDimensionNameOverride: {
- serializedName: "resourceIdDimensionNameOverride",
+ linkedResources: {
+ constraints: {
+ MaxItems: 10
+ },
+ serializedName: "properties.linkedResources",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "LinkedResource"
+ }
+ }
+ }
+ },
+ cors: {
+ serializedName: "properties.cors",
+ type: {
+ name: "Composite",
+ className: "CorsRules"
}
}
}
}
};
-export const ServiceSpecification: msRest.CompositeMapper = {
- serializedName: "ServiceSpecification",
+export const MapsAccounts: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ServiceSpecification",
+ className: "MapsAccounts",
modelProperties: {
- metricSpecifications: {
- serializedName: "metricSpecifications",
+ value: {
+ serializedName: "value",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "MetricSpecification"
+ className: "MapsAccount"
}
}
}
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
}
}
}
};
-export const OperationDetail: msRest.CompositeMapper = {
- serializedName: "OperationDetail",
+export const AccountSasParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationDetail",
+ className: "AccountSasParameters",
modelProperties: {
- name: {
- serializedName: "name",
+ signingKey: {
+ serializedName: "signingKey",
+ required: true,
type: {
name: "String"
}
},
- isDataAction: {
- serializedName: "isDataAction",
+ principalId: {
+ serializedName: "principalId",
+ required: true,
type: {
- name: "Boolean"
+ name: "String"
}
},
- display: {
- serializedName: "display",
+ regions: {
+ serializedName: "regions",
type: {
- name: "Composite",
- className: "OperationDisplay"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- origin: {
- serializedName: "origin",
+ maxRatePerSecond: {
+ defaultValue: 500,
+ constraints: {
+ InclusiveMaximum: 500,
+ ExclusiveMinimum: 0
+ },
+ serializedName: "maxRatePerSecond",
+ required: true,
+ type: {
+ name: "Number"
+ }
+ },
+ start: {
+ serializedName: "start",
+ required: true,
type: {
name: "String"
}
},
- serviceSpecification: {
- serializedName: "properties.serviceSpecification",
+ expiry: {
+ serializedName: "expiry",
+ required: true,
type: {
- name: "Composite",
- className: "ServiceSpecification"
+ name: "String"
}
}
}
}
};
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
+export const MapsAccountSasToken: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Resource",
+ className: "MapsAccountSasToken",
modelProperties: {
- id: {
+ accountSasToken: {
+ serializedName: "accountSasToken",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const MapsAccountKeys: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MapsAccountKeys",
+ modelProperties: {
+ primaryKeyLastUpdated: {
+ serializedName: "primaryKeyLastUpdated",
readOnly: true,
- serializedName: "id",
type: {
name: "String"
}
},
- name: {
+ primaryKey: {
+ serializedName: "primaryKey",
readOnly: true,
- serializedName: "name",
type: {
name: "String"
}
},
- type: {
+ secondaryKey: {
+ serializedName: "secondaryKey",
readOnly: true,
- serializedName: "type",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const ProxyResource: msRest.CompositeMapper = {
- serializedName: "ProxyResource",
- type: {
- name: "Composite",
- className: "ProxyResource",
- modelProperties: {
- ...Resource.type.modelProperties
- }
- }
-};
-
-export const AzureEntityResource: msRest.CompositeMapper = {
- serializedName: "AzureEntityResource",
- type: {
- name: "Composite",
- className: "AzureEntityResource",
- modelProperties: {
- ...Resource.type.modelProperties,
- etag: {
+ },
+ secondaryKeyLastUpdated: {
+ serializedName: "secondaryKeyLastUpdated",
readOnly: true,
- serializedName: "etag",
type: {
name: "String"
}
@@ -599,27 +615,14 @@ export const AzureEntityResource: msRest.CompositeMapper = {
}
};
-export const TrackedResource: msRest.CompositeMapper = {
- serializedName: "TrackedResource",
+export const MapsKeySpecification: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "TrackedResource",
+ className: "MapsKeySpecification",
modelProperties: {
- ...Resource.type.modelProperties,
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
- location: {
+ keyType: {
+ serializedName: "keyType",
required: true,
- serializedName: "location",
type: {
name: "String"
}
@@ -628,119 +631,269 @@ export const TrackedResource: msRest.CompositeMapper = {
}
};
-export const ErrorAdditionalInfo: msRest.CompositeMapper = {
- serializedName: "ErrorAdditionalInfo",
+export const MapsOperations: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorAdditionalInfo",
+ className: "MapsOperations",
modelProperties: {
- type: {
+ value: {
+ serializedName: "value",
readOnly: true,
- serializedName: "type",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationDetail"
+ }
+ }
}
},
- info: {
- readOnly: true,
- serializedName: "info",
+ nextLink: {
+ serializedName: "nextLink",
type: {
- name: "Object"
+ name: "String"
}
}
}
}
};
-export const ErrorDetail: msRest.CompositeMapper = {
- serializedName: "ErrorDetail",
+export const OperationDetail: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorDetail",
+ className: "OperationDetail",
modelProperties: {
- code: {
- readOnly: true,
- serializedName: "code",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
},
- message: {
- readOnly: true,
- serializedName: "message",
+ isDataAction: {
+ serializedName: "isDataAction",
+ type: {
+ name: "Boolean"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ },
+ origin: {
+ serializedName: "origin",
type: {
name: "String"
}
},
- target: {
- readOnly: true,
- serializedName: "target",
+ serviceSpecification: {
+ serializedName: "properties.serviceSpecification",
+ type: {
+ name: "Composite",
+ className: "ServiceSpecification"
+ }
+ }
+ }
+ }
+};
+
+export const OperationDisplay: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationDisplay",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
type: {
name: "String"
}
},
- details: {
- readOnly: true,
- serializedName: "details",
+ resource: {
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceSpecification: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceSpecification",
+ modelProperties: {
+ metricSpecifications: {
+ serializedName: "metricSpecifications",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ErrorDetail"
+ className: "MetricSpecification"
}
}
}
+ }
+ }
+ }
+};
+
+export const MetricSpecification: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MetricSpecification",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
},
- additionalInfo: {
- readOnly: true,
- serializedName: "additionalInfo",
+ displayName: {
+ serializedName: "displayName",
+ type: {
+ name: "String"
+ }
+ },
+ displayDescription: {
+ serializedName: "displayDescription",
+ type: {
+ name: "String"
+ }
+ },
+ unit: {
+ serializedName: "unit",
+ type: {
+ name: "String"
+ }
+ },
+ dimensions: {
+ serializedName: "dimensions",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ErrorAdditionalInfo"
+ className: "Dimension"
}
}
}
+ },
+ aggregationType: {
+ serializedName: "aggregationType",
+ type: {
+ name: "String"
+ }
+ },
+ fillGapWithZero: {
+ serializedName: "fillGapWithZero",
+ type: {
+ name: "Boolean"
+ }
+ },
+ category: {
+ serializedName: "category",
+ type: {
+ name: "String"
+ }
+ },
+ resourceIdDimensionNameOverride: {
+ serializedName: "resourceIdDimensionNameOverride",
+ type: {
+ name: "String"
+ }
+ },
+ sourceMdmAccount: {
+ serializedName: "sourceMdmAccount",
+ type: {
+ name: "String"
+ }
+ },
+ internalMetricName: {
+ serializedName: "internalMetricName",
+ type: {
+ name: "String"
+ }
}
}
}
};
-export const ErrorResponse: msRest.CompositeMapper = {
- serializedName: "ErrorResponse",
+export const Dimension: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorResponse",
+ className: "Dimension",
modelProperties: {
- error: {
- serializedName: "error",
+ name: {
+ serializedName: "name",
type: {
- name: "Composite",
- className: "ErrorDetail"
+ name: "String"
+ }
+ },
+ displayName: {
+ serializedName: "displayName",
+ type: {
+ name: "String"
+ }
+ },
+ internalName: {
+ serializedName: "internalName",
+ type: {
+ name: "String"
+ }
+ },
+ internalMetricName: {
+ serializedName: "internalMetricName",
+ type: {
+ name: "String"
+ }
+ },
+ sourceMdmNamespace: {
+ serializedName: "sourceMdmNamespace",
+ type: {
+ name: "String"
+ }
+ },
+ toBeExportedToShoebox: {
+ serializedName: "toBeExportedToShoebox",
+ type: {
+ name: "Boolean"
}
}
}
}
};
-export const MapsAccounts: msRest.CompositeMapper = {
- serializedName: "MapsAccounts",
+export const CreatorList: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MapsAccounts",
+ className: "CreatorList",
modelProperties: {
value: {
+ serializedName: "value",
readOnly: true,
- serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "MapsAccount"
+ className: "Creator"
}
}
}
@@ -755,56 +908,82 @@ export const MapsAccounts: msRest.CompositeMapper = {
}
};
-export const MapsOperations: msRest.CompositeMapper = {
- serializedName: "MapsOperations",
+export const CreatorProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MapsOperations",
+ className: "CreatorProperties",
modelProperties: {
- value: {
+ provisioningState: {
+ serializedName: "provisioningState",
readOnly: true,
- serializedName: "",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OperationDetail"
- }
- }
+ name: "String"
}
},
- nextLink: {
- serializedName: "nextLink",
+ storageUnits: {
+ constraints: {
+ InclusiveMaximum: 100,
+ InclusiveMinimum: 1
+ },
+ serializedName: "storageUnits",
+ required: true,
type: {
- name: "String"
+ name: "Number"
}
}
}
}
};
-export const CreatorList: msRest.CompositeMapper = {
- serializedName: "CreatorList",
+export const CreatorUpdateParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CreatorList",
+ className: "CreatorUpdateParameters",
modelProperties: {
- value: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
readOnly: true,
- serializedName: "",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Creator"
- }
- }
+ name: "String"
}
},
- nextLink: {
- serializedName: "nextLink",
+ storageUnits: {
+ constraints: {
+ InclusiveMaximum: 100,
+ InclusiveMinimum: 1
+ },
+ serializedName: "properties.storageUnits",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const TrackedResource: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "TrackedResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ location: {
+ serializedName: "location",
+ required: true,
type: {
name: "String"
}
@@ -812,3 +991,72 @@ export const CreatorList: msRest.CompositeMapper = {
}
}
};
+
+export const MapsAccount: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "MapsAccount",
+ modelProperties: {
+ ...TrackedResource.type.modelProperties,
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "Sku"
+ }
+ },
+ kind: {
+ defaultValue: "Gen1",
+ serializedName: "kind",
+ type: {
+ name: "String"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "ManagedServiceIdentity"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "MapsAccountProperties"
+ }
+ }
+ }
+ }
+};
+
+export const Creator: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Creator",
+ modelProperties: {
+ ...TrackedResource.type.modelProperties,
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "CreatorProperties"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ }
+ }
+ }
+};
diff --git a/sdk/maps/arm-maps/src/models/parameters.ts b/sdk/maps/arm-maps/src/models/parameters.ts
index 1273acb0a7cd..4ebb6884234b 100644
--- a/sdk/maps/arm-maps/src/models/parameters.ts
+++ b/sdk/maps/arm-maps/src/models/parameters.ts
@@ -3,91 +3,160 @@
* 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 {
+ MapsAccount as MapsAccountMapper,
+ MapsAccountUpdateParameters as MapsAccountUpdateParametersMapper,
+ AccountSasParameters as AccountSasParametersMapper,
+ MapsKeySpecification as MapsKeySpecificationMapper,
+ Creator as CreatorMapper,
+ CreatorUpdateParameters as CreatorUpdateParametersMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- serializedName: "accept-language",
- defaultValue: "en-US",
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
}
};
-export const accountName: msRest.OperationURLParameter = {
- parameterPath: "accountName",
+
+export const mapsAccount: OperationParameter = {
+ parameterPath: "mapsAccount",
+ mapper: MapsAccountMapper
+};
+
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- required: true,
- serializedName: "accountName",
+ 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: "2021-12-01-preview",
+ isConstant: true,
serializedName: "api-version",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
constraints: {
MinLength: 1
},
+ serializedName: "subscriptionId",
+ required: true,
type: {
name: "String"
}
}
};
-export const creatorName: msRest.OperationURLParameter = {
- parameterPath: "creatorName",
+
+export const resourceGroupName: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
+ constraints: {
+ MaxLength: 90,
+ MinLength: 1
+ },
+ serializedName: "resourceGroupName",
required: true,
- serializedName: "creatorName",
type: {
name: "String"
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const accountName: OperationURLParameter = {
+ parameterPath: "accountName",
mapper: {
+ serializedName: "accountName",
required: true,
- serializedName: "nextLink",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
};
-export const resourceGroupName: msRest.OperationURLParameter = {
- parameterPath: "resourceGroupName",
+
+export const mapsAccountUpdateParameters: OperationParameter = {
+ parameterPath: "mapsAccountUpdateParameters",
+ mapper: MapsAccountUpdateParametersMapper
+};
+
+export const mapsAccountSasParameters: OperationParameter = {
+ parameterPath: "mapsAccountSasParameters",
+ mapper: AccountSasParametersMapper
+};
+
+export const keySpecification: OperationParameter = {
+ parameterPath: "keySpecification",
+ mapper: MapsKeySpecificationMapper
+};
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
+ serializedName: "nextLink",
required: true,
- serializedName: "resourceGroupName",
- constraints: {
- MaxLength: 90,
- MinLength: 1,
- Pattern: /^[-\w\._\(\)]+$/
- },
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const creatorResource: OperationParameter = {
+ parameterPath: "creatorResource",
+ mapper: CreatorMapper
+};
+
+export const creatorName: OperationURLParameter = {
+ parameterPath: "creatorName",
mapper: {
+ serializedName: "creatorName",
required: true,
- serializedName: "subscriptionId",
- constraints: {
- MinLength: 1
- },
type: {
name: "String"
}
}
};
+
+export const creatorUpdateParameters: OperationParameter = {
+ parameterPath: "creatorUpdateParameters",
+ mapper: CreatorUpdateParametersMapper
+};
diff --git a/sdk/maps/arm-maps/src/operations/accounts.ts b/sdk/maps/arm-maps/src/operations/accounts.ts
index cc61e9898657..f36f7822983a 100644
--- a/sdk/maps/arm-maps/src/operations/accounts.ts
+++ b/sdk/maps/arm-maps/src/operations/accounts.ts
@@ -3,196 +3,205 @@
* 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/accountsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Accounts } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureMapsManagementClientContext } from "../azureMapsManagementClientContext";
+import { AzureMapsManagementClient } from "../azureMapsManagementClient";
+import {
+ MapsAccount,
+ AccountsListByResourceGroupNextOptionalParams,
+ AccountsListByResourceGroupOptionalParams,
+ AccountsListBySubscriptionNextOptionalParams,
+ AccountsListBySubscriptionOptionalParams,
+ AccountsCreateOrUpdateOptionalParams,
+ AccountsCreateOrUpdateResponse,
+ MapsAccountUpdateParameters,
+ AccountsUpdateOptionalParams,
+ AccountsUpdateResponse,
+ AccountsDeleteOptionalParams,
+ AccountsGetOptionalParams,
+ AccountsGetResponse,
+ AccountsListByResourceGroupResponse,
+ AccountsListBySubscriptionResponse,
+ AccountSasParameters,
+ AccountsListSasOptionalParams,
+ AccountsListSasResponse,
+ AccountsListKeysOptionalParams,
+ AccountsListKeysResponse,
+ MapsKeySpecification,
+ AccountsRegenerateKeysOptionalParams,
+ AccountsRegenerateKeysResponse,
+ AccountsListByResourceGroupNextResponse,
+ AccountsListBySubscriptionNextResponse
+} from "../models";
-/** Class representing a Accounts. */
-export class Accounts {
- private readonly client: AzureMapsManagementClientContext;
+///
+/** Class containing Accounts operations. */
+export class AccountsImpl implements Accounts {
+ private readonly client: AzureMapsManagementClient;
/**
- * Create a Accounts.
- * @param {AzureMapsManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Accounts class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureMapsManagementClientContext) {
+ constructor(client: AzureMapsManagementClient) {
this.client = client;
}
/**
- * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps
- * REST APIs.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param mapsAccount The new or updated parameters for the Maps Account.
- * @param [options] The optional parameters
- * @returns Promise
- */
- createOrUpdate(
- resourceGroupName: string,
- accountName: string,
- mapsAccount: Models.MapsAccount,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param mapsAccount The new or updated parameters for the Maps Account.
- * @param callback The callback
- */
- createOrUpdate(
- resourceGroupName: string,
- accountName: string,
- mapsAccount: Models.MapsAccount,
- callback: msRest.ServiceCallback
- ): void;
- /**
+ * Get all Maps Accounts in a Resource Group
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param mapsAccount The new or updated parameters for the Maps Account.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- createOrUpdate(
+ public listByResourceGroup(
resourceGroupName: string,
- accountName: string,
- mapsAccount: Models.MapsAccount,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- createOrUpdate(
+ options?: AccountsListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listByResourceGroupPagingPage(
resourceGroupName: string,
- accountName: string,
- mapsAccount: Models.MapsAccount,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
- return this.client.sendOperationRequest(
- {
+ options?: AccountsListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
resourceGroupName,
- accountName,
- mapsAccount,
+ continuationToken,
options
- },
- createOrUpdateOperationSpec,
- callback
- ) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: AccountsListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as
- * Sku, Tags, Properties.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
- * @param [options] The optional parameters
- * @returns Promise
+ * Get all Maps Accounts in a Subscription
+ * @param options The options parameters.
*/
- update(
- resourceGroupName: string,
- accountName: string,
- mapsAccountUpdateParameters: Models.MapsAccountUpdateParameters,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ public listBySubscription(
+ options?: AccountsListBySubscriptionOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listBySubscriptionPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listBySubscriptionPagingPage(options);
+ }
+ };
+ }
+
+ private async *listBySubscriptionPagingPage(
+ options?: AccountsListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listBySubscription(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listBySubscriptionNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listBySubscriptionPagingAll(
+ options?: AccountsListBySubscriptionOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
+ * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST
+ * APIs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
- * @param callback The callback
+ * @param mapsAccount The new or updated parameters for the Maps Account.
+ * @param options The options parameters.
*/
- update(
+ createOrUpdate(
resourceGroupName: string,
accountName: string,
- mapsAccountUpdateParameters: Models.MapsAccountUpdateParameters,
- callback: msRest.ServiceCallback
- ): void;
+ mapsAccount: MapsAccount,
+ options?: AccountsCreateOrUpdateOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, accountName, mapsAccount, options },
+ createOrUpdateOperationSpec
+ );
+ }
+
/**
+ * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku,
+ * Tags, Properties.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
update(
resourceGroupName: string,
accountName: string,
- mapsAccountUpdateParameters: Models.MapsAccountUpdateParameters,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- update(
- resourceGroupName: string,
- accountName: string,
- mapsAccountUpdateParameters: Models.MapsAccountUpdateParameters,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ mapsAccountUpdateParameters: MapsAccountUpdateParameters,
+ options?: AccountsUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- mapsAccountUpdateParameters,
- options
- },
- updateOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, accountName, mapsAccountUpdateParameters, options },
+ updateOperationSpec
+ );
}
/**
* Delete a Maps Account.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param callback The callback
- */
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- deleteMethod(
+ delete(
resourceGroupName: string,
accountName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: AccountsDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- options
- },
- deleteMethodOperationSpec,
- callback
+ { resourceGroupName, accountName, options },
+ deleteOperationSpec
);
}
@@ -200,180 +209,90 @@ export class Accounts {
* Get a Maps Account.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(
- resourceGroupName: string,
- accountName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param callback The callback
+ * @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(
- resourceGroupName: string,
- accountName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- get(
- resourceGroupName: string,
- accountName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: AccountsGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- options
- },
- getOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, accountName, options },
+ getOperationSpec
+ );
}
/**
* Get all Maps Accounts in a Resource Group
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroup(
- resourceGroupName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param callback The callback
+ * @param options The options parameters.
*/
- listByResourceGroup(
+ private _listByResourceGroup(
resourceGroupName: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByResourceGroup(
- resourceGroupName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByResourceGroup(
- resourceGroupName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: AccountsListByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listByResourceGroupOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
}
/**
* Get all Maps Accounts in a Subscription
- * @param [options] The optional parameters
- * @returns Promise
- */
- listBySubscription(
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param callback The callback
+ * @param options The options parameters.
*/
- listBySubscription(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- listBySubscription(
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listBySubscription(
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ private _listBySubscription(
+ options?: AccountsListBySubscriptionOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- options
- },
- listBySubscriptionOperationSpec,
- callback
- ) as Promise;
+ { options },
+ listBySubscriptionOperationSpec
+ );
}
/**
- * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to
- * the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
- * regeneration.
+ * Create and list an account shared access signature token. Use this SAS token for authentication to
+ * Azure Maps REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
+ * account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
+ * Identity is placed.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param mapsAccountSasParameters The updated parameters for the Maps Account.
+ * @param options The options parameters.
*/
- listKeys(
+ listSas(
resourceGroupName: string,
accountName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param callback The callback
- */
- listKeys(
- resourceGroupName: string,
- accountName: string,
- callback: msRest.ServiceCallback
- ): void;
+ mapsAccountSasParameters: AccountSasParameters,
+ options?: AccountsListSasOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, accountName, mapsAccountSasParameters, options },
+ listSasOperationSpec
+ );
+ }
+
/**
+ * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
+ * Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
+ * regeneration.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
listKeys(
resourceGroupName: string,
accountName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listKeys(
- resourceGroupName: string,
- accountName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: AccountsListKeysOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- options
- },
- listKeysOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, accountName, options },
+ listKeysOperationSpec
+ );
}
/**
@@ -382,163 +301,59 @@ export class Accounts {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
- * @param [options] The optional parameters
- * @returns Promise
- */
- regenerateKeys(
- resourceGroupName: string,
- accountName: string,
- keySpecification: Models.MapsKeySpecification,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param keySpecification Which key to regenerate: primary or secondary.
- * @param callback The callback
+ * @param options The options parameters.
*/
regenerateKeys(
resourceGroupName: string,
accountName: string,
- keySpecification: Models.MapsKeySpecification,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param keySpecification Which key to regenerate: primary or secondary.
- * @param options The optional parameters
- * @param callback The callback
- */
- regenerateKeys(
- resourceGroupName: string,
- accountName: string,
- keySpecification: Models.MapsKeySpecification,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- regenerateKeys(
- resourceGroupName: string,
- accountName: string,
- keySpecification: Models.MapsKeySpecification,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ keySpecification: MapsKeySpecification,
+ options?: AccountsRegenerateKeysOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- keySpecification,
- options
- },
- regenerateKeysOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, accountName, keySpecification, options },
+ regenerateKeysOperationSpec
+ );
}
/**
- * Get all Maps Accounts in a Resource Group
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroupNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByResourceGroupNext(
- nextPageLink: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListByResourceGroupNext
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
+ * @param options The options parameters.
*/
- listByResourceGroupNext(
- nextPageLink: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByResourceGroupNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ private _listByResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: AccountsListByResourceGroupNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByResourceGroupNextOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, nextLink, options },
+ listByResourceGroupNextOperationSpec
+ );
}
/**
- * Get all Maps Accounts in a Subscription
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listBySubscriptionNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * ListBySubscriptionNext
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
+ * @param options The options parameters.
*/
- listBySubscriptionNext(
- nextPageLink: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listBySubscriptionNext(
- nextPageLink: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listBySubscriptionNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ private _listBySubscriptionNext(
+ nextLink: string,
+ options?: AccountsListBySubscriptionNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listBySubscriptionNextOperationSpec,
- callback
- ) as Promise;
+ { nextLink, options },
+ listBySubscriptionNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const createOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
- requestBody: {
- parameterPath: "mapsAccount",
- mapper: {
- ...Mappers.MapsAccount,
- required: true
- }
- },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.MapsAccount
@@ -550,23 +365,22 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ requestBody: Parameters.mapsAccount,
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName
+ ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
serializer
};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
+const updateOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
- requestBody: {
- parameterPath: "mapsAccountUpdateParameters",
- mapper: {
- ...Mappers.MapsAccountUpdateParameters,
- required: true
- }
- },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
+ httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.MapsAccount
@@ -575,16 +389,22 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ requestBody: Parameters.mapsAccountUpdateParameters,
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName
+ ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
serializer
};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
+const deleteOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
+ httpMethod: "DELETE",
responses: {
200: {},
204: {},
@@ -592,16 +412,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
+const getOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MapsAccount
@@ -610,16 +434,20 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listByResourceGroupOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
+const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MapsAccounts
@@ -628,15 +456,18 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionOperationSpec: msRest.OperationSpec = {
+const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts",
- urlParameters: [Parameters.subscriptionId],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
responses: {
200: {
bodyMapper: Mappers.MapsAccounts
@@ -645,41 +476,61 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listKeysOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
+const listSasOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listSas",
+ httpMethod: "POST",
responses: {
200: {
- bodyMapper: Mappers.MapsAccountKeys
+ bodyMapper: Mappers.MapsAccountSasToken
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
+ requestBody: Parameters.mapsAccountSasParameters,
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName
+ ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
serializer
};
-
-const regenerateKeysOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
+const listKeysOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
- requestBody: {
- parameterPath: "keySpecification",
- mapper: {
- ...Mappers.MapsKeySpecification,
- required: true
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys",
+ httpMethod: "POST",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.MapsAccountKeys
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName
+ ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const regenerateKeysOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey",
+ httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.MapsAccountKeys
@@ -688,16 +539,21 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ requestBody: Parameters.keySpecification,
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName
+ ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
serializer
};
-
-const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [Parameters.nextPageLink],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MapsAccounts
@@ -706,16 +562,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [Parameters.nextPageLink],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MapsAccounts
@@ -724,5 +583,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/maps/arm-maps/src/operations/creators.ts b/sdk/maps/arm-maps/src/operations/creators.ts
index 05b2dfa738eb..5946b0c25746 100644
--- a/sdk/maps/arm-maps/src/operations/creators.ts
+++ b/sdk/maps/arm-maps/src/operations/creators.ts
@@ -3,25 +3,41 @@
* 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/creatorsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Creators } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureMapsManagementClientContext } from "../azureMapsManagementClientContext";
+import { AzureMapsManagementClient } from "../azureMapsManagementClient";
+import {
+ Creator,
+ CreatorsListByAccountNextOptionalParams,
+ CreatorsListByAccountOptionalParams,
+ CreatorsListByAccountResponse,
+ CreatorsCreateOrUpdateOptionalParams,
+ CreatorsCreateOrUpdateResponse,
+ CreatorUpdateParameters,
+ CreatorsUpdateOptionalParams,
+ CreatorsUpdateResponse,
+ CreatorsDeleteOptionalParams,
+ CreatorsGetOptionalParams,
+ CreatorsGetResponse,
+ CreatorsListByAccountNextResponse
+} from "../models";
-/** Class representing a Creators. */
-export class Creators {
- private readonly client: AzureMapsManagementClientContext;
+///
+/** Class containing Creators operations. */
+export class CreatorsImpl implements Creators {
+ private readonly client: AzureMapsManagementClient;
/**
- * Create a Creators.
- * @param {AzureMapsManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Creators class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureMapsManagementClientContext) {
+ constructor(client: AzureMapsManagementClient) {
this.client = client;
}
@@ -29,177 +45,128 @@ export class Creators {
* Get all Creator instances for an Azure Maps Account
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listByAccount(
+ public listByAccount(
resourceGroupName: string,
accountName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param callback The callback
- */
- listByAccount(
- resourceGroupName: string,
- accountName: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByAccount(
- resourceGroupName: string,
- accountName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByAccount(
+ options?: CreatorsListByAccountOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByAccountPagingAll(
+ resourceGroupName,
+ accountName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByAccountPagingPage(
+ resourceGroupName,
+ accountName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listByAccountPagingPage(
resourceGroupName: string,
accountName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
- return this.client.sendOperationRequest(
- {
+ options?: CreatorsListByAccountOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByAccount(
+ resourceGroupName,
+ accountName,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByAccountNext(
resourceGroupName,
accountName,
+ continuationToken,
options
- },
- listByAccountOperationSpec,
- callback
- ) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
}
- /**
- * Create or update a Maps Creator resource. Creator resource will manage Azure resources required
- * to populate a custom set of mapping data. It requires an account to exist before it can be
- * created.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param creatorResource The new or updated parameters for the Creator resource.
- * @param [options] The optional parameters
- * @returns Promise
- */
- createOrUpdate(
+ private async *listByAccountPagingAll(
resourceGroupName: string,
accountName: string,
- creatorName: string,
- creatorResource: Models.Creator,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ options?: CreatorsListByAccountOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByAccountPagingPage(
+ resourceGroupName,
+ accountName,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
+ * Get all Creator instances for an Azure Maps Account
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param creatorResource The new or updated parameters for the Creator resource.
- * @param callback The callback
+ * @param options The options parameters.
*/
- createOrUpdate(
+ private _listByAccount(
resourceGroupName: string,
accountName: string,
- creatorName: string,
- creatorResource: Models.Creator,
- callback: msRest.ServiceCallback
- ): void;
+ options?: CreatorsListByAccountOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, accountName, options },
+ listByAccountOperationSpec
+ );
+ }
+
/**
+ * Create or update a Maps Creator resource. Creator resource will manage Azure resources required to
+ * populate a custom set of mapping data. It requires an account to exist before it can be created.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
* @param creatorResource The new or updated parameters for the Creator resource.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
accountName: string,
creatorName: string,
- creatorResource: Models.Creator,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- createOrUpdate(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- creatorResource: Models.Creator,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ creatorResource: Creator,
+ options?: CreatorsCreateOrUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- creatorName,
- creatorResource,
- options
- },
- createOrUpdateOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, accountName, creatorName, creatorResource, options },
+ createOrUpdateOperationSpec
+ );
}
/**
- * Updates the Maps Creator resource. Only a subset of the parameters may be updated after
- * creation, such as Tags.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param creatorUpdateParameters The update parameters for Maps Creator.
- * @param [options] The optional parameters
- * @returns Promise
- */
- update(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- creatorUpdateParameters: Models.CreatorUpdateParameters,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
+ * Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation,
+ * such as Tags.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
* @param creatorUpdateParameters The update parameters for Maps Creator.
- * @param callback The callback
+ * @param options The options parameters.
*/
update(
resourceGroupName: string,
accountName: string,
creatorName: string,
- creatorUpdateParameters: Models.CreatorUpdateParameters,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param creatorUpdateParameters The update parameters for Maps Creator.
- * @param options The optional parameters
- * @param callback The callback
- */
- update(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- creatorUpdateParameters: Models.CreatorUpdateParameters,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- update(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- creatorUpdateParameters: Models.CreatorUpdateParameters,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ creatorUpdateParameters: CreatorUpdateParameters,
+ options?: CreatorsUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -208,9 +175,8 @@ export class Creators {
creatorUpdateParameters,
options
},
- updateOperationSpec,
- callback
- ) as Promise;
+ updateOperationSpec
+ );
}
/**
@@ -218,57 +184,17 @@ export class Creators {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param callback The callback
- */
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- deleteMethod(
+ delete(
resourceGroupName: string,
accountName: string,
creatorName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ options?: CreatorsDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- creatorName,
- options
- },
- deleteMethodOperationSpec,
- callback
+ { resourceGroupName, accountName, creatorName, options },
+ deleteOperationSpec
);
}
@@ -277,113 +203,46 @@ export class Creators {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
creatorName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param callback The callback
- */
- get(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- callback: msRest.ServiceCallback
- ): void;
+ options?: CreatorsGetOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, accountName, creatorName, options },
+ getOperationSpec
+ );
+ }
+
/**
+ * ListByAccountNext
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
- * @param creatorName The name of the Maps Creator instance.
- * @param options The optional parameters
- * @param callback The callback
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
+ * @param options The options parameters.
*/
- get(
- resourceGroupName: string,
- accountName: string,
- creatorName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- get(
+ private _listByAccountNext(
resourceGroupName: string,
accountName: string,
- creatorName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- creatorName,
- options
- },
- getOperationSpec,
- callback
- ) as Promise;
- }
-
- /**
- * Get all Creator instances for an Azure Maps Account
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByAccountNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByAccountNext(
- nextPageLink: string,
- callback: msRest.ServiceCallback
- ): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByAccountNext(
- nextPageLink: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByAccountNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ nextLink: string,
+ options?: CreatorsListByAccountNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByAccountNextOperationSpec,
- callback
- ) as Promise;
+ { resourceGroupName, accountName, nextLink, options },
+ listByAccountNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listByAccountOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listByAccountOperationSpec: coreClient.OperationSpec = {
path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CreatorList
@@ -392,28 +251,20 @@ const listByAccountOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const createOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.creatorName
+ Parameters.accountName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
- requestBody: {
- parameterPath: "creatorResource",
- mapper: {
- ...Mappers.Creator,
- required: true
- }
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.Creator
@@ -425,28 +276,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ requestBody: Parameters.creatorResource,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.creatorName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
- requestBody: {
- parameterPath: "creatorUpdateParameters",
- mapper: {
- ...Mappers.CreatorUpdateParameters,
- required: true
- }
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const updateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.Creator
@@ -455,21 +301,23 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ requestBody: Parameters.creatorUpdateParameters,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.creatorName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ httpMethod: "DELETE",
responses: {
200: {},
204: {},
@@ -477,21 +325,21 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.creatorName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Creator
@@ -500,16 +348,20 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName,
+ Parameters.creatorName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listByAccountNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByAccountNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [Parameters.nextPageLink],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.CreatorList
@@ -518,5 +370,14 @@ const listByAccountNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.accountName,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/maps/arm-maps/src/operations/index.ts b/sdk/maps/arm-maps/src/operations/index.ts
index fb64e44df8a8..b2f967d85fe1 100644
--- a/sdk/maps/arm-maps/src/operations/index.ts
+++ b/sdk/maps/arm-maps/src/operations/index.ts
@@ -3,8 +3,7 @@
* 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 "./accounts";
diff --git a/sdk/maps/arm-maps/src/operations/maps.ts b/sdk/maps/arm-maps/src/operations/maps.ts
index 61a8da5937d2..cd00a05e7805 100644
--- a/sdk/maps/arm-maps/src/operations/maps.ts
+++ b/sdk/maps/arm-maps/src/operations/maps.ts
@@ -3,110 +3,192 @@
* 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/mapsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Maps } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureMapsManagementClientContext } from "../azureMapsManagementClientContext";
+import { AzureMapsManagementClient } from "../azureMapsManagementClient";
+import {
+ OperationDetail,
+ MapsListOperationsNextOptionalParams,
+ MapsListOperationsOptionalParams,
+ MapsListSubscriptionOperationsNextOptionalParams,
+ MapsListSubscriptionOperationsOptionalParams,
+ MapsListOperationsResponse,
+ MapsListSubscriptionOperationsResponse,
+ MapsListOperationsNextResponse,
+ MapsListSubscriptionOperationsNextResponse
+} from "../models";
-/** Class representing a Maps. */
-export class Maps {
- private readonly client: AzureMapsManagementClientContext;
+///
+/** Class containing Maps operations. */
+export class MapsImpl implements Maps {
+ private readonly client: AzureMapsManagementClient;
/**
- * Create a Maps.
- * @param {AzureMapsManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Maps class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureMapsManagementClientContext) {
+ constructor(client: AzureMapsManagementClient) {
this.client = client;
}
/**
* List operations available for the Maps Resource Provider
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listOperations(options?: msRest.RequestOptionsBase): Promise;
+ public listOperations(
+ options?: MapsListOperationsOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listOperationsPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listOperationsPagingPage(options);
+ }
+ };
+ }
+
+ private async *listOperationsPagingPage(
+ options?: MapsListOperationsOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listOperations(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listOperationsNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listOperationsPagingAll(
+ options?: MapsListOperationsOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listOperationsPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
- * @param callback The callback
+ * List operations available for the Maps Resource Provider
+ * @param options The options parameters.
*/
- listOperations(callback: msRest.ServiceCallback): void;
+ public listSubscriptionOperations(
+ options?: MapsListSubscriptionOperationsOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listSubscriptionOperationsPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listSubscriptionOperationsPagingPage(options);
+ }
+ };
+ }
+
+ private async *listSubscriptionOperationsPagingPage(
+ options?: MapsListSubscriptionOperationsOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listSubscriptionOperations(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listSubscriptionOperationsNext(
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listSubscriptionOperationsPagingAll(
+ options?: MapsListSubscriptionOperationsOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listSubscriptionOperationsPagingPage(
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
- * @param options The optional parameters
- * @param callback The callback
+ * List operations available for the Maps Resource Provider
+ * @param options The options parameters.
*/
- listOperations(
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listOperations(
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ private _listOperations(
+ options?: MapsListOperationsOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- options
- },
- listOperationsOperationSpec,
- callback
- ) as Promise;
+ { options },
+ listOperationsOperationSpec
+ );
}
/**
* List operations available for the Maps Resource Provider
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listOperationsNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ private _listSubscriptionOperations(
+ options?: MapsListSubscriptionOperationsOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { options },
+ listSubscriptionOperationsOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * ListOperationsNext
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
+ * @param options The options parameters.
*/
- listOperationsNext(
- nextPageLink: string,
- callback: msRest.ServiceCallback
- ): void;
+ private _listOperationsNext(
+ nextLink: string,
+ options?: MapsListOperationsNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { nextLink, options },
+ listOperationsNextOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListSubscriptionOperationsNext
+ * @param nextLink The nextLink from the previous successful call to the ListSubscriptionOperations
+ * method.
+ * @param options The options parameters.
*/
- listOperationsNext(
- nextPageLink: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listOperationsNext(
- nextPageLink: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ private _listSubscriptionOperationsNext(
+ nextLink: string,
+ options?: MapsListSubscriptionOperationsNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listOperationsNextOperationSpec,
- callback
- ) as Promise;
+ { nextLink, options },
+ listSubscriptionOperationsNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listOperationsOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listOperationsOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.Maps/operations",
httpMethod: "GET",
- path: "providers/Microsoft.Maps/operations",
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
responses: {
200: {
bodyMapper: Mappers.MapsOperations
@@ -115,16 +197,46 @@ const listOperationsOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listOperationsNextOperationSpec: msRest.OperationSpec = {
+const listSubscriptionOperationsOperationSpec: coreClient.OperationSpec = {
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/operations",
httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.MapsOperations
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listOperationsNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [Parameters.nextPageLink],
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.MapsOperations
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ urlParameters: [Parameters.$host, Parameters.nextLink],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listSubscriptionOperationsNextOperationSpec: coreClient.OperationSpec = {
+ path: "{nextLink}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.MapsOperations
@@ -133,5 +245,12 @@ const listOperationsNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/maps/arm-maps/src/operationsInterfaces/accounts.ts b/sdk/maps/arm-maps/src/operationsInterfaces/accounts.ts
new file mode 100644
index 000000000000..d4eeeb38ec82
--- /dev/null
+++ b/sdk/maps/arm-maps/src/operationsInterfaces/accounts.ts
@@ -0,0 +1,148 @@
+/*
+ * 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
+import {
+ MapsAccount,
+ AccountsListByResourceGroupOptionalParams,
+ AccountsListBySubscriptionOptionalParams,
+ AccountsCreateOrUpdateOptionalParams,
+ AccountsCreateOrUpdateResponse,
+ MapsAccountUpdateParameters,
+ AccountsUpdateOptionalParams,
+ AccountsUpdateResponse,
+ AccountsDeleteOptionalParams,
+ AccountsGetOptionalParams,
+ AccountsGetResponse,
+ AccountSasParameters,
+ AccountsListSasOptionalParams,
+ AccountsListSasResponse,
+ AccountsListKeysOptionalParams,
+ AccountsListKeysResponse,
+ MapsKeySpecification,
+ AccountsRegenerateKeysOptionalParams,
+ AccountsRegenerateKeysResponse
+} from "../models";
+
+///
+/** Interface representing a Accounts. */
+export interface Accounts {
+ /**
+ * Get all Maps Accounts in a Resource Group
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param options The options parameters.
+ */
+ listByResourceGroup(
+ resourceGroupName: string,
+ options?: AccountsListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * Get all Maps Accounts in a Subscription
+ * @param options The options parameters.
+ */
+ listBySubscription(
+ options?: AccountsListBySubscriptionOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST
+ * APIs.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param mapsAccount The new or updated parameters for the Maps Account.
+ * @param options The options parameters.
+ */
+ createOrUpdate(
+ resourceGroupName: string,
+ accountName: string,
+ mapsAccount: MapsAccount,
+ options?: AccountsCreateOrUpdateOptionalParams
+ ): Promise;
+ /**
+ * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku,
+ * Tags, Properties.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
+ * @param options The options parameters.
+ */
+ update(
+ resourceGroupName: string,
+ accountName: string,
+ mapsAccountUpdateParameters: MapsAccountUpdateParameters,
+ options?: AccountsUpdateOptionalParams
+ ): Promise;
+ /**
+ * Delete a Maps Account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param options The options parameters.
+ */
+ delete(
+ resourceGroupName: string,
+ accountName: string,
+ options?: AccountsDeleteOptionalParams
+ ): Promise;
+ /**
+ * Get a Maps Account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param options The options parameters.
+ */
+ get(
+ resourceGroupName: string,
+ accountName: string,
+ options?: AccountsGetOptionalParams
+ ): Promise;
+ /**
+ * Create and list an account shared access signature token. Use this SAS token for authentication to
+ * Azure Maps REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
+ * account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
+ * Identity is placed.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param mapsAccountSasParameters The updated parameters for the Maps Account.
+ * @param options The options parameters.
+ */
+ listSas(
+ resourceGroupName: string,
+ accountName: string,
+ mapsAccountSasParameters: AccountSasParameters,
+ options?: AccountsListSasOptionalParams
+ ): Promise;
+ /**
+ * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
+ * Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
+ * regeneration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param options The options parameters.
+ */
+ listKeys(
+ resourceGroupName: string,
+ accountName: string,
+ options?: AccountsListKeysOptionalParams
+ ): Promise;
+ /**
+ * Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop
+ * working immediately.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param keySpecification Which key to regenerate: primary or secondary.
+ * @param options The options parameters.
+ */
+ regenerateKeys(
+ resourceGroupName: string,
+ accountName: string,
+ keySpecification: MapsKeySpecification,
+ options?: AccountsRegenerateKeysOptionalParams
+ ): Promise;
+}
diff --git a/sdk/maps/arm-maps/src/operationsInterfaces/creators.ts b/sdk/maps/arm-maps/src/operationsInterfaces/creators.ts
new file mode 100644
index 000000000000..1059b90acd63
--- /dev/null
+++ b/sdk/maps/arm-maps/src/operationsInterfaces/creators.ts
@@ -0,0 +1,95 @@
+/*
+ * 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
+import {
+ Creator,
+ CreatorsListByAccountOptionalParams,
+ CreatorsCreateOrUpdateOptionalParams,
+ CreatorsCreateOrUpdateResponse,
+ CreatorUpdateParameters,
+ CreatorsUpdateOptionalParams,
+ CreatorsUpdateResponse,
+ CreatorsDeleteOptionalParams,
+ CreatorsGetOptionalParams,
+ CreatorsGetResponse
+} from "../models";
+
+///
+/** Interface representing a Creators. */
+export interface Creators {
+ /**
+ * Get all Creator instances for an Azure Maps Account
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param options The options parameters.
+ */
+ listByAccount(
+ resourceGroupName: string,
+ accountName: string,
+ options?: CreatorsListByAccountOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * Create or update a Maps Creator resource. Creator resource will manage Azure resources required to
+ * populate a custom set of mapping data. It requires an account to exist before it can be created.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param creatorName The name of the Maps Creator instance.
+ * @param creatorResource The new or updated parameters for the Creator resource.
+ * @param options The options parameters.
+ */
+ createOrUpdate(
+ resourceGroupName: string,
+ accountName: string,
+ creatorName: string,
+ creatorResource: Creator,
+ options?: CreatorsCreateOrUpdateOptionalParams
+ ): Promise;
+ /**
+ * Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation,
+ * such as Tags.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param creatorName The name of the Maps Creator instance.
+ * @param creatorUpdateParameters The update parameters for Maps Creator.
+ * @param options The options parameters.
+ */
+ update(
+ resourceGroupName: string,
+ accountName: string,
+ creatorName: string,
+ creatorUpdateParameters: CreatorUpdateParameters,
+ options?: CreatorsUpdateOptionalParams
+ ): Promise;
+ /**
+ * Delete a Maps Creator resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param creatorName The name of the Maps Creator instance.
+ * @param options The options parameters.
+ */
+ delete(
+ resourceGroupName: string,
+ accountName: string,
+ creatorName: string,
+ options?: CreatorsDeleteOptionalParams
+ ): Promise;
+ /**
+ * Get a Maps Creator resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of the Maps Account.
+ * @param creatorName The name of the Maps Creator instance.
+ * @param options The options parameters.
+ */
+ get(
+ resourceGroupName: string,
+ accountName: string,
+ creatorName: string,
+ options?: CreatorsGetOptionalParams
+ ): Promise;
+}
diff --git a/sdk/maps/arm-maps/src/operationsInterfaces/index.ts b/sdk/maps/arm-maps/src/operationsInterfaces/index.ts
new file mode 100644
index 000000000000..b2f967d85fe1
--- /dev/null
+++ b/sdk/maps/arm-maps/src/operationsInterfaces/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 "./accounts";
+export * from "./maps";
+export * from "./creators";
diff --git a/sdk/maps/arm-maps/src/operationsInterfaces/maps.ts b/sdk/maps/arm-maps/src/operationsInterfaces/maps.ts
new file mode 100644
index 000000000000..4f66ee636c1c
--- /dev/null
+++ b/sdk/maps/arm-maps/src/operationsInterfaces/maps.ts
@@ -0,0 +1,33 @@
+/*
+ * 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
+import {
+ OperationDetail,
+ MapsListOperationsOptionalParams,
+ MapsListSubscriptionOperationsOptionalParams
+} from "../models";
+
+///
+/** Interface representing a Maps. */
+export interface Maps {
+ /**
+ * List operations available for the Maps Resource Provider
+ * @param options The options parameters.
+ */
+ listOperations(
+ options?: MapsListOperationsOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * List operations available for the Maps Resource Provider
+ * @param options The options parameters.
+ */
+ listSubscriptionOperations(
+ options?: MapsListSubscriptionOperationsOptionalParams
+ ): PagedAsyncIterableIterator;
+}
diff --git a/sdk/maps/arm-maps/test/sampleTest.ts b/sdk/maps/arm-maps/test/sampleTest.ts
new file mode 100644
index 000000000000..7ed89b043e1b
--- /dev/null
+++ b/sdk/maps/arm-maps/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/maps/arm-maps/tsconfig.json b/sdk/maps/arm-maps/tsconfig.json
index 422b584abd5e..6e3251194117 100644
--- a/sdk/maps/arm-maps/tsconfig.json
+++ b/sdk/maps/arm-maps/tsconfig.json
@@ -3,7 +3,7 @@
"module": "es6",
"moduleResolution": "node",
"strict": true,
- "target": "es5",
+ "target": "es6",
"sourceMap": true,
"declarationMap": true,
"esModuleInterop": true,
@@ -11,9 +11,9 @@
"forceConsistentCasingInFileNames": true,
"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/maps/ci.yml b/sdk/maps/ci.yml
new file mode 100644
index 000000000000..98a9d5ca543a
--- /dev/null
+++ b/sdk/maps/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/maps/
+
+pr:
+ branches:
+ include:
+ - main
+ - release/*
+ - hotfix/*
+ paths:
+ include:
+ - sdk/maps/
+
+extends:
+ template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: maps
+ Artifacts:
+ - name: azure-arm-maps
+ safeName: azurearmmaps
+
\ No newline at end of file