From 52ec1bd15ff1d0242dcd4bbd383b61c1aae9ab15 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 20 Oct 2025 06:42:14 +0000 Subject: [PATCH 1/4] Regenerate repository SDK with TypeSpec build 20251019.2 --- ...ient-csharp-mgmt-emitter-package-lock.json | 209 +++++++++--------- ...tp-client-csharp-mgmt-emitter-package.json | 21 +- 2 files changed, 116 insertions(+), 114 deletions(-) diff --git a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json index 96c2e62aba1e..5d6829fa1b43 100644 --- a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json +++ b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json @@ -5,39 +5,40 @@ "packages": { "": { "dependencies": { - "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251017.1" + "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251019.2" }, "devDependencies": { - "@azure-tools/typespec-azure-core": "0.60.0", - "@azure-tools/typespec-azure-resource-manager": "0.60.0", - "@azure-tools/typespec-azure-rulesets": "0.60.0", - "@azure-tools/typespec-client-generator-core": "0.60.0", + "@azure-tools/typespec-azure-core": "0.61.0", + "@azure-tools/typespec-azure-resource-manager": "0.61.0", + "@azure-tools/typespec-azure-rulesets": "0.61.0", + "@azure-tools/typespec-client-generator-core": "0.61.0", "@azure-tools/typespec-liftr-base": "0.8.0", - "@typespec/compiler": "1.4.0", - "@typespec/http": "1.4.0", - "@typespec/openapi": "1.4.0", - "@typespec/rest": "0.74.0", - "@typespec/versioning": "0.74.0" + "@typespec/compiler": "1.5.0", + "@typespec/http": "1.5.0", + "@typespec/http-client-csharp": "1.0.0-alpha.20251017.1", + "@typespec/openapi": "1.5.0", + "@typespec/rest": "0.75.0", + "@typespec/versioning": "0.75.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.60.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.60.0.tgz", - "integrity": "sha512-Pmm7blxnEZZ7lhMJWWsiIqMrFthaCK6uu7f+ONN7dq0Mjc/O9w8+43tAIXwnGz1OKAWmiToh3EDbaxeWyt/FhQ==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.61.0.tgz", + "integrity": "sha512-sqOYBUghAtVMBiAWwT3fMRVSDNwR7IU3AQ96n/ErhAthwWjTe7PFVfK/MPjpI1mO3cdyLeS2DGyI3gt/waWP4g==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0", - "@typespec/http": "^1.4.0", - "@typespec/rest": "^0.74.0" + "@typespec/compiler": "^1.5.0", + "@typespec/http": "^1.5.0", + "@typespec/rest": "^0.75.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.60.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.60.0.tgz", - "integrity": "sha512-u0gqgSO5lIcpZN11MBAmRnR7kM1eoBLO8cKB86bXrxLt2vAkYpuL4hWp0A+QJjQy/YI5rrijeBF0visqBJnR4A==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.61.0.tgz", + "integrity": "sha512-m/M6AareRXacDwyR82g9DqMppfX0eEsv0/q4PW2Lii7wGVzFiiU6fLqsiWBdIHl7GaKszTRtZXNRk/IL9HV8Lw==", "dev": true, "license": "MIT", "dependencies": { @@ -48,34 +49,34 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.60.0", - "@typespec/compiler": "^1.4.0", - "@typespec/http": "^1.4.0", - "@typespec/openapi": "^1.4.0", - "@typespec/rest": "^0.74.0", - "@typespec/versioning": "^0.74.0" + "@azure-tools/typespec-azure-core": "^0.61.0", + "@typespec/compiler": "^1.5.0", + "@typespec/http": "^1.5.0", + "@typespec/openapi": "^1.5.0", + "@typespec/rest": "^0.75.0", + "@typespec/versioning": "^0.75.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "version": "0.60.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.60.0.tgz", - "integrity": "sha512-4sx9StBWkmnBfLJ9b23RSwCs0TkTElaU9+6a/cS6JS0F7UggP/KLQd6LG59D0u9ByXM2x9pvYPO8l/K7UOXoPg==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.61.0.tgz", + "integrity": "sha512-EWArbj6dgTz7Xi0mAkp0ru6PoWqfXLHlk8Kt7BzVcHCPojBYK14JW9RYSxBta+h2fAEQTSQu+X1r7Y7PhJE8rA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.60.0", - "@azure-tools/typespec-azure-resource-manager": "^0.60.0", - "@azure-tools/typespec-client-generator-core": "^0.60.0", - "@typespec/compiler": "^1.4.0" + "@azure-tools/typespec-azure-core": "^0.61.0", + "@azure-tools/typespec-azure-resource-manager": "^0.61.0", + "@azure-tools/typespec-client-generator-core": "^0.61.0", + "@typespec/compiler": "^1.5.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.60.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.60.0.tgz", - "integrity": "sha512-JV9uiqxDCzVVFeMctm4ebmUI4982B3dCdKx0nmonjfRf9a2/MXilEKExPIaNVR3ZqbFPXM/IepheY8t9YZNqSQ==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.61.0.tgz", + "integrity": "sha512-xm6HXmO2vFJ0BBKrkWGXknNyzhEYQ7eUFhngFMy1Mz7vCTTAprjA/jvtC6GpgjrKwVbmt1aQ0JyGmVKEiwWsMg==", "license": "MIT", "dependencies": { "change-case": "~5.4.4", @@ -86,16 +87,16 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.60.0", - "@typespec/compiler": "^1.4.0", - "@typespec/events": "^0.74.0", - "@typespec/http": "^1.4.0", - "@typespec/openapi": "^1.4.0", - "@typespec/rest": "^0.74.0", - "@typespec/sse": "^0.74.0", - "@typespec/streams": "^0.74.0", - "@typespec/versioning": "^0.74.0", - "@typespec/xml": "^0.74.0" + "@azure-tools/typespec-azure-core": "^0.61.0", + "@typespec/compiler": "^1.5.0", + "@typespec/events": "^0.75.0", + "@typespec/http": "^1.5.0", + "@typespec/openapi": "^1.5.0", + "@typespec/rest": "^0.75.0", + "@typespec/sse": "^0.75.0", + "@typespec/streams": "^0.75.0", + "@typespec/versioning": "^0.75.0", + "@typespec/xml": "^0.75.0" } }, "node_modules/@azure-tools/typespec-liftr-base": { @@ -105,21 +106,21 @@ "dev": true }, "node_modules/@azure-typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250929.3", - "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250929.3.tgz", - "integrity": "sha512-sBMshcyPd4A9wK0Y8HWOtbNq3F+hubhbVzfSfsKF1HNxie42wwfs6+aCViCI9RajEvYQNRpC5guQcsmoT9e6VA==", + "version": "1.0.0-alpha.20251017.2", + "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251017.2.tgz", + "integrity": "sha512-cIiqieGRW9R2Ok5Wk3OaAiny4hAQij2J3Enu/t1fAgKYwMkOlnMiIZgqcxQY79dhSvxm2FWMOIyZA6uGpY/goQ==", "license": "MIT", "dependencies": { - "@typespec/http-client-csharp": "1.0.0-alpha.20250929.3" + "@typespec/http-client-csharp": "1.0.0-alpha.20251017.1" } }, "node_modules/@azure-typespec/http-client-csharp-mgmt": { - "version": "1.0.0-alpha.20251017.1", - "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp-mgmt/-/http-client-csharp-mgmt-1.0.0-alpha.20251017.1.tgz", - "integrity": "sha512-GB0g2jh+oTVG1rH/n6vELyN8ScorYVMegTrH2/7+QdFQji31uKQO/0wjmnCL4Xpif3yQciQBg7VP+iRWJHi0DQ==", + "version": "1.0.0-alpha.20251019.2", + "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp-mgmt/-/http-client-csharp-mgmt-1.0.0-alpha.20251019.2.tgz", + "integrity": "sha512-gPkNiRC+HmcTLb8HfDNp0SQpQtJdtfNPtg+HXZ10qow3kwNSUyaBMS8eKkJPk77rUzj5/kxwSCMrXKlZBrbcAg==", "license": "MIT", "dependencies": { - "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250929.3" + "@azure-typespec/http-client-csharp": "1.0.0-alpha.20251017.2" } }, "node_modules/@babel/code-frame": { @@ -539,9 +540,9 @@ } }, "node_modules/@typespec/compiler": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.4.0.tgz", - "integrity": "sha512-/AFiU3ImuhH/vHKzSGv7I2peewdJ7YLhgMCfFDNk6Ae0a5Ylrc8R1GOATVilisEPBFG9lnjHn3uUcyaZs5VWRw==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.5.0.tgz", + "integrity": "sha512-REJgZOEZ9g9CC72GGT0+nLbjW+5WVlCfm1d6w18N5RsUo7vLXs8IPXwq7xZJzoqU99Q9B4keqzPuTU4OrDUTrA==", "license": "MIT", "dependencies": { "@babel/code-frame": "~7.27.1", @@ -571,29 +572,29 @@ } }, "node_modules/@typespec/events": { - "version": "0.74.0", - "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.74.0.tgz", - "integrity": "sha512-CY6JTtheMKAUlxiPmwx2fLIAWEwezsXmQYUMRhyuW44Q73unQIkexE43LUnNWOJSZckYucqUp+ihXh7jxzWeVQ==", + "version": "0.75.0", + "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.75.0.tgz", + "integrity": "sha512-V7unXnj+sZoa/1wQG8G6x2TiQqotx18S/qFbDzdfJRPCVpH/Z3xIpppce4jTZALXT97tKZK5GDHijn2zWuWWxg==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0" + "@typespec/compiler": "^1.5.0" } }, "node_modules/@typespec/http": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.4.0.tgz", - "integrity": "sha512-Y0PDDtBu+oZnwivfhbL0lN6Mk3QiCxZ66DgB5kFjcgKNpnXf0u440PPyaL42a8lbchzz5lVwz+cinyIMI89FIQ==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.5.0.tgz", + "integrity": "sha512-52XLXwqSY2SY6nSvfkiTsNiJzlMeIAZ6MFIVJ5YkoibA21TNAP4DtjTZgC2GieZLY2NNN/rqDCqBX+DyWqTrfQ==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0", - "@typespec/streams": "^0.74.0" + "@typespec/compiler": "^1.5.0", + "@typespec/streams": "^0.75.0" }, "peerDependenciesMeta": { "@typespec/streams": { @@ -602,98 +603,98 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250929.3", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250929.3.tgz", - "integrity": "sha512-Y2c8Z5GdcOxUubrmhU5rHF66P5+i0UI/Izoui62W0KXVca5vQZiN+ekuwjdZiaz57QoU8Nhk/QNmMTJwtzjk+w==", + "version": "1.0.0-alpha.20251017.1", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251017.1.tgz", + "integrity": "sha512-GKzUNKkoB72djUYzIZRvMySX2+j33wqh8QsD+BDAcu/RYj3OT8k1EXJKPKYA6k55uTHIIjg8ZWAjFPdhItC8Dw==", "license": "MIT", "peerDependencies": { - "@azure-tools/typespec-client-generator-core": ">=0.60.0 < 0.61.0 || ~0.61.0-0", - "@typespec/compiler": "^1.4.0", - "@typespec/http": "^1.4.0", - "@typespec/openapi": "^1.4.0", - "@typespec/rest": ">=0.74.0 <0.75.0 || ~0.75.0-0", - "@typespec/streams": ">=0.74.0 <0.75.0 || ~0.75.0-0", - "@typespec/versioning": ">=0.74.0 <0.75.0 || ~0.75.0-0" + "@azure-tools/typespec-client-generator-core": ">=0.61.0 < 0.62.0 || ~0.62.0-0", + "@typespec/compiler": "^1.5.0", + "@typespec/http": "^1.5.0", + "@typespec/openapi": "^1.5.0", + "@typespec/rest": ">=0.75.0 <0.76.0 || ~0.76.0-0", + "@typespec/streams": ">=0.75.0 <0.76.0 || ~0.76.0-0", + "@typespec/versioning": ">=0.75.0 <0.76.0 || ~0.76.0-0" } }, "node_modules/@typespec/openapi": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.4.0.tgz", - "integrity": "sha512-ZfrCsmZG/Zt1laLaWC0pKvnZr4jqrm/YS/YuZe/gVrSYKBxGLopXle7H0wrSSMYkIVCNCLiC68/HqRxV6XTfoA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.5.0.tgz", + "integrity": "sha512-27sXkSK2r1sAmVMLv+pwlN/Cm+yg9nEK8iuGyJRuEkBk7hcsJDbTnBlsEvlRTI8DqljtzA7YECDHBLK88zZHeg==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0", - "@typespec/http": "^1.4.0" + "@typespec/compiler": "^1.5.0", + "@typespec/http": "^1.5.0" } }, "node_modules/@typespec/rest": { - "version": "0.74.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.74.0.tgz", - "integrity": "sha512-dE+Xmv01AQ7m8jUvEbGsUQLSVo3sLzMpnHRbQEOnJX42oDqtIsz/2GEOXKQpNm1AKBISK66E2FFB5boz999Ziw==", + "version": "0.75.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.75.0.tgz", + "integrity": "sha512-rQ+RP0kcrKWjbpCIkBd8hpxYSNc3CfQxl0MLP1+MYGRHlHL8ss4xbwdANIYZXZZ2i2Hqt19B7cEUGD4MLoCHvw==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0", - "@typespec/http": "^1.4.0" + "@typespec/compiler": "^1.5.0", + "@typespec/http": "^1.5.0" } }, "node_modules/@typespec/sse": { - "version": "0.74.0", - "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.74.0.tgz", - "integrity": "sha512-+m7/elbGp7q/kqCGaBRj8v8wVMWKVEV8AsZOjf1PY2MkMUrux9ivOijBIktgoLBXDn+ocO2qVfFrHWG2slZSaw==", + "version": "0.75.0", + "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.75.0.tgz", + "integrity": "sha512-8iODUY3C/0hR9sTzyHeTgYfZkKeqZM+/P0OmN1ZWlLUokXQ67yydGXIqnjl+yaeuntwN8H2DDwLguU15c+j+UQ==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0", - "@typespec/events": "^0.74.0", - "@typespec/http": "^1.4.0", - "@typespec/streams": "^0.74.0" + "@typespec/compiler": "^1.5.0", + "@typespec/events": "^0.75.0", + "@typespec/http": "^1.5.0", + "@typespec/streams": "^0.75.0" } }, "node_modules/@typespec/streams": { - "version": "0.74.0", - "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.74.0.tgz", - "integrity": "sha512-LIWizQgzGt8qN8ravte4DrPLPNOk9ge73bV9Us2TOECagTVQWwgMVy7+o/Beff3sOLQO/sEOwfzvmnNpSlauHg==", + "version": "0.75.0", + "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.75.0.tgz", + "integrity": "sha512-ubvxCN+SZwN9aEarz8CPtMJgnopeu8dXyut47q0FAPp9nykmXy7s+dmsopR+7OX0Fhcnh8ZFYTQcJzJ3QftOiQ==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0" + "@typespec/compiler": "^1.5.0" } }, "node_modules/@typespec/versioning": { - "version": "0.74.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.74.0.tgz", - "integrity": "sha512-eFIa23tycWJgv3Lxyu6jUlRi02dhtQE4Jjx3Ui5vEbwHW8pMEzuyF7ALt1c+V9HOLkfDkS4dJkiOVIoikZHPvQ==", + "version": "0.75.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.75.0.tgz", + "integrity": "sha512-wdLcVx5UW4WRks/OXfqLiaDTtWfAWgv/nj69u99gRJU6iY9ExEvK5x9NQszZQKYnu6tM7nkoYMg4zu+7YBUBaw==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0" + "@typespec/compiler": "^1.5.0" } }, "node_modules/@typespec/xml": { - "version": "0.74.0", - "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.74.0.tgz", - "integrity": "sha512-NiXatOfpyPxU94f2tEBAygxJeS7CvIr5lvnfZkC0tUHwkiJeLrI1jt13kDVB5CE6zNK6I3d7c37xsQs9WXGFAQ==", + "version": "0.75.0", + "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.75.0.tgz", + "integrity": "sha512-JVafN1nZE3BcQrKbaAFVWw/IleTRdsJpwT3oZ2m7EfWnG30sKtoR9inF9dRoW+XXIjNzCfeYqjkwzEkEnIrCww==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.4.0" + "@typespec/compiler": "^1.5.0" } }, "node_modules/ajv": { diff --git a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json index 5ac34030a174..4f0984434c32 100644 --- a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json +++ b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json @@ -1,18 +1,19 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251017.1" + "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251019.2" }, "devDependencies": { - "@azure-tools/typespec-azure-core": "0.60.0", - "@azure-tools/typespec-azure-resource-manager": "0.60.0", - "@azure-tools/typespec-azure-rulesets": "0.60.0", - "@azure-tools/typespec-client-generator-core": "0.60.0", + "@azure-tools/typespec-azure-core": "0.61.0", + "@azure-tools/typespec-azure-resource-manager": "0.61.0", + "@azure-tools/typespec-azure-rulesets": "0.61.0", + "@azure-tools/typespec-client-generator-core": "0.61.0", "@azure-tools/typespec-liftr-base": "0.8.0", - "@typespec/compiler": "1.4.0", - "@typespec/http": "1.4.0", - "@typespec/openapi": "1.4.0", - "@typespec/rest": "0.74.0", - "@typespec/versioning": "0.74.0" + "@typespec/compiler": "1.5.0", + "@typespec/http": "1.5.0", + "@typespec/http-client-csharp": "1.0.0-alpha.20251017.1", + "@typespec/openapi": "1.5.0", + "@typespec/rest": "0.75.0", + "@typespec/versioning": "0.75.0" } } \ No newline at end of file From 48a610b1d00a6dcf6b9b526e06ce02f1fcbd7613 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 20 Oct 2025 06:57:38 +0000 Subject: [PATCH 2/4] Update SDK code mo_sc_3 --- .../ArmPlanetaryComputerModelFactory.cs | 2 +- ...ryComputerGeoCatalogPatch.Serialization.cs | 15 ++++++--- .../PlanetaryComputerGeoCatalogPatch.cs | 33 ++++++++++++++++--- 3 files changed, 40 insertions(+), 10 deletions(-) diff --git a/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/ArmPlanetaryComputerModelFactory.cs b/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/ArmPlanetaryComputerModelFactory.cs index 8b69806809f6..91bea242066e 100644 --- a/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/ArmPlanetaryComputerModelFactory.cs +++ b/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/ArmPlanetaryComputerModelFactory.cs @@ -58,7 +58,7 @@ public static PlanetaryComputerGeoCatalogProperties PlanetaryComputerGeoCatalogP /// Resource tags. /// The managed service identity properties to update. /// A new instance for mocking. - public static PlanetaryComputerGeoCatalogPatch PlanetaryComputerGeoCatalogPatch(IDictionary tags = default, ManagedServiceIdentity identity = default) + public static PlanetaryComputerGeoCatalogPatch PlanetaryComputerGeoCatalogPatch(IDictionary tags = default, BinaryData identity = default) { tags ??= new ChangeTrackingDictionary(); diff --git a/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.Serialization.cs b/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.Serialization.cs index 9396356bcbfe..8ac380e7e5fa 100644 --- a/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.Serialization.cs +++ b/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.Serialization.cs @@ -8,10 +8,8 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; -using System.Text; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.Models; using Azure.ResourceManager.PlanetaryComputer; namespace Azure.ResourceManager.PlanetaryComputer.Models @@ -56,7 +54,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"u8); - ((IJsonModel)Identity).Write(writer, options); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Identity); +#else + using (JsonDocument document = JsonDocument.Parse(Identity)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif } if (options.Format != "W" && _additionalBinaryDataProperties != null) { @@ -101,7 +106,7 @@ internal static PlanetaryComputerGeoCatalogPatch DeserializePlanetaryComputerGeo return null; } IDictionary tags = default; - ManagedServiceIdentity identity = default; + BinaryData identity = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -132,7 +137,7 @@ internal static PlanetaryComputerGeoCatalogPatch DeserializePlanetaryComputerGeo { continue; } - identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerPlanetaryComputerContext.Default); + identity = BinaryData.FromString(prop.Value.GetRawText()); continue; } if (options.Format != "W") diff --git a/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.cs b/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.cs index 1babbb70fe65..e489817dc137 100644 --- a/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.cs +++ b/sdk/planetarycomputer/Azure.ResourceManager.PlanetaryComputer/src/Generated/Models/PlanetaryComputerGeoCatalogPatch.cs @@ -7,7 +7,7 @@ using System; using System.Collections.Generic; -using Azure.ResourceManager.Models; +using System.Text.Json; using Azure.ResourceManager.PlanetaryComputer; namespace Azure.ResourceManager.PlanetaryComputer.Models @@ -28,7 +28,7 @@ public PlanetaryComputerGeoCatalogPatch() /// Resource tags. /// The managed service identity properties to update. /// Keeps track of any properties unknown to the library. - internal PlanetaryComputerGeoCatalogPatch(IDictionary tags, ManagedServiceIdentity identity, IDictionary additionalBinaryDataProperties) + internal PlanetaryComputerGeoCatalogPatch(IDictionary tags, BinaryData identity, IDictionary additionalBinaryDataProperties) { Tags = tags; Identity = identity; @@ -38,7 +38,32 @@ internal PlanetaryComputerGeoCatalogPatch(IDictionary tags, Mana /// Resource tags. public IDictionary Tags { get; } - /// The managed service identity properties to update. - public ManagedServiceIdentity Identity { get; set; } + /// + /// The managed service identity properties to update. + /// To assign an object to this property use . + /// To assign an already formatted json string to this property use . + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Identity { get; set; } } } From a77ea34744879e54150c14d0a568b2916f951f09 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 20 Oct 2025 06:58:53 +0000 Subject: [PATCH 3/4] Update SDK code co_du_1 --- .../Generated/ArmDellStorageModelFactory.cs | 3 +- .../DellFileSystemPatch.Serialization.cs | 15 ++++++--- .../Generated/Models/DellFileSystemPatch.cs | 33 ++++++++++++++++--- 3 files changed, 41 insertions(+), 10 deletions(-) diff --git a/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/ArmDellStorageModelFactory.cs b/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/ArmDellStorageModelFactory.cs index ebd12f7d375e..e6ff83a35c46 100644 --- a/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/ArmDellStorageModelFactory.cs +++ b/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/ArmDellStorageModelFactory.cs @@ -55,6 +55,7 @@ public static DellFileSystemData DellFileSystemData(ResourceIdentifier id = defa /// OneFS url. /// DellReferenceNumber of the resource. /// EncryptionProperties of the resource. + /// is null. /// A new instance for mocking. public static DellFileSystemProperties DellFileSystemProperties(DellFileSystemCapacity capacity = default, DellFileSystemMarketplaceDetails marketplace = default, DellFileSystemProvisioningState? provisioningState = default, ResourceIdentifier delegatedSubnetId = default, string delegatedSubnetCidr = default, string userEmail = default, string fileSystemId = default, string smartConnectFqdn = default, Uri oneFsUri = default, string dellReferenceNumber = default, DellFileSystemEncryptionProperties encryption = default) { @@ -104,7 +105,7 @@ public static DellFileSystemMarketplaceDetails DellFileSystemMarketplaceDetails( /// Resource tags. /// The updatable properties of the FileSystemResource. /// A new instance for mocking. - public static DellFileSystemPatch DellFileSystemPatch(ManagedServiceIdentity identity = default, IDictionary tags = default, DellFileSystemPatchProperties properties = default) + public static DellFileSystemPatch DellFileSystemPatch(BinaryData identity = default, IDictionary tags = default, DellFileSystemPatchProperties properties = default) { tags ??= new ChangeTrackingDictionary(); diff --git a/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.Serialization.cs b/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.Serialization.cs index 8c1eabca306c..401224253389 100644 --- a/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.Serialization.cs +++ b/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.Serialization.cs @@ -8,11 +8,9 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; -using System.Text; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Dell.Storage; -using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Dell.Storage.Models { @@ -40,7 +38,14 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"u8); - ((IJsonModel)Identity).Write(writer, options); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Identity); +#else + using (JsonDocument document = JsonDocument.Parse(Identity)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif } if (Optional.IsCollectionDefined(Tags)) { @@ -105,7 +110,7 @@ internal static DellFileSystemPatch DeserializeDellFileSystemPatch(JsonElement e { return null; } - ManagedServiceIdentity identity = default; + BinaryData identity = default; IDictionary tags = default; DellFileSystemPatchProperties properties = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); @@ -117,7 +122,7 @@ internal static DellFileSystemPatch DeserializeDellFileSystemPatch(JsonElement e { continue; } - identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerDellStorageContext.Default); + identity = BinaryData.FromString(prop.Value.GetRawText()); continue; } if (prop.NameEquals("tags"u8)) diff --git a/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.cs b/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.cs index 2d17c018f3f5..1d0b59d2fa57 100644 --- a/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.cs +++ b/sdk/dellstorage/Azure.ResourceManager.Dell.Storage/src/Generated/Models/DellFileSystemPatch.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; +using System.Text.Json; using Azure.ResourceManager.Dell.Storage; -using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Dell.Storage.Models { @@ -29,7 +29,7 @@ public DellFileSystemPatch() /// Resource tags. /// The updatable properties of the FileSystemResource. /// Keeps track of any properties unknown to the library. - internal DellFileSystemPatch(ManagedServiceIdentity identity, IDictionary tags, DellFileSystemPatchProperties properties, IDictionary additionalBinaryDataProperties) + internal DellFileSystemPatch(BinaryData identity, IDictionary tags, DellFileSystemPatchProperties properties, IDictionary additionalBinaryDataProperties) { Identity = identity; Tags = tags; @@ -37,8 +37,33 @@ internal DellFileSystemPatch(ManagedServiceIdentity identity, IDictionary The managed service identities assigned to this resource. - public ManagedServiceIdentity Identity { get; set; } + /// + /// The managed service identities assigned to this resource. + /// To assign an object to this property use . + /// To assign an already formatted json string to this property use . + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Identity { get; set; } /// Resource tags. public IDictionary Tags { get; } From 6334a5a2451e06f26773e87fe8e3ced6d5c0b6ad Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 20 Oct 2025 06:59:28 +0000 Subject: [PATCH 4/4] Update SDK code ea_mo_2 --- .../Generated/ArmKubernetesModelFactory.cs | 2 +- .../ConnectedClusterData.Serialization.cs | 13 +++++-- .../src/Generated/ConnectedClusterData.cs | 34 ++++++++++++++++--- .../AzureResourceManagerKubernetesContext.cs | 2 -- ...rmInformaticaDataManagementModelFactory.cs | 2 ++ 5 files changed, 43 insertions(+), 10 deletions(-) diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ArmKubernetesModelFactory.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ArmKubernetesModelFactory.cs index 4e3903196f18..88cdb3e95c83 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ArmKubernetesModelFactory.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ArmKubernetesModelFactory.cs @@ -28,7 +28,7 @@ public static partial class ArmKubernetesModelFactory /// The identity of the connected cluster. /// The kind of connected cluster. /// A new instance for mocking. - public static ConnectedClusterData ConnectedClusterData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, ConnectedClusterProperties properties = default, ManagedServiceIdentity identity = default, ConnectedClusterKind? kind = default) + public static ConnectedClusterData ConnectedClusterData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, ConnectedClusterProperties properties = default, BinaryData identity = default, ConnectedClusterKind? kind = default) { tags ??= new ChangeTrackingDictionary(); diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.Serialization.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.Serialization.cs index 69ba1af8e2ac..fc91f08fc83a 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.Serialization.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.Serialization.cs @@ -47,7 +47,14 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("properties"u8); writer.WriteObjectValue(Properties, options); writer.WritePropertyName("identity"u8); - ((IJsonModel)Identity).Write(writer, options); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Identity); +#else + using (JsonDocument document = JsonDocument.Parse(Identity)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif if (Optional.IsDefined(Kind)) { writer.WritePropertyName("kind"u8); @@ -88,7 +95,7 @@ internal static ConnectedClusterData DeserializeConnectedClusterData(JsonElement IDictionary tags = default; AzureLocation location = default; ConnectedClusterProperties properties = default; - ManagedServiceIdentity identity = default; + BinaryData identity = default; ConnectedClusterKind? kind = default; foreach (var prop in element.EnumerateObject()) { @@ -157,7 +164,7 @@ internal static ConnectedClusterData DeserializeConnectedClusterData(JsonElement } if (prop.NameEquals("identity"u8)) { - identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerKubernetesContext.Default); + identity = BinaryData.FromString(prop.Value.GetRawText()); continue; } if (prop.NameEquals("kind"u8)) diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.cs index 67601df1927a..968fb3a1500a 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/ConnectedClusterData.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Kubernetes.Models; using Azure.ResourceManager.Models; @@ -24,7 +25,7 @@ public partial class ConnectedClusterData : TrackedResourceData /// Describes the connected cluster resource properties. /// The identity of the connected cluster. /// or is null. - public ConnectedClusterData(AzureLocation location, ConnectedClusterProperties properties, ManagedServiceIdentity identity) : base(location) + public ConnectedClusterData(AzureLocation location, ConnectedClusterProperties properties, BinaryData identity) : base(location) { Argument.AssertNotNull(properties, nameof(properties)); Argument.AssertNotNull(identity, nameof(identity)); @@ -44,7 +45,7 @@ public ConnectedClusterData(AzureLocation location, ConnectedClusterProperties p /// Describes the connected cluster resource properties. /// The identity of the connected cluster. /// The kind of connected cluster. - internal ConnectedClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, ConnectedClusterProperties properties, ManagedServiceIdentity identity, ConnectedClusterKind? kind) : base(id, name, resourceType, systemData, tags, location) + internal ConnectedClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, ConnectedClusterProperties properties, BinaryData identity, ConnectedClusterKind? kind) : base(id, name, resourceType, systemData, tags, location) { _additionalBinaryDataProperties = additionalBinaryDataProperties; Properties = properties; @@ -55,8 +56,33 @@ internal ConnectedClusterData(ResourceIdentifier id, string name, ResourceType r /// Describes the connected cluster resource properties. public ConnectedClusterProperties Properties { get; set; } - /// The identity of the connected cluster. - public ManagedServiceIdentity Identity { get; set; } + /// + /// The identity of the connected cluster. + /// To assign an object to this property use . + /// To assign an already formatted json string to this property use . + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo"). + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\""). + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }). + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}"). + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Identity { get; set; } /// The kind of connected cluster. public ConnectedClusterKind? Kind { get; set; } diff --git a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/AzureResourceManagerKubernetesContext.cs b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/AzureResourceManagerKubernetesContext.cs index 353434302cd1..99bbbf97f26b 100644 --- a/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/AzureResourceManagerKubernetesContext.cs +++ b/sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/src/Generated/Models/AzureResourceManagerKubernetesContext.cs @@ -30,13 +30,11 @@ namespace Azure.ResourceManager.Kubernetes [ModelReaderWriterBuildable(typeof(Gateway))] [ModelReaderWriterBuildable(typeof(HybridConnectionConfig))] [ModelReaderWriterBuildable(typeof(ListClusterUserCredentialProperties))] - [ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))] [ModelReaderWriterBuildable(typeof(OidcIssuerProfile))] [ModelReaderWriterBuildable(typeof(SecurityProfile))] [ModelReaderWriterBuildable(typeof(SecurityProfileWorkloadIdentity))] [ModelReaderWriterBuildable(typeof(SystemComponent))] [ModelReaderWriterBuildable(typeof(SystemData))] - [ModelReaderWriterBuildable(typeof(UserAssignedIdentity))] public partial class AzureResourceManagerKubernetesContext : ModelReaderWriterContext { } diff --git a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs index 33f207bc0a8a..affc0c7f8788 100644 --- a/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs +++ b/sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/src/Generated/ArmInformaticaDataManagementModelFactory.cs @@ -266,6 +266,7 @@ public static InformaticaServerlessRuntimeData InformaticaServerlessRuntimeData( /// Serverless config properties. /// Serverless Runtime Tags. /// User context token for OBO flow. + /// or is null. /// A new instance for mocking. public static InformaticaServerlessRuntimeProperties InformaticaServerlessRuntimeProperties(InformaticaProvisioningState? provisioningState = default, string description = default, InformaticaPlatformType? platform = default, InformaticaApplicationType? applicationType = default, string computeUnits = default, string executionTimeout = default, string serverlessAccountLocation = default, InformaticaNetworkInterfaceConfiguration networkInterfaceConfiguration = default, IEnumerable advancedCustomProperties = default, string supplementaryFileLocation = default, ServerlessRuntimeConfigProperties serverlessRuntimeConfig = default, IEnumerable serverlessRuntimeTags = default, string userContextToken = default) { @@ -301,6 +302,7 @@ public static InformaticaServerlessRuntimeProperties InformaticaServerlessRuntim /// Serverless config properties. /// Serverless Runtime Tags. /// User context token for OBO flow. + /// is null. /// A new instance for mocking. public static ServerlessRuntimePropertiesUpdate ServerlessRuntimePropertiesUpdate(string description = default, InformaticaPlatformType? platform = default, InformaticaApplicationType? applicationType = default, string computeUnits = default, string executionTimeout = default, string serverlessAccountLocation = default, InformaticaNetworkInterfaceConfigurationUpdate networkInterfaceConfiguration = default, IEnumerable advancedCustomProperties = default, string supplementaryFileLocation = default, ServerlessRuntimeConfigPropertiesUpdate serverlessRuntimeConfig = default, IEnumerable serverlessRuntimeTags = default, string userContextToken = default) {