Skip to content

Commit 4781508

Browse files
Add KeyVault Certificate Functions (#334)
* added certificate.rs * rename exp to expires on * addressed heaths comments in PR * added in certificate client * Revert "added in certificate client" This reverts commit dc4c8bc. * fixing mismatched rebase * fixed bugs in cargo tests * fixed cargo test errors * impled CertificateClient * fixed integration tests (again) * addressed heaths reqeusted changes * removed errant std fmt use
1 parent c04de52 commit 4781508

File tree

7 files changed

+884
-48
lines changed

7 files changed

+884
-48
lines changed

sdk/security_keyvault/examples/update_secret.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use azure_identity::token_credentials::{ClientSecretCredential, TokenCredentialOptions};
2-
use azure_security_keyvault::{KeyClient, RecoveryLevel};
2+
use azure_security_keyvault::KeyClient;
33
use chrono::prelude::*;
44
use chrono::Duration;
55
use std::env;
@@ -31,7 +31,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3131

3232
// Update secret recovery level to `Purgeable`.
3333
client
34-
.update_secret_recovery_level(&secret_name, &secret_version, RecoveryLevel::Purgeable)
34+
.update_secret_recovery_level(&secret_name, &secret_version, "Purgeable".into())
3535
.await?;
3636

3737
// Update secret to expire in two weeks.

0 commit comments

Comments
 (0)