//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_Card.cs
//
// Contents: The Card class represents a type of physical container that can be plugged into another Card or HostingBoard, or is itself a HostingBoard/Motherboard in a Chassis. The CIM_Card class includes any package capable of carrying signals and providing a mounting point for PhysicalComponents, such as Chips, or other PhysicalPackages, such as other Cards.
// This file was automatically generated from CIM_Card.mof
//
//----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Globalization;
using System.Xml.Serialization;
using System.IO;
using Intel.Manageability.WSManagement;
using Intel.Manageability.Cim.Untyped;
namespace Intel.Manageability.Cim.Typed
{
///
///The Card class represents a type of physical container that can be plugged into another Card or HostingBoard, or is itself a HostingBoard/Motherboard in a Chassis. The CIM_Card class includes any package capable of carrying signals and providing a mounting point for PhysicalComponents, such as Chips, or other PhysicalPackages, such as other Cards.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Card")]
[System.Xml.Serialization.XmlRootAttribute("CIM_Card", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Card", IsNullable=false)]
public class CIM_Card : CIM_PhysicalPackage
{
///
/// Default constructor.
///
public CIM_Card() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_Card(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_Card(IWSManClient client): base(client)
{
}
///
/// Remove HostingBoard field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveHostingBoard()
{
RemoveField("HostingBoard");
}
///
/// Is true if the field HostingBoard exists in the current object,
/// otherwise is false.
///
public virtual bool HostingBoardExist
{
get
{
return ContainsField("HostingBoard");
}
}
///
/// Optional, Boolean indicating that this Card is a Motherboard or, more generically, a baseboard in a Chassis.
///
[CimField(false, false)]
public virtual bool HostingBoard
{
get
{
return bool.Parse(this["HostingBoard"][0]);
}
set
{
this.SetOrAddField("HostingBoard",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove OperatingVoltages field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveOperatingVoltages()
{
RemoveField("OperatingVoltages");
}
///
/// Is true if the field OperatingVoltages exists in the current object,
/// otherwise is false.
///
public virtual bool OperatingVoltagesExist
{
get
{
return ContainsField("OperatingVoltages");
}
}
///
/// Optional, Operating voltages required by the Card.
///
[CimField(false, false)]
public virtual short[] OperatingVoltages
{
get
{
return CimTypesUtils.StringArrayToArray(this["OperatingVoltages"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("OperatingVoltages", arr);
}
}
///
/// Remove RequirementsDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRequirementsDescription()
{
RemoveField("RequirementsDescription");
}
///
/// Is true if the field RequirementsDescription exists in the current object,
/// otherwise is false.
///
public virtual bool RequirementsDescriptionExist
{
get
{
return ContainsField("RequirementsDescription");
}
}
///
/// Optional, A free-form string describing the way(s) in which this Card is physically unique from other Cards. This property only has meaning when the corresponding boolean property, SpecialRequirements, is set to TRUE.
///
[CimField(false, false)]
public virtual string RequirementsDescription
{
get
{
return this.GetField("RequirementsDescription")[0];
}
set
{
this.SetOrAddField("RequirementsDescription",value);
}
}
///
/// Remove RequiresDaughterBoard field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveRequiresDaughterBoard()
{
RemoveField("RequiresDaughterBoard");
}
///
/// Is true if the field RequiresDaughterBoard exists in the current object,
/// otherwise is false.
///
public virtual bool RequiresDaughterBoardExist
{
get
{
return ContainsField("RequiresDaughterBoard");
}
}
///
/// Optional, Boolean indicating that at least one daughterboard or auxiliary Card is required in order to function properly.
///
[CimField(false, false)]
public virtual bool RequiresDaughterBoard
{
get
{
return bool.Parse(this["RequiresDaughterBoard"][0]);
}
set
{
this.SetOrAddField("RequiresDaughterBoard",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove SlotLayout field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSlotLayout()
{
RemoveField("SlotLayout");
}
///
/// Is true if the field SlotLayout exists in the current object,
/// otherwise is false.
///
public virtual bool SlotLayoutExist
{
get
{
return ContainsField("SlotLayout");
}
}
///
/// Optional, SlotLayout is a free-form string that describes the slot positioning, typical usage, restrictions, individual slot spacings or any other pertinent information for the slots on a Card.
///
[CimField(false, false)]
public virtual string SlotLayout
{
get
{
return this.GetField("SlotLayout")[0];
}
set
{
this.SetOrAddField("SlotLayout",value);
}
}
///
/// Remove SpecialRequirements field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSpecialRequirements()
{
RemoveField("SpecialRequirements");
}
///
/// Is true if the field SpecialRequirements exists in the current object,
/// otherwise is false.
///
public virtual bool SpecialRequirementsExist
{
get
{
return ContainsField("SpecialRequirements");
}
}
///
/// Optional, Boolean indicating that this Card is physically unique from other Cards of the same type and therefore requires a special Slot. For example, a double-wide Card requires two Slots. Another example is where a certain Card may be used for the same general function as other Cards but requires a special Slot (e.g., extra long), whereas the other Cards can be placed in any available Slot. If set to TRUE, then the corresponding property, RequirementsDescription, should specify the nature of the uniqueness or purpose of the Card.
///
[CimField(false, false)]
public virtual bool SpecialRequirements
{
get
{
return bool.Parse(this["SpecialRequirements"][0]);
}
set
{
this.SetOrAddField("SpecialRequirements",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of CIM_Card class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_Card objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_Card class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_Card objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_Card if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static new void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the CIM_Card class.
///
public new class CimKeys : CIM_PhysicalPackage.CimKeys
{
}
}
}