Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KeyVault] - Remove KeyOperationsOptions from public API #14930

Merged
merged 3 commits into from
Apr 19, 2021

Conversation

maorleger
Copy link
Member

@maorleger maorleger commented Apr 19, 2021

What

  • Remove KeyOperationOptions from cryptography API and use CryptographyOptions everywhere

Why

KeyOperationsOptions was used as a common placeholder for iv, additionalAuthenticatedData, and authenticationTag up until very recently: https://github.com/Azure/azure-sdk-for-js/pull/13889/files#diff-7e7a216d0920c250e6742ecece9de13be1712657c97776fbfbfec386896cab13L141-L155

Because we moved to using EncryptParameters and DecryptParameters for these parameters we no longer need a common type for a subset of cryptography operations. This PR just cleans up the public API a bit before we GA.

@ghost ghost added the KeyVault label Apr 19, 2021
@maorleger maorleger marked this pull request as ready for review April 19, 2021 19:10
Copy link
Contributor

@sadasant sadasant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean and simple! Approved 👍

@maorleger maorleger merged commit e7a9fa3 into Azure:master Apr 19, 2021
@maorleger maorleger deleted the kv-keys-wrap-options branch April 19, 2021 19:47
jay-most pushed a commit to jay-most/azure-sdk-for-js that referenced this pull request Apr 26, 2021
## What

- Remove `KeyOperationOptions` from cryptography API and use `CryptographyOptions` everywhere

## Why

`KeyOperationsOptions` was used as a common placeholder for `iv`, `additionalAuthenticatedData`, and `authenticationTag` up until very recently:  https://github.com/Azure/azure-sdk-for-js/pull/13889/files#diff-7e7a216d0920c250e6742ecece9de13be1712657c97776fbfbfec386896cab13L141-L155

Because we moved to using `EncryptParameters` and `DecryptParameters` for these parameters we no longer need a common type for a subset of cryptography operations. This PR just cleans up the public API a bit before we GA.
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Jul 5, 2021
[Hub Generated] [SiteRecovery] Review request for Microsoft.RecoveryServices to add version stable/2021-04-01 (Azure#14930)

* Adds base for updating Microsoft.RecoveryServices from version stable/2021-02-10 to version 2021-04-01

* Updates readme

* Updates API version in new specs and examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants