//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_PolicyCondition.cs
//
// Contents: A class representing a rule-specific or reusable policy condition to be evaluated in conjunction with a Policy Rule. Since all operational details of a PolicyCondition are provided in subclasses of this object, this class is abstract.
// This file was automatically generated from CIM_PolicyCondition.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
{
///
///A class representing a rule-specific or reusable policy condition to be evaluated in conjunction with a Policy Rule. Since all operational details of a PolicyCondition are provided in subclasses of this object, this class is abstract.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PolicyCondition")]
[System.Xml.Serialization.XmlRootAttribute("CIM_PolicyCondition", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PolicyCondition", IsNullable=false)]
public class CIM_PolicyCondition : CIM_Policy
{
///
/// Default constructor.
///
public CIM_PolicyCondition() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_PolicyCondition(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_PolicyCondition(IWSManClient client): base(client)
{
}
///
/// Key, Required, CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
///
[CimField(true, true)]
public virtual string CreationClassName
{
get
{
return this.GetField("CreationClassName")[0];
}
set
{
this.SetOrAddField("CreationClassName",value);
}
}
///
/// Key, Required, A user-friendly name of this PolicyCondition.
///
[CimField(true, true)]
public virtual string PolicyConditionName
{
get
{
return this.GetField("PolicyConditionName")[0];
}
set
{
this.SetOrAddField("PolicyConditionName",value);
}
}
///
/// Key, Required, For a rule-specific PolicyCondition, the CreationClassName of the PolicyRule object with which this Condition is associated. For a reusable Policy Condition, a special value, 'NO RULE', should be used to indicate that this Condition is reusable and not associated with a single PolicyRule.
///
[CimField(true, true)]
public virtual string PolicyRuleCreationClassName
{
get
{
return this.GetField("PolicyRuleCreationClassName")[0];
}
set
{
this.SetOrAddField("PolicyRuleCreationClassName",value);
}
}
///
/// Key, Required, For a rule-specific PolicyCondition, the name of the PolicyRule object with which this Condition is associated. For a reusable PolicyCondition, a special value, 'NO RULE', should be used to indicate that this Condition is reusable and not associated with a single PolicyRule.
///
[CimField(true, true)]
public virtual string PolicyRuleName
{
get
{
return this.GetField("PolicyRuleName")[0];
}
set
{
this.SetOrAddField("PolicyRuleName",value);
}
}
///
/// Key, Required, The name of the class or the subclass used in the creation of the System object in whose scope this PolicyCondition is defined.
///
/// This property helps to identify the System object in whose scope this instance of PolicyCondition exists. For a rule-specific PolicyCondition, this is the System in whose context the PolicyRule is defined. For a reusable PolicyCondition, this is the instance of PolicyRepository (which is a subclass of System) that holds the Condition.
///
/// Note that this property, and the analogous property SystemName, do not represent propagated keys from an instance of the class System. Instead, they are properties defined in the context of this class, which repeat the values from the instance of System to which this PolicyCondition is related, either directly via the PolicyConditionInPolicyRepository association or indirectly via the PolicyConditionInPolicyRule aggregation.
///
[CimField(true, true)]
public virtual string SystemCreationClassName
{
get
{
return this.GetField("SystemCreationClassName")[0];
}
set
{
this.SetOrAddField("SystemCreationClassName",value);
}
}
///
/// Key, Required, The name of the System object in whose scope this PolicyCondition is defined.
///
/// This property completes the identification of the System object in whose scope this instance of PolicyCondition exists. For a rule-specific PolicyCondition, this is the System in whose context the PolicyRule is defined. For a reusable PolicyCondition, this is the instance of PolicyRepository (which is a subclass of System) that holds the Condition.
///
[CimField(true, true)]
public virtual string SystemName
{
get
{
return this.GetField("SystemName")[0];
}
set
{
this.SetOrAddField("SystemName",value);
}
}
///
/// Enumerate instances of CIM_PolicyCondition class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_PolicyCondition 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_PolicyCondition class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_PolicyCondition objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_PolicyCondition 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_PolicyCondition class.
///
public new class CimKeys : CIM_Policy.CimKeys
{
///
/// Key, Required, CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
///
public virtual string CreationClassName
{
get
{
return GetKey("CreationClassName");
}
set
{
SetOrAddKey("CreationClassName", value);
}
}
///
/// Key, Required, A user-friendly name of this PolicyCondition.
///
public virtual string PolicyConditionName
{
get
{
return GetKey("PolicyConditionName");
}
set
{
SetOrAddKey("PolicyConditionName", value);
}
}
///
/// Key, Required, For a rule-specific PolicyCondition, the CreationClassName of the PolicyRule object with which this Condition is associated. For a reusable Policy Condition, a special value, 'NO RULE', should be used to indicate that this Condition is reusable and not associated with a single PolicyRule.
///
public virtual string PolicyRuleCreationClassName
{
get
{
return GetKey("PolicyRuleCreationClassName");
}
set
{
SetOrAddKey("PolicyRuleCreationClassName", value);
}
}
///
/// Key, Required, For a rule-specific PolicyCondition, the name of the PolicyRule object with which this Condition is associated. For a reusable PolicyCondition, a special value, 'NO RULE', should be used to indicate that this Condition is reusable and not associated with a single PolicyRule.
///
public virtual string PolicyRuleName
{
get
{
return GetKey("PolicyRuleName");
}
set
{
SetOrAddKey("PolicyRuleName", value);
}
}
///
/// Key, Required, The name of the class or the subclass used in the creation of the System object in whose scope this PolicyCondition is defined.
///
/// This property helps to identify the System object in whose scope this instance of PolicyCondition exists. For a rule-specific PolicyCondition, this is the System in whose context the PolicyRule is defined. For a reusable PolicyCondition, this is the instance of PolicyRepository (which is a subclass of System) that holds the Condition.
///
/// Note that this property, and the analogous property SystemName, do not represent propagated keys from an instance of the class System. Instead, they are properties defined in the context of this class, which repeat the values from the instance of System to which this PolicyCondition is related, either directly via the PolicyConditionInPolicyRepository association or indirectly via the PolicyConditionInPolicyRule aggregation.
///
public virtual string SystemCreationClassName
{
get
{
return GetKey("SystemCreationClassName");
}
set
{
SetOrAddKey("SystemCreationClassName", value);
}
}
///
/// Key, Required, The name of the System object in whose scope this PolicyCondition is defined.
///
/// This property completes the identification of the System object in whose scope this instance of PolicyCondition exists. For a rule-specific PolicyCondition, this is the System in whose context the PolicyRule is defined. For a reusable PolicyCondition, this is the instance of PolicyRepository (which is a subclass of System) that holds the Condition.
///
public virtual string SystemName
{
get
{
return GetKey("SystemName");
}
set
{
SetOrAddKey("SystemName", value);
}
}
}
}
}