-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of ARM bug fix and rename/reorg (#762)
This change contains following changes: - Updated `extendedLocation` with optional and READ, CREATE - Renamed base common types to be consistent with ARM common type, included backcompat aliases with #deprecate - ArmResource -> Resource - TrackResourceBase -> TrackResource - ProxyResourceBase -> ProxyResource - ExtensionResourceBase -> ExtensionResource - ResourceSku -> Sku - ResourcePlan -> Plan Note: both the `#deprecated alias` and in some cases `TrackResource<T>` and `Foundations.TrackResource` may cause spec break. `rest-api-specs/typespec-next` will be checked and updated if this is approved. --------- Co-authored-by: Timothee Guerin <[email protected]>
- Loading branch information
1 parent
7cf57c6
commit 079aa68
Showing
22 changed files
with
405 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
changeKind: deprecation | ||
packages: | ||
- "@azure-tools/typespec-azure-resource-manager" | ||
--- | ||
|
||
Renaming internal TypeSpec ARM foundation model names to be consistent with ARM common-type definitions. | ||
However, these are `Azure.Resource.Manager.Foundations` models that would not normally be used directly in service specs. | ||
|
||
- Deprecate `Foundations.ArmResource`. `Foundations.Resource` should be used instead. | ||
|
||
- Deprecate `Foundations.ResourceSkuType`. `Foundations.Sku` should be used instead. | ||
|
||
- Deprecate `Foundations.ResourcePlanType`. `Foundations.Plan` should be used instead. | ||
|
||
- Deprecate `Foundations.TrackedResourceBase`. `Foundations.TrackedResource` should be used instead. | ||
|
||
- Deprecate `Foundations.ProxyResourceBase`. `Foundations.ProxyResource` should be used instead. | ||
|
||
- Deprecate `Foundations.ExtensionResourceBase`. `Foundations.ExtensionResource` should be used instead. |
160 changes: 81 additions & 79 deletions
160
docs/libraries/azure-resource-manager/reference/data-types.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/typespec-azure-resource-manager/lib/common-types/backcompat.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Azure.ResourceManager.Foundations; | ||
|
||
#deprecated "Please use Foundations.Resource instead of Foundations.ArmResource" | ||
alias ArmResource = Resource; | ||
|
||
#deprecated "Please use Foundations.TrackedResource instead of Foundations.TrackedResourceBase" | ||
alias TrackedResourceBase = TrackedResource; | ||
|
||
#deprecated "Please use Foundations.ProxyResource instead of Foundations.ProxyResourceBase" | ||
alias ProxyResourceBase = ProxyResource; | ||
|
||
#deprecated "Please use Foundations.ProxyResource instead of Foundations.ExtensionResourceBase" | ||
alias ExtensionResourceBase = ExtensionResource; | ||
|
||
#deprecated "Please use Foundations.Sku instead of Foundations.ResourceSkuType" | ||
alias ResourceSkuType = Sku; | ||
|
||
#deprecated "Please use Foundations.Plan instead of Foundations.ResourcePlanType" | ||
alias ResourcePlanType = Plan; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.