Skip to content

Commit

Permalink
use directive to set api-version as client for Resources_GetById (Azu…
Browse files Browse the repository at this point in the history
  • Loading branch information
live1206 authored and matthohn-msft committed Oct 27, 2023
1 parent af84580 commit b0fd219
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/resourcemanager/Azure.ResourceManager/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,10 @@ directive:
where: $.definitions.ProviderExtendedLocation.properties.location
transform: >
$["x-ms-format"] = "azure-location"
- from: resources.json
where: $.paths["/{resourceId}"].get.parameters[?(@.name === "api-version")]
transform: >
delete $["x-ms-api-version"]
```

### Tag: package-management
Expand Down

0 comments on commit b0fd219

Please sign in to comment.