Skip to content

Add KeyVault Certificate Functions #334

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

Merged
merged 12 commits into from
Nov 16, 2021
4 changes: 2 additions & 2 deletions sdk/security_keyvault/examples/update_secret.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use azure_identity::token_credentials::{ClientSecretCredential, TokenCredentialOptions};
use azure_security_keyvault::{KeyClient, RecoveryLevel};
use azure_security_keyvault::KeyClient;
use chrono::prelude::*;
use chrono::Duration;
use std::env;
Expand Down Expand Up @@ -31,7 +31,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

// Update secret recovery level to `Purgeable`.
client
.update_secret_recovery_level(&secret_name, &secret_version, RecoveryLevel::Purgeable)
.update_secret_recovery_level(&secret_name, &secret_version, "Purgeable".into())
.await?;

// Update secret to expire in two weeks.
Expand Down
Loading