209 lines
6.4 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_RemotePort.cs
//
// Contents: RemotePort adds port information to the access data (such as IP Address) that is specified in and inherited from RemoteServiceAccessPoint. For example, using the additional properties in this class, you could indicate that UDP Port 123 is accessed at IP Address xyz. The IP Address would be specified in the inherited AccessInfo property, while the UDP Port number would be specified in the PortInfo property of this class.
// This file was automatically generated from CIM_RemotePort.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>
///RemotePort adds port information to the access data (such as IP Address) that is specified in and inherited from RemoteServiceAccessPoint. For example, using the additional properties in this class, you could indicate that UDP Port 123 is accessed at IP Address xyz. The IP Address would be specified in the inherited AccessInfo property, while the UDP Port number would be specified in the PortInfo property of this class.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemotePort")]
[System.Xml.Serialization.XmlRootAttribute("CIM_RemotePort", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemotePort", IsNullable=false)]
public class CIM_RemotePort : CIM_RemoteServiceAccessPoint
{
/// <summary>
/// Default constructor.
/// </summary>
public CIM_RemotePort() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public CIM_RemotePort(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 CIM_RemotePort(IWSManClient client): base(client)
{
}
/// <summary>
/// Remove OtherProtocolDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveOtherProtocolDescription()
{
RemoveField("OtherProtocolDescription");
}
/// <summary>
/// Is true if the field OtherProtocolDescription exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool OtherProtocolDescriptionExist
{
get
{
return ContainsField("OtherProtocolDescription");
}
}
/// <summary>
/// Optional, Describes the protocol when the property PortProtocol is set to 1 (Other).
/// </summary>
[CimField(false, false)]
public virtual string OtherProtocolDescription
{
get
{
return this.GetField("OtherProtocolDescription")[0];
}
set
{
this.SetOrAddField("OtherProtocolDescription",value);
}
}
/// <summary>
/// Remove PortInfo field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemovePortInfo()
{
RemoveField("PortInfo");
}
/// <summary>
/// Is true if the field PortInfo exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool PortInfoExist
{
get
{
return ContainsField("PortInfo");
}
}
/// <summary>
/// Optional, Port information that might further specify the remote access information.
/// </summary>
[CimField(false, false)]
public virtual string PortInfo
{
get
{
return this.GetField("PortInfo")[0];
}
set
{
this.SetOrAddField("PortInfo",value);
}
}
/// <summary>
/// Remove PortProtocol field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemovePortProtocol()
{
RemoveField("PortProtocol");
}
/// <summary>
/// Is true if the field PortProtocol exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool PortProtocolExist
{
get
{
return ContainsField("PortProtocol");
}
}
/// <summary>
/// Optional, An enumerated integer that describes the protocol of the port that is addressed by PortInformation.
/// </summary>
[CimField(false, false)]
public virtual ushort PortProtocol
{
get
{
return ushort.Parse(this["PortProtocol"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("PortProtocol",value.ToString(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Enumerate instances of CIM_RemotePort class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <param name="cimKeys">Keys for selecting the instances</param>
/// <returns>Collection of CIM_RemotePort objects</returns>
public static new Collection<CIM_RemotePort> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<CIM_RemotePort> ret = CimBase.Enumerate<CIM_RemotePort>(client, cimKeys);
return new Collection<CIM_RemotePort>(ret);
}
/// <summary>
/// Enumerate instances of CIM_RemotePort class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of CIM_RemotePort objects</returns>
public static new Collection<CIM_RemotePort> Enumerate(IWSManClient client)
{
List<CIM_RemotePort> ret = CimBase.Enumerate<CIM_RemotePort>(client);
return new Collection<CIM_RemotePort>(ret);
}
/// <summary>
/// Delete the instance of CIM_RemotePort 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<CIM_RemotePort>(client);
}
/// <summary>
/// Represents the keys of the CIM_RemotePort class.
/// </summary>
public new class CimKeys : CIM_RemoteServiceAccessPoint.CimKeys
{
}
}
}