/// <summary>
        /// Internal constructor used by KeyVaultDataServiceClient
        /// </summary>
        /// <param name="managedStorageAccountBundleListItem">managed storage bundle returned from service</param>
        /// <param name="vaultUriHelper">helper class</param>
        internal PSKeyVaultManagedStorageAccountIdentityItem(Azure.KeyVault.Models.StorageAccountItem managedStorageAccountBundleListItem, VaultUriHelper vaultUriHelper)
        {
            if (managedStorageAccountBundleListItem == null)
            {
                throw new ArgumentNullException(nameof(managedStorageAccountBundleListItem));
            }

            if (vaultUriHelper == null)
            {
                throw new ArgumentNullException(nameof(vaultUriHelper));
            }

            SetObjectIdentifier(vaultUriHelper, managedStorageAccountBundleListItem.Identifier);

            AccountName       = this.Name;
            AccountResourceId = managedStorageAccountBundleListItem.ResourceId;
            Attributes        = managedStorageAccountBundleListItem.Attributes == null
                ? null
                : new PSKeyVaultManagedStorageAccountAttributes(managedStorageAccountBundleListItem.Attributes);
            Tags = managedStorageAccountBundleListItem.Tags == null ? null : managedStorageAccountBundleListItem.Tags.ConvertToHashtable();
        }
        /// <summary>
        /// Internal constructor used by KeyVaultDataServiceClient
        /// </summary>
        /// <param name="managedStorageAccountBundleListItem">managed storage bundle returned from service</param>
        /// <param name="vaultUriHelper">helper class</param>
        internal ManagedStorageAccountListItem(Azure.KeyVault.Models.StorageAccountItem managedStorageAccountBundleListItem, VaultUriHelper vaultUriHelper)
        {
            if (managedStorageAccountBundleListItem == null)
            {
                throw new ArgumentNullException("managedStorageAccountBundleListItem");
            }

            if (vaultUriHelper == null)
            {
                throw new ArgumentNullException("vaultUriHelper");
            }

            var identifier = new StorageAccountIdentifier(managedStorageAccountBundleListItem.Id);

            Id                = identifier.Identifier;
            VaultName         = vaultUriHelper.GetVaultName(identifier.Identifier);
            AccountName       = identifier.Name;
            AccountResourceId = managedStorageAccountBundleListItem.ResourceId;
            Attributes        = managedStorageAccountBundleListItem.Attributes == null ? null : new ManagedStorageAccountAttributes(managedStorageAccountBundleListItem.Attributes.Enabled, managedStorageAccountBundleListItem.Attributes.Created, managedStorageAccountBundleListItem.Attributes.Updated);
            Tags              = managedStorageAccountBundleListItem.Tags == null ? null : managedStorageAccountBundleListItem.Tags.ConvertToHashtable();
        }