//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: IPS_HostIPSettings.cs
//
// Contents: The IPS_HostIpSettings class represents the IP settings of the host computer.It will use to synchronize IP between host and ME if needed.
// This file was automatically generated from IPS_HostIPSettings.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 IPS_HostIpSettings class represents the IP settings of the host computer.It will use to synchronize IP between host and ME if needed.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostIPSettings")]
[System.Xml.Serialization.XmlRootAttribute("IPS_HostIPSettings", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostIPSettings", IsNullable=false)]
public class IPS_HostIPSettings : CIM_SettingData
{
///
/// Default constructor.
///
public IPS_HostIPSettings() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public IPS_HostIPSettings(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public IPS_HostIPSettings(IWSManClient client): base(client)
{
}
///
/// Remove DHCPEnabled field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveDHCPEnabled()
{
RemoveField("DHCPEnabled");
}
///
/// Is true if the field DHCPEnabled exists in the current object,
/// otherwise is false.
///
public virtual bool DHCPEnabledExist
{
get
{
return ContainsField("DHCPEnabled");
}
}
///
/// Optional, Indicates whether DHCP is in use.
///
[CimField(false, false)]
public virtual bool DHCPEnabled
{
get
{
return bool.Parse(this["DHCPEnabled"][0]);
}
set
{
this.SetOrAddField("DHCPEnabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
/// Remove DefaultGateway field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveDefaultGateway()
{
RemoveField("DefaultGateway");
}
///
/// Is true if the field DefaultGateway exists in the current object,
/// otherwise is false.
///
public virtual bool DefaultGatewayExist
{
get
{
return ContainsField("DefaultGateway");
}
}
///
/// Optional, Default Gateway in a string format. For example: 10.12.232.1Represents Default Gateway of host IP.
///
[CimField(false, false)]
public virtual string DefaultGateway
{
get
{
return this.GetField("DefaultGateway")[0];
}
set
{
this.SetOrAddField("DefaultGateway",value);
}
}
///
/// Remove IpAddress field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveIpAddress()
{
RemoveField("IpAddress");
}
///
/// Is true if the field IpAddress exists in the current object,
/// otherwise is false.
///
public virtual bool IpAddressExist
{
get
{
return ContainsField("IpAddress");
}
}
///
/// Optional, String representation of IP address. Represents static IP of host.
///
[CimField(false, false)]
public virtual string IpAddress
{
get
{
return this.GetField("IpAddress")[0];
}
set
{
this.SetOrAddField("IpAddress",value);
}
}
///
/// Remove PrimaryDNS field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemovePrimaryDNS()
{
RemoveField("PrimaryDNS");
}
///
/// Is true if the field PrimaryDNS exists in the current object,
/// otherwise is false.
///
public virtual bool PrimaryDNSExist
{
get
{
return ContainsField("PrimaryDNS");
}
}
///
/// Optional, Primary DNS in a string format. For example: 10.12.232.1.Represents Primary DNS of host IP.
///
[CimField(false, false)]
public virtual string PrimaryDNS
{
get
{
return this.GetField("PrimaryDNS")[0];
}
set
{
this.SetOrAddField("PrimaryDNS",value);
}
}
///
/// Remove SecondaryDNS field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSecondaryDNS()
{
RemoveField("SecondaryDNS");
}
///
/// Is true if the field SecondaryDNS exists in the current object,
/// otherwise is false.
///
public virtual bool SecondaryDNSExist
{
get
{
return ContainsField("SecondaryDNS");
}
}
///
/// Optional, Secondary DNS in a string format. For example: 10.12.232.1.Represents Secondary DNS of host IP.
///
[CimField(false, false)]
public virtual string SecondaryDNS
{
get
{
return this.GetField("SecondaryDNS")[0];
}
set
{
this.SetOrAddField("SecondaryDNS",value);
}
}
///
/// Remove SubnetMask field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSubnetMask()
{
RemoveField("SubnetMask");
}
///
/// Is true if the field SubnetMask exists in the current object,
/// otherwise is false.
///
public virtual bool SubnetMaskExist
{
get
{
return ContainsField("SubnetMask");
}
}
///
/// Optional, Subnet mask in a string format.For example: 255.255.0.0.Represents mask of host IP.
///
[CimField(false, false)]
public virtual string SubnetMask
{
get
{
return this.GetField("SubnetMask")[0];
}
set
{
this.SetOrAddField("SubnetMask",value);
}
}
///
/// Enumerate instances of IPS_HostIPSettings class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of IPS_HostIPSettings objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of IPS_HostIPSettings class at an endpoint.
///
/// WS-Management client
/// Collection of IPS_HostIPSettings objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of IPS_HostIPSettings 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 IPS_HostIPSettings class.
///
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}