245 lines
7.4 KiB
C#
245 lines
7.4 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_RemoteAccessAvailableToElement.cs
|
|
//
|
|
// Contents: Describes an element's knowledge regarding accessing other (i.e., remote) Servers and Systems.
|
|
// This file was automatically generated from CIM_RemoteAccessAvailableToElement.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>
|
|
///Describes an element's knowledge regarding accessing other (i.e., remote) Servers and Systems.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteAccessAvailableToElement")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_RemoteAccessAvailableToElement", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteAccessAvailableToElement", IsNullable=false)]
|
|
public class CIM_RemoteAccessAvailableToElement : CIM_Dependency
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_RemoteAccessAvailableToElement() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_RemoteAccessAvailableToElement(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_RemoteAccessAvailableToElement(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The remote server or system.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference Antecedent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("Antecedent")[0];
|
|
CimReference epr = new CimReference("Antecedent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Antecedent",value.Serialize(false));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The EnabledLogicalElement which has knowledge of the remote server or system.
|
|
/// </summary>
|
|
[CimField(true, false)]
|
|
public override CimReference Dependent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = this.GetField("Dependent")[0];
|
|
CimReference epr = new CimReference("Dependent", XmlNamespace, innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Dependent",value.Serialize(false));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove IsDefault field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveIsDefault()
|
|
{
|
|
RemoveField("IsDefault");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field IsDefault exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool IsDefaultExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("IsDefault");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Indicates that this access information is defined as a default configuration for the system.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool IsDefault
|
|
{
|
|
get
|
|
{
|
|
return bool.Parse(this["IsDefault"][0]);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("IsDefault",value.ToString().ToLower(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove OrderOfAccess field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveOrderOfAccess()
|
|
{
|
|
RemoveField("OrderOfAccess");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field OrderOfAccess exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool OrderOfAccessExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("OrderOfAccess");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, When an element is accessing remote services and systems, it MAY be necessary to order those accesses. This property defines that ordering - where lower numbers indicate a higher priority for access. A value of 0 (default) indicates that ordering does not apply. If multiple RemoteAccessPoint instances have the same value for OrderOfAccess, then these AccessPoints MAY be used in any sequence defined by the implementation.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual ushort OrderOfAccess
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["OrderOfAccess"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("OrderOfAccess",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_RemoteAccessAvailableToElement 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_RemoteAccessAvailableToElement objects</returns>
|
|
public static new Collection<CIM_RemoteAccessAvailableToElement> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_RemoteAccessAvailableToElement> ret = CimBase.Enumerate<CIM_RemoteAccessAvailableToElement>(client, cimKeys);
|
|
return new Collection<CIM_RemoteAccessAvailableToElement>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_RemoteAccessAvailableToElement class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_RemoteAccessAvailableToElement objects</returns>
|
|
public static new Collection<CIM_RemoteAccessAvailableToElement> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_RemoteAccessAvailableToElement> ret = CimBase.Enumerate<CIM_RemoteAccessAvailableToElement>(client);
|
|
return new Collection<CIM_RemoteAccessAvailableToElement>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_RemoteAccessAvailableToElement 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_RemoteAccessAvailableToElement>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_RemoteAccessAvailableToElement class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_Dependency.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Required, The remote server or system.
|
|
/// </summary>
|
|
|
|
public virtual CimReference Antecedent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("Antecedent");
|
|
CimReference epr = new CimReference("Antecedent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteAccessAvailableToElement", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("Antecedent", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Required, The EnabledLogicalElement which has knowledge of the remote server or system.
|
|
/// </summary>
|
|
|
|
public virtual CimReference Dependent
|
|
{
|
|
get
|
|
{
|
|
string innerXML = GetKey("Dependent");
|
|
CimReference epr = new CimReference("Dependent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteAccessAvailableToElement", innerXML);
|
|
return epr;
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("Dependent", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|