diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 6aeacc4a6175..e00954dde929 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1806,7 +1806,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@grpc/proto-loader@0.7.10: @@ -2560,6 +2560,24 @@ packages: - supports-color dev: false + /@rollup/plugin-commonjs@24.1.0(rollup@2.79.1): + resolution: {integrity: sha512-eSL45hjhCWI0jCCXcNtLVqM5N1JlBGvlFfY0m6oOYnLCJ6N0qEXoZql4sY2MOUArzhH4SA/qBpTxvvZp2Sc+DQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.68.0||^3.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@rollup/pluginutils': 5.0.5(rollup@2.79.1) + commondir: 1.0.1 + estree-walker: 2.0.2 + glob: 8.1.0 + is-reference: 1.2.1 + magic-string: 0.27.0 + rollup: 2.79.1 + dev: false + /@rollup/plugin-commonjs@25.0.7(rollup@3.29.4): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} @@ -2593,6 +2611,19 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-json@6.0.1(rollup@2.79.1): + resolution: {integrity: sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@rollup/pluginutils': 5.0.5(rollup@2.79.1) + rollup: 2.79.1 + dev: false + /@rollup/plugin-json@6.0.1(rollup@3.29.4): resolution: {integrity: sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw==} engines: {node: '>=14.0.0'} @@ -2606,6 +2637,20 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-multi-entry@6.0.1(rollup@2.79.1): + resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@rollup/plugin-virtual': 3.0.2(rollup@2.79.1) + matched: 5.0.1 + rollup: 2.79.1 + dev: false + /@rollup/plugin-multi-entry@6.0.1(rollup@3.29.4): resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} engines: {node: '>=14.0.0'} @@ -2620,6 +2665,21 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-node-resolve@13.3.0(rollup@2.79.1): + resolution: {integrity: sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==} + engines: {node: '>= 10.0.0'} + peerDependencies: + rollup: ^2.42.0 + dependencies: + '@rollup/pluginutils': 3.1.0(rollup@2.79.1) + '@types/resolve': 1.17.1 + deepmerge: 4.3.1 + is-builtin-module: 3.2.1 + is-module: 1.0.0 + resolve: 1.22.8 + rollup: 2.79.1 + dev: false + /@rollup/plugin-node-resolve@15.2.3(rollup@3.29.4): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} @@ -2638,6 +2698,18 @@ packages: rollup: 3.29.4 dev: false + /@rollup/plugin-virtual@3.0.2(rollup@2.79.1): + resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + rollup: 2.79.1 + dev: false + /@rollup/plugin-virtual@3.0.2(rollup@3.29.4): resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} engines: {node: '>=14.0.0'} @@ -2650,6 +2722,33 @@ packages: rollup: 3.29.4 dev: false + /@rollup/pluginutils@3.1.0(rollup@2.79.1): + resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + '@types/estree': 0.0.39 + estree-walker: 1.0.1 + picomatch: 2.3.1 + rollup: 2.79.1 + dev: false + + /@rollup/pluginutils@5.0.5(rollup@2.79.1): + resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': 1.0.3 + estree-walker: 2.0.2 + picomatch: 2.3.1 + rollup: 2.79.1 + dev: false + /@rollup/pluginutils@5.0.5(rollup@3.29.4): resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==} engines: {node: '>=14.0.0'} @@ -2853,7 +2952,7 @@ packages: /@types/cors@2.8.15: resolution: {integrity: sha512-n91JxbNLD8eQIuXDIChAN1tCKNWCEgpceU9b7ZMbFA+P+Q4yIeh80jizFLEvolRPc1ES0VdwFlGv+kJTSirogw==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/debug@4.1.10: @@ -2875,6 +2974,10 @@ packages: '@types/json-schema': 7.0.14 dev: false + /@types/estree@0.0.39: + resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} + dev: false + /@types/estree@1.0.3: resolution: {integrity: sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ==} dev: false @@ -2882,7 +2985,7 @@ packages: /@types/express-serve-static-core@4.17.39: resolution: {integrity: sha512-BiEUfAiGCOllomsRAZOiMFP7LAnrifHpt56pc4Z7l9K6ACyN06Ns1JLMBxwkfLOjJRlSf06NwWsT7yzfpaVpyQ==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 '@types/qs': 6.9.9 '@types/range-parser': 1.2.6 '@types/send': 0.17.3 @@ -2906,7 +3009,7 @@ packages: /@types/fs-extra@9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/http-errors@2.0.3: @@ -2923,7 +3026,7 @@ packages: /@types/is-buffer@2.0.1: resolution: {integrity: sha512-JjGuRpibC4mD54Fcr9QgMmb4zh5n1WJILdb0y/i+K96SczrdcjZ7Ns9N11fZcGQ6eX4pSTSNA1vxJ9eGO55lVg==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/istanbul-lib-coverage@2.0.5: @@ -2941,13 +3044,13 @@ packages: /@types/jsonwebtoken@9.0.4: resolution: {integrity: sha512-8UYapdmR0QlxgvJmyE8lP7guxD0UGVMfknsdtCFZh4ovShdBl3iOI4zdvqBHrB/IS+xUj3PSx73Qkey1fhWz+g==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/jws@3.2.7: resolution: {integrity: sha512-T7Ip96aYPl3SlF0Y7zR8dmJ87XbxjrlCETpLohwdsuTv9jT7TgNXPPbUOTPtPYwSrVgKw7+87xR71aNi+vB26Q==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/linkify-it@3.0.4: @@ -2998,7 +3101,7 @@ packages: /@types/mysql@2.15.22: resolution: {integrity: sha512-wK1pzsJVVAjYCSZWQoWHziQZbNggXFDUEIGf54g4ZM/ERuP86uGdWeKZWMYlqTPMZfHJJvLPyogXGvCOg87yLQ==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/node-fetch@2.6.7: @@ -3035,7 +3138,7 @@ packages: /@types/pg@8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -3060,6 +3163,12 @@ packages: resolution: {integrity: sha512-+0autS93xyXizIYiyL02FCY8N+KkKPhILhcUSA276HxzreZ16kl+cmwvV2qAM/PuCCwPXzOXOWhiPcw20uSFcA==} dev: false + /@types/resolve@1.17.1: + resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} + dependencies: + '@types/node': 18.18.7 + dev: false + /@types/resolve@1.20.2: resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} dev: false @@ -3080,7 +3189,7 @@ packages: resolution: {integrity: sha512-/7fKxvKUoETxjFUsuFlPB9YndePpxxRAOfGC/yJdc9kTjTeP5kRCTzfnE8kPUKCeyiyIZu0YQ76s50hCedI1ug==} dependencies: '@types/mime': 1.3.4 - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/serve-static@1.15.4: @@ -3108,7 +3217,7 @@ packages: /@types/stoppable@1.1.2: resolution: {integrity: sha512-zRBGFTIdkCAdM4VDeFvka5NbD6JVfz7yEYzggKrXQ03ZplrZp5vqQPWHTw0wk81wer61dwi44Tp6FDDXoPBW5A==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/through@0.0.32: @@ -3152,7 +3261,7 @@ packages: /@types/ws@8.5.8: resolution: {integrity: sha512-flUksGIQCnJd6sZ1l5dqCEG/ksaoAg/eUwiLAGTJQcfgvZJKF++Ta4bJA6A5aPSJmsr+xlseHn4KLgVlNnvPTg==} dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false /@types/wtfnode@0.7.2: @@ -3179,7 +3288,7 @@ packages: resolution: {integrity: sha512-Km7XAtUIduROw7QPgvcft0lIupeG8a8rdKL8RiSyKvlE7dYY31fEn41HVuQsRFDuROA8tA4K2UVL+WdfFmErBA==} requiresBuild: true dependencies: - '@types/node': 16.18.59 + '@types/node': 18.18.7 dev: false optional: true @@ -3582,6 +3691,12 @@ packages: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: false + /atob@2.1.2: + resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==} + engines: {node: '>= 4.5.0'} + hasBin: true + dev: false + /autorest@3.6.3: resolution: {integrity: sha512-j/Axwk9bniifTNtBLYVxfQZGQIGPKljFaCQCBWOiybVar2j3tkHP1btiC4a/t9pAJXY6IaFgWctoPM3G/Puhyg==} engines: {node: '>=12.0.0'} @@ -4307,6 +4422,11 @@ packages: engines: {node: '>=10'} dev: false + /decode-uri-component@0.2.2: + resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==} + engines: {node: '>=0.10'} + dev: false + /decompress-response@6.0.0: resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} engines: {node: '>=10'} @@ -4530,7 +4650,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231027 + typescript: 5.3.0-dev.20231029 dev: false /eastasianwidth@0.2.0: @@ -4589,7 +4709,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.15 - '@types/node': 16.18.59 + '@types/node': 18.18.7 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4994,6 +5114,10 @@ packages: engines: {node: '>=4.0'} dev: false + /estree-walker@1.0.1: + resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} + dev: false + /estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} dev: false @@ -7927,7 +8051,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 16.18.59 + '@types/node': 18.18.7 long: 5.2.3 dev: false @@ -8350,6 +8474,22 @@ packages: rollup: 3.29.4 dev: false + /rollup-plugin-sourcemaps@0.6.3(@types/node@16.18.59)(rollup@2.79.1): + resolution: {integrity: sha512-paFu+nT1xvuO1tPFYXGe+XnQvg4Hjqv/eIhG8i5EspfYYPBKL57X7iVbfv55aNVASg3dzWvES9dmWsL2KhfByw==} + engines: {node: '>=10.0.0'} + peerDependencies: + '@types/node': '>=10.0.0' + rollup: '>=0.31.2' + peerDependenciesMeta: + '@types/node': + optional: true + dependencies: + '@rollup/pluginutils': 3.1.0(rollup@2.79.1) + '@types/node': 16.18.59 + rollup: 2.79.1 + source-map-resolve: 0.6.0 + dev: false + /rollup-plugin-visualizer@5.9.2(rollup@3.29.4): resolution: {integrity: sha512-waHktD5mlWrYFrhOLbti4YgQCn1uR24nYsNuXxg7LkPH8KdTXVWR9DNY1WU0QqokyMixVXJS4J04HNrVTMP01A==} engines: {node: '>=14'} @@ -8367,6 +8507,14 @@ packages: yargs: 17.7.2 dev: false + /rollup@2.79.1: + resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} + engines: {node: '>=10.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.3 + dev: false + /rollup@3.29.4: resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} @@ -8675,6 +8823,14 @@ packages: smart-buffer: 4.2.0 dev: false + /source-map-resolve@0.6.0: + resolution: {integrity: sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==} + deprecated: See https://github.com/lydell/source-map-resolve#deprecated + dependencies: + atob: 2.1.2 + decode-uri-component: 0.2.2 + dev: false + /source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} dependencies: @@ -9327,8 +9483,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231027: - resolution: {integrity: sha512-YFAOvfXqPu/aZg27Xc6/Ftvbm5YmjgGEsVocBYbh3iZWRoYTcN3kF29ZZIdgRhoqSIN89+W29p4bBChsfVor2g==} + /typescript@5.3.0-dev.20231029: + resolution: {integrity: sha512-LKzbVRvhVhrfazgcr4V3dl/GuD/MasY4kDKn0lpB0vf1O1/iP5ERyerlEsvPYyeZG3f4GX3edFNpSsvu1shHSw==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14803,23 +14959,31 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-yNoVQOabH7TW4ZTruYTFFW+TRdSdNH+XpGd+WtVAKp4tcFVdCCKKtKmFx10jz+XCdjn06P8Mfl2ghj+BRthHpg==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-r2Wu2JPIEykh5H0fxJtlxqy31Oq5gFLS6zmsbaVdFPYgxEZuWOxIMioyM6eFaJAO/HQ770RX3SxYvw9EWVczXg==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@16.18.59) + '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) + '@rollup/plugin-json': 6.0.1(rollup@2.79.1) + '@rollup/plugin-multi-entry': 6.0.1(rollup@2.79.1) + '@rollup/plugin-node-resolve': 13.3.0(rollup@2.79.1) '@types/chai': 4.3.9 + '@types/mocha': 10.0.3 '@types/node': 16.18.59 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 - ts-node: 10.9.1(@types/node@16.18.59)(typescript@5.2.2) + rimraf: 5.0.5 + rollup: 2.79.1 + rollup-plugin-sourcemaps: 0.6.3(@types/node@16.18.59)(rollup@2.79.1) + ts-node: 10.9.1(@types/node@16.18.59)(typescript@5.0.4) tslib: 2.6.2 - typescript: 5.2.2 + typescript: 5.0.4 uglify-js: 3.17.4 transitivePeerDependencies: - '@swc/core' @@ -16494,7 +16658,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-HKEZW+gnC68cGbDhIQJSsHAd6bH4Jcm4eAptGs9KWa542xVAaDOT5Pk+mPr4J6pO+tLnOMG0tkftBrpJMpBKAw==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-8cCKBl8BXbHEcFcKPRKaz8uGS57v6bC4mBeoxPUJyLZ4vQqGEhyO48/vgEixsy69fXysqElBPzVfj9wdXie7Cw==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: diff --git a/sdk/redisenterprise/arm-redisenterprisecache/CHANGELOG.md b/sdk/redisenterprise/arm-redisenterprisecache/CHANGELOG.md index 92f0c70c03ac..7a147edd52ef 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/CHANGELOG.md +++ b/sdk/redisenterprise/arm-redisenterprisecache/CHANGELOG.md @@ -1,49 +1,48 @@ # Release History - -## 2.3.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 2.3.0-beta.1 (2023-03-27) + +## 3.0.0-beta.1 (2023-10-30) **Features** - - Added operation group Skus - Added operation Databases.beginFlush - Added operation Databases.beginFlushAndWait - - Added Interface Capability + - Added operation PrivateEndpointConnections.beginDelete + - Added operation PrivateEndpointConnections.beginDeleteAndWait + - Added operation RedisEnterprise.checkNameAvailability + - Added Interface CheckNameAvailabilityParameters - Added Interface ClusterPropertiesEncryption - Added Interface ClusterPropertiesEncryptionCustomerManagedKeyEncryption - Added Interface ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity - Added Interface DatabasesFlushHeaders - Added Interface DatabasesFlushOptionalParams - Added Interface FlushParameters - - Added Interface LocationInfo - Added Interface ManagedServiceIdentity - - Added Interface RegionSkuDetail - - Added Interface RegionSkuDetails - - Added Interface SkuDetail - - Added Interface SkusListOptionalParams + - Added Interface PrivateEndpointConnectionsDeleteHeaders + - Added Interface RedisEnterpriseCheckNameAvailabilityOptionalParams - Added Interface SystemData - Added Interface UserAssignedIdentity - Added Type Alias CmkIdentityType - Added Type Alias CreatedByType - Added Type Alias ManagedServiceIdentityType - - Added Type Alias SkusListResponse - Interface Cluster has a new optional parameter encryption - Interface Cluster has a new optional parameter identity - Interface ClusterUpdate has a new optional parameter encryption - Interface ClusterUpdate has a new optional parameter identity + - Interface PrivateEndpointConnectionsDeleteOptionalParams has a new optional parameter resumeFrom + - Interface PrivateEndpointConnectionsDeleteOptionalParams has a new optional parameter updateIntervalInMs - Interface Resource has a new optional parameter systemData - Added Enum KnownCmkIdentityType - Added Enum KnownCreatedByType - Added Enum KnownManagedServiceIdentityType + - Enum KnownResourceState has a new value Scaling + - Enum KnownResourceState has a new value ScalingFailed + - Enum KnownSkuName has a new value EnterpriseE200 + - Enum KnownSkuName has a new value EnterpriseE400 + - Enum KnownSkuName has a new value EnterpriseE5 + +**Breaking Changes** + + - Removed operation PrivateEndpointConnections.delete ## 2.2.0 (2022-12-07) @@ -82,4 +81,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. 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/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/redisenterprise/arm-redisenterprisecache/_meta.json b/sdk/redisenterprise/arm-redisenterprisecache/_meta.json index c4bd8b66a7c3..929c4ea6bbbe 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/_meta.json +++ b/sdk/redisenterprise/arm-redisenterprisecache/_meta.json @@ -1,8 +1,8 @@ { - "commit": "72484575017c59f6eac35b75806055b76c569b19", + "commit": "cfd720db7f5fa7090c6174d9db757bf883507304", "readme": "specification/redisenterprise/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\redisenterprise\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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/redisenterprise/resource-manager/readme.md --use=@autorest/typescript@^6.0.11", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.10" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.3", + "use": "@autorest/typescript@^6.0.11" } \ No newline at end of file diff --git a/sdk/redisenterprise/arm-redisenterprisecache/package.json b/sdk/redisenterprise/arm-redisenterprisecache/package.json index aa657335641e..bfd97bdc3f67 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/package.json +++ b/sdk/redisenterprise/arm-redisenterprisecache/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for RedisEnterpriseManagementClient.", - "version": "2.3.0-beta.2", + "version": "3.0.0-beta.1", "engines": { "node": ">=16.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -29,21 +29,29 @@ "types": "./types/arm-redisenterprisecache.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", + "@rollup/plugin-commonjs": "^24.0.0", + "@rollup/plugin-json": "^6.0.0", + "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^2.1.2", - "typescript": "~5.2.0", + "rollup": "^2.66.1", + "rollup-plugin-sourcemaps": "^0.6.3", + "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^16.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -64,20 +72,21 @@ "src/**/*.ts", "README.md", "LICENSE", + "rollup.config.js", "tsconfig.json", "review/*", "CHANGELOG.md", "types/*" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", + "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", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -105,13 +114,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redisenterprise/arm-redisenterprisecache", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-redisenterprisecache?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redisenterprise/arm-redisenterprisecache" +} \ No newline at end of file diff --git a/sdk/redisenterprise/arm-redisenterprisecache/review/arm-redisenterprisecache.api.md b/sdk/redisenterprise/arm-redisenterprisecache/review/arm-redisenterprisecache.api.md index 34b51a7a3031..0d42007db113 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/review/arm-redisenterprisecache.api.md +++ b/sdk/redisenterprise/arm-redisenterprisecache/review/arm-redisenterprisecache.api.md @@ -26,9 +26,9 @@ export type ActionType = string; export type AofFrequency = string; // @public -export interface Capability { - name?: string; - value?: boolean; +export interface CheckNameAvailabilityParameters { + name: string; + type: string; } // @public @@ -408,6 +408,8 @@ export enum KnownResourceState { EnableFailed = "EnableFailed", Enabling = "Enabling", Running = "Running", + Scaling = "Scaling", + ScalingFailed = "ScalingFailed", UpdateFailed = "UpdateFailed", Updating = "Updating" } @@ -417,6 +419,9 @@ export enum KnownSkuName { EnterpriseE10 = "Enterprise_E10", EnterpriseE100 = "Enterprise_E100", EnterpriseE20 = "Enterprise_E20", + EnterpriseE200 = "Enterprise_E200", + EnterpriseE400 = "Enterprise_E400", + EnterpriseE5 = "Enterprise_E5", EnterpriseE50 = "Enterprise_E50", EnterpriseFlashF1500 = "EnterpriseFlash_F1500", EnterpriseFlashF300 = "EnterpriseFlash_F300", @@ -439,12 +444,6 @@ export interface LinkedDatabase { // @public export type LinkState = string; -// @public -export interface LocationInfo { - capabilities?: Capability[]; - location?: string; -} - // @public export interface ManagedServiceIdentity { readonly principalId?: string; @@ -562,15 +561,24 @@ export type PrivateEndpointConnectionProvisioningState = string; // @public export interface PrivateEndpointConnections { + beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; beginPut(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise, PrivateEndpointConnectionsPutResponse>>; beginPutAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise; - delete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; list(resourceGroupName: string, clusterName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface PrivateEndpointConnectionsDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -651,11 +659,16 @@ export interface RedisEnterprise { beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, parameters: ClusterUpdate, options?: RedisEnterpriseUpdateOptionalParams): Promise, RedisEnterpriseUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterUpdate, options?: RedisEnterpriseUpdateOptionalParams): Promise; + checkNameAvailability(parameters: CheckNameAvailabilityParameters, options?: RedisEnterpriseCheckNameAvailabilityOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseGetOptionalParams): Promise; list(options?: RedisEnterpriseListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: RedisEnterpriseListByResourceGroupOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface RedisEnterpriseCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + // @public export interface RedisEnterpriseCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -726,8 +739,6 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient { // (undocumented) redisEnterprise: RedisEnterprise; // (undocumented) - skus: Skus; - // (undocumented) subscriptionId: string; } @@ -752,18 +763,6 @@ export interface RegenerateKeyParameters { keyType: AccessKeyType; } -// @public -export interface RegionSkuDetail { - locationInfo?: LocationInfo; - resourceType?: string; - skuDetails?: SkuDetail; -} - -// @public -export interface RegionSkuDetails { - value?: RegionSkuDetail[]; -} - // @public export interface Resource { readonly id?: string; @@ -781,26 +780,9 @@ export interface Sku { name: SkuName; } -// @public -export interface SkuDetail { - name?: SkuName; -} - // @public export type SkuName = string; -// @public -export interface Skus { - list(location: string, options?: SkusListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface SkusListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SkusListResponse = RegionSkuDetails; - // @public export interface SystemData { createdAt?: Date; diff --git a/sdk/redisenterprise/arm-redisenterprisecache/rollup.config.js b/sdk/redisenterprise/arm-redisenterprisecache/rollup.config.js new file mode 100644 index 000000000000..3f89d7309da5 --- /dev/null +++ b/sdk/redisenterprise/arm-redisenterprisecache/rollup.config.js @@ -0,0 +1,122 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +// #region Warning Handler + +/** + * A function that can determine whether a rollup warning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEval(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependency(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; + +/** + * 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(), + 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 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()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/models/index.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/models/index.ts index 46e2213020cf..c373b37e6142 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/models/index.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/models/index.ts @@ -441,48 +441,18 @@ export interface ForceUnlinkParameters { ids: string[]; } -/** Parameters for a Redis Enterprise active geo-replication flush operation. */ +/** Parameters for a Redis Enterprise active geo-replication flush operation */ export interface FlushParameters { - /** The resource identifiers of all the other database resources in the georeplication group to be flushed */ + /** The identifiers of all the other database resources in the georeplication group to be flushed. */ ids?: string[]; } -/** List of details about all the available SKUs */ -export interface RegionSkuDetails { - /** List of Sku Detail */ - value?: RegionSkuDetail[]; -} - -/** Details about the location requested and the available skus in the location */ -export interface RegionSkuDetail { - /** Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise */ - resourceType?: string; - /** Details about location and its capabilities */ - locationInfo?: LocationInfo; - /** Details about available skus */ - skuDetails?: SkuDetail; -} - -/** Information about location (for example: features that it supports) */ -export interface LocationInfo { - /** Location name */ - location?: string; - /** List of capabilities */ - capabilities?: Capability[]; -} - -/** Information about the features the location supports */ -export interface Capability { - /** Feature name */ - name?: string; - /** Indicates whether feature is supported or not */ - value?: boolean; -} - -/** Information about Sku */ -export interface SkuDetail { - /** The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.) */ - name?: SkuName; +/** Parameters body to pass for resource name availability check. */ +export interface CheckNameAvailabilityParameters { + /** Resource name. */ + name: string; + /** Resource type. The only legal value of this property for checking redis enterprise cache name availability is 'Microsoft.Cache/redisenterprise'. */ + type: string; } /** The Private Endpoint Connection resource. */ @@ -600,6 +570,14 @@ export interface DatabasesFlushHeaders { azureAsyncOperation?: string; } +/** Defines headers for PrivateEndpointConnections_delete operation. */ +export interface PrivateEndpointConnectionsDeleteHeaders { + /** Location URI to poll for result */ + location?: string; + /** URI to poll for the operation status */ + azureAsyncOperation?: string; +} + /** Known values of {@link Origin} that the service accepts. */ export enum KnownOrigin { /** User */ @@ -638,6 +616,8 @@ export type ActionType = string; /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { + /** EnterpriseE5 */ + EnterpriseE5 = "Enterprise_E5", /** EnterpriseE10 */ EnterpriseE10 = "Enterprise_E10", /** EnterpriseE20 */ @@ -646,6 +626,10 @@ export enum KnownSkuName { EnterpriseE50 = "Enterprise_E50", /** EnterpriseE100 */ EnterpriseE100 = "Enterprise_E100", + /** EnterpriseE200 */ + EnterpriseE200 = "Enterprise_E200", + /** EnterpriseE400 */ + EnterpriseE400 = "Enterprise_E400", /** EnterpriseFlashF300 */ EnterpriseFlashF300 = "EnterpriseFlash_F300", /** EnterpriseFlashF700 */ @@ -659,10 +643,13 @@ export enum KnownSkuName { * {@link KnownSkuName} can be used interchangeably with SkuName, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Enterprise_E5** \ * **Enterprise_E10** \ * **Enterprise_E20** \ * **Enterprise_E50** \ * **Enterprise_E100** \ + * **Enterprise_E200** \ + * **Enterprise_E400** \ * **EnterpriseFlash_F300** \ * **EnterpriseFlash_F700** \ * **EnterpriseFlash_F1500** @@ -787,7 +774,11 @@ export enum KnownResourceState { /** DisableFailed */ DisableFailed = "DisableFailed", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", + /** Scaling */ + Scaling = "Scaling", + /** ScalingFailed */ + ScalingFailed = "ScalingFailed" } /** @@ -806,7 +797,9 @@ export enum KnownResourceState { * **EnableFailed** \ * **Disabling** \ * **DisableFailed** \ - * **Disabled** + * **Disabled** \ + * **Scaling** \ + * **ScalingFailed** */ export type ResourceState = string; @@ -1094,6 +1087,10 @@ export interface RedisEnterpriseListOptionalParams /** Contains response data for the list operation. */ export type RedisEnterpriseListResponse = ClusterList; +/** Optional parameters. */ +export interface RedisEnterpriseCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface RedisEnterpriseListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} @@ -1245,7 +1242,12 @@ export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ export interface PrivateLinkResourcesListByClusterOptionalParams @@ -1254,12 +1256,6 @@ export interface PrivateLinkResourcesListByClusterOptionalParams /** Contains response data for the listByCluster operation. */ export type PrivateLinkResourcesListByClusterResponse = PrivateLinkResourceListResult; -/** Optional parameters. */ -export interface SkusListOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type SkusListResponse = RegionSkuDetails; - /** Optional parameters. */ export interface RedisEnterpriseManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/models/mappers.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/models/mappers.ts index dadd34de972f..ccf0466a3f0b 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/models/mappers.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/models/mappers.ts @@ -1014,111 +1014,21 @@ export const FlushParameters: coreClient.CompositeMapper = { } }; -export const RegionSkuDetails: coreClient.CompositeMapper = { +export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegionSkuDetails", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionSkuDetail" - } - } - } - } - } - } -}; - -export const RegionSkuDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionSkuDetail", - modelProperties: { - resourceType: { - serializedName: "resourceType", - type: { - name: "String" - } - }, - locationInfo: { - serializedName: "locationInfo", - type: { - name: "Composite", - className: "LocationInfo" - } - }, - skuDetails: { - serializedName: "skuDetails", - type: { - name: "Composite", - className: "SkuDetail" - } - } - } - } -}; - -export const LocationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LocationInfo", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - capabilities: { - serializedName: "capabilities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Capability" - } - } - } - } - } - } -}; - -export const Capability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Capability", + className: "CheckNameAvailabilityParameters", modelProperties: { name: { serializedName: "name", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", - type: { - name: "Boolean" - } - } - } - } -}; - -export const SkuDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SkuDetail", - modelProperties: { - name: { - serializedName: "name", + type: { + serializedName: "type", + required: true, type: { name: "String" } @@ -1415,3 +1325,24 @@ export const DatabasesFlushHeaders: coreClient.CompositeMapper = { } } }; + +export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/models/parameters.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/models/parameters.ts index 62beffee0ad5..d132a8a7c5b8 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/models/parameters.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/models/parameters.ts @@ -14,6 +14,7 @@ import { import { Cluster as ClusterMapper, ClusterUpdate as ClusterUpdateMapper, + CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, Database as DatabaseMapper, DatabaseUpdate as DatabaseUpdateMapper, RegenerateKeyParameters as RegenerateKeyParametersMapper, @@ -51,7 +52,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-03-01-preview", + defaultValue: "2023-10-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -163,6 +164,11 @@ export const parameters1: OperationParameter = { }; export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: CheckNameAvailabilityParametersMapper +}; + +export const parameters3: OperationParameter = { parameterPath: "parameters", mapper: DatabaseMapper }; @@ -178,32 +184,32 @@ export const databaseName: OperationURLParameter = { } }; -export const parameters3: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", mapper: DatabaseUpdateMapper }; -export const parameters4: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: RegenerateKeyParametersMapper }; -export const parameters5: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: ImportClusterParametersMapper }; -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: ExportClusterParametersMapper }; -export const parameters7: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: ForceUnlinkParametersMapper }; -export const parameters8: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: FlushParametersMapper }; diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/databases.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/databases.ts index ccda045aff72..418cfa1545cd 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/databases.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/databases.ts @@ -1070,7 +1070,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1104,7 +1104,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1208,7 +1208,7 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1234,7 +1234,7 @@ const importOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1260,7 +1260,7 @@ const exportOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1286,7 +1286,7 @@ const forceUnlinkOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1312,7 +1312,7 @@ const flushOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/index.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/index.ts index 408ae886b779..cb8946c7cbcc 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/index.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/index.ts @@ -12,4 +12,3 @@ export * from "./redisEnterprise"; export * from "./databases"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; -export * from "./skus"; diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/privateEndpointConnections.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/privateEndpointConnections.ts index bdb956040c53..4651141c1206 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/privateEndpointConnections.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/privateEndpointConnections.ts @@ -261,21 +261,91 @@ export class PrivateEndpointConnectionsImpl * Azure resource * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, privateEndpointConnectionName, options }, - deleteOperationSpec + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the RedisEnterprise cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * Azure resource + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + clusterName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + clusterName, + privateEndpointConnectionName, + options ); + return poller.pollUntilDone(); } } // Operation Specifications @@ -366,6 +436,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { httpMethod: "DELETE", responses: { 200: {}, + 201: {}, + 202: {}, 204: {}, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/redisEnterprise.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/redisEnterprise.ts index d758ba6025aa..67b0dc2685ae 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/redisEnterprise.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/redisEnterprise.ts @@ -35,6 +35,8 @@ import { RedisEnterpriseDeleteOptionalParams, RedisEnterpriseGetOptionalParams, RedisEnterpriseGetResponse, + CheckNameAvailabilityParameters, + RedisEnterpriseCheckNameAvailabilityOptionalParams, RedisEnterpriseListByResourceGroupNextResponse, RedisEnterpriseListNextResponse } from "../models"; @@ -492,6 +494,22 @@ export class RedisEnterpriseImpl implements RedisEnterprise { return this.client.sendOperationRequest({ options }, listOperationSpec); } + /** + * Checks that the Redis Enterprise cache name is valid and is not already in use. + * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only + * supported resource type is 'Microsoft.Cache/redisenterprise' + * @param options The options parameters. + */ + checkNameAvailability( + parameters: CheckNameAvailabilityParameters, + options?: RedisEnterpriseCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { parameters, options }, + checkNameAvailabilityOperationSpec + ); + } + /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -676,6 +694,23 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/checkNameAvailability", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/skus.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operations/skus.ts deleted file mode 100644 index 4319549326a6..000000000000 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operations/skus.ts +++ /dev/null @@ -1,117 +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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { Skus } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient"; -import { - RegionSkuDetail, - SkusListOptionalParams, - SkusListResponse -} from "../models"; - -/// -/** Class containing Skus operations. */ -export class SkusImpl implements Skus { - private readonly client: RedisEnterpriseManagementClient; - - /** - * Initialize a new instance of the class Skus class. - * @param client Reference to the service client - */ - constructor(client: RedisEnterpriseManagementClient) { - this.client = client; - } - - /** - * Gets information about skus in specified location for the given subscription id - * @param location The name of Azure region. - * @param options The options parameters. - */ - public list( - location: string, - options?: SkusListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(location, options, settings); - } - }; - } - - private async *listPagingPage( - location: string, - options?: SkusListOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: SkusListResponse; - result = await this._list(location, options); - yield result.value || []; - } - - private async *listPagingAll( - location: string, - options?: SkusListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * Gets information about skus in specified location for the given subscription id - * @param location The name of Azure region. - * @param options The options parameters. - */ - private _list( - location: string, - options?: SkusListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionSkuDetails - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.location, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/index.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/index.ts index 408ae886b779..cb8946c7cbcc 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/index.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/index.ts @@ -12,4 +12,3 @@ export * from "./redisEnterprise"; export * from "./databases"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; -export * from "./skus"; diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/privateEndpointConnections.ts index d1bbfe987bd8..36d2c2214a4f 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/privateEndpointConnections.ts @@ -93,7 +93,21 @@ export interface PrivateEndpointConnections { * Azure resource * @param options The options parameters. */ - delete( + beginDelete( + resourceGroupName: string, + clusterName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the RedisEnterprise cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * Azure resource + * @param options The options parameters. + */ + beginDeleteAndWait( resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/redisEnterprise.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/redisEnterprise.ts index 80a3cc7326af..b7882dd79442 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/redisEnterprise.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/redisEnterprise.ts @@ -19,7 +19,9 @@ import { RedisEnterpriseUpdateResponse, RedisEnterpriseDeleteOptionalParams, RedisEnterpriseGetOptionalParams, - RedisEnterpriseGetResponse + RedisEnterpriseGetResponse, + CheckNameAvailabilityParameters, + RedisEnterpriseCheckNameAvailabilityOptionalParams } from "../models"; /// @@ -136,4 +138,14 @@ export interface RedisEnterprise { clusterName: string, options?: RedisEnterpriseGetOptionalParams ): Promise; + /** + * Checks that the Redis Enterprise cache name is valid and is not already in use. + * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only + * supported resource type is 'Microsoft.Cache/redisenterprise' + * @param options The options parameters. + */ + checkNameAvailability( + parameters: CheckNameAvailabilityParameters, + options?: RedisEnterpriseCheckNameAvailabilityOptionalParams + ): Promise; } diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/skus.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/skus.ts deleted file mode 100644 index 34c27cc834a1..000000000000 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/operationsInterfaces/skus.ts +++ /dev/null @@ -1,24 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { RegionSkuDetail, SkusListOptionalParams } from "../models"; - -/// -/** Interface representing a Skus. */ -export interface Skus { - /** - * Gets information about skus in specified location for the given subscription id - * @param location The name of Azure region. - * @param options The options parameters. - */ - list( - location: string, - options?: SkusListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts b/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts index e1bfcf4dae7c..ff1869fdc305 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts +++ b/sdk/redisenterprise/arm-redisenterprisecache/src/redisEnterpriseManagementClient.ts @@ -20,8 +20,7 @@ import { RedisEnterpriseImpl, DatabasesImpl, PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl, - SkusImpl + PrivateLinkResourcesImpl } from "./operations"; import { Operations, @@ -29,8 +28,7 @@ import { RedisEnterprise, Databases, PrivateEndpointConnections, - PrivateLinkResources, - Skus + PrivateLinkResources } from "./operationsInterfaces"; import { RedisEnterpriseManagementClientOptionalParams } from "./models"; @@ -66,7 +64,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-redisenterprisecache/2.3.0-beta.2`; + const packageDetails = `azsdk-js-arm-redisenterprisecache/3.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -119,14 +117,13 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-03-01-preview"; + this.apiVersion = options.apiVersion || "2023-10-01-preview"; this.operations = new OperationsImpl(this); this.operationsStatus = new OperationsStatusImpl(this); this.redisEnterprise = new RedisEnterpriseImpl(this); this.databases = new DatabasesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.skus = new SkusImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -164,5 +161,4 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient { databases: Databases; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; - skus: Skus; } diff --git a/sdk/redisenterprise/arm-redisenterprisecache/tsconfig.json b/sdk/redisenterprise/arm-redisenterprisecache/tsconfig.json index b929ba4f3f0f..3e6ae96443f3 100644 --- a/sdk/redisenterprise/arm-redisenterprisecache/tsconfig.json +++ b/sdk/redisenterprise/arm-redisenterprisecache/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-redisenterprisecache": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"