//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_AuthorizedPrivilege.cs // // Contents: Privilege is the base class for all types of activities which are granted or denied to a Role or an Identity. AuthorizedPrivilege is a subclass defining static renderings of authorization policy rules. The association of Roles and Identities to AuthorizedPrivilege is accomplished using the AuthorizedSubject relationship. The entities that are protected are defined using the AuthorizedTarget relationship. // // Note that this class and its AuthorizedSubject/Target associations provide a short-hand, static mechanism to represent authorization policies. // This file was automatically generated from CIM_AuthorizedPrivilege.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 { /// ///Privilege is the base class for all types of activities which are granted or denied to a Role or an Identity. AuthorizedPrivilege is a subclass defining static renderings of authorization policy rules. The association of Roles and Identities to AuthorizedPrivilege is accomplished using the AuthorizedSubject relationship. The entities that are protected are defined using the AuthorizedTarget relationship. ///Note that this class and its AuthorizedSubject/Target associations provide a short-hand, static mechanism to represent authorization policies. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AuthorizedPrivilege")] [System.Xml.Serialization.XmlRootAttribute("CIM_AuthorizedPrivilege", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AuthorizedPrivilege", IsNullable=false)] public class CIM_AuthorizedPrivilege : CIM_Privilege { /// /// Default constructor. /// public CIM_AuthorizedPrivilege() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_AuthorizedPrivilege(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_AuthorizedPrivilege(IWSManClient client): base(client) { } /// /// Enumerate instances of CIM_AuthorizedPrivilege class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_AuthorizedPrivilege 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_AuthorizedPrivilege class at an endpoint. /// /// WS-Management client /// Collection of CIM_AuthorizedPrivilege objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_AuthorizedPrivilege 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_AuthorizedPrivilege class. /// public new class CimKeys : CIM_Privilege.CimKeys { } } }