Skip to content

Commit

Permalink
resolve Go SDK naming collision
Browse files Browse the repository at this point in the history
  • Loading branch information
tadelesh committed Nov 1, 2022
1 parent 15fd9f1 commit 133feed
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions specification/cost-management/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@ directive:
- rename-model:
from: 'CostManagementOperation'
to: 'OperationForCostManagement'
- rename-model:
from: 'CostManagementProxyResource'
to: 'ProxyResourceForCostManagement'
- from: costmanagement.json
where:
- $.definitions.View.allOf[0]
- $.definitions.Alert.allOf[0]
transform: >
$['$ref'] = "common-types.json#/definitions/ProxyResourceForCostManagement";
- from: costmanagement.exports.json
where:
- $.definitions.Export.allOf[0]
- $.definitions.ExportRun.allOf[0]
transform: >
$['$ref'] = "common-types.json#/definitions/ProxyResourceForCostManagement";
- rename-model:
from: 'CostManagementResource'
to: 'ResourceForCostManagement'
```
### Go multi-api
Expand Down

0 comments on commit 133feed

Please sign in to comment.