//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_BootConfigSetting.cs
//
// Contents: A class derived from SettingData that provides the container to arrange all the BootSourceSetting instances in an ordered sequence. There can be one or more of the BootConfigSetting instances associated to a ComputerSystem. For example, one such BootConfigSetting could be a default boot configuration supplied by the manufacturer, a second one could be a configuration recommended by the IT Administrator. A third one could be the one actually to be used on next system boot.
// This file was automatically generated from CIM_BootConfigSetting.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
{
///
///A class derived from SettingData that provides the container to arrange all the BootSourceSetting instances in an ordered sequence. There can be one or more of the BootConfigSetting instances associated to a ComputerSystem. For example, one such BootConfigSetting could be a default boot configuration supplied by the manufacturer, a second one could be a configuration recommended by the IT Administrator. A third one could be the one actually to be used on next system boot.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting")]
[System.Xml.Serialization.XmlRootAttribute("CIM_BootConfigSetting", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", IsNullable=false)]
public class CIM_BootConfigSetting : CIM_SettingData
{
///
/// Default constructor.
///
public CIM_BootConfigSetting() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_BootConfigSetting(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_BootConfigSetting(IWSManClient client): base(client)
{
}
///
///This method is called to change the boot order within a boot configuration. An ordered array of BootSourceSetting instances is passed to this method. Each BootSourceSetting instance MUST already be associated with this BootConfigSetting instance via an instance of OrderedComponent. If not, the implementation MUST return a value of "Invalid Parameter" Upon execution of this method, the value of the AssignedSequence property on each instance of OrderedComponent will be updated such that the values are monotonically increasing in correlation with the position of the referenced BootSourceSetting instance in the source input parameter. That is, the first position in the array will have the lowest value for AssignedSequence. The second position will have the second lowest value, and so on. For BootSourceSetting instances which are associated with the BootConfigSetting instance via OrderedComponent and not present in the input array, the AssignedSequence property on the OrderedComponent association will be assigned a value of 0.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", IsNullable=false)]
private class ChangeBootOrder_INPUT : CimParams
{
public ChangeBootOrder_INPUT(string ns) : base(ns)
{
}
///
/// Optional, An ordered array of BootSourceSettings.
///
[CimField(false,false)]
public virtual CimReference[] Source
{
set
{
string[] strArray = new string[value.Length];
for (int i = 0; i < value.Length; i++)
{
strArray.SetValue(value[i].Serialize(false), i);
}
this.SetOrAddField("Source",strArray);
}
}
}
///
///This method is called to change the boot order within a boot configuration. An ordered array of BootSourceSetting instances is passed to this method. Each BootSourceSetting instance MUST already be associated with this BootConfigSetting instance via an instance of OrderedComponent. If not, the implementation MUST return a value of "Invalid Parameter" Upon execution of this method, the value of the AssignedSequence property on each instance of OrderedComponent will be updated such that the values are monotonically increasing in correlation with the position of the referenced BootSourceSetting instance in the source input parameter. That is, the first position in the array will have the lowest value for AssignedSequence. The second position will have the second lowest value, and so on. For BootSourceSetting instances which are associated with the BootConfigSetting instance via OrderedComponent and not present in the input array, the AssignedSequence property on the OrderedComponent association will be assigned a value of 0.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", IsNullable=false)]
private class ChangeBootOrder_OUTPUT : CimParams
{
public ChangeBootOrder_OUTPUT() : base("")
{
}
///
/// Optional, Reference to the job spawned if the operation continues after the method returns. (May be null if the task is completed).
///
[CimField(false,false)]
public virtual CimReference Job
{
get
{
string innerXML = this.GetField("Job")[0];
CimReference epr = new CimReference("Job", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting", innerXML);
return epr;
}
}
}
///
///This method is called to change the boot order within a boot configuration. An ordered array of BootSourceSetting instances is passed to this method. Each BootSourceSetting instance MUST already be associated with this BootConfigSetting instance via an instance of OrderedComponent. If not, the implementation MUST return a value of "Invalid Parameter" Upon execution of this method, the value of the AssignedSequence property on each instance of OrderedComponent will be updated such that the values are monotonically increasing in correlation with the position of the referenced BootSourceSetting instance in the source input parameter. That is, the first position in the array will have the lowest value for AssignedSequence. The second position will have the second lowest value, and so on. For BootSourceSetting instances which are associated with the BootConfigSetting instance via OrderedComponent and not present in the input array, the AssignedSequence property on the OrderedComponent association will be assigned a value of 0.
///
/// Optional, IN -An ordered array of BootSourceSettings.
/// OUT - Reference to the job spawned if the operation continues after the method returns. (May be null if the task is completed).
///
/// Legal values:
/// Completed with No Error : 0
/// Not Supported : 1
/// Unknown/Unspecified Error : 2
/// Busy : 3
/// Invalid Reference : 4
/// Invalid Parameter : 5
/// Access Denied : 6
/// DMTF Reserved : 7..32767
/// Vendor Specified : 32768..65535
///
public virtual uint ChangeBootOrder(CimReference[] inSource,out CimReference outJob)
{
ChangeBootOrder_INPUT input = new ChangeBootOrder_INPUT(this.XmlNamespace);
if (inSource != null)
input.Source=inSource;
ChangeBootOrder_OUTPUT output = new ChangeBootOrder_OUTPUT();
uint returnValue = base.Invoke("ChangeBootOrder",input,out output);
outJob=null;
if (returnValue == 0)
{
if (output.ContainsField("Job"))
outJob = output.Job;
}
return returnValue;
}
///
/// Enumerate instances of CIM_BootConfigSetting class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_BootConfigSetting 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_BootConfigSetting class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_BootConfigSetting objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_BootConfigSetting 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_BootConfigSetting class.
///
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}