From 1625644c03724237391d287ef3084bbb57e797f8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Jun 2026 18:30:52 +0000 Subject: [PATCH 1/2] Initial plan From 5f6416725048e67a39c3a4702969f9bfddba740a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Jun 2026 18:41:42 +0000 Subject: [PATCH 2/2] Add optional Tag parameter to Azure.ResourceManager.Legacy.Operations template Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com> --- ...add-tag-parameter-legacy-operations-2026-6-1-18-32-0.md | 7 +++++++ .../lib/legacy-types/interfaces.tsp | 6 ++++-- .../azure-resource-manager/reference/interfaces.md | 7 ++++--- 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 .chronus/changes/add-tag-parameter-legacy-operations-2026-6-1-18-32-0.md diff --git a/.chronus/changes/add-tag-parameter-legacy-operations-2026-6-1-18-32-0.md b/.chronus/changes/add-tag-parameter-legacy-operations-2026-6-1-18-32-0.md new file mode 100644 index 0000000000..568a9a0647 --- /dev/null +++ b/.chronus/changes/add-tag-parameter-legacy-operations-2026-6-1-18-32-0.md @@ -0,0 +1,7 @@ +--- +changeKind: feature +packages: + - "@azure-tools/typespec-azure-resource-manager" +--- + +Add optional `Tag` template parameter to `Azure.ResourceManager.Legacy.Operations` to allow overriding the openapi tag value. diff --git a/packages/typespec-azure-resource-manager/lib/legacy-types/interfaces.tsp b/packages/typespec-azure-resource-manager/lib/legacy-types/interfaces.tsp index b542dff044..2f785ecc4f 100644 --- a/packages/typespec-azure-resource-manager/lib/legacy-types/interfaces.tsp +++ b/packages/typespec-azure-resource-manager/lib/legacy-types/interfaces.tsp @@ -17,13 +17,15 @@ using Rest; * @template Response The response returned by the operation list. * @template Error the error response returned by the operation list. * @template Parameters Additional request parameters for the list operation. + * @template Tag Optional. The openapi tag for the operation. */ interface Operations< Response extends {} = ArmResponse, Error extends {} = ErrorResponse, - Parameters extends {} = {} + Parameters extends {} = {}, + Tag extends valueof string = "Operations" > { - @tag("Operations") + @tag(Tag) @autoRoute @armUpdateProviderNamespace @doc("List the operations for the provider") diff --git a/website/src/content/docs/docs/libraries/azure-resource-manager/reference/interfaces.md b/website/src/content/docs/docs/libraries/azure-resource-manager/reference/interfaces.md index a5566796f7..7b931af710 100644 --- a/website/src/content/docs/docs/libraries/azure-resource-manager/reference/interfaces.md +++ b/website/src/content/docs/docs/libraries/azure-resource-manager/reference/interfaces.md @@ -2423,7 +2423,7 @@ Azure Resource Manager service. It implements GET "/providers/{provider-namespace}/operations" ```typespec -interface Azure.ResourceManager.Legacy.Operations +interface Azure.ResourceManager.Legacy.Operations ``` #### Template Parameters @@ -2433,11 +2433,12 @@ interface Azure.ResourceManager.Legacy.Operations | Response | The response returned by the operation list. | | Error | the error response returned by the operation list. | | Parameters | Additional request parameters for the list operation. | +| Tag | Optional. The openapi tag for the operation. | -#### `Operations.list` {#Azure.ResourceManager.Legacy.Operations.list} +#### `Operations.list` {#Azure.ResourceManager.Legacy.Operations.list} ```typespec -op Azure.ResourceManager.Legacy.Operations.list(apiVersion: string, provider: "Microsoft.ThisWillBeReplaced"): Response | Error +op Azure.ResourceManager.Legacy.Operations.list(apiVersion: string, provider: "Microsoft.ThisWillBeReplaced"): Response | Error ``` ### `RoutedOperations` {#Azure.ResourceManager.Legacy.RoutedOperations}