mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 23:39:51 +01:00
Obsolete class (possible CP-4813 leftover).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
fca17a7ef5
commit
830b979813
@ -1,48 +0,0 @@
|
|||||||
/* Copyright (c) Citrix Systems, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms,
|
|
||||||
* with or without modification, are permitted provided
|
|
||||||
* that the following conditions are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above
|
|
||||||
* copyright notice, this list of conditions and the
|
|
||||||
* following disclaimer.
|
|
||||||
* * Redistributions in binary form must reproduce the above
|
|
||||||
* copyright notice, this list of conditions and the
|
|
||||||
* following disclaimer in the documentation and/or other
|
|
||||||
* materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
||||||
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
||||||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
||||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
||||||
* SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using NUnit.Framework;
|
|
||||||
using XenCenterLib;
|
|
||||||
|
|
||||||
namespace XenAdminTests.UnitTests
|
|
||||||
{
|
|
||||||
[TestFixture, Category(TestCategories.Unit)]
|
|
||||||
public class HelpStringTests
|
|
||||||
{
|
|
||||||
[Test]
|
|
||||||
public void HelpStringDefaultCtorAndValueGetter()
|
|
||||||
{
|
|
||||||
const string testString = "I'm helpful";
|
|
||||||
HelpString hs = new HelpString(testString);
|
|
||||||
Assert.AreEqual(testString, hs.Value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -112,7 +112,6 @@
|
|||||||
<Compile Include="UnitTests\ExceptionSerializationTest.cs" />
|
<Compile Include="UnitTests\ExceptionSerializationTest.cs" />
|
||||||
<Compile Include="UnitTests\HealthCheckAnalysisProgressTest.cs" />
|
<Compile Include="UnitTests\HealthCheckAnalysisProgressTest.cs" />
|
||||||
<Compile Include="UnitTests\HelpManagerTests.cs" />
|
<Compile Include="UnitTests\HelpManagerTests.cs" />
|
||||||
<Compile Include="UnitTests\HelpStringTests.cs" />
|
|
||||||
<Compile Include="UnitTests\NamesAndMessagesTests.cs" />
|
<Compile Include="UnitTests\NamesAndMessagesTests.cs" />
|
||||||
<Compile Include="UnitTests\NaturalCompareTest.cs" />
|
<Compile Include="UnitTests\NaturalCompareTest.cs" />
|
||||||
<Compile Include="UnitTests\StreamUtilitiesTests.cs" />
|
<Compile Include="UnitTests\StreamUtilitiesTests.cs" />
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
/* Copyright (c) Citrix Systems, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms,
|
|
||||||
* with or without modification, are permitted provided
|
|
||||||
* that the following conditions are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above
|
|
||||||
* copyright notice, this list of conditions and the
|
|
||||||
* following disclaimer.
|
|
||||||
* * Redistributions in binary form must reproduce the above
|
|
||||||
* copyright notice, this list of conditions and the
|
|
||||||
* following disclaimer in the documentation and/or other
|
|
||||||
* materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
||||||
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
||||||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
||||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
||||||
* SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace XenCenterLib
|
|
||||||
{
|
|
||||||
|
|
||||||
public class HelpString : System.Attribute
|
|
||||||
{
|
|
||||||
private string value;
|
|
||||||
public HelpString(string s)
|
|
||||||
{
|
|
||||||
value = s;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Value
|
|
||||||
{
|
|
||||||
get { return value; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -75,7 +75,6 @@
|
|||||||
<Compile Include="EncryptionUtils.cs" />
|
<Compile Include="EncryptionUtils.cs" />
|
||||||
<Compile Include="ComparableAddress.cs" />
|
<Compile Include="ComparableAddress.cs" />
|
||||||
<Compile Include="ComparableList.cs" />
|
<Compile Include="ComparableList.cs" />
|
||||||
<Compile Include="HelpString.cs" />
|
|
||||||
<Compile Include="INotifyCollectionChanged.cs" />
|
<Compile Include="INotifyCollectionChanged.cs" />
|
||||||
<Compile Include="LimitedStack.cs" />
|
<Compile Include="LimitedStack.cs" />
|
||||||
<Compile Include="LockFreeQueue.cs" />
|
<Compile Include="LockFreeQueue.cs" />
|
||||||
|
@ -79,98 +79,89 @@ namespace XenAdmin.XenSearch
|
|||||||
|
|
||||||
public enum PropertyNames
|
public enum PropertyNames
|
||||||
{
|
{
|
||||||
[HelpString("The type of the selected object, e.g. VM, Network")]
|
/// <summary>The type of the selected object, e.g. VM, Network</summary>
|
||||||
type,
|
type,
|
||||||
[HelpString("The label of the selected object")]
|
/// <summary>The label of the selected object</summary>
|
||||||
label,
|
label,
|
||||||
[HelpString("The UUID of the selected object, or the full pathname of a folder")]
|
/// <summary>The UUID of the selected object, or the full pathname of a folder</summary>
|
||||||
uuid,
|
uuid,
|
||||||
[HelpString("The description of the selected object")]
|
/// <summary>The description of the selected object</summary>
|
||||||
description,
|
description,
|
||||||
[HelpString("Comma-separated list of the tags of the selected object")]
|
/// <summary>Comma-separated list of the tags of the selected object</summary>
|
||||||
tags,
|
tags,
|
||||||
[HelpString("The host name")]
|
/// <summary>The host name</summary>
|
||||||
host,
|
host,
|
||||||
[HelpString("The pool name")]
|
/// <summary>The pool name</summary>
|
||||||
pool,
|
pool,
|
||||||
[HelpString("Comma-separated list of the names of the networks attached to the object")]
|
/// <summary>Comma-separated list of the names of the networks attached to the object</summary>
|
||||||
networks,
|
networks,
|
||||||
[HelpString("Comma-separated list of the names of the storage attached to the object")]
|
/// <summary>Comma-separated list of the names of the storage attached to the object</summary>
|
||||||
storage,
|
storage,
|
||||||
[HelpString("Comma-separated list of the types of the storage attached to the object")]
|
/// <summary>Comma-separated list of the types of the storage attached to the object</summary>
|
||||||
disks,
|
disks,
|
||||||
[HelpString("The host memory, in bytes")]
|
/// <summary>The host memory, in bytes</summary>
|
||||||
memory,
|
memory,
|
||||||
[HelpString("The name of the operating system that a VM is running")]
|
/// <summary>The name of the operating system that a VM is running</summary>
|
||||||
os_name,
|
os_name,
|
||||||
[HelpString("The VM power state, e.g. Halted, Running")]
|
/// <summary>The VM power state, e.g. Halted, Running</summary>
|
||||||
power_state,
|
power_state,
|
||||||
[HelpString("The state of the pure virtualization drivers installed on a VM")]
|
/// <summary>The state of the pure virtualization drivers installed on a VM</summary>
|
||||||
virtualisation_status,
|
virtualisation_status,
|
||||||
[HelpString("Date and time that the VM was started")]
|
/// <summary>Date and time that the VM was started</summary>
|
||||||
start_time,
|
start_time,
|
||||||
[HelpString("The HA restart priority of the VM")]
|
/// <summary>The HA restart priority of the VM</summary>
|
||||||
ha_restart_priority,
|
ha_restart_priority,
|
||||||
[HelpString("The size in bytes of the attached disks")]
|
/// <summary>The size in bytes of the attached disks</summary>
|
||||||
size,
|
size,
|
||||||
[HelpString("Comma-separated list of IP addresses associated with the selected object")]
|
/// <summary>Comma-separated list of IP addresses associated with the selected object</summary>
|
||||||
ip_address,
|
ip_address,
|
||||||
[HelpString("Uptime of the object, in a form such as '2 days, 1 hour, 26 minutes'")]
|
/// <summary>Uptime of the object, in a form such as '2 days, 1 hour, 26 minutes'</summary>
|
||||||
uptime,
|
uptime,
|
||||||
[HelpString("true if HA is enabled, false otherwise")]
|
/// <summary>true if HA is enabled, false otherwise</summary>
|
||||||
ha_enabled,
|
ha_enabled,
|
||||||
[HelpString("true if at least one of the slaves has different XenServer version from the master, false otherwise")]
|
/// <summary>true if at least one of the slaves has different XenServer version from the master, false otherwise</summary>
|
||||||
isNotFullyUpgraded,
|
isNotFullyUpgraded,
|
||||||
[HelpString("A logical set of VMs")]
|
/// <summary>A logical set of VMs</summary>
|
||||||
appliance,
|
appliance,
|
||||||
[HelpString("Applicable to storage, true if storage is shared, false otherwise")]
|
/// <summary>Applicable to storage, true if storage is shared, false otherwise</summary>
|
||||||
shared,
|
shared,
|
||||||
[HelpString("Comma-separated list of VM names")]
|
/// <summary>Comma-separated list of VM names</summary>
|
||||||
vm,
|
vm,
|
||||||
[HelpString("List of Docker host-VM names.")]
|
/// <summary>List of Docker host-VM names.</summary>
|
||||||
dockervm,
|
dockervm,
|
||||||
[HelpString("Whether a VM is using read caching")]
|
/// <summary>Whether a VM is using read caching</summary>
|
||||||
read_caching_enabled,
|
read_caching_enabled,
|
||||||
[HelpString("The immediate parent folder of the selected object")]
|
/// <summary>The immediate parent folder of the selected object</summary>
|
||||||
folder,
|
folder,
|
||||||
[HelpString("Comma-separated list of all the ancestor folders of the selected object")]
|
/// <summary>Comma-separated list of all the ancestor folders of the selected object</summary>
|
||||||
folders,
|
folders,
|
||||||
|
/// <summary>INTERNAL. Used for populating the query panel.</summary>
|
||||||
|
|
||||||
// These properties are used for populating the query panel
|
|
||||||
[HelpString("INTERNAL")]
|
|
||||||
memoryText,
|
memoryText,
|
||||||
[HelpString("INTERNAL")]
|
/// <summary>INTERNAL Used for populating the query panel.</summary>
|
||||||
memoryValue,
|
memoryValue,
|
||||||
[HelpString("INTERNAL")]
|
/// <summary>INTERNAL Used for populating the query panel.</summary>
|
||||||
memoryRank,
|
memoryRank,
|
||||||
|
/// <summary>INTERNAL Used for populating the query panel.</summary>
|
||||||
[HelpString("INTERNAL")]
|
|
||||||
cpuText,
|
cpuText,
|
||||||
[HelpString("INTERNAL")]
|
/// <summary>INTERNAL Used for populating the query panel.</summary>
|
||||||
cpuValue,
|
cpuValue,
|
||||||
|
/// <summary>INTERNAL Used for populating the query panel.</summary>
|
||||||
[HelpString("INTERNAL")]
|
|
||||||
diskText,
|
diskText,
|
||||||
[HelpString("INTERNAL")]
|
/// <summary>INTERNAL Used for populating the query panel.</summary>
|
||||||
networkText,
|
networkText,
|
||||||
[HelpString("INTERNAL")]
|
/// <summary>INTERNAL Used for populating the query panel.</summary>
|
||||||
haText,
|
haText,
|
||||||
|
/// <summary>Comma-separated list of host names. Hidden property used for plug-ins.</summary>
|
||||||
// These properties are for plugins and are hidden
|
|
||||||
[HelpString("Comma-separated list of host names")]
|
|
||||||
connection_hostname,
|
connection_hostname,
|
||||||
[HelpString("Applicable to storage, the storage type")]
|
/// <summary>Applicable to storage, the storage type. Hidden property used for plug-ins.</summary>
|
||||||
sr_type,
|
sr_type,
|
||||||
[HelpString("Applicable to pools, a String representation of the license")]
|
/// <summary>Applicable to pools, a String representation of the license. Hidden property used for plug-ins.</summary>
|
||||||
license,
|
license,
|
||||||
[HelpString("Whether the object has any custom fields defined")]
|
/// <summary>Whether the object has any custom fields defined. Hidden property used for plug-ins.</summary>
|
||||||
has_custom_fields,
|
has_custom_fields,
|
||||||
|
/// <summary>Whether the VM is in any vApp</summary>
|
||||||
[HelpString("Whether the VM is in any vApp")]
|
|
||||||
in_any_appliance,
|
in_any_appliance,
|
||||||
|
/// <summary>Windows Update capability</summary>
|
||||||
[HelpString("Windows Update capability")]
|
|
||||||
vendor_device_state,
|
vendor_device_state,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user