public PSDataLakeStoreAccount(DataLakeStoreAccount baseAccount) : base( baseAccount.Location, baseAccount.Id, baseAccount.Name, baseAccount.Type, baseAccount.Tags, baseAccount.Identity, baseAccount.ProvisioningState, baseAccount.State, baseAccount.CreationTime, baseAccount.EncryptionState, baseAccount.EncryptionProvisioningState, baseAccount.EncryptionConfig, baseAccount.FirewallState, baseAccount.FirewallRules, baseAccount.TrustedIdProviderState, baseAccount.TrustedIdProviders, baseAccount.LastModifiedTime, baseAccount.Endpoint, baseAccount.DefaultGroup ) { Properties = new PSDataLakeStoreAccountProperties(baseAccount); }
public PSDataLakeStoreAccount(DataLakeStoreAccount baseAccount) : base( baseAccount.Location, baseAccount.Id, baseAccount.Name, baseAccount.Type, baseAccount.Tags, baseAccount.Identity, baseAccount.ProvisioningState, baseAccount.State, baseAccount.CreationTime, baseAccount.EncryptionState, baseAccount.EncryptionProvisioningState, baseAccount.EncryptionConfig, baseAccount.FirewallState, baseAccount.FirewallRules, baseAccount.TrustedIdProviderState, baseAccount.TrustedIdProviders, baseAccount.LastModifiedTime, baseAccount.Endpoint, baseAccount.DefaultGroup, baseAccount.NewTier, baseAccount.CurrentTier, baseAccount.FirewallAllowAzureIps) { Properties = new PSDataLakeStoreAccountProperties(baseAccount); // TODO: Work around to null out properties that are returned empty. // Swagger deserialization will put a default value of an enum in an empty object. // Once the server correctly returns nothing (instead of empty objects), this can // be removed. if (EncryptionState == Management.DataLake.Store.Models.EncryptionState.Disabled) { this.EncryptionConfig = null; this.Properties.EncryptionConfig = null; } }