From 3bb7db62939564cf040007470f83f03c9f7f9b8b Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Wed, 6 Aug 2025 08:20:02 +0000 Subject: [PATCH 1/3] Update dependencies --- packages/autorest.python/package.json | 4 ++-- packages/typespec-python/package.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index a8b278fdcb..47dcf15322 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "~0.15.0", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} +} \ No newline at end of file diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 6d0d7ca6b8..7e951546e1 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -61,13 +61,13 @@ "@azure-tools/typespec-azure-resource-manager": ">=0.58.0 <1.0.0", "@azure-tools/typespec-autorest": ">=0.58.0 <1.0.0", "@azure-tools/typespec-azure-rulesets": ">=0.58.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.58.0 <1.0.0" + "@azure-tools/typespec-client-generator-core": ">=0.58.2 <1.0.0" }, "dependencies": { "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.15.0", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -85,7 +85,7 @@ "@azure-tools/typespec-azure-core": "~0.58.0", "@azure-tools/typespec-azure-rulesets": "~0.58.0", "@azure-tools/typespec-autorest": "~0.58.0", - "@azure-tools/typespec-client-generator-core": "~0.58.0", + "@azure-tools/typespec-client-generator-core": "~0.58.2", "@azure-tools/azure-http-specs": "0.1.0-alpha.23", "@typespec/http-specs": "0.1.0-alpha.24", "@typespec/spector": "0.1.0-alpha.16", @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} +} \ No newline at end of file From e99b0bb8c84028342745e7fc4ed81b073fbdb52f Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Wed, 6 Aug 2025 08:21:02 +0000 Subject: [PATCH 2/3] Update dependencies (2025-08-06 08:21:02) --- pnpm-lock.yaml | 63 +++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 008b26483e..6bf96b5c19 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: ~0.15.0 - version: 0.15.0(iurth4uuk4s6znzuuc7ncenk2q) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iodtvdh7wmj4yustldevb5shqi) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: ~0.15.0 - version: 0.15.0(iurth4uuk4s6znzuuc7ncenk2q) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iodtvdh7wmj4yustldevb5shqi) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -102,7 +102,7 @@ importers: version: 0.1.0-alpha.23(ifq2fsjnbc7uxdgj7txnegyrha) '@azure-tools/typespec-autorest': specifier: ~0.58.0 - version: 0.58.0(vddu6w2yloigenmssnpyjivoim) + version: 0.58.0(o4qnbq5n5azjfd2lucmxsk4r6a) '@azure-tools/typespec-azure-core': specifier: ~0.58.0 version: 0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))) @@ -111,10 +111,10 @@ importers: version: 0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi) '@azure-tools/typespec-azure-rulesets': specifier: ~0.58.0 - version: 0.58.0(@azure-tools/typespec-azure-core@0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))))(@azure-tools/typespec-azure-resource-manager@0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi))(@azure-tools/typespec-client-generator-core@0.58.0(x45n5zw7gau5qrhkw3k2dynjx4))(@typespec/compiler@1.2.1(@types/node@22.13.17)) + version: 0.58.0(@azure-tools/typespec-azure-core@0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))))(@azure-tools/typespec-azure-resource-manager@0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi))(@azure-tools/typespec-client-generator-core@0.58.2(x45n5zw7gau5qrhkw3k2dynjx4))(@typespec/compiler@1.2.1(@types/node@22.13.17)) '@azure-tools/typespec-client-generator-core': - specifier: ~0.58.0 - version: 0.58.0(x45n5zw7gau5qrhkw3k2dynjx4) + specifier: ~0.58.2 + version: 0.58.2(x45n5zw7gau5qrhkw3k2dynjx4) '@types/fs-extra': specifier: 11.0.4 version: 11.0.4 @@ -261,20 +261,20 @@ packages: '@azure-tools/typespec-client-generator-core': ^0.58.0 '@typespec/compiler': ^1.2.0 - '@azure-tools/typespec-client-generator-core@0.58.0': - resolution: {integrity: sha512-PK9WjPFXR14hrGyUwhstHuNVC4fkkQeNVHvvYhz3VaP6wh+iD7P3IOeIzzRJv/qSyv82t7BrVXdQAYir434ysw==} + '@azure-tools/typespec-client-generator-core@0.58.2': + resolution: {integrity: sha512-8kR5TUt4SBF/JmYRxIGYpPA00cRl0TEI6R01jC8vlYEdI28HezPbsXrN9atFXucZKtbqGTwe9hH8Mmfv7nvjJA==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-azure-core': ^0.58.0 - '@typespec/compiler': ^1.2.0 - '@typespec/events': ^0.72.0 - '@typespec/http': ^1.2.0 - '@typespec/openapi': ^1.2.0 - '@typespec/rest': ^0.72.0 - '@typespec/sse': ^0.72.0 - '@typespec/streams': ^0.72.0 - '@typespec/versioning': ^0.72.0 - '@typespec/xml': ^0.72.0 + '@typespec/compiler': ^1.2.1 + '@typespec/events': ^0.72.1 + '@typespec/http': ^1.2.1 + '@typespec/openapi': ^1.2.1 + '@typespec/rest': ^0.72.1 + '@typespec/sse': ^0.72.1 + '@typespec/streams': ^0.72.1 + '@typespec/versioning': ^0.72.1 + '@typespec/xml': ^0.72.1 '@azure/abort-controller@2.1.2': resolution: {integrity: sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==} @@ -1668,15 +1668,16 @@ packages: peerDependencies: '@typespec/compiler': ^1.2.1 - '@typespec/http-client-python@0.15.0': - resolution: {integrity: sha512-lnyg7bgzxdILhUV+HJGbKuRDphZipe7jJYfvFoklq0eapAFmgwf4gp/XMnnrFLs/++3QZ9QFVIyuqzMPW8yG+Q==} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz} + version: 0.15.0 engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.58.0 <1.0.0' '@azure-tools/typespec-azure-core': '>=0.58.0 <1.0.0' '@azure-tools/typespec-azure-resource-manager': '>=0.58.0 <1.0.0' '@azure-tools/typespec-azure-rulesets': '>=0.58.0 <1.0.0' - '@azure-tools/typespec-client-generator-core': '>=0.58.0 <1.0.0' + '@azure-tools/typespec-client-generator-core': '>=0.58.2 <1.0.0' '@typespec/compiler': ^1.2.1 '@typespec/events': '>=0.72.1 <1.0.0' '@typespec/http': ^1.2.1 @@ -4852,11 +4853,11 @@ snapshots: - '@typespec/streams' - supports-color - '@azure-tools/typespec-autorest@0.58.0(vddu6w2yloigenmssnpyjivoim)': + '@azure-tools/typespec-autorest@0.58.0(o4qnbq5n5azjfd2lucmxsk4r6a)': dependencies: '@azure-tools/typespec-azure-core': 0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))) '@azure-tools/typespec-azure-resource-manager': 0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi) - '@azure-tools/typespec-client-generator-core': 0.58.0(x45n5zw7gau5qrhkw3k2dynjx4) + '@azure-tools/typespec-client-generator-core': 0.58.2(x45n5zw7gau5qrhkw3k2dynjx4) '@typespec/compiler': 1.2.1(@types/node@22.13.17) '@typespec/http': 1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))) '@typespec/openapi': 1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17)))) @@ -4880,14 +4881,14 @@ snapshots: change-case: 5.4.4 pluralize: 8.0.0 - '@azure-tools/typespec-azure-rulesets@0.58.0(@azure-tools/typespec-azure-core@0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))))(@azure-tools/typespec-azure-resource-manager@0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi))(@azure-tools/typespec-client-generator-core@0.58.0(x45n5zw7gau5qrhkw3k2dynjx4))(@typespec/compiler@1.2.1(@types/node@22.13.17))': + '@azure-tools/typespec-azure-rulesets@0.58.0(@azure-tools/typespec-azure-core@0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))))(@azure-tools/typespec-azure-resource-manager@0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi))(@azure-tools/typespec-client-generator-core@0.58.2(x45n5zw7gau5qrhkw3k2dynjx4))(@typespec/compiler@1.2.1(@types/node@22.13.17))': dependencies: '@azure-tools/typespec-azure-core': 0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))) '@azure-tools/typespec-azure-resource-manager': 0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi) - '@azure-tools/typespec-client-generator-core': 0.58.0(x45n5zw7gau5qrhkw3k2dynjx4) + '@azure-tools/typespec-client-generator-core': 0.58.2(x45n5zw7gau5qrhkw3k2dynjx4) '@typespec/compiler': 1.2.1(@types/node@22.13.17) - '@azure-tools/typespec-client-generator-core@0.58.0(x45n5zw7gau5qrhkw3k2dynjx4)': + '@azure-tools/typespec-client-generator-core@0.58.2(x45n5zw7gau5qrhkw3k2dynjx4)': dependencies: '@azure-tools/typespec-azure-core': 0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))) '@typespec/compiler': 1.2.1(@types/node@22.13.17) @@ -6421,13 +6422,13 @@ snapshots: dependencies: '@typespec/compiler': 1.2.1(@types/node@22.13.17) - '@typespec/http-client-python@0.15.0(iurth4uuk4s6znzuuc7ncenk2q)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4NTU4NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.0.tgz(iodtvdh7wmj4yustldevb5shqi)': dependencies: - '@azure-tools/typespec-autorest': 0.58.0(vddu6w2yloigenmssnpyjivoim) + '@azure-tools/typespec-autorest': 0.58.0(o4qnbq5n5azjfd2lucmxsk4r6a) '@azure-tools/typespec-azure-core': 0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))) '@azure-tools/typespec-azure-resource-manager': 0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi) - '@azure-tools/typespec-azure-rulesets': 0.58.0(@azure-tools/typespec-azure-core@0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))))(@azure-tools/typespec-azure-resource-manager@0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi))(@azure-tools/typespec-client-generator-core@0.58.0(x45n5zw7gau5qrhkw3k2dynjx4))(@typespec/compiler@1.2.1(@types/node@22.13.17)) - '@azure-tools/typespec-client-generator-core': 0.58.0(x45n5zw7gau5qrhkw3k2dynjx4) + '@azure-tools/typespec-azure-rulesets': 0.58.0(@azure-tools/typespec-azure-core@0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))))(@azure-tools/typespec-azure-resource-manager@0.58.0(4vk45c5cb7kw5gc7tco2y6kqmi))(@azure-tools/typespec-client-generator-core@0.58.2(x45n5zw7gau5qrhkw3k2dynjx4))(@typespec/compiler@1.2.1(@types/node@22.13.17)) + '@azure-tools/typespec-client-generator-core': 0.58.2(x45n5zw7gau5qrhkw3k2dynjx4) '@typespec/compiler': 1.2.1(@types/node@22.13.17) '@typespec/events': 0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17)) '@typespec/http': 1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))) From da57891af5bd31d73482dbc2ac925b8198ec0c08 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Wed, 6 Aug 2025 08:25:51 +0000 Subject: [PATCH 3/3] Regenerate for typespec-python (2025-08-06 08:25:51) --- .../_generated/_operations/_operations.py | 10 +----- .../apikey/_operations/_operations.py | 10 +----- .../http/custom/_operations/_operations.py | 10 +----- .../oauth2/_operations/_operations.py | 10 +----- .../core/basic/_operations/_operations.py | 8 +---- .../operations/_operations.py | 8 +---- .../resources/operations/_operations.py | 35 +++---------------- .../_operations/_operations.py | 19 ++-------- .../_generated/_operations/_operations.py | 10 +----- .../apikey/_operations/_operations.py | 10 +----- .../http/custom/_operations/_operations.py | 10 +----- .../oauth2/_operations/_operations.py | 10 +----- .../_operations/_operations.py | 19 ++-------- 13 files changed, 18 insertions(+), 151 deletions(-) diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py index 104d8af49e..e04e5527ef 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py @@ -20,7 +20,6 @@ from azure.core.pipeline import PipelineResponse from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict from .. import models as _models from .._configuration import ApiKeyClientConfiguration @@ -43,17 +42,10 @@ def build_api_key_valid_request(**kwargs: Any) -> HttpRequest: def build_api_key_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/api-key/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _ApiKeyClientOperationsMixin( diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py index 104d8af49e..e04e5527ef 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/_operations/_operations.py @@ -20,7 +20,6 @@ from azure.core.pipeline import PipelineResponse from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict from .. import models as _models from .._configuration import ApiKeyClientConfiguration @@ -43,17 +42,10 @@ def build_api_key_valid_request(**kwargs: Any) -> HttpRequest: def build_api_key_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/api-key/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _ApiKeyClientOperationsMixin( diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py index 40dd4aa36d..66ff3016a7 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py @@ -20,7 +20,6 @@ from azure.core.pipeline import PipelineResponse from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict from .. import models as _models from .._configuration import CustomClientConfiguration @@ -43,17 +42,10 @@ def build_custom_valid_request(**kwargs: Any) -> HttpRequest: def build_custom_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/http/custom/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _CustomClientOperationsMixin( diff --git a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py index 7d7feb8aeb..9d0a349b41 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py @@ -20,7 +20,6 @@ from azure.core.pipeline import PipelineResponse from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict from .. import models as _models from .._configuration import OAuth2ClientConfiguration @@ -43,17 +42,10 @@ def build_oauth2_valid_request(**kwargs: Any) -> HttpRequest: def build_oauth2_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/oauth2/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _OAuth2ClientOperationsMixin( diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_operations/_operations.py index 08efd4facb..a8f2298830 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_operations/_operations.py @@ -164,12 +164,9 @@ def build_basic_list_request( def build_basic_delete_request(id: int, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01-preview")) - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/azure/core/basic/users/{id}" path_format_arguments = { @@ -181,10 +178,7 @@ def build_basic_delete_request(id: int, **kwargs: Any) -> HttpRequest: # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) def build_basic_export_request(id: int, *, format: str, **kwargs: Any) -> HttpRequest: diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py index 385a7ea850..489b9f2bd6 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/operations/_operations.py @@ -188,12 +188,9 @@ def build_lro_export_request( def build_lro_delete_request( resource_group_name: str, order_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01-preview")) - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Azure.ResourceManager.OperationTemplates/orders/{orderName}" path_format_arguments = { @@ -207,10 +204,7 @@ def build_lro_delete_request( # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) def build_optional_body_get_request( diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py index 869561404a..eb0a214656 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/operations/_operations.py @@ -144,12 +144,9 @@ def build_top_level_update_request( def build_top_level_delete_request( resource_group_name: str, top_level_tracked_resource_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01-preview")) - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/{topLevelTrackedResourceName}" path_format_arguments = { @@ -165,10 +162,7 @@ def build_top_level_delete_request( # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) def build_top_level_list_by_resource_group_request( # pylint: disable=name-too-long @@ -232,8 +226,6 @@ def build_top_level_action_sync_request( content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01-preview")) - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/{topLevelTrackedResourceName}/actionSync" path_format_arguments = { @@ -252,7 +244,6 @@ def build_top_level_action_sync_request( # Construct headers if content_type is not None: _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) @@ -375,12 +366,9 @@ def build_nested_delete_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01-preview")) - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/{topLevelTrackedResourceName}/nestedProxyResources/{nextedProxyResourceName}" path_format_arguments = { @@ -397,10 +385,7 @@ def build_nested_delete_request( # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) def build_nested_list_by_top_level_tracked_resource_request( # pylint: disable=name-too-long @@ -635,12 +620,9 @@ def build_extensions_resources_update_request( # pylint: disable=name-too-long def build_extensions_resources_delete_request( # pylint: disable=name-too-long resource_uri: str, extensions_resource_name: str, **kwargs: Any ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01-preview")) - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/{resourceUri}/providers/Azure.ResourceManager.Resources/extensionsResources/{extensionsResourceName}" path_format_arguments = { @@ -653,10 +635,7 @@ def build_extensions_resources_delete_request( # pylint: disable=name-too-long # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) def build_extensions_resources_list_by_scope_request( # pylint: disable=name-too-long @@ -778,12 +757,9 @@ def build_location_resources_update_request( def build_location_resources_delete_request( location: str, location_resource_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-01-preview")) - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/subscriptions/{subscriptionId}/providers/Azure.ResourceManager.Resources/locations/{location}/locationResources/{locationResourceName}" path_format_arguments = { @@ -797,10 +773,7 @@ def build_location_resources_delete_request( # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) def build_location_resources_list_by_location_request( # pylint: disable=name-too-long diff --git a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py index 17791e05ef..b3a11f1311 100644 --- a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py @@ -20,7 +20,6 @@ from azure.core.pipeline import PipelineResponse from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict from .. import models as _models from .._configuration import StatusCodeRangeClientConfiguration @@ -38,33 +37,19 @@ def build_status_code_range_error_response_status_code_in_range_request( # pylint: disable=name-too-long **kwargs: Any, ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/response/status-code-range/error-response-status-code-in-range" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_status_code_range_error_response_status_code404_request( # pylint: disable=name-too-long **kwargs: Any, ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/response/status-code-range/error-response-status-code-404" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _StatusCodeRangeClientOperationsMixin( diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py index c2c0f07f7d..dc89eb01e7 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key-subdir/authentication/api/key/subdir/_generated/_operations/_operations.py @@ -13,7 +13,6 @@ from corehttp.rest import HttpRequest, HttpResponse from corehttp.runtime import PipelineClient from corehttp.runtime.pipeline import PipelineResponse -from corehttp.utils import case_insensitive_dict from .. import models as _models from .._configuration import ApiKeyClientConfiguration @@ -36,17 +35,10 @@ def build_api_key_valid_request(**kwargs: Any) -> HttpRequest: def build_api_key_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/api-key/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _ApiKeyClientOperationsMixin( diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py index c2c0f07f7d..dc89eb01e7 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/_operations/_operations.py @@ -13,7 +13,6 @@ from corehttp.rest import HttpRequest, HttpResponse from corehttp.runtime import PipelineClient from corehttp.runtime.pipeline import PipelineResponse -from corehttp.utils import case_insensitive_dict from .. import models as _models from .._configuration import ApiKeyClientConfiguration @@ -36,17 +35,10 @@ def build_api_key_valid_request(**kwargs: Any) -> HttpRequest: def build_api_key_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/api-key/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _ApiKeyClientOperationsMixin( diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py index 9912506b03..1c66630593 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/_operations/_operations.py @@ -13,7 +13,6 @@ from corehttp.rest import HttpRequest, HttpResponse from corehttp.runtime import PipelineClient from corehttp.runtime.pipeline import PipelineResponse -from corehttp.utils import case_insensitive_dict from .. import models as _models from .._configuration import CustomClientConfiguration @@ -36,17 +35,10 @@ def build_custom_valid_request(**kwargs: Any) -> HttpRequest: def build_custom_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/http/custom/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _CustomClientOperationsMixin( diff --git a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py index b8c8eb4920..99577d85f4 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/_operations/_operations.py @@ -13,7 +13,6 @@ from corehttp.rest import HttpRequest, HttpResponse from corehttp.runtime import PipelineClient from corehttp.runtime.pipeline import PipelineResponse -from corehttp.utils import case_insensitive_dict from .. import models as _models from .._configuration import OAuth2ClientConfiguration @@ -36,17 +35,10 @@ def build_oauth2_valid_request(**kwargs: Any) -> HttpRequest: def build_oauth2_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/authentication/oauth2/invalid" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _OAuth2ClientOperationsMixin( diff --git a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py index a41ccae890..9ce5b023ba 100644 --- a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/_operations/_operations.py @@ -13,7 +13,6 @@ from corehttp.rest import HttpRequest, HttpResponse from corehttp.runtime import PipelineClient from corehttp.runtime.pipeline import PipelineResponse -from corehttp.utils import case_insensitive_dict from .. import models as _models from .._configuration import StatusCodeRangeClientConfiguration @@ -31,33 +30,19 @@ def build_status_code_range_error_response_status_code_in_range_request( # pylint: disable=name-too-long **kwargs: Any, ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/response/status-code-range/error-response-status-code-in-range" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) def build_status_code_range_error_response_status_code404_request( # pylint: disable=name-too-long **kwargs: Any, ) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - # Construct URL _url = "/response/status-code-range/error-response-status-code-404" - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, **kwargs) class _StatusCodeRangeClientOperationsMixin(