285 lines
9.2 KiB
C#
285 lines
9.2 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_RemoteServiceAccessPoint.cs
|
|
//
|
|
// Contents: RemoteServiceAccessPoint describes access or addressing information or a combination of this information for a remote connection that is known to a local network element. This information is scoped or contained by the local network element, because this is the context in which the connection is remote.
|
|
// The relevance of the remote access point and information on its use are described by subclassing RemoteServiceAccessPoint or by associating to it.
|
|
// This file was automatically generated from CIM_RemoteServiceAccessPoint.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>
|
|
///RemoteServiceAccessPoint describes access or addressing information or a combination of this information for a remote connection that is known to a local network element. This information is scoped or contained by the local network element, because this is the context in which the connection is remote.
|
|
///The relevance of the remote access point and information on its use are described by subclassing RemoteServiceAccessPoint or by associating to it.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteServiceAccessPoint")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_RemoteServiceAccessPoint", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteServiceAccessPoint", IsNullable=false)]
|
|
public class CIM_RemoteServiceAccessPoint : CIM_ServiceAccessPoint
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_RemoteServiceAccessPoint() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_RemoteServiceAccessPoint(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_RemoteServiceAccessPoint(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove AccessContext field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveAccessContext()
|
|
{
|
|
RemoveField("AccessContext");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field AccessContext exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool AccessContextExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("AccessContext");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The AccessContext property identifies the role this RemoteServiceAccessPoint is playing in the hosting system.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort AccessContext
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["AccessContext"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("AccessContext",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove AccessInfo field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveAccessInfo()
|
|
{
|
|
RemoveField("AccessInfo");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field AccessInfo exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool AccessInfoExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("AccessInfo");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Access or addressing information or a combination of this information for a remote connection. This information can be a host name, network address, or similar information.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string AccessInfo
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("AccessInfo")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("AccessInfo",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove InfoFormat field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveInfoFormat()
|
|
{
|
|
RemoveField("InfoFormat");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field InfoFormat exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool InfoFormatExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("InfoFormat");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, An enumerated integer that describes the format and interpretation of the AccessInfo property.
|
|
/// 206'Parameterized URL'- a URL containing ${parameterName} strings. Those strings are intended to be replaced in their entirety by the value of the named parameter. The interpretation of such parameters is not defined by this subclass.
|
|
/// As an example use: If a parameter named 'CompanyURL' has a value of 'www.DMTF.org' and the value of AccessInfo was 'http:\${CompanyURL}', then the resultant URL is intended to be 'http:\www.dmtf.org'.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort InfoFormat
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["InfoFormat"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("InfoFormat",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove OtherAccessContext field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveOtherAccessContext()
|
|
{
|
|
RemoveField("OtherAccessContext");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field OtherAccessContext exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool OtherAccessContextExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("OtherAccessContext");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, When the AccessContext property contains a value of 1, "Other" then this is a free form string providing more information about the role of RemoteServiceAccessPoint in the hosting system.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string OtherAccessContext
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("OtherAccessContext")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("OtherAccessContext",value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove OtherInfoFormatDescription field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveOtherInfoFormatDescription()
|
|
{
|
|
RemoveField("OtherInfoFormatDescription");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field OtherInfoFormatDescription exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool OtherInfoFormatDescriptionExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("OtherInfoFormatDescription");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Describes the format when the property InfoFormat is set to 1 (Other).
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual string OtherInfoFormatDescription
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("OtherInfoFormatDescription")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("OtherInfoFormatDescription",value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_RemoteServiceAccessPoint 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_RemoteServiceAccessPoint objects</returns>
|
|
public static new Collection<CIM_RemoteServiceAccessPoint> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_RemoteServiceAccessPoint> ret = CimBase.Enumerate<CIM_RemoteServiceAccessPoint>(client, cimKeys);
|
|
return new Collection<CIM_RemoteServiceAccessPoint>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_RemoteServiceAccessPoint class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_RemoteServiceAccessPoint objects</returns>
|
|
public static new Collection<CIM_RemoteServiceAccessPoint> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_RemoteServiceAccessPoint> ret = CimBase.Enumerate<CIM_RemoteServiceAccessPoint>(client);
|
|
return new Collection<CIM_RemoteServiceAccessPoint>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_RemoteServiceAccessPoint 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_RemoteServiceAccessPoint>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_RemoteServiceAccessPoint class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_ServiceAccessPoint.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|