137 lines
4.4 KiB
C#
137 lines
4.4 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_CryptographicCapabilities.cs
|
|
//
|
|
// Contents: Describes the cryptographic capabilities of the Intel(R) AMT subsystem.
|
|
// This file was automatically generated from AMT_CryptographicCapabilities.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>
|
|
///Describes the cryptographic capabilities of the Intel(R) AMT subsystem.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_CryptographicCapabilities")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_CryptographicCapabilities", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_CryptographicCapabilities", IsNullable=false)]
|
|
public class AMT_CryptographicCapabilities : CIM_Capabilities
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_CryptographicCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_CryptographicCapabilities(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 AMT_CryptographicCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove HardwareAcceleration field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveHardwareAcceleration()
|
|
{
|
|
RemoveField("HardwareAcceleration");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field HardwareAcceleration exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool HardwareAccelerationExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("HardwareAcceleration");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether or not cryptographic algorithms are hardware accelerated.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint HardwareAcceleration
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["HardwareAcceleration"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("HardwareAcceleration",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_CryptographicCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of AMT_CryptographicCapabilities objects</returns>
|
|
public static new Collection<AMT_CryptographicCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_CryptographicCapabilities> ret = CimBase.Enumerate<AMT_CryptographicCapabilities>(client, cimKeys);
|
|
return new Collection<AMT_CryptographicCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_CryptographicCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_CryptographicCapabilities objects</returns>
|
|
public static new Collection<AMT_CryptographicCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_CryptographicCapabilities> ret = CimBase.Enumerate<AMT_CryptographicCapabilities>(client);
|
|
return new Collection<AMT_CryptographicCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_CryptographicCapabilities 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<AMT_CryptographicCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_CryptographicCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Capabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|