1011 lines
29 KiB
C#
1011 lines
29 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: AMT_EthernetPortSettings.cs
|
|
//
|
|
// Contents: This class contains all Intel(R) AMT specific settings (IP, DHCP, VLAN) for one network interface in the system.
|
|
// This file was automatically generated from AMT_EthernetPortSettings.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>
|
|
///This class contains all Intel(R) AMT specific settings (IP, DHCP, VLAN) for one network interface in the system.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings")]
|
|
[System.Xml.Serialization.XmlRootAttribute("AMT_EthernetPortSettings", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings", IsNullable=false)]
|
|
public class AMT_EthernetPortSettings : CIM_SettingData
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public AMT_EthernetPortSettings() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public AMT_EthernetPortSettings(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_EthernetPortSettings(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove ConsoleTcpMaxRetransmissions field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveConsoleTcpMaxRetransmissions()
|
|
{
|
|
RemoveField("ConsoleTcpMaxRetransmissions");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ConsoleTcpMaxRetransmissions exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ConsoleTcpMaxRetransmissionsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ConsoleTcpMaxRetransmissions");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates the number of retransmissions host TCP SW tries ifno ack is accepted
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint ConsoleTcpMaxRetransmissions
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["ConsoleTcpMaxRetransmissions"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ConsoleTcpMaxRetransmissions",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove DHCPEnabled field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveDHCPEnabled()
|
|
{
|
|
RemoveField("DHCPEnabled");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field DHCPEnabled exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool DHCPEnabledExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("DHCPEnabled");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether DHCP is in use.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool DHCPEnabled
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["DHCPEnabled"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("DHCPEnabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove DefaultGateway field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveDefaultGateway()
|
|
{
|
|
RemoveField("DefaultGateway");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field DefaultGateway exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool DefaultGatewayExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("DefaultGateway");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Default Gateway in a string format. For example: 10.12.232.1
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string DefaultGateway
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("DefaultGateway")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("DefaultGateway",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove IPAddress field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveIPAddress()
|
|
{
|
|
RemoveField("IPAddress");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field IPAddress exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool IPAddressExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("IPAddress");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, String representation of IP address. Get operation - reports the acquired IP address (whether in static or DHCP mode). Put operation - sets the IP address (in static mode only).
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string IPAddress
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("IPAddress")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("IPAddress",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class.
|
|
/// </summary>
|
|
[CimField(true, true)]
|
|
public override string InstanceID
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("InstanceID")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("InstanceID",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove IpSyncEnabled field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveIpSyncEnabled()
|
|
{
|
|
RemoveField("IpSyncEnabled");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field IpSyncEnabled exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool IpSyncEnabledExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("IpSyncEnabled");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether the IP synchronization between host and ME is enabled.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool IpSyncEnabled
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["IpSyncEnabled"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("IpSyncEnabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove LinkControl field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveLinkControl()
|
|
{
|
|
RemoveField("LinkControl");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field LinkControl exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool LinkControlExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("LinkControl");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Determines whether the link is owned by ME or host
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint LinkControl
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["LinkControl"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("LinkControl",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove LinkIsUp field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveLinkIsUp()
|
|
{
|
|
RemoveField("LinkIsUp");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field LinkIsUp exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool LinkIsUpExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("LinkIsUp");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether the network link is up
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool LinkIsUp
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["LinkIsUp"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("LinkIsUp",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove LinkPolicy field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveLinkPolicy()
|
|
{
|
|
RemoveField("LinkPolicy");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field LinkPolicy exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool LinkPolicyExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("LinkPolicy");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Enumeration values for link policy restrictions for better power consumption. If Intel(R) AMT will not be able to determine the exact power state, the more restrictive closest configuration applies.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual byte[] LinkPolicy
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<byte>(this["LinkPolicy"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<byte>(value);
|
|
this.SetOrAddField("LinkPolicy", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove LinkPreference field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveLinkPreference()
|
|
{
|
|
RemoveField("LinkPreference");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field LinkPreference exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool LinkPreferenceExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("LinkPreference");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Determines whether the link is preferred to be owned by ME or host
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint LinkPreference
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["LinkPreference"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("LinkPreference",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove MACAddress field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveMACAddress()
|
|
{
|
|
RemoveField("MACAddress");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field MACAddress exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool MACAddressExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("MACAddress");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The MAC address used by Intel(R) AMT in a string format. For Example: 01-02-3f-b0-99-99. (This property can only be read and can't be changed.)
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string MACAddress
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("MACAddress")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("MACAddress",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PhysicalConnectionType field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePhysicalConnectionType()
|
|
{
|
|
RemoveField("PhysicalConnectionType");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PhysicalConnectionType exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PhysicalConnectionTypeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PhysicalConnectionType");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates the physical connection type of this network interface
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint PhysicalConnectionType
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["PhysicalConnectionType"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PhysicalConnectionType",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PhysicalNicMedium field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePhysicalNicMedium()
|
|
{
|
|
RemoveField("PhysicalNicMedium");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PhysicalNicMedium exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PhysicalNicMediumExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PhysicalNicMedium");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates which medium is currently used by Intel(R) AMT to communicate with NIC
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint PhysicalNicMedium
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["PhysicalNicMedium"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PhysicalNicMedium",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PrimaryDNS field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePrimaryDNS()
|
|
{
|
|
RemoveField("PrimaryDNS");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PrimaryDNS exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PrimaryDNSExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PrimaryDNS");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Primary DNS in a string format. For example: 10.12.232.1
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string PrimaryDNS
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("PrimaryDNS")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PrimaryDNS",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SecondaryDNS field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSecondaryDNS()
|
|
{
|
|
RemoveField("SecondaryDNS");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SecondaryDNS exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SecondaryDNSExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SecondaryDNS");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Secondary DNS in a string format. For example: 10.12.232.1
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string SecondaryDNS
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("SecondaryDNS")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SecondaryDNS",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SharedDynamicIP field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSharedDynamicIP()
|
|
{
|
|
RemoveField("SharedDynamicIP");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SharedDynamicIP exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SharedDynamicIPExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SharedDynamicIP");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether the dynamic host IP is shared with ME.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool SharedDynamicIP
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["SharedDynamicIP"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SharedDynamicIP",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SharedMAC field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSharedMAC()
|
|
{
|
|
RemoveField("SharedMAC");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SharedMAC exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SharedMACExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SharedMAC");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether Intel(R) AMT shares it's MAC address with the host system.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool SharedMAC
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["SharedMAC"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SharedMAC",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SharedStaticIp field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSharedStaticIp()
|
|
{
|
|
RemoveField("SharedStaticIp");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SharedStaticIp exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SharedStaticIpExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SharedStaticIp");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether the static host IP is shared with ME.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool SharedStaticIp
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["SharedStaticIp"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SharedStaticIp",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SubnetMask field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSubnetMask()
|
|
{
|
|
RemoveField("SubnetMask");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SubnetMask exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SubnetMaskExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SubnetMask");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Subnet mask in a string format.For example: 255.255.0.0
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string SubnetMask
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("SubnetMask")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SubnetMask",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove VLANTag field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveVLANTag()
|
|
{
|
|
RemoveField("VLANTag");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field VLANTag exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool VLANTagExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("VLANTag");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates whether VLAN is in use and what is the VLAN tag when used.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort VLANTag
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["VLANTag"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("VLANTag",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove WLANLinkProtectionLevel field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveWLANLinkProtectionLevel()
|
|
{
|
|
RemoveField("WLANLinkProtectionLevel");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field WLANLinkProtectionLevel exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool WLANLinkProtectionLevelExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("WLANLinkProtectionLevel");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Defines the level of the link protection feature activation. Read only property.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint WLANLinkProtectionLevel
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["WLANLinkProtectionLevel"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("WLANLinkProtectionLevel",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
///Defines the link preferred owner entity
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings", IsNullable=false)]
|
|
private class SetLinkPreference_INPUT : CimParams
|
|
{
|
|
public SetLinkPreference_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Required, The link preference which will be applied to the ethernet port - either ME or host
|
|
/// </summary>
|
|
[CimField(false,true)]
|
|
public virtual uint LinkPreference
|
|
{
|
|
set
|
|
{
|
|
this.SetOrAddField("LinkPreference",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Optional, The timeout (in seconds) after which the link preference return back to Host.Valid only when LinkPreference is 1 (ME).
|
|
/// </summary>
|
|
[CimField(false,false)]
|
|
public virtual uint Timeout
|
|
{
|
|
set
|
|
{
|
|
this.SetOrAddField("Timeout",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
}
|
|
/// <summary>
|
|
///Defines the link preferred owner entity
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings", IsNullable=false)]
|
|
private class SetLinkPreference_OUTPUT : CimParams
|
|
{
|
|
public SetLinkPreference_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Defines the link preferred owner entity
|
|
/// </summary>
|
|
/// <param name="inLinkPreference">Required, IN -The link preference which will be applied to the ethernet port - either ME or host</param>
|
|
/// <param name="inTimeout">Optional, IN -The timeout (in seconds) after which the link preference return back to Host.Valid only when LinkPreference is 1 (ME).</param>
|
|
/// <returns>
|
|
/// Legal values:
|
|
/// PT_STATUS_SUCCESS : 0
|
|
/// PT_STATUS_INTERNAL_ERROR : 1
|
|
/// PT_STATUS_LINK_PREFERENCE_OVERRIDEN : 2
|
|
/// PT_STATUS_INVALID_PARAMETER : 36
|
|
/// PT_STATUS_AUDIT_FAIL : 2075
|
|
/// </returns>
|
|
public virtual uint SetLinkPreference(uint? inLinkPreference,uint? inTimeout)
|
|
{
|
|
SetLinkPreference_INPUT input = new SetLinkPreference_INPUT(this.XmlNamespace);
|
|
if (inLinkPreference.HasValue)
|
|
input.LinkPreference=inLinkPreference.Value;
|
|
if (inTimeout.HasValue)
|
|
input.Timeout=inTimeout.Value;
|
|
SetLinkPreference_OUTPUT output = new SetLinkPreference_OUTPUT();
|
|
uint returnValue = base.Invoke("SetLinkPreference",input,out output);
|
|
return returnValue;
|
|
}
|
|
/// <summary>
|
|
///Used to cancel WLAN LP. When this API is called the Link Protection set by the MC (using the SetLinkPreference() API) is canceled. In addition, ME applications get the request to cancel LP and determine according to their policies whether to do so or not. AMT redirection applications will all cancel Link Protection when this API is called.This API can cancel Link Protection for a maximum of one hour. Once this time expires Link Protection will be restored if still needed by an ME application.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings", IsNullable=false)]
|
|
private class CancelLinkProtection_INPUT : CimParams
|
|
{
|
|
public CancelLinkProtection_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Used to cancel WLAN LP. When this API is called the Link Protection set by the MC (using the SetLinkPreference() API) is canceled. In addition, ME applications get the request to cancel LP and determine according to their policies whether to do so or not. AMT redirection applications will all cancel Link Protection when this API is called.This API can cancel Link Protection for a maximum of one hour. Once this time expires Link Protection will be restored if still needed by an ME application.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings", IsNullable=false)]
|
|
private class CancelLinkProtection_OUTPUT : CimParams
|
|
{
|
|
public CancelLinkProtection_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Used to cancel WLAN LP. When this API is called the Link Protection set by the MC (using the SetLinkPreference() API) is canceled. In addition, ME applications get the request to cancel LP and determine according to their policies whether to do so or not. AMT redirection applications will all cancel Link Protection when this API is called.This API can cancel Link Protection for a maximum of one hour. Once this time expires Link Protection will be restored if still needed by an ME application.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// Legal values:
|
|
/// SUCCESS : 0
|
|
/// NOT_ALLOWED : 1
|
|
/// INTERNAL_ERROR : 2
|
|
/// RESERVED : 3..
|
|
/// </returns>
|
|
public virtual uint CancelLinkProtection()
|
|
{
|
|
CancelLinkProtection_INPUT input = new CancelLinkProtection_INPUT(this.XmlNamespace);
|
|
CancelLinkProtection_OUTPUT output = new CancelLinkProtection_OUTPUT();
|
|
uint returnValue = base.Invoke("CancelLinkProtection",input,out output);
|
|
return returnValue;
|
|
}
|
|
/// <summary>
|
|
///Used to restore Link Protection if previously canceled by calling CancelLinkProtection(). If there is no redirection session open or if link protection is already set, this API will do nothing. If there is a redirection session open, it will get a notification that Link Protection is requested to be restored and it will restore Link Protection. Each redirection application will cancel its own link protection when the session ends.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings", IsNullable=false)]
|
|
private class RestoreLinkProtection_INPUT : CimParams
|
|
{
|
|
public RestoreLinkProtection_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Used to restore Link Protection if previously canceled by calling CancelLinkProtection(). If there is no redirection session open or if link protection is already set, this API will do nothing. If there is a redirection session open, it will get a notification that Link Protection is requested to be restored and it will restore Link Protection. Each redirection application will cancel its own link protection when the session ends.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EthernetPortSettings", IsNullable=false)]
|
|
private class RestoreLinkProtection_OUTPUT : CimParams
|
|
{
|
|
public RestoreLinkProtection_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Used to restore Link Protection if previously canceled by calling CancelLinkProtection(). If there is no redirection session open or if link protection is already set, this API will do nothing. If there is a redirection session open, it will get a notification that Link Protection is requested to be restored and it will restore Link Protection. Each redirection application will cancel its own link protection when the session ends.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// Legal values:
|
|
/// SUCCESS : 0
|
|
/// INTERNAL_ERROR : 1
|
|
/// RESERVED : 2..
|
|
/// </returns>
|
|
public virtual uint RestoreLinkProtection()
|
|
{
|
|
RestoreLinkProtection_INPUT input = new RestoreLinkProtection_INPUT(this.XmlNamespace);
|
|
RestoreLinkProtection_OUTPUT output = new RestoreLinkProtection_OUTPUT();
|
|
uint returnValue = base.Invoke("RestoreLinkProtection",input,out output);
|
|
return returnValue;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_EthernetPortSettings 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_EthernetPortSettings objects</returns>
|
|
public static new Collection<AMT_EthernetPortSettings> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<AMT_EthernetPortSettings> ret = CimBase.Enumerate<AMT_EthernetPortSettings>(client, cimKeys);
|
|
return new Collection<AMT_EthernetPortSettings>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of AMT_EthernetPortSettings class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of AMT_EthernetPortSettings objects</returns>
|
|
public static new Collection<AMT_EthernetPortSettings> Enumerate(IWSManClient client)
|
|
{
|
|
List<AMT_EthernetPortSettings> ret = CimBase.Enumerate<AMT_EthernetPortSettings>(client);
|
|
return new Collection<AMT_EthernetPortSettings>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of AMT_EthernetPortSettings 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_EthernetPortSettings>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the AMT_EthernetPortSettings class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SettingData.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class.
|
|
/// </summary>
|
|
|
|
public virtual string InstanceID
|
|
{
|
|
get
|
|
{
|
|
return GetKey("InstanceID");
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("InstanceID", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|