317 lines
8.1 KiB
C#

//----------------------------------------------------------------------------
//
// 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
{
/// <summary>
///The IPS_HostIpSettings class represents the IP settings of the host computer.It will use to synchronize IP between host and ME if needed.
/// </summary>
[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
{
/// <summary>
/// Default constructor.
/// </summary>
public IPS_HostIPSettings() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public IPS_HostIPSettings(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_HostIPSettings(IWSManClient client): base(client)
{
}
/// <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.1Represents Default Gateway of host IP.
/// </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. Represents static IP of host.
/// </summary>
[CimField(false, false)]
public virtual string IpAddress
{
get
{
return this.GetField("IpAddress")[0];
}
set
{
this.SetOrAddField("IpAddress",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, Primary DNS in a string format. For example: 10.12.232.1.Represents Primary DNS of host IP.
/// </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.Represents Secondary DNS of host IP.
/// </summary>
[CimField(false, false)]
public virtual string SecondaryDNS
{
get
{
return this.GetField("SecondaryDNS")[0];
}
set
{
this.SetOrAddField("SecondaryDNS",value);
}
}
/// <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.Represents mask of host IP.
/// </summary>
[CimField(false, false)]
public virtual string SubnetMask
{
get
{
return this.GetField("SubnetMask")[0];
}
set
{
this.SetOrAddField("SubnetMask",value);
}
}
/// <summary>
/// Enumerate instances of IPS_HostIPSettings 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_HostIPSettings objects</returns>
public static new Collection<IPS_HostIPSettings> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<IPS_HostIPSettings> ret = CimBase.Enumerate<IPS_HostIPSettings>(client, cimKeys);
return new Collection<IPS_HostIPSettings>(ret);
}
/// <summary>
/// Enumerate instances of IPS_HostIPSettings class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of IPS_HostIPSettings objects</returns>
public static new Collection<IPS_HostIPSettings> Enumerate(IWSManClient client)
{
List<IPS_HostIPSettings> ret = CimBase.Enumerate<IPS_HostIPSettings>(client);
return new Collection<IPS_HostIPSettings>(ret);
}
/// <summary>
/// Delete the instance of IPS_HostIPSettings 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_HostIPSettings>(client);
}
/// <summary>
/// Represents the keys of the IPS_HostIPSettings class.
/// </summary>
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}