209 lines
6.1 KiB
C#
209 lines
6.1 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_ComputerSystemPackage.cs
|
|
//
|
|
// Contents: Similar to the way that LogicalDevices are 'Realized' by PhysicalElements, ComputerSystem may be realized realized in one or more PhysicalPackages. The ComputerSystemPackage association explicitly defines this relationship.
|
|
// This file was automatically generated from CIM_ComputerSystemPackage.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>
|
|
///Similar to the way that LogicalDevices are 'Realized' by PhysicalElements, ComputerSystem may be realized realized in one or more PhysicalPackages. The ComputerSystemPackage association explicitly defines this relationship.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystemPackage")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_ComputerSystemPackage", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystemPackage", IsNullable=false)]
|
|
public class CIM_ComputerSystemPackage : CIM_SystemPackaging
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_ComputerSystemPackage() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_ComputerSystemPackage(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_ComputerSystemPackage(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The PhysicalPackage(s) that realize a Unitary ComputerSystem.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference Antecedent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("Antecedent")[0];
|
|
CimReference epr = new CimReference("Antecedent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Antecedent",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The UnitaryComputerSystem.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference Dependent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("Dependent")[0];
|
|
CimReference epr = new CimReference("Dependent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Dependent",value.Serialize(false));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PlatformGUID field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePlatformGUID()
|
|
{
|
|
RemoveField("PlatformGUID");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PlatformGUID exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PlatformGUIDExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PlatformGUID");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A Gloabally Unique Identifier for the System's Package.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string PlatformGUID
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("PlatformGUID")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PlatformGUID",value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ComputerSystemPackage 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_ComputerSystemPackage objects</returns>
|
|
public static new Collection<CIM_ComputerSystemPackage> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_ComputerSystemPackage> ret = CimBase.Enumerate<CIM_ComputerSystemPackage>(client, cimKeys);
|
|
return new Collection<CIM_ComputerSystemPackage>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ComputerSystemPackage class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_ComputerSystemPackage objects</returns>
|
|
public static new Collection<CIM_ComputerSystemPackage> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_ComputerSystemPackage> ret = CimBase.Enumerate<CIM_ComputerSystemPackage>(client);
|
|
return new Collection<CIM_ComputerSystemPackage>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_ComputerSystemPackage 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_ComputerSystemPackage>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_ComputerSystemPackage class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SystemPackaging.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Required, The PhysicalPackage(s) that realize a Unitary ComputerSystem.
|
|
/// </summary>
|
|
|
|
public virtual CimReference Antecedent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("Antecedent");
|
|
CimReference epr = new CimReference("Antecedent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystemPackage", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("Antecedent", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Required, The UnitaryComputerSystem.
|
|
/// </summary>
|
|
|
|
public virtual CimReference Dependent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("Dependent");
|
|
CimReference epr = new CimReference("Dependent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystemPackage", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("Dependent", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|