//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_EnvironmentDetectionSettingData.cs
//
// Contents: The AMT_EnvironmentDetectionSettingData class represents configuration-related and operational parameters for the Environment-Detection service in the Intel(R) AMT.
// This file was automatically generated from AMT_EnvironmentDetectionSettingData.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
{
///
///The AMT_EnvironmentDetectionSettingData class represents configuration-related and operational parameters for the Environment-Detection service in the Intel(R) AMT.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionSettingData")]
[System.Xml.Serialization.XmlRootAttribute("AMT_EnvironmentDetectionSettingData", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionSettingData", IsNullable=false)]
public class AMT_EnvironmentDetectionSettingData : CIM_SettingData
{
///
/// Default constructor.
///
public AMT_EnvironmentDetectionSettingData() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public AMT_EnvironmentDetectionSettingData(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public AMT_EnvironmentDetectionSettingData(IWSManClient client): base(client)
{
}
///
/// Required, Specifies which algorithm is used to determine whether the system is in its intranet environment or in the Internet environment.
///
[CimField(false, true)]
public virtual ushort DetectionAlgorithm
{
get
{
return ushort.Parse(this["DetectionAlgorithm"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("DetectionAlgorithm",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove DetectionIPv6LocalPrefixes field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveDetectionIPv6LocalPrefixes()
{
RemoveField("DetectionIPv6LocalPrefixes");
}
///
/// Is true if the field DetectionIPv6LocalPrefixes exists in the current object,
/// otherwise is false.
///
public virtual bool DetectionIPv6LocalPrefixesExist
{
get
{
return ContainsField("DetectionIPv6LocalPrefixes");
}
}
///
/// Optional, Can be used for environment detection in IPv6 networks that do not configure the DNS suffix via DHCP. The format is: "XXXX:XXXX:XXXX:XXXX/Y" where Y is the prefix length, the XXXX:XXXX:XXXX:XXXX part can include zeros compression (e.g. 0:0:0 or ::) formats.
///
[CimField(false, false)]
public virtual string[] DetectionIPv6LocalPrefixes
{
get
{
return CimTypesUtils.StringArrayToArray(this["DetectionIPv6LocalPrefixes"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("DetectionIPv6LocalPrefixes", arr);
}
}
///
/// Remove DetectionStrings field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveDetectionStrings()
{
RemoveField("DetectionStrings");
}
///
/// Is true if the field DetectionStrings exists in the current object,
/// otherwise is false.
///
public virtual bool DetectionStringsExist
{
get
{
return ContainsField("DetectionStrings");
}
}
///
/// Optional, An array of strings used in the environment detection algorithm. If DetectionAlgorithm is "Local Domains", DetectionStrings contains a set of local domain strings. If DetectionAlgorithm is "Remote URLs", then DetectionStrings contains a set of remote URLs.
///
[CimField(false, false)]
public virtual string[] DetectionStrings
{
get
{
return CimTypesUtils.StringArrayToArray(this["DetectionStrings"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("DetectionStrings", arr);
}
}
///
///Defines the System Defense policy which will be used by Environment Detection and updates the appropriate instances of AMT_EnvironmentDetectionInterfacePolicy.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionSettingData", IsNullable=false)]
private class SetSystemDefensePolicy_INPUT : CimParams
{
public SetSystemDefensePolicy_INPUT(string ns) : base(ns)
{
}
///
/// Optional, The System Defense policy which will be applied to each interface separately when it is assumed that the interface is connected to an external network. When this parameter is Null, System Defense functionality is expected to remain the same when operating inside or outside the organization.
///
[CimField(false,false)]
public virtual CimReference Policy
{
set
{
this.SetOrAddField("Policy",value.Serialize(false));
}
}
}
///
///Defines the System Defense policy which will be used by Environment Detection and updates the appropriate instances of AMT_EnvironmentDetectionInterfacePolicy.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionSettingData", IsNullable=false)]
private class SetSystemDefensePolicy_OUTPUT : CimParams
{
public SetSystemDefensePolicy_OUTPUT() : base("")
{
}
}
///
///Defines the System Defense policy which will be used by Environment Detection and updates the appropriate instances of AMT_EnvironmentDetectionInterfacePolicy.
///
/// Optional, IN -The System Defense policy which will be applied to each interface separately when it is assumed that the interface is connected to an external network. When this parameter is Null, System Defense functionality is expected to remain the same when operating inside or outside the organization.
///
/// Legal values:
/// PT_STATUS_SUCCESS : 0
/// PT_STATUS_INTERNAL_ERROR : 1
/// PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED : 38
///
public virtual uint SetSystemDefensePolicy(CimReference inPolicy)
{
SetSystemDefensePolicy_INPUT input = new SetSystemDefensePolicy_INPUT(this.XmlNamespace);
if (inPolicy != null)
input.Policy=inPolicy;
SetSystemDefensePolicy_OUTPUT output = new SetSystemDefensePolicy_OUTPUT();
uint returnValue = base.Invoke("SetSystemDefensePolicy",input,out output);
return returnValue;
}
///
///This command is used to enable or disable VPN routing of Intel(R) AMT network messages.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionSettingData", IsNullable=false)]
private class EnableVpnRouting_INPUT : CimParams
{
public EnableVpnRouting_INPUT(string ns) : base(ns)
{
}
///
/// Required, Enable or disable the VPN routing feature.
///
[CimField(false,true)]
public virtual bool Enable
{
set
{
this.SetOrAddField("Enable",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
}
///
///This command is used to enable or disable VPN routing of Intel(R) AMT network messages.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EnvironmentDetectionSettingData", IsNullable=false)]
private class EnableVpnRouting_OUTPUT : CimParams
{
public EnableVpnRouting_OUTPUT() : base("")
{
}
}
///
///This command is used to enable or disable VPN routing of Intel(R) AMT network messages.
///
/// Required, IN -Enable or disable the VPN routing feature.
///
/// Legal values:
/// PT_STATUS_SUCCESS : 0
/// PT_STATUS_INTERNAL_ERROR : 1
/// PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED : 38
///
public virtual uint EnableVpnRouting(bool? inEnable)
{
EnableVpnRouting_INPUT input = new EnableVpnRouting_INPUT(this.XmlNamespace);
if (inEnable.HasValue)
input.Enable=inEnable.Value;
EnableVpnRouting_OUTPUT output = new EnableVpnRouting_OUTPUT();
uint returnValue = base.Invoke("EnableVpnRouting",input,out output);
return returnValue;
}
///
/// Enumerate instances of AMT_EnvironmentDetectionSettingData class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of AMT_EnvironmentDetectionSettingData objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of AMT_EnvironmentDetectionSettingData class at an endpoint.
///
/// WS-Management client
/// Collection of AMT_EnvironmentDetectionSettingData objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of AMT_EnvironmentDetectionSettingData 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 AMT_EnvironmentDetectionSettingData class.
///
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}