//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_AbstractIndicationSubscription.cs // // Contents: CIM_IndicationSubscription describes a flow of Indications. The flow is specified by the referenced Filter, and directed to the referenced destination or process in the Handler. Property values of the referenced CIM_IndicationFilter instance and CIM_ListenerDestination instance MAY significantly effect the definition of the subscription. E.g., a subscription associated with a "Transient" destination MAY be deleted when the destination terminates or is no longer available. // This file was automatically generated from CIM_AbstractIndicationSubscription.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 { /// ///CIM_IndicationSubscription describes a flow of Indications. The flow is specified by the referenced Filter, and directed to the referenced destination or process in the Handler. Property values of the referenced CIM_IndicationFilter instance and CIM_ListenerDestination instance MAY significantly effect the definition of the subscription. E.g., a subscription associated with a "Transient" destination MAY be deleted when the destination terminates or is no longer available. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AbstractIndicationSubscription")] [System.Xml.Serialization.XmlRootAttribute("CIM_AbstractIndicationSubscription", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AbstractIndicationSubscription", IsNullable=false)] public class CIM_AbstractIndicationSubscription : CimBase { /// /// Default constructor. /// public CIM_AbstractIndicationSubscription() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_AbstractIndicationSubscription(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_AbstractIndicationSubscription(IWSManClient client): base(client) { } /// /// Remove FailureTriggerTimeInterval field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveFailureTriggerTimeInterval() { RemoveField("FailureTriggerTimeInterval"); } /// /// Is true if the field FailureTriggerTimeInterval exists in the current object, /// otherwise is false. /// public virtual bool FailureTriggerTimeIntervalExist { get { return ContainsField("FailureTriggerTimeInterval"); } } /// /// Optional, The FailureTriggerTimeInterval is used by the client to specify a recommended minimum delay before the OnFatalErrorPolicy is implemented. /// [CimField(false, false)] public virtual ulong FailureTriggerTimeInterval { get { return ulong.Parse(this["FailureTriggerTimeInterval"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("FailureTriggerTimeInterval",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Key, Required, The Filter that defines the criteria and data of the possible Indications of this subscription. /// [CimField(true, false)] public virtual CimReference Filter { get { string innerXML = this.GetField("Filter")[0]; CimReference epr = new CimReference("Filter", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("Filter",value.Serialize(false)); } } /// /// Key, Required, The Handler addressing delivery of the possible Indications of this subscription. /// [CimField(true, false)] public virtual CimReference Handler { get { string innerXML = this.GetField("Handler")[0]; CimReference epr = new CimReference("Handler", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("Handler",value.Serialize(false)); } } /// /// Remove OnFatalErrorPolicy field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOnFatalErrorPolicy() { RemoveField("OnFatalErrorPolicy"); } /// /// Is true if the field OnFatalErrorPolicy exists in the current object, /// otherwise is false. /// public virtual bool OnFatalErrorPolicyExist { get { return ContainsField("OnFatalErrorPolicy"); } } /// /// Optional, Defines the desired behavior for a subscription when a fatal error occurs in one of the Indication processing subcomponents (e.g., Indication processor, Indication or instance provider, or Indication handler) and the Indication cannot be successfully sent. Specifically, a failure implies that some aspect of Indication generation, processing or dispatch is no longer functioning and Indications may be lost. If the value of OnFatalErrorPolicy is 2 ("Ignore") or not set (NULL), the subscription MUST continue to be processed in a 'best effort' mode. This mode of operation can lead to unpredictable, and potentially misleading results, because Indications may be lost. If the value is 3 ("Disable"), the subscription MUST be disabled. With this policy, no new Indications will be generated or dispatched until the subscription is explicitly enabled. This is accomplished via the property, SubscriptionState. If the value is 4 ("Remove"), the subscription MUST be deleted. Selecting this policy has the same effect as issuing a DeleteInstance operation on this subscription instance. /// [CimField(false, false)] public virtual ushort OnFatalErrorPolicy { get { return ushort.Parse(this["OnFatalErrorPolicy"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("OnFatalErrorPolicy",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove OtherOnFatalErrorPolicy field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOtherOnFatalErrorPolicy() { RemoveField("OtherOnFatalErrorPolicy"); } /// /// Is true if the field OtherOnFatalErrorPolicy exists in the current object, /// otherwise is false. /// public virtual bool OtherOnFatalErrorPolicyExist { get { return ContainsField("OtherOnFatalErrorPolicy"); } } /// /// Optional, A string defining "Other" values for OnFatalErrorPolicy. This value MUST be set to a non NULL value when OnFatalErrorPolicy is set to a value of 1 ("Other"). For all other values, the OtherOnFatalErrorPolicy MUST be NULL. /// [CimField(false, false)] public virtual string OtherOnFatalErrorPolicy { get { return this.GetField("OtherOnFatalErrorPolicy")[0]; } set { this.SetOrAddField("OtherOnFatalErrorPolicy",value); } } /// /// Remove OtherRepeatNotificationPolicy field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOtherRepeatNotificationPolicy() { RemoveField("OtherRepeatNotificationPolicy"); } /// /// Is true if the field OtherRepeatNotificationPolicy exists in the current object, /// otherwise is false. /// public virtual bool OtherRepeatNotificationPolicyExist { get { return ContainsField("OtherRepeatNotificationPolicy"); } } /// /// Optional, A string defining "Other" values for RepeatNotificationPolicy. This value MUST be set to a non NULL value when RepeatNotificationPolicy is set to a value of 1 ("Other"). For all other values, the OtherRepeatNotificationPolicy MUST be NULL. /// [CimField(false, false)] public virtual string OtherRepeatNotificationPolicy { get { return this.GetField("OtherRepeatNotificationPolicy")[0]; } set { this.SetOrAddField("OtherRepeatNotificationPolicy",value); } } /// /// Remove OtherSubscriptionState field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveOtherSubscriptionState() { RemoveField("OtherSubscriptionState"); } /// /// Is true if the field OtherSubscriptionState exists in the current object, /// otherwise is false. /// public virtual bool OtherSubscriptionStateExist { get { return ContainsField("OtherSubscriptionState"); } } /// /// Optional, A string defining "Other" values for SubscriptionState. This value MUST be set to a non NULL value when SubscriptionState is set to a value of 1 ("Other"). For all other values, the OtherSubscriptionState MUST be NULL. /// [CimField(false, false)] public virtual string OtherSubscriptionState { get { return this.GetField("OtherSubscriptionState")[0]; } set { this.SetOrAddField("OtherSubscriptionState",value); } } /// /// Remove RepeatNotificationCount field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRepeatNotificationCount() { RemoveField("RepeatNotificationCount"); } /// /// Is true if the field RepeatNotificationCount exists in the current object, /// otherwise is false. /// public virtual bool RepeatNotificationCountExist { get { return ContainsField("RepeatNotificationCount"); } } /// /// Optional, Defines the count property for the repeat notification policy calculation. /// [CimField(false, false)] public virtual ushort RepeatNotificationCount { get { return ushort.Parse(this["RepeatNotificationCount"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RepeatNotificationCount",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove RepeatNotificationGap field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRepeatNotificationGap() { RemoveField("RepeatNotificationGap"); } /// /// Is true if the field RepeatNotificationGap exists in the current object, /// otherwise is false. /// public virtual bool RepeatNotificationGapExist { get { return ContainsField("RepeatNotificationGap"); } } /// /// Optional, Defines the gap interval for the repeat notification policy calculation. /// [CimField(false, false)] public virtual ulong RepeatNotificationGap { get { return ulong.Parse(this["RepeatNotificationGap"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RepeatNotificationGap",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove RepeatNotificationInterval field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRepeatNotificationInterval() { RemoveField("RepeatNotificationInterval"); } /// /// Is true if the field RepeatNotificationInterval exists in the current object, /// otherwise is false. /// public virtual bool RepeatNotificationIntervalExist { get { return ContainsField("RepeatNotificationInterval"); } } /// /// Optional, Defines the time interval for the repeat notification policy calculation. /// [CimField(false, false)] public virtual ulong RepeatNotificationInterval { get { return ulong.Parse(this["RepeatNotificationInterval"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RepeatNotificationInterval",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove RepeatNotificationPolicy field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRepeatNotificationPolicy() { RemoveField("RepeatNotificationPolicy"); } /// /// Is true if the field RepeatNotificationPolicy exists in the current object, /// otherwise is false. /// public virtual bool RepeatNotificationPolicyExist { get { return ContainsField("RepeatNotificationPolicy"); } } /// /// Optional, The RepeatNotificationPolicy property defines the desired behavior for handling Indications that report the occurrence of the same underlying event (e.g., the disk is still generating I/O errors and has not yet been repaired). The defined semantics for the RepeatNotificationCount, RepeatNotificationInterval, and RepeatNotificationGap properties depend on the value of RepeatNotificationPolicy, but values for these properties MUST be set if the property is defined for the selected policy. If the value of RepeatNotificationPolicy is 0 ("Unknown") or not set, no special processing for repeat Indications is defined by the subscription. The semantics associated with the handling of repeat Indications MAY be defined by the Indication processing subcomponents. If the value of RepeatNotificationPolicy is 2 ("None"), special processing of repeat Indications MUST NOT be performed. If the value is 3 ("Suppress") the first RepeatNotificationCount Indications, describing the same event, MUST be sent and all subsequent Indications for this event suppressed for the remainder of the time interval RepeatNotificationInterval. A new interval starts when the next Indication for this event is received. If the value of RepeatNotificationPolicy is 4 ("Delay") and an Indication is received, this Indication MUST be suppressed if, including this Indication, RepeatNoticationCount or fewer Indications for this event have been received during the prior time interval defined by RepeatNotificationInterval. If this Indication is the RepeatNotificationCount + 1 Indication, this Indication MUST be sent and all subsequent Indications for this event ignored until the RepeatNotificationGap has elapsed. A RepeatNotificationInterval MAY NOT overlap a RepeatNotificationGap time interval. /// [CimField(false, false)] public virtual ushort RepeatNotificationPolicy { get { return ushort.Parse(this["RepeatNotificationPolicy"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RepeatNotificationPolicy",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove SubscriptionDuration field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSubscriptionDuration() { RemoveField("SubscriptionDuration"); } /// /// Is true if the field SubscriptionDuration exists in the current object, /// otherwise is false. /// public virtual bool SubscriptionDurationExist { get { return ContainsField("SubscriptionDuration"); } } /// /// Optional, SubscriptionDuration defines the desired length of the subscription. Indications generated after the duration of the subscription has exceeded SubscriptionDuration MUST NOT be sent. The duration of a subscription MAY be changed by modifying this property. An expired subscription MAY be deleted and MUST NOT be modified. If the value of SubscriptionDuration is not set, the subscription MUST be treated as having no expiration date. /// [CimField(false, false)] public virtual ulong SubscriptionDuration { get { return ulong.Parse(this["SubscriptionDuration"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("SubscriptionDuration",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove SubscriptionInfo field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSubscriptionInfo() { RemoveField("SubscriptionInfo"); } /// /// Is true if the field SubscriptionInfo exists in the current object, /// otherwise is false. /// public virtual bool SubscriptionInfoExist { get { return ContainsField("SubscriptionInfo"); } } /// /// Optional, Subscription identification information. May be used by the client or protocol to store subscription identification information. /// [CimField(false, false)] public virtual string SubscriptionInfo { get { return this.GetField("SubscriptionInfo")[0]; } set { this.SetOrAddField("SubscriptionInfo",value); } } /// /// Remove SubscriptionStartTime field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSubscriptionStartTime() { RemoveField("SubscriptionStartTime"); } /// /// Is true if the field SubscriptionStartTime exists in the current object, /// otherwise is false. /// public virtual bool SubscriptionStartTimeExist { get { return ContainsField("SubscriptionStartTime"); } } /// /// Optional, SubscriptionStartTime is the time the subscription was started. The value of this property is computed based on the notion of date and time of the ManagedSystemElement running the Indication processing subcomponents. /// [CimField(false, false)] public virtual CimDateTime SubscriptionStartTime { get { return CimDateTime.Parse(this["SubscriptionStartTime"][0]); } set { this.SetOrAddField("SubscriptionStartTime",value.ToString()); } } /// /// Remove SubscriptionState field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSubscriptionState() { RemoveField("SubscriptionState"); } /// /// Is true if the field SubscriptionState exists in the current object, /// otherwise is false. /// public virtual bool SubscriptionStateExist { get { return ContainsField("SubscriptionState"); } } /// /// Optional, Indicates the current processing state of the subscription. /// [CimField(false, false)] public virtual ushort SubscriptionState { get { return ushort.Parse(this["SubscriptionState"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("SubscriptionState",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove SubscriptionTimeRemaining field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSubscriptionTimeRemaining() { RemoveField("SubscriptionTimeRemaining"); } /// /// Is true if the field SubscriptionTimeRemaining exists in the current object, /// otherwise is false. /// public virtual bool SubscriptionTimeRemainingExist { get { return ContainsField("SubscriptionTimeRemaining"); } } /// /// Optional, SubscriptionTimeRemaining is a computed value that provides a snapshot of the time remaining in the Subscription. /// [CimField(false, false)] public virtual ulong SubscriptionTimeRemaining { get { return ulong.Parse(this["SubscriptionTimeRemaining"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("SubscriptionTimeRemaining",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove TimeOfLastStateChange field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveTimeOfLastStateChange() { RemoveField("TimeOfLastStateChange"); } /// /// Is true if the field TimeOfLastStateChange exists in the current object, /// otherwise is false. /// public virtual bool TimeOfLastStateChangeExist { get { return ContainsField("TimeOfLastStateChange"); } } /// /// Optional, Date and time of the last state change. This value is based on the notion of local date and time of the Managed System Element running the Indication processing subcomponents. /// [CimField(false, false)] public virtual CimDateTime TimeOfLastStateChange { get { return CimDateTime.Parse(this["TimeOfLastStateChange"][0]); } set { this.SetOrAddField("TimeOfLastStateChange",value.ToString()); } } /// /// Enumerate instances of CIM_AbstractIndicationSubscription class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_AbstractIndicationSubscription objects public static Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of CIM_AbstractIndicationSubscription class at an endpoint. /// /// WS-Management client /// Collection of CIM_AbstractIndicationSubscription objects public static Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_AbstractIndicationSubscription if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the CIM_AbstractIndicationSubscription class. /// public new class CimKeys : CimBase.CimKeys { /// /// Key, Required, The Filter that defines the criteria and data of the possible Indications of this subscription. /// public virtual CimReference Filter { get { string innerXML = GetKey("Filter"); CimReference epr = new CimReference("Filter", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AbstractIndicationSubscription", innerXML); return epr; } set { SetOrAddKey("Filter", value); } } /// /// Key, Required, The Handler addressing delivery of the possible Indications of this subscription. /// public virtual CimReference Handler { get { string innerXML = GetKey("Handler"); CimReference epr = new CimReference("Handler", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AbstractIndicationSubscription", innerXML); return epr; } set { SetOrAddKey("Handler", value); } } } } }