430 lines
13 KiB
C#
430 lines
13 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_PhysicalConnector.cs
|
|
//
|
|
// Contents: The PhysicalConnector class represents any PhysicalElement that is used to connect to other Elements. Any object that can be used to connect and transmit signals or power between two or more PhysicalElements is a descendant (or member) of this class. For example, Slots and D-shell connectors are types of PhysicalConnectors.
|
|
// This file was automatically generated from CIM_PhysicalConnector.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
|
|
{
|
|
/// <summary>
|
|
///The PhysicalConnector class represents any PhysicalElement that is used to connect to other Elements. Any object that can be used to connect and transmit signals or power between two or more PhysicalElements is a descendant (or member) of this class. For example, Slots and D-shell connectors are types of PhysicalConnectors.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PhysicalConnector")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_PhysicalConnector", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PhysicalConnector", IsNullable=false)]
|
|
public class CIM_PhysicalConnector : CIM_PhysicalElement
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_PhysicalConnector() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_PhysicalConnector(string xml): base((IWSManClient)null)
|
|
{
|
|
this.Deserialize(xml);
|
|
}
|
|
/// <summary>
|
|
/// Constructor which recieves a Ws-Management client object.
|
|
/// </summary>
|
|
/// <param name="client">Ws-Management client</param>
|
|
public CIM_PhysicalConnector(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove ConnectorDescription field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConnectorDescription()
|
|
{
|
|
RemoveField("ConnectorDescription");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConnectorDescription exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConnectorDescriptionExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConnectorDescription");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A string describing the Connector - used when the ConnectorLayout property is set to 1 ("Other"). Connector Description should be set to NULL when ConnectorLayout is any value other than 1.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string ConnectorDescription
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("ConnectorDescription")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ConnectorDescription",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ConnectorElectricalCharacteristics field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConnectorElectricalCharacteristics()
|
|
{
|
|
RemoveField("ConnectorElectricalCharacteristics");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConnectorElectricalCharacteristics exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConnectorElectricalCharacteristicsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConnectorElectricalCharacteristics");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Describes the electrical characteristic for this connector.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] ConnectorElectricalCharacteristics
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["ConnectorElectricalCharacteristics"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("ConnectorElectricalCharacteristics", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ConnectorGender field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConnectorGender()
|
|
{
|
|
RemoveField("ConnectorGender");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConnectorGender exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConnectorGenderExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConnectorGender");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Describes the gender of the connector.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort ConnectorGender
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["ConnectorGender"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ConnectorGender",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ConnectorLayout field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConnectorLayout()
|
|
{
|
|
RemoveField("ConnectorLayout");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConnectorLayout exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConnectorLayoutExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConnectorLayout");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Describes the type of packaging normally associated with this type of connector.16 (PCI) - describes the generic PCI connector layout. 17 (PCI-X) - describes the PCI Extended connector layout. 18 (PCI-E) - describes the PCI Express connector layout, where the actual layout as far as the length is concerned is unknown. 19 - 25 (PCI-E xN) - describes the PCI Express connector layout, where N is the lane count that appropriately descirbes the length of the PCI-E connector.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort ConnectorLayout
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["ConnectorLayout"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ConnectorLayout",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ConnectorPinout field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConnectorPinout()
|
|
{
|
|
RemoveField("ConnectorPinout");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConnectorPinout exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConnectorPinoutExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConnectorPinout");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A free-form string describing the pin configuration and/or signal usage of a PhysicalConnector.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string ConnectorPinout
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("ConnectorPinout")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ConnectorPinout",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ConnectorType field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConnectorType()
|
|
{
|
|
RemoveField("ConnectorType");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConnectorType exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConnectorTypeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConnectorType");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An array of integers defining the type of PhysicalConnector. An array is specified to allow the description of 'combinations' of Connector information. For example, one array entry could specify RS-232 (value=25), another DB-25 (value=23) and a third entry define the Connector as "Male" (value=2).
|
|
/// This single property is being deprecated in lieu of using separate properties to describe the various aspects of the connector. The separation allows for a more generic means of describing the connectors. Obsolete connectors were intentionally removed from the new list.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] ConnectorType
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["ConnectorType"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("ConnectorType", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove NumPhysicalPins field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveNumPhysicalPins()
|
|
{
|
|
RemoveField("NumPhysicalPins");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field NumPhysicalPins exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool NumPhysicalPinsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("NumPhysicalPins");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Describes the number of physical pins (male/female) that are present on this connector.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint NumPhysicalPins
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["NumPhysicalPins"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("NumPhysicalPins",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove OtherElectricalCharacteristics field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveOtherElectricalCharacteristics()
|
|
{
|
|
RemoveField("OtherElectricalCharacteristics");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field OtherElectricalCharacteristics exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool OtherElectricalCharacteristicsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("OtherElectricalCharacteristics");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A string describing the connector's electrical characteristics - used when the ConnectorElectricalCharacteristics property contains an entry of 1 (Other). OtherElectricalCharacteristics should be set to NULL when ConnectorElectricalCharacteristics does not contain an value of 1.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string[] OtherElectricalCharacteristics
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<string>(this["OtherElectricalCharacteristics"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
|
|
this.SetOrAddField("OtherElectricalCharacteristics", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove OtherTypeDescription field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveOtherTypeDescription()
|
|
{
|
|
RemoveField("OtherTypeDescription");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field OtherTypeDescription exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool OtherTypeDescriptionExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("OtherTypeDescription");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A string describing the Connector - used when the ConnectorType property is set to 1 ("Other"). OtherType Description should be set to NULL when ConnectorType is any value other than 1.
|
|
/// The use of this property is deprecated in lieu of Connector Description.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string OtherTypeDescription
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("OtherTypeDescription")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("OtherTypeDescription",value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_PhysicalConnector class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of CIM_PhysicalConnector objects</returns>
|
|
public static new Collection<CIM_PhysicalConnector> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_PhysicalConnector> ret = CimBase.Enumerate<CIM_PhysicalConnector>(client, cimKeys);
|
|
return new Collection<CIM_PhysicalConnector>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_PhysicalConnector class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_PhysicalConnector objects</returns>
|
|
public static new Collection<CIM_PhysicalConnector> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_PhysicalConnector> ret = CimBase.Enumerate<CIM_PhysicalConnector>(client);
|
|
return new Collection<CIM_PhysicalConnector>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_PhysicalConnector if it is singular.
|
|
/// Note: This method will succeed only if a single instance of the class exists.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
public static new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_PhysicalConnector>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_PhysicalConnector class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_PhysicalElement.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|