From 082e0148504cee87d36c9cad0d58e1301e1ba841 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Thu, 22 Jan 2026 11:59:04 +0800 Subject: [PATCH 1/2] fix python config --- .../RegistryTasks/readme.python.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/readme.python.md b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/readme.python.md index e18771b77d64..600f7c38ef1e 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/readme.python.md +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/readme.python.md @@ -4,7 +4,7 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. ``` yaml $(python) -title: ContainerRegistryManagementClient +title: ContainerRegistryTasksMgmtClient azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-containerregistrytasks @@ -15,7 +15,7 @@ clear-output-folder: true ``` yaml $(python) no-namespace-folders: true -output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistrytasks +output-folder: $(python-sdks-folder)/containerregistry/azure-mgmt-containerregistrytasks/azure/mgmt/containerregistrytasks ``` ``` yaml $(python) From f53ec4b19fac2495e3a57e6b59bfd8ca2d2150da Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Thu, 22 Jan 2026 13:26:46 +0800 Subject: [PATCH 2/2] update configuration for python --- .../RegistryTasks/back-compatible.tsp | 11 +++++++---- .../RegistryTasks/client.tsp | 2 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/back-compatible.tsp b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/back-compatible.tsp index fb57ff2e7b74..899859baca27 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/back-compatible.tsp +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/back-compatible.tsp @@ -6,17 +6,19 @@ using Microsoft.ContainerRegistry; // Flatten properties for backward compatibility #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility" @@Azure.ClientGenerator.Core.Legacy.flattenProperty(AgentPool.properties, - "autorest" + "autorest,python" ); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility" -@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Run.properties, "autorest"); +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Run.properties, + "autorest,python" +); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility" @@Azure.ClientGenerator.Core.Legacy.flattenProperty(Task.properties, - "autorest" + "autorest,python" ); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility" @@Azure.ClientGenerator.Core.Legacy.flattenProperty(TaskRun.properties, - "autorest" + "autorest,python" ); @@clientName(AgentPools.create::parameters.resource, "agentPool"); @@ -33,3 +35,4 @@ using Microsoft.ContainerRegistry; @@clientName(Registries.scheduleRun::parameters.body, "runRequest"); @@clientName(Architecture.`386`, "ThreeHundredEightySix", "go"); +@@clientName(Architecture.`386`, "THREE_HUNDRED_EIGHTY_SIX", "python"); diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/client.tsp b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/client.tsp index 8ec7e446b880..31b63359f0e0 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/client.tsp +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/RegistryTasks/client.tsp @@ -15,5 +15,3 @@ using Microsoft.ContainerRegistry; "ContainerRegistryTasksMgmtClient", "python" ); - -@@clientName(Architecture.`386`, "THREE_HUNDRED_EIGHTY_SIX", "python");