//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_IndicationService.cs // // Contents: An IndicationService is a Service of the CIM Object Manager that is responsible for delivering indications to Indication Handlers. // This file was automatically generated from CIM_IndicationService.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 { /// ///An IndicationService is a Service of the CIM Object Manager that is responsible for delivering indications to Indication Handlers. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_IndicationService")] [System.Xml.Serialization.XmlRootAttribute("CIM_IndicationService", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_IndicationService", IsNullable=false)] public class CIM_IndicationService : CIM_Service { /// /// Default constructor. /// public CIM_IndicationService() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_IndicationService(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_IndicationService(IWSManClient client): base(client) { } /// /// Remove DeliveryRetryAttempts field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveDeliveryRetryAttempts() { RemoveField("DeliveryRetryAttempts"); } /// /// Is true if the field DeliveryRetryAttempts exists in the current object, /// otherwise is false. /// public virtual bool DeliveryRetryAttemptsExist { get { return ContainsField("DeliveryRetryAttempts"); } } /// /// Optional, Defines the number of retries that the indication service will try to deliver an indication to a particular listener destination. This does not effect the original delivery attempt, thus if set to 0, it will only try to deliver the indication once. Note that implementations may preset this setting and not allow this value to be modified. /// [CimField(false, false)] public virtual ushort DeliveryRetryAttempts { get { return ushort.Parse(this["DeliveryRetryAttempts"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("DeliveryRetryAttempts",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove DeliveryRetryInterval field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveDeliveryRetryInterval() { RemoveField("DeliveryRetryInterval"); } /// /// Is true if the field DeliveryRetryInterval exists in the current object, /// otherwise is false. /// public virtual bool DeliveryRetryIntervalExist { get { return ContainsField("DeliveryRetryInterval"); } } /// /// Optional, Defines the minimal time interval in seconds for the indication service to use before delivering an indication to a particular listener destination that previously failed. The implementation may take longer due to QoS or other processing. Note that implementations may preset this setting and not allow this value to be modified. /// [CimField(false, false)] public virtual uint DeliveryRetryInterval { get { return uint.Parse(this["DeliveryRetryInterval"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("DeliveryRetryInterval",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove FilterCreationEnabled field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveFilterCreationEnabled() { RemoveField("FilterCreationEnabled"); } /// /// Is true if the field FilterCreationEnabled exists in the current object, /// otherwise is false. /// public virtual bool FilterCreationEnabledExist { get { return ContainsField("FilterCreationEnabled"); } } /// /// Optional, The FilterCreationEnabled property controls whether or not clients can create indication filters. If this value is set to false, only the indication filters that exist can be subscribed to. If this value is true clients may attempt to create filters. Note that implementations may preset this setting and not allow this value to be modified. /// [CimField(false, false)] public virtual bool FilterCreationEnabled { get { return bool.Parse(this["FilterCreationEnabled"][0]); } set { this.SetOrAddField("FilterCreationEnabled",value.ToString().ToLower(CultureInfo.InvariantCulture)); } } /// /// Remove SubscriptionRemovalAction field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSubscriptionRemovalAction() { RemoveField("SubscriptionRemovalAction"); } /// /// Is true if the field SubscriptionRemovalAction exists in the current object, /// otherwise is false. /// public virtual bool SubscriptionRemovalActionExist { get { return ContainsField("SubscriptionRemovalAction"); } } /// /// Optional, Defines the removal action for subscriptions that have two failed indication deliveries without any successful indication deliveries in between and the time between the failed deliveries exceeded the timeout defined in the SubscriptionRemovalTimeInterval property. "Remove" defines the subscription is to be removed. /// "Disable" indicates that subscription removal process isnot being enforced. /// "Ignore" indicates that the removal action is temporarily not enforced. implementations may preset this setting and not allow this value to be modified. /// [CimField(false, false)] public virtual ushort SubscriptionRemovalAction { get { return ushort.Parse(this["SubscriptionRemovalAction"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("SubscriptionRemovalAction",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove SubscriptionRemovalTimeInterval field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveSubscriptionRemovalTimeInterval() { RemoveField("SubscriptionRemovalTimeInterval"); } /// /// Is true if the field SubscriptionRemovalTimeInterval exists in the current object, /// otherwise is false. /// public virtual bool SubscriptionRemovalTimeIntervalExist { get { return ContainsField("SubscriptionRemovalTimeInterval"); } } /// /// Optional, Minimum time between two failed indication deliveries without any successful indication deliveries in between before the SubscriptionRemovalPolicy goes into effect. /// [CimField(false, false)] public virtual uint SubscriptionRemovalTimeInterval { get { return uint.Parse(this["SubscriptionRemovalTimeInterval"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("SubscriptionRemovalTimeInterval",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of CIM_IndicationService class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_IndicationService 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_IndicationService class at an endpoint. /// /// WS-Management client /// Collection of CIM_IndicationService objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_IndicationService 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_IndicationService class. /// public new class CimKeys : CIM_Service.CimKeys { } } }