//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_BIOSElement.cs // // Contents: BIOSElement represents the low-level software that is loaded into non-volatile storage and used to bring up and configure a ComputerSystem. // This file was automatically generated from CIM_BIOSElement.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 { /// ///BIOSElement represents the low-level software that is loaded into non-volatile storage and used to bring up and configure a ComputerSystem. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BIOSElement")] [System.Xml.Serialization.XmlRootAttribute("CIM_BIOSElement", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BIOSElement", IsNullable=false)] public class CIM_BIOSElement : CIM_SoftwareElement { /// /// Default constructor. /// public CIM_BIOSElement() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_BIOSElement(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_BIOSElement(IWSManClient client): base(client) { } /// /// Remove CurrentLanguage field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCurrentLanguage() { RemoveField("CurrentLanguage"); } /// /// Is true if the field CurrentLanguage exists in the current object, /// otherwise is false. /// public virtual bool CurrentLanguageExist { get { return ContainsField("CurrentLanguage"); } } /// /// Optional, The currently selected language for the BIOS. This information can be obtained from SMBIOS, using the Current Language attribute of the Type 13 structure, to index into the string list following the structure. The property is formatted using the ISO 639 Language Name, and may be followed by the ISO 3166 Territory Name and the encoding method. /// [CimField(false, false)] public virtual string CurrentLanguage { get { return this.GetField("CurrentLanguage")[0]; } set { this.SetOrAddField("CurrentLanguage",value); } } /// /// Remove ListOfLanguages field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveListOfLanguages() { RemoveField("ListOfLanguages"); } /// /// Is true if the field ListOfLanguages exists in the current object, /// otherwise is false. /// public virtual bool ListOfLanguagesExist { get { return ContainsField("ListOfLanguages"); } } /// /// Optional, A list of installable languages for the BIOS. This information can be obtained from SMBIOS, from the string list that follows the Type 13 structure. An ISO 639 Language Name should be used to specify the BIOS' installable languages. The ISO 3166 Territory Name and the encoding method may also be specified, following the Language Name. /// [CimField(false, false)] public virtual string[] ListOfLanguages { get { return CimTypesUtils.StringArrayToArray(this["ListOfLanguages"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("ListOfLanguages", arr); } } /// /// Remove LoadUtilityInformation field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveLoadUtilityInformation() { RemoveField("LoadUtilityInformation"); } /// /// Is true if the field LoadUtilityInformation exists in the current object, /// otherwise is false. /// public virtual bool LoadUtilityInformationExist { get { return ContainsField("LoadUtilityInformation"); } } /// /// Optional, A free form string describing the BIOS flash/load utility that is required to update the BIOSElement. Version and other information may be indicated in this property. /// [CimField(false, false)] public virtual string LoadUtilityInformation { get { return this.GetField("LoadUtilityInformation")[0]; } set { this.SetOrAddField("LoadUtilityInformation",value); } } /// /// Remove LoadedEndingAddress field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveLoadedEndingAddress() { RemoveField("LoadedEndingAddress"); } /// /// Is true if the field LoadedEndingAddress exists in the current object, /// otherwise is false. /// public virtual bool LoadedEndingAddressExist { get { return ContainsField("LoadedEndingAddress"); } } /// /// Optional, The ending address of the memory which this BIOS occupies. /// [CimField(false, false)] public virtual ulong LoadedEndingAddress { get { return ulong.Parse(this["LoadedEndingAddress"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("LoadedEndingAddress",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove LoadedStartingAddress field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveLoadedStartingAddress() { RemoveField("LoadedStartingAddress"); } /// /// Is true if the field LoadedStartingAddress exists in the current object, /// otherwise is false. /// public virtual bool LoadedStartingAddressExist { get { return ContainsField("LoadedStartingAddress"); } } /// /// Optional, The starting address of the memory which this BIOS occupies. /// [CimField(false, false)] public virtual ulong LoadedStartingAddress { get { return ulong.Parse(this["LoadedStartingAddress"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("LoadedStartingAddress",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove Manufacturer field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public override void RemoveManufacturer() { RemoveField("Manufacturer"); } /// /// Is true if the field Manufacturer exists in the current object, /// otherwise is false. /// public override bool ManufacturerExist { get { return ContainsField("Manufacturer"); } } /// /// Optional, /// [CimField(false, false)] public override string Manufacturer { get { return this.GetField("Manufacturer")[0]; } set { this.SetOrAddField("Manufacturer",value); } } /// /// Remove PrimaryBIOS field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemovePrimaryBIOS() { RemoveField("PrimaryBIOS"); } /// /// Is true if the field PrimaryBIOS exists in the current object, /// otherwise is false. /// public virtual bool PrimaryBIOSExist { get { return ContainsField("PrimaryBIOS"); } } /// /// Optional, If true, this is the primary BIOS of the ComputerSystem. /// [CimField(false, false)] public virtual bool PrimaryBIOS { get { return bool.Parse(this["PrimaryBIOS"][0]); } set { this.SetOrAddField("PrimaryBIOS",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Remove RegistryURIs field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRegistryURIs() { RemoveField("RegistryURIs"); } /// /// Is true if the field RegistryURIs exists in the current object, /// otherwise is false. /// public virtual bool RegistryURIsExist { get { return ContainsField("RegistryURIs"); } } /// /// Optional, A string representing the publication location of the BIOS Attribute registry or registries the implementation complies to. /// [CimField(false, false)] public virtual string[] RegistryURIs { get { return CimTypesUtils.StringArrayToArray(this["RegistryURIs"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("RegistryURIs", arr); } } /// /// Remove ReleaseDate field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveReleaseDate() { RemoveField("ReleaseDate"); } /// /// Is true if the field ReleaseDate exists in the current object, /// otherwise is false. /// public virtual bool ReleaseDateExist { get { return ContainsField("ReleaseDate"); } } /// /// Optional, Date that this BIOS was released. /// [CimField(false, false)] public virtual CimDateTime ReleaseDate { get { return CimDateTime.Parse(this["ReleaseDate"][0]); } set { this.SetOrAddField("ReleaseDate",value.ToString()); } } /// /// Required, /// [CimField(true, true)] public override string Version { get { return this.GetField("Version")[0]; } set { this.SetOrAddField("Version",value); } } /// /// Enumerate instances of CIM_BIOSElement class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_BIOSElement 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_BIOSElement class at an endpoint. /// /// WS-Management client /// Collection of CIM_BIOSElement objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_BIOSElement 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_BIOSElement class. /// public new class CimKeys : CIM_SoftwareElement.CimKeys { /// /// Required, /// public virtual string Version { get { return GetKey("Version"); } set { SetOrAddKey("Version", value); } } } } }