173 lines
5.8 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_OwningJobElement.cs
//
// Contents: OwningJobElement represents an association between a Job and the ManagedElement responsible for the creation of the Job. This association may not be possible, given that the execution of jobs can move between systems and that the lifecycle of the creating entity may not persist for the total duration of the job. However, this can be very useful information when available. This association defines a more specific 'owner' than is provided by the CIM_Job.Owner string.
// This file was automatically generated from CIM_OwningJobElement.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>
///OwningJobElement represents an association between a Job and the ManagedElement responsible for the creation of the Job. This association may not be possible, given that the execution of jobs can move between systems and that the lifecycle of the creating entity may not persist for the total duration of the job. However, this can be very useful information when available. This association defines a more specific 'owner' than is provided by the CIM_Job.Owner string.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_OwningJobElement")]
[System.Xml.Serialization.XmlRootAttribute("CIM_OwningJobElement", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_OwningJobElement", IsNullable=false)]
public class CIM_OwningJobElement : CimBase
{
/// <summary>
/// Default constructor.
/// </summary>
public CIM_OwningJobElement() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public CIM_OwningJobElement(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_OwningJobElement(IWSManClient client): base(client)
{
}
/// <summary>
/// Key, Required, The Job created by the ManagedElement.
/// </summary>
[CimField(true, false)]
public virtual CimReference OwnedElement
{
get
{
string innerXML = this.GetField("OwnedElement")[0];
CimReference epr = new CimReference("OwnedElement", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("OwnedElement",value.Serialize(false));
}
}
/// <summary>
/// Key, Required, The ManagedElement responsible for the creation of the Job.
/// </summary>
[CimField(true, false)]
public virtual CimReference OwningElement
{
get
{
string innerXML = this.GetField("OwningElement")[0];
CimReference epr = new CimReference("OwningElement", XmlNamespace, innerXML);
return epr;
}
set
{
this.SetOrAddField("OwningElement",value.Serialize(false));
}
}
/// <summary>
/// Enumerate instances of CIM_OwningJobElement 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_OwningJobElement objects</returns>
public static Collection<CIM_OwningJobElement> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<CIM_OwningJobElement> ret = CimBase.Enumerate<CIM_OwningJobElement>(client, cimKeys);
return new Collection<CIM_OwningJobElement>(ret);
}
/// <summary>
/// Enumerate instances of CIM_OwningJobElement class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of CIM_OwningJobElement objects</returns>
public static Collection<CIM_OwningJobElement> Enumerate(IWSManClient client)
{
List<CIM_OwningJobElement> ret = CimBase.Enumerate<CIM_OwningJobElement>(client);
return new Collection<CIM_OwningJobElement>(ret);
}
/// <summary>
/// Delete the instance of CIM_OwningJobElement 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 void Delete(IWSManClient client)
{
CimBase.Delete<CIM_OwningJobElement>(client);
}
/// <summary>
/// Represents the keys of the CIM_OwningJobElement class.
/// </summary>
public new class CimKeys : CimBase.CimKeys
{
/// <summary>
/// Key, Required, The Job created by the ManagedElement.
/// </summary>
public virtual CimReference OwnedElement
{
get
{
string innerXML = GetKey("OwnedElement");
CimReference epr = new CimReference("OwnedElement", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_OwningJobElement", innerXML);
return epr;
}
set
{
SetOrAddKey("OwnedElement", value);
}
}
/// <summary>
/// Key, Required, The ManagedElement responsible for the creation of the Job.
/// </summary>
public virtual CimReference OwningElement
{
get
{
string innerXML = GetKey("OwningElement");
CimReference epr = new CimReference("OwningElement", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_OwningJobElement", innerXML);
return epr;
}
set
{
SetOrAddKey("OwningElement", value);
}
}
}
}
}