Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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<OperationListResult>,
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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,7 @@ Azure Resource Manager service. It implements
GET "/providers/{provider-namespace}/operations"

```typespec
interface Azure.ResourceManager.Legacy.Operations<Response, Error, Parameters>
interface Azure.ResourceManager.Legacy.Operations<Response, Error, Parameters, Tag>
```

#### Template Parameters
Expand All @@ -2433,11 +2433,12 @@ interface Azure.ResourceManager.Legacy.Operations<Response, Error, Parameters>
| 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<Response, Error, Parameters>.list}
#### `Operations.list` {#Azure.ResourceManager.Legacy.Operations<Response, Error, Parameters, Tag>.list}

```typespec
op Azure.ResourceManager.Legacy.Operations<Response, Error, Parameters>.list(apiVersion: string, provider: "Microsoft.ThisWillBeReplaced"): Response | Error
op Azure.ResourceManager.Legacy.Operations<Response, Error, Parameters, Tag>.list(apiVersion: string, provider: "Microsoft.ThisWillBeReplaced"): Response | Error
```

### `RoutedOperations` {#Azure.ResourceManager.Legacy.RoutedOperations}
Expand Down
Loading