From 876d9ea15d69799fca810ba1f0eb07a08435d304 Mon Sep 17 00:00:00 2001 From: gracewilcox Date: Tue, 3 Dec 2024 15:23:01 -0800 Subject: [PATCH] updates --- eng/emitter-package-lock.json | 268 +++++++++--------- eng/emitter-package.json | 22 +- sdk/security/keyvault/azsecrets/build.go | 3 +- sdk/security/keyvault/azsecrets/client.go | 50 +++- .../keyvault/azsecrets/internal/transforms.go | 2 + sdk/security/keyvault/azsecrets/models.go | 19 +- .../keyvault/azsecrets/tsp-location.yaml | 2 +- 7 files changed, 206 insertions(+), 160 deletions(-) diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index 5136fecb5d7c..52298e068af4 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,19 +5,19 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-go": "0.3.0" + "@azure-tools/typespec-go": "0.3.4" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.44.1", - "@azure-tools/typespec-azure-core": "0.44.0", - "@azure-tools/typespec-azure-resource-manager": "0.44.0", - "@azure-tools/typespec-azure-rulesets": "0.44.0", - "@azure-tools/typespec-client-generator-core": "0.44.3", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/openapi": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0" + "@azure-tools/typespec-autorest": "0.48.0", + "@azure-tools/typespec-azure-core": "0.48.0", + "@azure-tools/typespec-azure-resource-manager": "0.48.0", + "@azure-tools/typespec-azure-rulesets": "0.48.0", + "@azure-tools/typespec-client-generator-core": "0.48.3", + "@typespec/compiler": "0.62.0", + "@typespec/http": "0.62.0", + "@typespec/openapi": "0.62.0", + "@typespec/rest": "0.62.0", + "@typespec/versioning": "0.62.0" } }, "node_modules/@azure-tools/async-io": { @@ -73,41 +73,41 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.44.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.44.1.tgz", - "integrity": "sha512-lw/iM659GuFgckDeRFFu0vx6wGBy814n+mjzbpi0Qwjvj8/hYULSjpty9P4WBDE30rYCUde1pWX5nK6TnwhOkQ==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.48.0.tgz", + "integrity": "sha512-AyoNMq3EORugHynFF8bN0TJh+zYxui/ApU5DoVEL7Xr1yMD6k9p5b90VD4HiCsP0dz8470ApFnjt5Vl6xCSzig==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@azure-tools/typespec-azure-resource-manager": "~0.44.0", - "@azure-tools/typespec-client-generator-core": "~0.44.2", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@azure-tools/typespec-azure-resource-manager": "~0.48.0", + "@azure-tools/typespec-client-generator-core": "~0.48.0", + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/openapi": "~0.62.0", + "@typespec/rest": "~0.62.0", + "@typespec/versioning": "~0.62.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.44.0.tgz", - "integrity": "sha512-d11QK2v5fOZH8YUqf42FsqHEirKCHzeKFq4Uo/51BXCXmJJahsTaFMAG2M0GoJe8tmTHeMijStnVMfzcGNqCAA==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.48.0.tgz", + "integrity": "sha512-80qyqgTgBbrnCGXtz6eWAMBdEAjYVVL780L0Ye+rBEd6VoA0m3JrgzUqf5bC0Iwju6lEtBAb8o6sefKD/NGA7g==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/rest": "~0.58.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/rest": "~0.62.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.44.0.tgz", - "integrity": "sha512-m4dG41at6En1swbxlvCDl1v4Mvrfp17acDnRxEcd4SdKP2R9eVS2mBy1tSuFtMcJlOnoBZ5CxQgk+Osg/Q9nmA==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.48.0.tgz", + "integrity": "sha512-4JxPbKxd3EJ98sLbtfBlqyANWVrU6tT2nk3iLspg7MITPLhiMTeRT9BprsJXH18ks8qw8scR7/am5r57YERTmQ==", "dev": true, "dependencies": { "change-case": "~5.4.4", @@ -117,33 +117,33 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/openapi": "~0.62.0", + "@typespec/rest": "~0.62.0", + "@typespec/versioning": "~0.62.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.44.0.tgz", - "integrity": "sha512-ZFiT+rtLIq3uP4uSr85i7w+3r02BEqERePaCtTyjexo2IBz0lwQ5Nn/5ujfuDDSy+3daoC2bQy8hw/BGWg9/Ng==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.48.0.tgz", + "integrity": "sha512-IkPxC8v9wVSl/eKU7N4NhqD3RPh+bIYpxDW5LBAhkuQVcE3RumAkWqh2pmkckihQRhgwiCXhcJVZAzBpVa5SUA==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@azure-tools/typespec-azure-resource-manager": "~0.44.0", - "@azure-tools/typespec-client-generator-core": "~0.44.0", - "@typespec/compiler": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@azure-tools/typespec-azure-resource-manager": "~0.48.0", + "@azure-tools/typespec-client-generator-core": "~0.48.0", + "@typespec/compiler": "~0.62.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.44.3", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.44.3.tgz", - "integrity": "sha512-HXjxQs7ELrTuIDqOjlYhP4rM4AXb143klbiM8dkEGtqNBRCk77gVCGYVH1M3kWKAEs0dQKhzoUukscqRsfELuw==", + "version": "0.48.3", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.3.tgz", + "integrity": "sha512-EWyET1EXCee6TYfxway57L+SQdQurRZ8NuOWgenRjQf/Ja/0+Ht3IYfbFoqIYS2+/uFpLeotYCd4hUPjsW0Jwg==", "dependencies": { "change-case": "~5.4.4", "pluralize": "^8.0.0" @@ -152,40 +152,39 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/openapi": "~0.62.0", + "@typespec/rest": "~0.62.0", + "@typespec/versioning": "~0.62.0" } }, "node_modules/@azure-tools/typespec-go": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-go/-/typespec-go-0.3.0.tgz", - "integrity": "sha512-zfGb6owlaZlxeLUcCu/mYx7fG9hGZC0smQrCZVBZ47j2aF8zOdyvmS40A3s9h+0TCHPzeM+CcwZavappneEtUg==", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-go/-/typespec-go-0.3.4.tgz", + "integrity": "sha512-HE3KjuDXEpiM4ac5tXtcUq/3+a+4egq09pvPimgPYGS+lnmLoCzCfGcZGelpOrtfpbFfNhg3GIKANxlbi0W95g==", "dependencies": { "@azure-tools/codegen": "~2.9.2", "@azure-tools/linq": "~3.1.0", - "@azure-tools/typespec-azure-core": ">=0.44.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": "0.44.3", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0", "js-yaml": "~4.1.0", "source-map-support": "0.5.21" }, "engines": { "node": ">=12.0.0" + }, + "peerDependencies": { + "@azure-tools/typespec-client-generator-core": ">=0.48.3 <1.0.0", + "@typespec/compiler": ">=0.62.0 <1.0.0", + "@typespec/http": ">=0.62.0 <1.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.9.tgz", + "integrity": "sha512-z88xeGxnzehn2sqZ8UdGQEvYErF1odv2CftxInpSYJt6uHuPe9YjahKZITGs3l5LeI9d2ROG+obuDAoSlqbNfQ==", "dependencies": { - "@babel/highlight": "^7.24.7", + "@babel/highlight": "^7.25.9", "picocolors": "^1.0.0" }, "engines": { @@ -193,19 +192,19 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.9.tgz", + "integrity": "sha512-llL88JShoCsth8fF8R4SJnIn+WLvR6ccFxu1H3FlMhDontdcmZWf2HgIZ7AIqV3Xcck1idlohrN4EUBQz6klbw==", "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", + "@babel/helper-validator-identifier": "^7.25.9", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -258,23 +257,23 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.58.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.58.1.tgz", - "integrity": "sha512-bVxxM35r40OtuL4+/9W/g1EevlnWnW6i151nsZAFOJj1xWHoE2G9zkx5/Feic8OlzArjhGGLJOLH3Ez1Wrw35A==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.62.0.tgz", + "integrity": "sha512-RfKJ/rF2Wjxu7dl74oJE8yEfSkeL7NopFlyJ4dW1JQXpRN2IOJYPxas12qZA6H9ZEIB8rBjyrHNxJSQbvn/UDQ==", "dependencies": { - "@babel/code-frame": "~7.24.7", - "ajv": "~8.16.0", + "@babel/code-frame": "~7.25.7", + "ajv": "~8.17.1", "change-case": "~5.4.4", "globby": "~14.0.2", "mustache": "~4.2.0", - "picocolors": "~1.0.1", - "prettier": "~3.3.2", + "picocolors": "~1.1.0", + "prettier": "~3.3.3", "prompts": "~2.4.2", - "semver": "^7.6.2", + "semver": "^7.6.3", "temporal-polyfill": "^0.2.5", "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.11", - "yaml": "~2.4.5", + "vscode-languageserver-textdocument": "~1.0.12", + "yaml": "~2.5.1", "yargs": "~17.7.2" }, "bin": { @@ -286,60 +285,66 @@ } }, "node_modules/@typespec/http": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.58.0.tgz", - "integrity": "sha512-jQpkugg9AZVrNDMkDIgZRpIoRkkU2b0LtKWqMGg33MItYj9/DYSgDtY7xb7oCBppRtFFZ/h138HyhYl3zQxZRg==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.62.0.tgz", + "integrity": "sha512-6H9y9e32lb2s76MMy29ITCwSZNG42sa/qWthiByUvfbTEXMpu5a1fQHNj7RXg+xmDKmVIHv3gAfjGPAWfXhkaQ==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0" + "@typespec/compiler": "~0.62.0", + "@typespec/streams": "~0.62.0" + }, + "peerDependenciesMeta": { + "@typespec/streams": { + "optional": true + } } }, "node_modules/@typespec/openapi": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.58.0.tgz", - "integrity": "sha512-gu6nXfmpfZrfq8Etpgl1dpMfsXii7EzQyhZgsPhIy7ZwV5bDmFk1/oyhTqIpWrnr4pD3r151T2BQjzJefjf15A==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.62.0.tgz", + "integrity": "sha512-Xtm0Nd2BuSmEfSWGtc10ok22jyomYm9L2jY+kVTy+v5J89DrVh0o6+YpipUl1QhcItM1YMBphWHIHPfwkDRbnw==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0" } }, "node_modules/@typespec/rest": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.58.0.tgz", - "integrity": "sha512-QBxkED0/KQKG22pwzis0n7BY+uLMSZZPSoVe/ESBFika9n5/yyeQ0l58xbFFwwfxAxe4xwuZ5PNwTdEXZbzr5g==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.62.0.tgz", + "integrity": "sha512-ci5UjelEKFwsPTdpgysoUoDCcw02EnbG4GBuYJdR5mRrFCBZMxrbro+OJLgSN3g/TORSsWlW7dEOWLfbyrmlZQ==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0" } }, "node_modules/@typespec/versioning": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.58.0.tgz", - "integrity": "sha512-brnQQ3wKWh4AbgqmnVLj+8zyOaDk9VPWg4QBecdQxzz7PrSrlAzIzRfeIyr67+hwi/0SvkTAB6GNH7YYTypKGA==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.62.0.tgz", + "integrity": "sha512-M5KTCVH5fBniZU8eQlw+NV13vAmPr58HyBLDIyxeOuV+SHNlx+f+qanUEDIPaJheKlaSSNTEZKsDhs83/iIMMA==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0" + "@typespec/compiler": "~0.62.0" } }, "node_modules/ajv": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", - "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dependencies": { "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" + "require-from-string": "^2.0.2" }, "funding": { "type": "github", @@ -436,9 +441,9 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "engines": { "node": ">=6" } @@ -471,6 +476,11 @@ "node": ">=8.6.0" } }, + "node_modules/fast-uri": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", + "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==" + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", @@ -542,9 +552,9 @@ } }, "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "engines": { "node": ">= 4" } @@ -622,9 +632,9 @@ } }, "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -653,9 +663,9 @@ } }, "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -714,14 +724,6 @@ "node": ">=4.0.0" } }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -910,14 +912,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, "node_modules/vscode-jsonrpc": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", @@ -1011,9 +1005,9 @@ } }, "node_modules/yaml": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.5.tgz", - "integrity": "sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", + "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", "bin": { "yaml": "bin.mjs" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 39495af7dbca..e4b8a685c421 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,18 +1,18 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-go": "0.3.0" + "@azure-tools/typespec-go": "0.3.4" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.44.1", - "@azure-tools/typespec-azure-core": "0.44.0", - "@azure-tools/typespec-azure-resource-manager": "0.44.0", - "@azure-tools/typespec-azure-rulesets": "0.44.0", - "@azure-tools/typespec-client-generator-core": "0.44.3", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/openapi": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0" + "@azure-tools/typespec-autorest": "0.48.0", + "@azure-tools/typespec-azure-core": "0.48.0", + "@azure-tools/typespec-azure-resource-manager": "0.48.0", + "@azure-tools/typespec-azure-rulesets": "0.48.0", + "@azure-tools/typespec-client-generator-core": "0.48.3", + "@typespec/compiler": "0.62.0", + "@typespec/http": "0.62.0", + "@typespec/openapi": "0.62.0", + "@typespec/rest": "0.62.0", + "@typespec/versioning": "0.62.0" } } \ No newline at end of file diff --git a/sdk/security/keyvault/azsecrets/build.go b/sdk/security/keyvault/azsecrets/build.go index 4b59358234d3..24412631e3a0 100644 --- a/sdk/security/keyvault/azsecrets/build.go +++ b/sdk/security/keyvault/azsecrets/build.go @@ -1,8 +1,7 @@ //go:build go1.18 // +build go1.18 -//go:generate tsp-client sync --local-spec-repo /home/grace/code/azure-rest-api-specs/specification/keyvault/Security.KeyVault.Secrets -//go:generate tsp-client generate +//go:generate tsp-client update //go:generate go run ./internal/transforms.go //go:generate rm ./constants.go //go:generate gofmt -w . diff --git a/sdk/security/keyvault/azsecrets/client.go b/sdk/security/keyvault/azsecrets/client.go index 68ced264dcf8..56d21182d1ac 100644 --- a/sdk/security/keyvault/azsecrets/client.go +++ b/sdk/security/keyvault/azsecrets/client.go @@ -12,6 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" "net/url" + "strings" ) @@ -24,6 +25,10 @@ type Client struct { } // BackupSecret - Backs up the specified secret. +// +// Requests that a backup of the specified secret be downloaded to the client. All +// versions of the secret will be downloaded. This operation requires the +// secrets/backup permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -79,6 +84,10 @@ func (client *Client) backupSecretHandleResponse(resp *http.Response) (BackupSec } // DeleteSecret - Deletes a secret from a specified key vault. +// +// The DELETE operation applies to any secret stored in Azure Key Vault. DELETE +// cannot be applied to an individual version of a secret. This operation requires +// the secrets/delete permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -134,6 +143,9 @@ func (client *Client) deleteSecretHandleResponse(resp *http.Response) (DeleteSec } // GetDeletedSecret - Gets the specified deleted secret. +// +// The Get Deleted Secret operation returns the specified deleted secret along +// with its attributes. This operation requires the secrets/get permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -189,6 +201,9 @@ func (client *Client) getDeletedSecretHandleResponse(resp *http.Response) (GetDe } // GetSecret - Get a specified secret from a given key vault. +// +// The GET operation is applicable to any secret stored in Azure Key Vault. This +// operation requires the secrets/get permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -248,6 +263,10 @@ func (client *Client) getSecretHandleResponse(resp *http.Response) (GetSecretRes // NewListDeletedSecretPropertiesPager - Lists deleted secrets for the specified vault. // +// The Get Deleted Secrets operation returns the secrets that have been deleted +// for a vault enabled for soft-delete. This operation requires the secrets/list +// permission. +// // Generated from API version 7.5 // - options - ListDeletedSecretPropertiesOptions contains the optional parameters for the Client.NewListDeletedSecretPropertiesPager // method. @@ -300,6 +319,11 @@ func (client *Client) listDeletedSecretPropertiesHandleResponse(resp *http.Respo // NewListSecretPropertiesPager - List secrets in a specified key vault. // +// The Get Secrets operation is applicable to the entire vault. However, only the +// base secret identifier and its attributes are provided in the response. +// Individual secret versions are not listed in the response. This operation +// requires the secrets/list permission. +// // Generated from API version 7.5 // - options - ListSecretPropertiesOptions contains the optional parameters for the Client.NewListSecretPropertiesPager method. func (client *Client) NewListSecretPropertiesPager(options *ListSecretPropertiesOptions) *runtime.Pager[ListSecretPropertiesResponse] { @@ -351,6 +375,10 @@ func (client *Client) listSecretPropertiesHandleResponse(resp *http.Response) (L // NewListSecretPropertiesVersionsPager - List all versions of the specified secret. // +// The full secret identifier and attributes are provided in the response. No +// values are returned for the secrets. This operations requires the secrets/list +// permission. +// // Generated from API version 7.5 // - name - The name of the secret. // - options - ListSecretPropertiesVersionsOptions contains the optional parameters for the Client.NewListSecretPropertiesVersionsPager @@ -378,7 +406,7 @@ func (client *Client) NewListSecretPropertiesVersionsPager(name string, options } // listSecretPropertiesVersionsCreateRequest creates the ListSecretPropertiesVersions request. -func (client *Client) listSecretPropertiesVersionsCreateRequest(ctx context.Context, name string, _ *ListSecretPropertiesVersionsOptions) (*policy.Request, error) { +func (client *Client) listSecretPropertiesVersionsCreateRequest(ctx context.Context, name string, options *ListSecretPropertiesVersionsOptions) (*policy.Request, error) { host := "{vaultBaseUrl}" host = strings.ReplaceAll(host, "{vaultBaseUrl}", client.vaultBaseUrl) urlPath := "/secrets/{secret-name}/versions" @@ -407,6 +435,10 @@ func (client *Client) listSecretPropertiesVersionsHandleResponse(resp *http.Resp } // PurgeDeletedSecret - Permanently deletes the specified secret. +// +// The purge deleted secret operation removes the secret permanently, without the +// possibility of recovery. This operation can only be enabled on a soft-delete +// enabled vault. This operation requires the secrets/purge permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -452,6 +484,10 @@ func (client *Client) purgeDeletedSecretCreateRequest(ctx context.Context, name } // RecoverDeletedSecret - Recovers the deleted secret to the latest version. +// +// Recovers the deleted secret in the specified vault. This operation can only be +// performed on a soft-delete enabled vault. This operation requires the +// secrets/recover permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -507,6 +543,9 @@ func (client *Client) recoverDeletedSecretHandleResponse(resp *http.Response) (R } // RestoreSecret - Restores a backed up secret to a vault. +// +// Restores a backed up secret, and all its versions, to a vault. This operation +// requires the secrets/restore permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -562,6 +601,10 @@ func (client *Client) restoreSecretHandleResponse(resp *http.Response) (RestoreS } // SetSecret - Sets a secret in a specified key vault. +// +// The SET operation adds a secret to the Azure Key Vault. If the named secret +// already exists, Azure Key Vault creates a new version of that secret. This +// operation requires the secrets/set permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 @@ -624,6 +667,11 @@ func (client *Client) setSecretHandleResponse(resp *http.Response) (SetSecretRes } // UpdateSecretProperties - Updates the attributes associated with a specified secret in a given key vault. +// +// The UPDATE operation changes specified attributes of an existing stored secret. +// Attributes that are not specified in the request are left unchanged. The value +// of a secret itself cannot be changed. This operation requires the secrets/set +// permission. // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 7.5 diff --git a/sdk/security/keyvault/azsecrets/internal/transforms.go b/sdk/security/keyvault/azsecrets/internal/transforms.go index 0d6d8afea579..5600757eaeb4 100644 --- a/sdk/security/keyvault/azsecrets/internal/transforms.go +++ b/sdk/security/keyvault/azsecrets/internal/transforms.go @@ -43,4 +43,6 @@ func main() { // remove Max Results parameter regexReplace("options.go", `(?:\/\/.*\s)+\sMaxresults \*int32`, `// placeholder for future optional parameters`) regexReplace("client.go", `\sif options != nil && options.Maxresults != nil \{\s+.+\)\s+\}\s`, "") + + regexReplace("client.go", `"strconv"`, "") } diff --git a/sdk/security/keyvault/azsecrets/models.go b/sdk/security/keyvault/azsecrets/models.go index d46dc3d48bd4..1b162ea7dc0c 100644 --- a/sdk/security/keyvault/azsecrets/models.go +++ b/sdk/security/keyvault/azsecrets/models.go @@ -78,11 +78,13 @@ type DeletedSecretProperties struct { // DeletedSecretPropertiesListResult - The deleted secret list result type DeletedSecretPropertiesListResult struct { - // REQUIRED; The DeletedSecretItem items on this page - Value []*DeletedSecretProperties - - // The link to the next page of items + // READ-ONLY; The URL to get the next set of deleted secrets. NextLink *string + + // READ-ONLY; A response message containing a list of deleted secrets in the key vault along with a link to the next page + // of + // deleted secrets. + Value []*DeletedSecretProperties } // RestoreSecretParameters - The secret restore parameters. @@ -166,11 +168,12 @@ type SecretProperties struct { // SecretPropertiesListResult - The secret list result. type SecretPropertiesListResult struct { - // REQUIRED; The SecretItem items on this page - Value []*SecretProperties - - // The link to the next page of items + // READ-ONLY; The URL to get the next set of secrets. NextLink *string + + // READ-ONLY; A response message containing a list of secrets in the key vault along with a link to the next page of + // secrets. + Value []*SecretProperties } // SetSecretParameters - The secret set parameters. diff --git a/sdk/security/keyvault/azsecrets/tsp-location.yaml b/sdk/security/keyvault/azsecrets/tsp-location.yaml index c56dd7988dcb..64c72a3f2de0 100644 --- a/sdk/security/keyvault/azsecrets/tsp-location.yaml +++ b/sdk/security/keyvault/azsecrets/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/keyvault/Security.KeyVault.Secrets -commit: 710421cf3ba21c688e97cc9e7ab75c30270e5d3d +commit: 84a5e77596f6499df90493dacb828c480f26542e repo: Azure/azure-rest-api-specs additionalDirectories: