//----------------------------------------------------------------------------
//
// 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
{
///
///
[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
{
///
/// Default constructor.
///
public IPS_IEEE8021xSettings() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public IPS_IEEE8021xSettings(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public IPS_IEEE8021xSettings(IWSManClient client): base(client)
{
}
///
/// Remove AvailableInS0 field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveAvailableInS0()
{
RemoveField("AvailableInS0");
}
///
/// Is true if the field AvailableInS0 exists in the current object,
/// otherwise is false.
///
public virtual bool AvailableInS0Exist
{
get
{
return ContainsField("AvailableInS0");
}
}
///
/// Optional, Indicates the activity setting of the 802.1X module in S0 state. The default value for this property is 'true'.
///
[CimField(false, false)]
public virtual bool AvailableInS0
{
get
{
return bool.Parse(this["AvailableInS0"][0]);
}
set
{
this.SetOrAddField("AvailableInS0",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Required, Indicates whether the 802.1x profile is enabled.
///
[CimField(false, true)]
public virtual uint Enabled
{
get
{
return uint.Parse(this["Enabled"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("Enabled",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove PxeTimeout field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemovePxeTimeout()
{
RemoveField("PxeTimeout");
}
///
/// Is true if the field PxeTimeout exists in the current object,
/// otherwise is false.
///
public virtual bool PxeTimeoutExist
{
get
{
return ContainsField("PxeTimeout");
}
}
///
/// 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.
///
[CimField(false, false)]
public virtual uint PxeTimeout
{
get
{
return uint.Parse(this["PxeTimeout"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("PxeTimeout",value.ToString(CultureInfo.InvariantCulture));
}
}
///
///Set the certificates associated with the 8021X profile.
///
[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)
{
}
///
/// Optional, The trusted root CA that should be used while verifying the server certificate.
///
[CimField(false,false)]
public virtual CimReference ServerCertificateIssuer
{
set
{
this.SetOrAddField("ServerCertificateIssuer",value.Serialize(false));
}
}
///
/// Optional, The client certificate that should be used by the profile.
///
[CimField(false,false)]
public virtual CimReference ClientCertificate
{
set
{
this.SetOrAddField("ClientCertificate",value.Serialize(false));
}
}
}
///
///Set the certificates associated with the 8021X profile.
///
[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("")
{
}
}
///
///Set the certificates associated with the 8021X profile.
///
/// Optional, IN -The trusted root CA that should be used while verifying the server certificate.
/// Optional, IN -The client certificate that should be used by the profile.
///
/// Legal values:
/// PT_STATUS_SUCCESS : 0
/// PT_STATUS_INTERNAL_ERROR : 1
/// Reserved : 2..
///
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;
}
///
/// Enumerate instances of IPS_IEEE8021xSettings class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of IPS_IEEE8021xSettings objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of IPS_IEEE8021xSettings class at an endpoint.
///
/// WS-Management client
/// Collection of IPS_IEEE8021xSettings objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of IPS_IEEE8021xSettings 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 IPS_IEEE8021xSettings class.
///
public new class CimKeys : CIM_IEEE8021xSettings.CimKeys
{
}
}
}