roeap commented on code in PR #3436:
URL: https://github.com/apache/arrow-rs/pull/3436#discussion_r1060720929
##########
object_store/src/azure/mod.rs:
##########
@@ -367,13 +375,103 @@ pub struct MicrosoftAzureBuilder {
client_secret: Option<String>,
tenant_id: Option<String>,
sas_query_pairs: Option<Vec<(String, String)>>,
+ sas_key: Option<String>,
authority_host: Option<String>,
url: Option<String>,
use_emulator: bool,
retry_config: RetryConfig,
client_options: ClientOptions,
}
+#[derive(PartialEq, Eq)]
+enum AzureConfigKey {
+ /// The name of the azure storage account
+ ///
+ /// Supported keys:
+ /// - `azure_storage_account_name`
+ /// - `account_name`
+ AccountName,
+
+ /// Master key for accessing storage account
+ ///
+ /// Supported keys:
+ /// - `azure_storage_account_key`
+ /// - `azure_storage_access_key`
+ /// - `azure_storage_master_key`
+ /// - `access_key`
+ /// - `account_key`
+ /// - `master_key`
+ AccessKey,
+
+ /// Service principal client id for authorizing requests
+ ///
+ /// Supported keys:
+ /// - `azure_storage_client_id`
+ /// - `azure_client_id`
+ /// - `client_id`
+ ClientId,
+
+ /// Service principal client secret for authorizing requests
+ ///
+ /// Supported keys:
+ /// - `azure_storage_client_secret`
+ /// - `azure_client_secret`
+ /// - `client_secret`
+ ClientSecret,
+
+ /// Tenant id used in oauth flows
+ ///
+ /// Supported keys:
+ /// - `azure_storage_tenant_id`
+ /// - `azure_storage_authority_id`
+ /// - `azure_tenant_id`
+ /// - `azure_authority_id`
+ /// - `tenant_id`
+ /// - `authority_id`
+ AuthorityId,
+ SasKey,
+ UseEmulator,
+}
+
+static ALIAS_MAP: Lazy<HashMap<&'static str, AzureConfigKey>> = Lazy::new(|| {
Review Comment:
probably not - main reason for a map is so we can iterate through it when
reading from the env.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]