139 lines
4.9 KiB
C#
139 lines
4.9 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
///A subclass that extends the capabilities of the CIM_RoleBasedAuthorizationService.
|
|
/// </summary>
|
|
[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
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_RoleBasedManagementCapabilities() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_RoleBasedManagementCapabilities(string xml): base((IWSManClient)null)
|
|
{
|
|
this.Deserialize(xml);
|
|
}
|
|
/// <summary>
|
|
/// Constructor which recieves a Ws-Management client object.
|
|
/// </summary>
|
|
/// <param name="client">Ws-Management client</param>
|
|
public CIM_RoleBasedManagementCapabilities(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove SupportedMethods field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public override void RemoveSupportedMethods()
|
|
{
|
|
RemoveField("SupportedMethods");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SupportedMethods exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public override bool SupportedMethodsExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SupportedMethods");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public override ushort[] SupportedMethods
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<ushort>(this["SupportedMethods"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
|
|
this.SetOrAddField("SupportedMethods", arr);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_RoleBasedManagementCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of CIM_RoleBasedManagementCapabilities objects</returns>
|
|
public static new Collection<CIM_RoleBasedManagementCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_RoleBasedManagementCapabilities> ret = CimBase.Enumerate<CIM_RoleBasedManagementCapabilities>(client, cimKeys);
|
|
return new Collection<CIM_RoleBasedManagementCapabilities>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_RoleBasedManagementCapabilities class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_RoleBasedManagementCapabilities objects</returns>
|
|
public static new Collection<CIM_RoleBasedManagementCapabilities> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_RoleBasedManagementCapabilities> ret = CimBase.Enumerate<CIM_RoleBasedManagementCapabilities>(client);
|
|
return new Collection<CIM_RoleBasedManagementCapabilities>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_RoleBasedManagementCapabilities if it is singular.
|
|
/// Note: This method will succeed only if a single instance of the class exists.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
public static new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_RoleBasedManagementCapabilities>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_RoleBasedManagementCapabilities class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_PrivilegeManagementCapabilities.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|