262 lines
8.1 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: IPS_IEEE8021xSettings.cs
//
// Contents:
// This file was automatically generated from IPS_IEEE8021xSettings.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>
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IEEE8021xSettings")]
[System.Xml.Serialization.XmlRootAttribute("IPS_IEEE8021xSettings", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IEEE8021xSettings", IsNullable=false)]
public class IPS_IEEE8021xSettings : CIM_IEEE8021xSettings
{
/// <summary>
/// Default constructor.
/// </summary>
public IPS_IEEE8021xSettings() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public IPS_IEEE8021xSettings(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 IPS_IEEE8021xSettings(IWSManClient client): base(client)
{
}
/// <summary>
/// Remove AvailableInS0 field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveAvailableInS0()
{
RemoveField("AvailableInS0");
}
/// <summary>
/// Is true if the field AvailableInS0 exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool AvailableInS0Exist
{
get
{
return ContainsField("AvailableInS0");
}
}
/// <summary>
/// Optional, Indicates the activity setting of the 802.1X module in S0 state. The default value for this property is 'true'.
/// </summary>
[CimField(false, false)]
public virtual bool AvailableInS0
{
get
{
return bool.Parse(this["AvailableInS0"][0]);
}
set
{
this.SetOrAddField("AvailableInS0",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Required, Indicates whether the 802.1x profile is enabled.
/// </summary>
[CimField(false, true)]
public virtual uint Enabled
{
get
{
return uint.Parse(this["Enabled"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Enabled",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove PxeTimeout field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemovePxeTimeout()
{
RemoveField("PxeTimeout");
}
/// <summary>
/// Is true if the field PxeTimeout exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool PxeTimeoutExist
{
get
{
return ContainsField("PxeTimeout");
}
}
/// <summary>
/// Optional, Timeout in seconds, in which the Intel(R) AMT will hold an authenticated 802.1X session. During the defined period, Intel(R) AMT manages the 802.1X negotiation while a PXE boot takes place. After the timeout, control of the negotiation passes to the host.
/// The maximum value is 86400 seconds (one day).
/// A value of 0 disables the feature.
/// If this optional value is omitted, Intel(R) AMT sets a default value of 120 seconds.
/// </summary>
[CimField(false, false)]
public virtual uint PxeTimeout
{
get
{
return uint.Parse(this["PxeTimeout"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("PxeTimeout",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
///Set the certificates associated with the 8021X profile.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IEEE8021xSettings", IsNullable=false)]
private class SetCertificates_INPUT : CimParams
{
public SetCertificates_INPUT(string ns) : base(ns)
{
}
/// <summary>
/// Optional, The trusted root CA that should be used while verifying the server certificate.
/// </summary>
[CimField(false,false)]
public virtual CimReference ServerCertificateIssuer
{
set
{
this.SetOrAddField("ServerCertificateIssuer",value.Serialize(false));
}
}
/// <summary>
/// Optional, The client certificate that should be used by the profile.
/// </summary>
[CimField(false,false)]
public virtual CimReference ClientCertificate
{
set
{
this.SetOrAddField("ClientCertificate",value.Serialize(false));
}
}
}
/// <summary>
///Set the certificates associated with the 8021X profile.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IEEE8021xSettings", IsNullable=false)]
private class SetCertificates_OUTPUT : CimParams
{
public SetCertificates_OUTPUT() : base("")
{
}
}
/// <summary>
///Set the certificates associated with the 8021X profile.
/// </summary>
/// <param name="inServerCertificateIssuer">Optional, IN -The trusted root CA that should be used while verifying the server certificate.</param>
/// <param name="inClientCertificate">Optional, IN -The client certificate that should be used by the profile.</param>
/// <returns>
/// Legal values:
/// PT_STATUS_SUCCESS : 0
/// PT_STATUS_INTERNAL_ERROR : 1
/// Reserved : 2..
/// </returns>
public virtual uint SetCertificates(CimReference inServerCertificateIssuer,CimReference inClientCertificate)
{
SetCertificates_INPUT input = new SetCertificates_INPUT(this.XmlNamespace);
if (inServerCertificateIssuer != null)
input.ServerCertificateIssuer=inServerCertificateIssuer;
if (inClientCertificate != null)
input.ClientCertificate=inClientCertificate;
SetCertificates_OUTPUT output = new SetCertificates_OUTPUT();
uint returnValue = base.Invoke("SetCertificates",input,out output);
return returnValue;
}
/// <summary>
/// Enumerate instances of IPS_IEEE8021xSettings class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <param name="cimKeys">Keys for selecting the instances</param>
/// <returns>Collection of IPS_IEEE8021xSettings objects</returns>
public static new Collection<IPS_IEEE8021xSettings> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<IPS_IEEE8021xSettings> ret = CimBase.Enumerate<IPS_IEEE8021xSettings>(client, cimKeys);
return new Collection<IPS_IEEE8021xSettings>(ret);
}
/// <summary>
/// Enumerate instances of IPS_IEEE8021xSettings class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of IPS_IEEE8021xSettings objects</returns>
public static new Collection<IPS_IEEE8021xSettings> Enumerate(IWSManClient client)
{
List<IPS_IEEE8021xSettings> ret = CimBase.Enumerate<IPS_IEEE8021xSettings>(client);
return new Collection<IPS_IEEE8021xSettings>(ret);
}
/// <summary>
/// Delete the instance of IPS_IEEE8021xSettings 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<IPS_IEEE8021xSettings>(client);
}
/// <summary>
/// Represents the keys of the IPS_IEEE8021xSettings class.
/// </summary>
public new class CimKeys : CIM_IEEE8021xSettings.CimKeys
{
}
}
}