508 lines
14 KiB
C#
508 lines
14 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: IPS_IPv6PortSettings.cs
|
|
//
|
|
// Contents: Intel(R) AMT IPv6 settings.
|
|
// This file was automatically generated from IPS_IPv6PortSettings.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>
|
|
///Intel(R) AMT IPv6 settings.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IPv6PortSettings")]
|
|
[System.Xml.Serialization.XmlRootAttribute("IPS_IPv6PortSettings", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IPv6PortSettings", IsNullable=false)]
|
|
public class IPS_IPv6PortSettings : CIM_SettingData
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public IPS_IPv6PortSettings() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public IPS_IPv6PortSettings(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 IPS_IPv6PortSettings(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove CurrentAddressInfo field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCurrentAddressInfo()
|
|
{
|
|
RemoveField("CurrentAddressInfo");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CurrentAddressInfo exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CurrentAddressInfoExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CurrentAddressInfo");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Contains formatted strings of configured addresses.
|
|
/// The format of each string is as follows: %IPv6Addr%,%AddrType%,%AddrState%
|
|
/// Possible values for %AddrType%: 0 - Address generated from: fe80::/64 + Interface ID, 1 - Address generated from: [Router advertised prefix] + [Interface ID], 2 - Global IPv6 address obtained from DHCPv6 Server, 3 - IPv6 unicast address configured by the user, 4 - Returned by FW for IPv6 addresses that are not owned by FW (such as IPv6 router address, configuration server address etc.)
|
|
/// Possible values for %AddrState%: 0 - DAD is still in process for this address, 1 - Address is valid and may be used for new communication, 2 - Address is deprecated and should not be used for new communication, 3 - Covers both the preferred and deprecated states, 4 - The valid lifetime of the address has expired, 5 - An interface ID collision has been detected for this address when performing DAD, 6 - Returned by FW for IPv6 addresses that are not owned by FW (such as IPv6 router address, configuration server address etc.
|
|
/// Note: when setting class properties with PUT, the current address info returned will indicate the IPv6 settings that were valid before the command invocation, as the new settings are not applied until the response is returned to the caller.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string[] CurrentAddressInfo
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<string>(this["CurrentAddressInfo"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
|
|
this.SetOrAddField("CurrentAddressInfo", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove CurrentDefaultRouter field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCurrentDefaultRouter()
|
|
{
|
|
RemoveField("CurrentDefaultRouter");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CurrentDefaultRouter exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CurrentDefaultRouterExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CurrentDefaultRouter");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Used to describe the currently used default router Address (IPv6).
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string CurrentDefaultRouter
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("CurrentDefaultRouter")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CurrentDefaultRouter",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove CurrentPrimaryDNS field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCurrentPrimaryDNS()
|
|
{
|
|
RemoveField("CurrentPrimaryDNS");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CurrentPrimaryDNS exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CurrentPrimaryDNSExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CurrentPrimaryDNS");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Used to describe the currently used primary DNS Address (IPv6).
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string CurrentPrimaryDNS
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("CurrentPrimaryDNS")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CurrentPrimaryDNS",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove CurrentSecondaryDNS field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveCurrentSecondaryDNS()
|
|
{
|
|
RemoveField("CurrentSecondaryDNS");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field CurrentSecondaryDNS exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool CurrentSecondaryDNSExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("CurrentSecondaryDNS");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Used to describe the currently used secondary DNS Address (IPv6).
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string CurrentSecondaryDNS
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("CurrentSecondaryDNS")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CurrentSecondaryDNS",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove DefaultRouter field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveDefaultRouter()
|
|
{
|
|
RemoveField("DefaultRouter");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field DefaultRouter exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool DefaultRouterExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("DefaultRouter");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Used to describe the Default router Address (IPv6).
|
|
/// Used only if default router was not auto-configured via router advertisements.
|
|
/// Relevant only for wired interface.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string DefaultRouter
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("DefaultRouter")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("DefaultRouter",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove IPv6Address field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveIPv6Address()
|
|
{
|
|
RemoveField("IPv6Address");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field IPv6Address exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool IPv6AddressExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("IPv6Address");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, A static IPv6 address. Will be configured in parallel to the auto-configured ipv6 addresses.Unset this parameter by passing "::0"
|
|
/// This parameter is relevant for wired interface.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string IPv6Address
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("IPv6Address")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("IPv6Address",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, Intel(R) IPS IPv6 Settings <d>, where <d> is incremented for every existing instance. This key property cannot be modified after creation.
|
|
/// </summary>
|
|
[CimField(true, true)]
|
|
public override string InstanceID
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("InstanceID")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("InstanceID",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove InterfaceIDType field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveInterfaceIDType()
|
|
{
|
|
RemoveField("InterfaceIDType");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field InterfaceIDType exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool InterfaceIDTypeExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("InterfaceIDType");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Interface ID Type.
|
|
/// "Randomized": the auto configured address will be based on random interface ID (RFC: 3041).
|
|
/// "Intel MAC based": the auto configured address will be based on an interface ID generated by appending 0x8086 to the interface MAC address.
|
|
/// "Manual": the auto configured address will be based on user set interface ID. Selecting this type requires that ManualInterfaceID is set with a valid value
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint InterfaceIDType
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["InterfaceIDType"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("InterfaceIDType",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ManualInterfaceID field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveManualInterfaceID()
|
|
{
|
|
RemoveField("ManualInterfaceID");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ManualInterfaceID exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ManualInterfaceIDExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ManualInterfaceID");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, On write, this setting will be stored, however used only when InterfaceIDType is manual. On read, this parameter represents the manually set InterfaceID and not the currently configured interface ID unless the InterfaceIDType is set to Manual. The currently configured interface ID is apparent in the interface's link local address FE80::<Interface ID>. On write, this value should be unique among objects of this type. If not, it may result in two network interfaces with the same IP address.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string ManualInterfaceID
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("ManualInterfaceID")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("ManualInterfaceID",value);
|
|
}
|
|
}
|
|
/// <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, Used to describe a static Primary DNS Address (IPv6).
|
|
/// Used only if the DNS IPv6 addresses were not configured by DHCPv6.
|
|
/// Relevant only for wired interface.
|
|
/// </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, Used to describe a static Secondary DNS Address (IPv6).
|
|
/// Used only if the DNS IPv6 addresses were not configured by DHCPv6.
|
|
/// Relevant only for wired interface.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string SecondaryDNS
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("SecondaryDNS")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SecondaryDNS",value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_IPv6PortSettings class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of IPS_IPv6PortSettings objects</returns>
|
|
public static new Collection<IPS_IPv6PortSettings> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<IPS_IPv6PortSettings> ret = CimBase.Enumerate<IPS_IPv6PortSettings>(client, cimKeys);
|
|
return new Collection<IPS_IPv6PortSettings>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_IPv6PortSettings class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of IPS_IPv6PortSettings objects</returns>
|
|
public static new Collection<IPS_IPv6PortSettings> Enumerate(IWSManClient client)
|
|
{
|
|
List<IPS_IPv6PortSettings> ret = CimBase.Enumerate<IPS_IPv6PortSettings>(client);
|
|
return new Collection<IPS_IPv6PortSettings>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of IPS_IPv6PortSettings 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<IPS_IPv6PortSettings>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the IPS_IPv6PortSettings class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SettingData.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, Intel(R) IPS IPv6 Settings <d>, where <d> is incremented for every existing instance. This key property cannot be modified after creation.
|
|
/// </summary>
|
|
|
|
public virtual string InstanceID
|
|
{
|
|
get
|
|
{
|
|
return GetKey("InstanceID");
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("InstanceID", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|