174 lines
4.7 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_CRL.cs
//
// Contents: A Certificate Revocation List is a list of certificates which a Certificate Authority has revoked and which are not yet expired.
// This file was automatically generated from AMT_CRL.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>
///A Certificate Revocation List is a list of certificates which a Certificate Authority has revoked and which are not yet expired.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_CRL")]
[System.Xml.Serialization.XmlRootAttribute("AMT_CRL", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_CRL", IsNullable=false)]
public class AMT_CRL : CIM_SettingData
{
/// <summary>
/// Default constructor.
/// </summary>
public AMT_CRL() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public AMT_CRL(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_CRL(IWSManClient client): base(client)
{
}
/// <summary>
/// Remove SerialNumbers field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveSerialNumbers()
{
RemoveField("SerialNumbers");
}
/// <summary>
/// Is true if the field SerialNumbers exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool SerialNumbersExist
{
get
{
return ContainsField("SerialNumbers");
}
}
/// <summary>
/// Optional, Notice: the values of this array are actually base64 encoded values. A list of serial numbers removed by the CA which is specified in the Url variable.
/// </summary>
[CimField(false, false)]
public virtual string[] SerialNumbers
{
get
{
return CimTypesUtils.StringArrayToArray<string>(this["SerialNumbers"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
this.SetOrAddField("SerialNumbers", arr);
}
}
/// <summary>
/// Remove Url field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveUrl()
{
RemoveField("Url");
}
/// <summary>
/// Is true if the field Url exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool UrlExist
{
get
{
return ContainsField("Url");
}
}
/// <summary>
/// Optional, The issuer URL of the revoked certificates.
/// </summary>
[CimField(false, false)]
public virtual string Url
{
get
{
return this.GetField("Url")[0];
}
set
{
this.SetOrAddField("Url",value);
}
}
/// <summary>
/// Enumerate instances of AMT_CRL 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_CRL objects</returns>
public static new Collection<AMT_CRL> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<AMT_CRL> ret = CimBase.Enumerate<AMT_CRL>(client, cimKeys);
return new Collection<AMT_CRL>(ret);
}
/// <summary>
/// Enumerate instances of AMT_CRL class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of AMT_CRL objects</returns>
public static new Collection<AMT_CRL> Enumerate(IWSManClient client)
{
List<AMT_CRL> ret = CimBase.Enumerate<AMT_CRL>(client);
return new Collection<AMT_CRL>(ret);
}
/// <summary>
/// Delete the instance of AMT_CRL 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_CRL>(client);
}
/// <summary>
/// Represents the keys of the AMT_CRL class.
/// </summary>
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}