247 lines
8.0 KiB
C#
247 lines
8.0 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_EnabledLogicalElementCapabilities.cs
|
|
//
|
|
// Contents: EnabledLogicalElementCapabilities describes the capabilities supported for changing the state of the associated EnabledLogicalElement.
|
|
// This file was automatically generated from CIM_EnabledLogicalElementCapabilities.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>
|
|
///EnabledLogicalElementCapabilities describes the capabilities supported for changing the state of the associated EnabledLogicalElement.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EnabledLogicalElementCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_EnabledLogicalElementCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EnabledLogicalElementCapabilities", IsNullable=false)]
|
|
public class CIM_EnabledLogicalElementCapabilities : CIM_Capabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_EnabledLogicalElementCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_EnabledLogicalElementCapabilities(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_EnabledLogicalElementCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove ElementNameEditSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveElementNameEditSupported()
|
|
{
|
|
RemoveField("ElementNameEditSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ElementNameEditSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ElementNameEditSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ElementNameEditSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Boolean indicating whether the ElementName can be modified.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool ElementNameEditSupported
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["ElementNameEditSupported"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ElementNameEditSupported",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ElementNameMask field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveElementNameMask()
|
|
{
|
|
RemoveField("ElementNameMask");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ElementNameMask exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ElementNameMaskExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ElementNameMask");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, This string expresses the restrictions on ElementName.The mask is expressed as a regular expression.See DMTF standard ABNF with the Management Profile Specification Usage Guide, appendix C for the regular expression syntax permitted.
|
|
/// Since the ElementNameMask can describe the maximum length of the ElementName,any length defined in the regexp is in addition to the restriction defined in MaxElementNameLen (causing the smaller value to be the maximum length) The ElementName value satisfies the restriction, if and only if it matches the regular expression
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string ElementNameMask
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("ElementNameMask")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ElementNameMask",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MaxElementNameLen field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMaxElementNameLen()
|
|
{
|
|
RemoveField("MaxElementNameLen");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MaxElementNameLen exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MaxElementNameLenExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MaxElementNameLen");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Maximum supported ElementName length.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort MaxElementNameLen
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["MaxElementNameLen"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MaxElementNameLen",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove RequestedStatesSupported field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveRequestedStatesSupported()
|
|
{
|
|
RemoveField("RequestedStatesSupported");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field RequestedStatesSupported exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool RequestedStatesSupportedExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("RequestedStatesSupported");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, RequestedStatesSupported indicates the possible states that can be requested when using the method RequestStateChange on the EnabledLogicalElement.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort[] RequestedStatesSupported
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["RequestedStatesSupported"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("RequestedStatesSupported", arr);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_EnabledLogicalElementCapabilities 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_EnabledLogicalElementCapabilities objects</returns>
|
|
public static new Collection<CIM_EnabledLogicalElementCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_EnabledLogicalElementCapabilities> ret = CimBase.Enumerate<CIM_EnabledLogicalElementCapabilities>(client, cimKeys);
|
|
return new Collection<CIM_EnabledLogicalElementCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_EnabledLogicalElementCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_EnabledLogicalElementCapabilities objects</returns>
|
|
public static new Collection<CIM_EnabledLogicalElementCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_EnabledLogicalElementCapabilities> ret = CimBase.Enumerate<CIM_EnabledLogicalElementCapabilities>(client);
|
|
return new Collection<CIM_EnabledLogicalElementCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_EnabledLogicalElementCapabilities 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_EnabledLogicalElementCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_EnabledLogicalElementCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Capabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|