137 lines
4.7 KiB
C#
137 lines
4.7 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_EnvironmentDetectionInterfacePolicy.cs
|
|
//
|
|
// Contents: An existing association implies that a System Defense Policy has been configured to be activated for each interface that identifies it is external to the organization network.
|
|
// This file was automatically generated from AMT_EnvironmentDetectionInterfacePolicy.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>
|
|
///An existing association implies that a System Defense Policy has been configured to be activated for each interface that identifies it is external to the organization network.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionInterfacePolicy")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_EnvironmentDetectionInterfacePolicy", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionInterfacePolicy", IsNullable=false)]
|
|
public class AMT_EnvironmentDetectionInterfacePolicy : AMT_InterfacePolicy
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_EnvironmentDetectionInterfacePolicy() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_EnvironmentDetectionInterfacePolicy(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_EnvironmentDetectionInterfacePolicy(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove Enabled field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveEnabled()
|
|
{
|
|
RemoveField("Enabled");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field Enabled exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool EnabledExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("Enabled");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Specifies whether this policy was enabled on the interface.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool Enabled
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["Enabled"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Enabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_EnvironmentDetectionInterfacePolicy 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_EnvironmentDetectionInterfacePolicy objects</returns>
|
|
public static new Collection<AMT_EnvironmentDetectionInterfacePolicy> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_EnvironmentDetectionInterfacePolicy> ret = CimBase.Enumerate<AMT_EnvironmentDetectionInterfacePolicy>(client, cimKeys);
|
|
return new Collection<AMT_EnvironmentDetectionInterfacePolicy>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_EnvironmentDetectionInterfacePolicy class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_EnvironmentDetectionInterfacePolicy objects</returns>
|
|
public static new Collection<AMT_EnvironmentDetectionInterfacePolicy> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_EnvironmentDetectionInterfacePolicy> ret = CimBase.Enumerate<AMT_EnvironmentDetectionInterfacePolicy>(client);
|
|
return new Collection<AMT_EnvironmentDetectionInterfacePolicy>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_EnvironmentDetectionInterfacePolicy 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_EnvironmentDetectionInterfacePolicy>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_EnvironmentDetectionInterfacePolicy class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : AMT_InterfacePolicy.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|