diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 80db0d33996f..6458b95357cb 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2844,7 +2844,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/chai-as-promised/7.1.5: @@ -2866,7 +2866,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/cookie/0.4.1: @@ -2876,7 +2876,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/debug/4.1.8: @@ -2888,7 +2888,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/eslint/8.4.10: @@ -2909,7 +2909,7 @@ packages: /@types/express-serve-static-core/4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -2927,13 +2927,13 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/http-errors/2.0.1: @@ -2950,7 +2950,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/json-schema/7.0.12: @@ -2964,13 +2964,13 @@ packages: /@types/jsonwebtoken/9.0.2: resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/linkify-it/3.0.2: @@ -3029,20 +3029,20 @@ packages: /@types/mysql/2.15.19: resolution: {integrity: sha512-wSRg2QZv14CWcZXkgdvHbbV2ACufNy5EgI8mBBxnJIptchv7DBy/h53VMa2jDhyo0C9MO4iowE6z9vF8Ja1DkQ==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/node-fetch/2.6.2: resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 form-data: 3.0.1 dev: false /@types/node-fetch/2.6.4: resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 form-data: 3.0.1 dev: false @@ -3075,7 +3075,7 @@ packages: /@types/pg/8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -3103,7 +3103,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/resolve/1.20.2: @@ -3126,7 +3126,7 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/serve-static/1.15.2: @@ -3134,7 +3134,7 @@ packages: dependencies: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/shimmer/1.0.2: @@ -3154,13 +3154,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/tough-cookie/4.0.2: @@ -3174,7 +3174,7 @@ packages: /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/underscore/1.11.6: @@ -3192,19 +3192,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/ws/8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/yargs-parser/21.0.0: @@ -3221,7 +3221,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false optional: true @@ -4498,7 +4498,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -4677,7 +4677,7 @@ packages: cosmiconfig: 7.1.0 debug: 4.3.4 deps-regex: 0.1.4 - ignore: 5.1.9 + ignore: 5.2.4 is-core-module: 2.12.1 js-yaml: 3.14.1 json5: 2.2.3 @@ -4818,7 +4818,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.2.0-dev.20230731 + typescript: 5.2.0-dev.20230802 dev: false /duplexer3/0.1.5: @@ -4880,7 +4880,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.54 + '@types/node': 16.18.39 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5050,7 +5050,7 @@ packages: dependencies: debug: 3.2.7 is-core-module: 2.12.1 - resolve: 1.22.3 + resolve: 1.22.2 dev: false /eslint-module-utils/2.8.0_eslint@8.46.0: @@ -5869,7 +5869,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -6194,7 +6194,7 @@ packages: /ignore-walk/3.0.4: resolution: {integrity: sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==} dependencies: - minimatch: 3.0.8 + minimatch: 3.1.2 dev: false /ignore/5.1.9: @@ -6287,7 +6287,7 @@ packages: cli-cursor: 3.1.0 cli-width: 3.0.0 external-editor: 3.1.0 - figures: 3.0.0 + figures: 3.2.0 lodash: 4.17.21 mute-stream: 0.0.8 run-async: 2.4.1 @@ -8762,7 +8762,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 14.18.54 + '@types/node': 16.18.39 long: 5.2.3 dev: false @@ -10335,8 +10335,8 @@ packages: hasBin: true dev: false - /typescript/5.2.0-dev.20230731: - resolution: {integrity: sha512-RJVLgnDgu67ZrohYy0aBea+5TICfRod36+24zw0bR/KJDQJO9mlIjTC0k+/PKw87fXP5JuUHqepEk15PvFya7A==} + /typescript/5.2.0-dev.20230802: + resolution: {integrity: sha512-rBvAnzaaMhwBAS2UaKejYhaED3VM74/xng/+xcVSst0PbkJBqggj19w/gwJ/4q07oOjKMgwunklsSjwe+iw2ZA==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14851,7 +14851,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-sUL5kdBssALuLdADNcqOBGN2pwKeiaPadzfJPhsMIkZchu1ooFsVGLjUzT8A9sO7SN3dlnlA4ZtPOkTzd1LI5g==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-ZNx4nxrJa0YwVjGjaoK7URmNhIDXMXSAw18ensD/sUivgXOEikG+Zhc6h/SAbDkJuQYBWAcLAZzCHGX8WQ7ByA==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -14865,7 +14865,8 @@ packages: '@types/node': 14.18.54 chai: 4.3.7 cross-env: 7.0.3 - mkdirp: 1.0.4 + dotenv: 16.3.1 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 @@ -20408,7 +20409,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-FCdWABf3EgpULN8AvClM8zv9lCeDVvuNSA2dAb2upZBiJ6WftNFfdDLY/q8whjc97R5c1SmG9zriNqRGu0Xm6g==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-+05JR31WLH5d8FD+GslDQxNHYPLOrvExWUugJJNalgNZpbtoqzQF0837G7tKGDg98VU4XjK6qZA7Gjo2n7O3yg==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -21511,7 +21512,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-XKoapSGfj9adWoSaAEOMkONC7brW8Pez+vfuoU0Viw46LuU2KTH9ZMWkRYDub+3xt331YRTyWuxdwvbKVzk/Kg==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-tbnZhWCWiQTtvxAeRQm8UDHo89yoMoWis4kDc+5OvIxpTyXUk3Fwz3h1e2czVSscQUckjus9VILPNKxfEbQhsA==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: diff --git a/sdk/maps/arm-maps/CHANGELOG.md b/sdk/maps/arm-maps/CHANGELOG.md index f381ec755f5c..503b66490848 100644 --- a/sdk/maps/arm-maps/CHANGELOG.md +++ b/sdk/maps/arm-maps/CHANGELOG.md @@ -1,42 +1,50 @@ # Release History - -## 3.1.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 3.1.0-beta.2 (2022-11-29) + +## 4.0.0 (2023-08-02) **Features** - Added operation Accounts.listSas - Added Interface AccountSasParameters - Added Interface AccountsListSasOptionalParams - - Added Interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties - Added Interface CorsRule - Added Interface CorsRules - Added Interface Creator + - Added Interface CustomerManagedKeyEncryption + - Added Interface CustomerManagedKeyEncryptionKeyIdentity + - Added Interface Encryption - Added Interface LinkedResource - Added Interface ManagedServiceIdentity - Added Interface MapsAccount - Added Interface MapsAccountSasToken - Added Interface TrackedResource + - Added Interface UserAssignedIdentity - Added Type Alias AccountsListSasResponse - - Added Type Alias ResourceIdentityType + - Added Type Alias IdentityType + - Added Type Alias InfrastructureEncryption + - Added Type Alias ManagedServiceIdentityType - Added Type Alias SigningKey - Interface MapsAccountProperties has a new optional parameter cors + - Interface MapsAccountProperties has a new optional parameter encryption - Interface MapsAccountProperties has a new optional parameter linkedResources - Interface MapsAccountUpdateParameters has a new optional parameter cors + - Interface MapsAccountUpdateParameters has a new optional parameter encryption - Interface MapsAccountUpdateParameters has a new optional parameter identity - Interface MapsAccountUpdateParameters has a new optional parameter linkedResources - Interface MetricSpecification has a new optional parameter internalMetricName + - Interface MetricSpecification has a new optional parameter lockAggregationType - Interface MetricSpecification has a new optional parameter sourceMdmAccount + - Interface MetricSpecification has a new optional parameter sourceMdmNamespace + - Interface MetricSpecification has a new optional parameter supportedAggregationTypes + - Added Enum KnownIdentityType + - Added Enum KnownInfrastructureEncryption + - Added Enum KnownManagedServiceIdentityType - Added Enum KnownSigningKey + - Added function getContinuationToken + +**Breaking Changes** + + - Class AzureMapsManagementClient has a new signature ## 3.0.0 (2022-01-19) diff --git a/sdk/maps/arm-maps/LICENSE b/sdk/maps/arm-maps/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/maps/arm-maps/LICENSE +++ b/sdk/maps/arm-maps/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 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 diff --git a/sdk/maps/arm-maps/README.md b/sdk/maps/arm-maps/README.md index 4d9a03e9ae9e..07daf448647d 100644 --- a/sdk/maps/arm-maps/README.md +++ b/sdk/maps/arm-maps/README.md @@ -6,7 +6,7 @@ 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) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-maps) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/maps/arm-maps/_meta.json b/sdk/maps/arm-maps/_meta.json index 46167b2d7c80..5f212e117312 100644 --- a/sdk/maps/arm-maps/_meta.json +++ b/sdk/maps/arm-maps/_meta.json @@ -1,8 +1,8 @@ { - "commit": "d967edeee8fd6af6d40bffe53cceed1bd053d7ad", - "readme": "specification\\maps\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\maps\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "d8220a01ae67dedf6f0bbb5deebe941dc7b728d3", + "readme": "specification/maps/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/maps/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/maps/arm-maps/package.json b/sdk/maps/arm-maps/package.json index 3828a29c9f65..9cc6516baed0 100644 --- a/sdk/maps/arm-maps/package.json +++ b/sdk/maps/arm-maps/package.json @@ -3,13 +3,13 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureMapsManagementClient.", - "version": "3.1.0-beta.3", + "version": "4.0.0", "engines": { "node": ">=14.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -31,12 +31,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -47,7 +48,6 @@ "@types/node": "^14.0.0", "@azure/dev-tool": "^1.0.0" }, - "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" @@ -109,12 +109,5 @@ ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-maps?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/arm-maps" +} \ No newline at end of file diff --git a/sdk/maps/arm-maps/review/arm-maps.api.md b/sdk/maps/arm-maps/review/arm-maps.api.md index 9efe56067d73..3d4c0b797fbe 100644 --- a/sdk/maps/arm-maps/review/arm-maps.api.md +++ b/sdk/maps/arm-maps/review/arm-maps.api.md @@ -110,6 +110,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMapsManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: AzureMapsManagementClientOptionalParams); // (undocumented) accounts: Accounts; // (undocumented) @@ -119,7 +120,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient { // (undocumented) maps: Maps; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public @@ -129,12 +130,6 @@ export interface AzureMapsManagementClientOptionalParams extends coreClient.Serv endpoint?: string; } -// @public (undocumented) -export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties { - readonly clientId?: string; - readonly principalId?: string; -} - // @public export interface CorsRule { allowedOrigins: string[]; @@ -223,6 +218,19 @@ export interface CreatorUpdateParameters { }; } +// @public +export interface CustomerManagedKeyEncryption { + keyEncryptionKeyIdentity?: CustomerManagedKeyEncryptionKeyIdentity; + keyEncryptionKeyUrl?: string; +} + +// @public +export interface CustomerManagedKeyEncryptionKeyIdentity { + delegatedIdentityClientId?: string; + identityType?: IdentityType; + userAssignedIdentityResourceId?: string; +} + // @public export interface Dimension { displayName?: string; @@ -233,6 +241,12 @@ export interface Dimension { toBeExportedToShoebox?: boolean; } +// @public +export interface Encryption { + customerManagedKeyEncryption?: CustomerManagedKeyEncryption; + infrastructureEncryption?: InfrastructureEncryption; +} + // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -256,6 +270,12 @@ export interface ErrorResponse { // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export type IdentityType = string; + +// @public +export type InfrastructureEncryption = string; + // @public type KeyType_2 = string; export { KeyType_2 as KeyType } @@ -271,6 +291,19 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownIdentityType { + DelegatedResourceIdentity = "delegatedResourceIdentity", + SystemAssignedIdentity = "systemAssignedIdentity", + UserAssignedIdentity = "userAssignedIdentity" +} + +// @public +export enum KnownInfrastructureEncryption { + Disabled = "disabled", + Enabled = "enabled" +} + // @public export enum KnownKeyType { Primary = "primary", @@ -283,6 +316,14 @@ export enum KnownKind { Gen2 = "Gen2" } +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownName { G2 = "G2", @@ -292,6 +333,7 @@ export enum KnownName { // @public export enum KnownSigningKey { + ManagedIdentity = "managedIdentity", PrimaryKey = "primaryKey", SecondaryKey = "secondaryKey" } @@ -306,12 +348,15 @@ export interface LinkedResource { export interface ManagedServiceIdentity { readonly principalId?: string; readonly tenantId?: string; - type?: ResourceIdentityType; + type: ManagedServiceIdentityType; userAssignedIdentities?: { - [propertyName: string]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties; + [propertyName: string]: UserAssignedIdentity; }; } +// @public +export type ManagedServiceIdentityType = string; + // @public export interface Maps { listOperations(options?: MapsListOperationsOptionalParams): PagedAsyncIterableIterator; @@ -339,6 +384,7 @@ export interface MapsAccountKeys { export interface MapsAccountProperties { cors?: CorsRules; disableLocalAuth?: boolean; + encryption?: Encryption; linkedResources?: LinkedResource[]; readonly provisioningState?: string; readonly uniqueId?: string; @@ -359,6 +405,7 @@ export interface MapsAccountSasToken { export interface MapsAccountUpdateParameters { cors?: CorsRules; disableLocalAuth?: boolean; + encryption?: Encryption; identity?: ManagedServiceIdentity; kind?: Kind; linkedResources?: LinkedResource[]; @@ -418,9 +465,12 @@ export interface MetricSpecification { displayName?: string; fillGapWithZero?: boolean; internalMetricName?: string; + lockAggregationType?: string; name?: string; resourceIdDimensionNameOverride?: string; sourceMdmAccount?: string; + sourceMdmNamespace?: string; + supportedAggregationTypes?: string; unit?: string; } @@ -451,9 +501,6 @@ export interface Resource { readonly type?: string; } -// @public -export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; - // @public export interface ServiceSpecification { metricSpecifications?: MetricSpecification[]; @@ -486,6 +533,12 @@ export interface TrackedResource extends Resource { }; } +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/maps/arm-maps/src/azureMapsManagementClient.ts b/sdk/maps/arm-maps/src/azureMapsManagementClient.ts index bbbde99e4ebd..93afec3d2968 100644 --- a/sdk/maps/arm-maps/src/azureMapsManagementClient.ts +++ b/sdk/maps/arm-maps/src/azureMapsManagementClient.ts @@ -21,7 +21,7 @@ import { AzureMapsManagementClientOptionalParams } from "./models"; export class AzureMapsManagementClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the AzureMapsManagementClient class. @@ -33,12 +33,26 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient { credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMapsManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: AzureMapsManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: AzureMapsManagementClientOptionalParams | string, + options?: AzureMapsManagementClientOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -50,7 +64,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-maps/3.1.0-beta.3`; + const packageDetails = `azsdk-js-arm-maps/4.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -103,7 +117,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-12-01-preview"; + this.apiVersion = options.apiVersion || "2023-06-01"; this.accounts = new AccountsImpl(this); this.maps = new MapsImpl(this); this.creators = new CreatorsImpl(this); diff --git a/sdk/maps/arm-maps/src/models/index.ts b/sdk/maps/arm-maps/src/models/index.ts index 00370f386692..4576724ca6be 100644 --- a/sdk/maps/arm-maps/src/models/index.ts +++ b/sdk/maps/arm-maps/src/models/index.ts @@ -35,34 +35,33 @@ export interface SystemData { lastModifiedAt?: Date; } -/** Identity for the resource. */ +/** Managed service identity (system assigned and/or user assigned identities) */ export interface ManagedServiceIdentity { /** - * The principal ID of resource identity. + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** - * The tenant ID of resource. + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ 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; - }; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; } -export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties { +/** User assigned identity properties */ +export interface UserAssignedIdentity { /** - * The principal id of user assigned identity. + * The principal ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** - * The client id of user assigned identity. + * The client ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly clientId?: string; @@ -75,17 +74,19 @@ export interface MapsAccountProperties { * 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. */ + /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys and Shared Access Signature Token authentication from any usage. */ disableLocalAuth?: boolean; /** - * The provisioning state of the Map account resource. + * The provisioning state of the Map account resource, Account updates can only be performed on terminal states. Terminal states: `Succeeded` and `Failed` * 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. */ + /** The array of associated resources to the Map account. Linked resource in the array cannot individually update, you must update all linked resources in the array together. These resources may be used on operations on the Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s) permissions to those resource(s). */ 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; + /** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */ + encryption?: Encryption; } /** 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. */ @@ -108,6 +109,32 @@ export interface CorsRule { allowedOrigins: string[]; } +/** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */ +export interface Encryption { + /** Values are enabled and disabled. */ + infrastructureEncryption?: InfrastructureEncryption; + /** All Customer-managed key encryption properties for the resource. */ + customerManagedKeyEncryption?: CustomerManagedKeyEncryption; +} + +/** All Customer-managed key encryption properties for the resource. */ +export interface CustomerManagedKeyEncryption { + /** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */ + keyEncryptionKeyIdentity?: CustomerManagedKeyEncryptionKeyIdentity; + /** key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. */ + keyEncryptionKeyUrl?: string; +} + +/** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */ +export interface CustomerManagedKeyEncryptionKeyIdentity { + /** Values can be systemAssignedIdentity or userAssignedIdentity */ + identityType?: IdentityType; + /** user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity. */ + userAssignedIdentityResourceId?: string; + /** delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only. */ + delegatedIdentityClientId?: string; +} + /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -184,24 +211,26 @@ export interface MapsAccountUpdateParameters { kind?: Kind; /** The SKU of this account. */ sku?: Sku; - /** Sets the identity property for maps account. */ + /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; /** * A unique identifier for the maps account * 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. */ + /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys and Shared Access Signature Token authentication from any usage. */ disableLocalAuth?: boolean; /** - * The provisioning state of the Map account resource. + * The provisioning state of the Map account resource, Account updates can only be performed on terminal states. Terminal states: `Succeeded` and `Failed` * 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. */ + /** The array of associated resources to the Map account. Linked resource in the array cannot individually update, you must update all linked resources in the array together. These resources may be used on operations on the Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s) permissions to those resource(s). */ 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; + /** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */ + encryption?: Encryption; } /** A list of Maps Accounts. */ @@ -220,7 +249,7 @@ export interface MapsAccounts { /** 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. */ + /** The Map account key to use for signing. Picking `primaryKey` or `secondaryKey` will use the Map account Shared Keys, and using `managedIdentity` will use the auto-renewed private key to sign the SAS. */ 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; @@ -228,9 +257,9 @@ export interface AccountSasParameters { 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". */ + /** The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between `start` and `expiry`. */ start: string; - /** The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z" */ + /** The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between `start` and `expiry`. */ expiry: string; } @@ -343,6 +372,12 @@ export interface MetricSpecification { sourceMdmAccount?: string; /** Internal metric name. */ internalMetricName?: string; + /** Lock aggregation type for metrics. */ + lockAggregationType?: string; + /** Metrics namespace. */ + sourceMdmNamespace?: string; + /** Allowed aggregation types for metrics. */ + supportedAggregationTypes?: string; } /** Dimension of map account, for example API Category, Api Name, Result Type, and Response Code. */ @@ -414,11 +449,11 @@ export interface MapsAccount extends TrackedResource { /** Get or Set Kind property. */ kind?: Kind; /** - * The system meta data relating to this resource. + * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** Sets the identity property for maps account. */ + /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; /** The map account properties. */ properties?: MapsAccountProperties; @@ -498,12 +533,77 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" +} + +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** + */ +export type ManagedServiceIdentityType = string; + +/** Known values of {@link InfrastructureEncryption} that the service accepts. */ +export enum KnownInfrastructureEncryption { + /** Enabled */ + Enabled = "enabled", + /** Disabled */ + Disabled = "disabled" +} + +/** + * Defines values for InfrastructureEncryption. \ + * {@link KnownInfrastructureEncryption} can be used interchangeably with InfrastructureEncryption, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled** \ + * **disabled** + */ +export type InfrastructureEncryption = string; + +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** SystemAssignedIdentity */ + SystemAssignedIdentity = "systemAssignedIdentity", + /** UserAssignedIdentity */ + UserAssignedIdentity = "userAssignedIdentity", + /** DelegatedResourceIdentity */ + DelegatedResourceIdentity = "delegatedResourceIdentity" +} + +/** + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **systemAssignedIdentity** \ + * **userAssignedIdentity** \ + * **delegatedResourceIdentity** + */ +export type IdentityType = string; + /** Known values of {@link SigningKey} that the service accepts. */ export enum KnownSigningKey { /** PrimaryKey */ PrimaryKey = "primaryKey", /** SecondaryKey */ - SecondaryKey = "secondaryKey" + SecondaryKey = "secondaryKey", + /** ManagedIdentity */ + ManagedIdentity = "managedIdentity" } /** @@ -512,7 +612,8 @@ export enum KnownSigningKey { * this enum contains the known values that the service supports. * ### Known values supported by the service * **primaryKey** \ - * **secondaryKey** + * **secondaryKey** \ + * **managedIdentity** */ export type SigningKey = string; @@ -533,12 +634,6 @@ export enum KnownKeyType { * **secondary** */ export type KeyType = string; -/** Defines values for ResourceIdentityType. */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; /** Optional parameters. */ export interface AccountsCreateOrUpdateOptionalParams diff --git a/sdk/maps/arm-maps/src/models/mappers.ts b/sdk/maps/arm-maps/src/models/mappers.ts index abf7a7302b38..efc8e8eda6b5 100644 --- a/sdk/maps/arm-maps/src/models/mappers.ts +++ b/sdk/maps/arm-maps/src/models/mappers.ts @@ -85,26 +85,21 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, type: { serializedName: "type", + required: true, type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] + name: "String" } }, userAssignedIdentities: { @@ -112,11 +107,7 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { - name: "Composite", - className: - "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties" - } + type: { name: "Composite", className: "UserAssignedIdentity" } } } } @@ -124,24 +115,23 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { } }; -export const Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = { +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties", + className: "UserAssignedIdentity", modelProperties: { principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" + name: "Uuid" } } } @@ -195,6 +185,13 @@ export const MapsAccountProperties: coreClient.CompositeMapper = { name: "Composite", className: "CorsRules" } + }, + encryption: { + serializedName: "encryption", + type: { + name: "Composite", + className: "Encryption" + } } } } @@ -268,6 +265,77 @@ export const CorsRule: coreClient.CompositeMapper = { } }; +export const Encryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Encryption", + modelProperties: { + infrastructureEncryption: { + serializedName: "infrastructureEncryption", + type: { + name: "String" + } + }, + customerManagedKeyEncryption: { + serializedName: "customerManagedKeyEncryption", + type: { + name: "Composite", + className: "CustomerManagedKeyEncryption" + } + } + } + } +}; + +export const CustomerManagedKeyEncryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomerManagedKeyEncryption", + modelProperties: { + keyEncryptionKeyIdentity: { + serializedName: "keyEncryptionKeyIdentity", + type: { + name: "Composite", + className: "CustomerManagedKeyEncryptionKeyIdentity" + } + }, + keyEncryptionKeyUrl: { + serializedName: "keyEncryptionKeyUrl", + type: { + name: "String" + } + } + } + } +}; + +export const CustomerManagedKeyEncryptionKeyIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomerManagedKeyEncryptionKeyIdentity", + modelProperties: { + identityType: { + serializedName: "identityType", + type: { + name: "String" + } + }, + userAssignedIdentityResourceId: { + serializedName: "userAssignedIdentityResourceId", + type: { + name: "String" + } + }, + delegatedIdentityClientId: { + serializedName: "delegatedIdentityClientId", + type: { + name: "Uuid" + } + } + } + } +}; + export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -469,6 +537,13 @@ export const MapsAccountUpdateParameters: coreClient.CompositeMapper = { name: "Composite", className: "CorsRules" } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } } } } @@ -830,6 +905,24 @@ export const MetricSpecification: coreClient.CompositeMapper = { type: { name: "String" } + }, + lockAggregationType: { + serializedName: "lockAggregationType", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "String" + } } } } diff --git a/sdk/maps/arm-maps/src/models/parameters.ts b/sdk/maps/arm-maps/src/models/parameters.ts index 4ebb6884234b..ef97958cf379 100644 --- a/sdk/maps/arm-maps/src/models/parameters.ts +++ b/sdk/maps/arm-maps/src/models/parameters.ts @@ -64,7 +64,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-12-01-preview", + defaultValue: "2023-06-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/maps/arm-maps/src/operations/accounts.ts b/sdk/maps/arm-maps/src/operations/accounts.ts index 4379a89dd3f5..5e0fb5a41109 100644 --- a/sdk/maps/arm-maps/src/operations/accounts.ts +++ b/sdk/maps/arm-maps/src/operations/accounts.ts @@ -591,7 +591,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -612,7 +611,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/maps/arm-maps/src/operations/creators.ts b/sdk/maps/arm-maps/src/operations/creators.ts index d31ca6bffe52..377817eb0bb3 100644 --- a/sdk/maps/arm-maps/src/operations/creators.ts +++ b/sdk/maps/arm-maps/src/operations/creators.ts @@ -384,7 +384,6 @@ const listByAccountNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/maps/arm-maps/src/operations/maps.ts b/sdk/maps/arm-maps/src/operations/maps.ts index 2b421aca82bc..15acd55a2d3a 100644 --- a/sdk/maps/arm-maps/src/operations/maps.ts +++ b/sdk/maps/arm-maps/src/operations/maps.ts @@ -254,7 +254,6 @@ const listOperationsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer @@ -270,7 +269,6 @@ const listSubscriptionOperationsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/maps/arm-maps/src/pagingHelper.ts b/sdk/maps/arm-maps/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/maps/arm-maps/src/pagingHelper.ts +++ b/sdk/maps/arm-maps/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/maps/arm-maps/tsconfig.json b/sdk/maps/arm-maps/tsconfig.json index 22d6b9c1cd0d..3e6ae96443f3 100644 --- a/sdk/maps/arm-maps/tsconfig.json +++ b/sdk/maps/arm-maps/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-maps": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"