//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_RoleBasedManagementCapabilities.cs // // Contents: A subclass that extends the capabilities of the CIM_RoleBasedAuthorizationService. // This file was automatically generated from CIM_RoleBasedManagementCapabilities.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 subclass that extends the capabilities of the CIM_RoleBasedAuthorizationService. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RoleBasedManagementCapabilities")] [System.Xml.Serialization.XmlRootAttribute("CIM_RoleBasedManagementCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RoleBasedManagementCapabilities", IsNullable=false)] public class CIM_RoleBasedManagementCapabilities : CIM_PrivilegeManagementCapabilities { /// /// Default constructor. /// public CIM_RoleBasedManagementCapabilities() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_RoleBasedManagementCapabilities(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_RoleBasedManagementCapabilities(IWSManClient client): base(client) { } /// /// Remove SupportedMethods field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public override void RemoveSupportedMethods() { RemoveField("SupportedMethods"); } /// /// Is true if the field SupportedMethods exists in the current object, /// otherwise is false. /// public override bool SupportedMethodsExist { get { return ContainsField("SupportedMethods"); } } /// /// Optional, The enumeration values "ChangeAccess", "ShowAccess", "AssignAccess", "RevokeAccess", "CreateRole", "ModifyRole", "AssignRoles", "ShowRoles", and "DeleteRole" corresponds to support for the like-named method of the RoleBasedAuthorizationService. /// The value "ModifyPrivilege" corresponds to support for directly modifying an instance of CIM_Privilege using an intrinsic operation. /// [CimField(false, false)] public override ushort[] SupportedMethods { get { return CimTypesUtils.StringArrayToArray(this["SupportedMethods"]); } set { string[] arr = CimTypesUtils.ArrayToStringArray(value); this.SetOrAddField("SupportedMethods", arr); } } /// /// Enumerate instances of CIM_RoleBasedManagementCapabilities class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_RoleBasedManagementCapabilities 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_RoleBasedManagementCapabilities class at an endpoint. /// /// WS-Management client /// Collection of CIM_RoleBasedManagementCapabilities objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_RoleBasedManagementCapabilities 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_RoleBasedManagementCapabilities class. /// public new class CimKeys : CIM_PrivilegeManagementCapabilities.CimKeys { } } }