public DataLakeStoreAccount UpdateAccount( string resourceGroupName, string accountName, string defaultGroup, TrustedIdProviderState providerState, FirewallState firewallState, Hashtable customTags = null) { if (string.IsNullOrEmpty(resourceGroupName)) { resourceGroupName = GetResourceGroupByAccount(accountName); } var tags = TagsConversionHelper.CreateTagDictionary(customTags, true); var parameters = new DataLakeStoreAccountUpdateParameters { DefaultGroup = defaultGroup, Tags = tags ?? new Dictionary <string, string>(), TrustedIdProviderState = providerState, FirewallState = firewallState }; return(_client.Account.Update(resourceGroupName, accountName, parameters)); }
public DataLakeStoreAccount UpdateAccount( string resourceGroupName, string accountName, string defaultGroup, TrustedIdProviderState providerState, FirewallState firewallState, FirewallAllowAzureIpsState azureIpState, Hashtable customTags = null, TierType?tier = null, UpdateEncryptionConfig userConfig = null) { if (string.IsNullOrEmpty(resourceGroupName)) { resourceGroupName = GetResourceGroupByAccount(accountName); } var tags = TagsConversionHelper.CreateTagDictionary(customTags, true); var parameters = new DataLakeStoreAccountUpdateParameters { DefaultGroup = defaultGroup, Tags = tags ?? new Dictionary <string, string>(), TrustedIdProviderState = providerState, FirewallState = firewallState, FirewallAllowAzureIps = azureIpState, EncryptionConfig = userConfig }; if (tier.HasValue) { parameters.NewTier = tier; } var toReturn = _client.Account.Update(resourceGroupName, accountName, parameters); // auto enable the key vault for the user if they updated it. if (userConfig != null) { this.EnableKeyVault(resourceGroupName, accountName); } return(toReturn); }