//----------------------------------------------------------------------------
//
// 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
{
///
///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.
///
[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
{
///
/// Default constructor.
///
public CIM_RemotePort() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_RemotePort(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_RemotePort(IWSManClient client): base(client)
{
}
///
/// Remove OtherProtocolDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveOtherProtocolDescription()
{
RemoveField("OtherProtocolDescription");
}
///
/// Is true if the field OtherProtocolDescription exists in the current object,
/// otherwise is false.
///
public virtual bool OtherProtocolDescriptionExist
{
get
{
return ContainsField("OtherProtocolDescription");
}
}
///
/// Optional, Describes the protocol when the property PortProtocol is set to 1 (Other).
///
[CimField(false, false)]
public virtual string OtherProtocolDescription
{
get
{
return this.GetField("OtherProtocolDescription")[0];
}
set
{
this.SetOrAddField("OtherProtocolDescription",value);
}
}
///
/// Remove PortInfo field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemovePortInfo()
{
RemoveField("PortInfo");
}
///
/// Is true if the field PortInfo exists in the current object,
/// otherwise is false.
///
public virtual bool PortInfoExist
{
get
{
return ContainsField("PortInfo");
}
}
///
/// Optional, Port information that might further specify the remote access information.
///
[CimField(false, false)]
public virtual string PortInfo
{
get
{
return this.GetField("PortInfo")[0];
}
set
{
this.SetOrAddField("PortInfo",value);
}
}
///
/// Remove PortProtocol field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemovePortProtocol()
{
RemoveField("PortProtocol");
}
///
/// Is true if the field PortProtocol exists in the current object,
/// otherwise is false.
///
public virtual bool PortProtocolExist
{
get
{
return ContainsField("PortProtocol");
}
}
///
/// Optional, An enumerated integer that describes the protocol of the port that is addressed by PortInformation.
///
[CimField(false, false)]
public virtual ushort PortProtocol
{
get
{
return ushort.Parse(this["PortProtocol"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("PortProtocol",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of CIM_RemotePort class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_RemotePort objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_RemotePort class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_RemotePort objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_RemotePort 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 CIM_RemotePort class.
///
public new class CimKeys : CIM_RemoteServiceAccessPoint.CimKeys
{
}
}
}