diff --git a/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs b/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs index 7baf5d4cc7..2a3626d19d 100644 --- a/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs +++ b/sdk/identity/src/token_credentials/imds_managed_identity_credentials.rs @@ -14,10 +14,13 @@ use std::{str, sync::Arc}; use time::OffsetDateTime; #[derive(Debug)] -pub enum ImdsId { +pub(crate) enum ImdsId { SystemAssigned, + #[allow(dead_code)] ClientId(String), + #[allow(dead_code)] ObjectId(String), + #[allow(dead_code)] MsiResId(String), } @@ -27,7 +30,7 @@ pub enum ImdsId { /// /// Built up from docs at [https://docs.microsoft.com/azure/app-service/overview-managed-identity#using-the-rest-protocol](https://docs.microsoft.com/azure/app-service/overview-managed-identity#using-the-rest-protocol) #[derive(Debug)] -pub struct ImdsManagedIdentityCredential { +pub(crate) struct ImdsManagedIdentityCredential { http_client: Arc, endpoint: Url, api_version: String, diff --git a/sdk/identity/src/token_credentials/mod.rs b/sdk/identity/src/token_credentials/mod.rs index 6b75df1a2f..e55e96523f 100644 --- a/sdk/identity/src/token_credentials/mod.rs +++ b/sdk/identity/src/token_credentials/mod.rs @@ -34,7 +34,7 @@ pub use client_certificate_credentials::*; pub use client_secret_credentials::*; pub use default_credentials::*; pub use environment_credentials::*; -pub use imds_managed_identity_credentials::*; +pub(crate) use imds_managed_identity_credentials::*; pub use options::*; pub use specific_azure_credential::*; pub use virtual_machine_managed_identity_credential::*;