Azure / Azure/azure-rest-api-specs
[Sql] : The transparentdataencryption API version does not match sql database API version
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
Currently, the[ sql database api version](https://github.com/Azure/azure-sdk-for-go/blob/29a8ee629e0bff0d77117d855298a7fd492640ed/services/preview/sql/mgmt/v5.0/sql/databases.go#L89) used in the latest Sql SDK v5.0 is 2021-02-01-preview, but the [transparentdataencryption API version](https://github.com/Azure/azure-sdk-for-go/blob/29a8ee629e0bff0d77117d855298a7fd492640ed/services/preview/sql/mgmt/v5.0/sql/transparentdataencryptions.go#L86) is 2014-04-01 in the SDK. Since a property of TransparentDataEncryptionProperties has been changed to [`state`](https://github.com/Azure/azure-rest-api-specs/blob/4640dfc655f8641962814663fd03fd667e5c1a88/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/TransparentDataEncryptions.json#L225) instead of [`status` in stable v2014-04-01](https://github.com/Azure/azure-rest-api-specs/blob/4640dfc655f8641962814663fd03fd667e5c1a88/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json#L776). It would cause terraform issue [#16828](https://github.com/hashicorp/terraform-provider-azurerm/issues/16828).
Expected : Use the transparentdataencryption API version corresponding to the sql database API. (state property instead status property)
Contributor guide
Research direction
Compare the SQL database API version in the referenced databases.go context with transparentdataencryptions.go and the linked 2021-02-01-preview TransparentDataEncryptions.json specification. Confirm that the transparent data encryption definition uses the matching API version and exposes state rather than status; the issue is done when both APIs are aligned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, openapi
- Domain
- api, backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100