/// <summary> /// Initalizes iscsidisk instance /// </summary> /// <param name="iscsiDisk"></param> /// <param name="dataPolicy"></param> public static void Initialize(this ISCSIDisk iscsiDisk, DataPolicy dataPolicy) { iscsiDisk.Description = "Demo IscsiDisk for SDK Test " + dataPolicy.ToString(); iscsiDisk.AccessControlRecords = new List <string>(); iscsiDisk.DataPolicy = dataPolicy; iscsiDisk.DiskStatus = DiskStatus.Online; iscsiDisk.ProvisionedCapacityInBytes = TestConstants.ProvisionedCapacityInBytesForDisk; iscsiDisk.MonitoringStatus = MonitoringStatus.Enabled; }
/// <summary> /// Initalizes fileshare instance /// </summary> /// <param name="fileShare"></param> /// <param name="dataPolicy"></param> public static void Initialize(this FileShare fileShare, DataPolicy dataPolicy) { fileShare.AdminUser = TestConstants.DomainUser; fileShare.DataPolicy = dataPolicy; fileShare.Description = "Demo FileShare for SDK Test " + dataPolicy.ToString(); fileShare.MonitoringStatus = MonitoringStatus.Enabled; fileShare.ShareStatus = ShareStatus.Online; fileShare.ProvisionedCapacityInBytes = TestConstants.ProvisionedCapacityInBytesForNonLocal; }