285 lines
9.9 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_PrivilegeManagementCapabilities.cs
//
// Contents: A subclass of Capabilities that defines the capabilities of the Privilege Management Service.
// This file was automatically generated from CIM_PrivilegeManagementCapabilities.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 of Capabilities that defines the capabilities of the Privilege Management Service.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PrivilegeManagementCapabilities")]
[System.Xml.Serialization.XmlRootAttribute("CIM_PrivilegeManagementCapabilities", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PrivilegeManagementCapabilities", IsNullable=false)]
public class CIM_PrivilegeManagementCapabilities : CIM_Capabilities
{
/// <summary>
/// Default constructor.
/// </summary>
public CIM_PrivilegeManagementCapabilities() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public CIM_PrivilegeManagementCapabilities(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_PrivilegeManagementCapabilities(IWSManClient client): base(client)
{
}
/// <summary>
/// Remove ActivitiesSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveActivitiesSupported()
{
RemoveField("ActivitiesSupported");
}
/// <summary>
/// Is true if the field ActivitiesSupported exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool ActivitiesSupportedExist
{
get
{
return ContainsField("ActivitiesSupported");
}
}
/// <summary>
/// Optional, A super set of activities that could be granted or denied to a role or an identity by the associated privileges. The Activities property of the instances of CIM_Privilege that are associated to the role or the identity MUST contain only the values enumerated in the ActivitiesSupported array property. The supported activities apply to all entities specified in the ActivityQualifiersSupported array. Refer to the CIM_Privilege.Activities property for the detailed description of values.
/// </summary>
[CimField(false, false)]
public virtual ushort[] ActivitiesSupported
{
get
{
return CimTypesUtils.StringArrayToArray<ushort>(this["ActivitiesSupported"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
this.SetOrAddField("ActivitiesSupported", arr);
}
}
/// <summary>
/// Remove ActivityQualifiersSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveActivityQualifiersSupported()
{
RemoveField("ActivityQualifiersSupported");
}
/// <summary>
/// Is true if the field ActivityQualifiersSupported exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool ActivityQualifiersSupportedExist
{
get
{
return ContainsField("ActivityQualifiersSupported");
}
}
/// <summary>
/// Optional, The ActivityQualifiersSupported property is an array of string values used to further qualify and specify the supported activities of privileges. The ActivityQualifiers property of the instances of CIM_Privilege that are associated to the role or the identity MUST contain only the values enumerated in the ActivityQualifiersSupported array property. Details on the semantics of the individual entries in ActivityQualifiersSupported are provided by corresponding entries in the QualifierFormatsSupported array. Refer to the CIM_Privilege.ActivityQualifiers property for the detailed description of values.
/// </summary>
[CimField(false, false)]
public virtual string[] ActivityQualifiersSupported
{
get
{
return CimTypesUtils.StringArrayToArray<string>(this["ActivityQualifiersSupported"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray<string>(value);
this.SetOrAddField("ActivityQualifiersSupported", arr);
}
}
/// <summary>
/// Remove QualifierFormatsSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveQualifierFormatsSupported()
{
RemoveField("QualifierFormatsSupported");
}
/// <summary>
/// Is true if the field QualifierFormatsSupported exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool QualifierFormatsSupportedExist
{
get
{
return ContainsField("QualifierFormatsSupported");
}
}
/// <summary>
/// Optional, Defines the semantics of corresponding entries in the ActivityQualifierSupported array. The QualifierSupported property of the instances of CIM_Privilege that are associated to the role or the identity MUST contain only the values enumerated in the QualifierSupported array property. Refer to the CIM_Privilege.QualifierSupported property for the detailed description of values.
/// </summary>
[CimField(false, false)]
public virtual ushort[] QualifierFormatsSupported
{
get
{
return CimTypesUtils.StringArrayToArray<ushort>(this["QualifierFormatsSupported"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray<ushort>(value);
this.SetOrAddField("QualifierFormatsSupported", arr);
}
}
/// <summary>
/// Remove SharedPrivilegeSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveSharedPrivilegeSupported()
{
RemoveField("SharedPrivilegeSupported");
}
/// <summary>
/// Is true if the field SharedPrivilegeSupported exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool SharedPrivilegeSupportedExist
{
get
{
return ContainsField("SharedPrivilegeSupported");
}
}
/// <summary>
/// Optional, Set to TRUE if this PrivilegeManagementService supports association of multiple subjects or targets to a particular Privilege. If False, the AssignAccess method supports at most one entry each in the Subjects and Targets parameters.
/// </summary>
[CimField(false, false)]
public virtual bool SharedPrivilegeSupported
{
get
{
return bool.Parse(this["SharedPrivilegeSupported"][0]);
}
set
{
this.SetOrAddField("SharedPrivilegeSupported",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
/// <summary>
/// Remove SupportedMethods field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public virtual void RemoveSupportedMethods()
{
RemoveField("SupportedMethods");
}
/// <summary>
/// Is true if the field SupportedMethods exists in the current object,
/// otherwise is false.
/// </summary>
public virtual bool SupportedMethodsExist
{
get
{
return ContainsField("SupportedMethods");
}
}
/// <summary>
/// Optional, Each enumeration corresponds to support for the like-named method of the PrivilegeManagementService.
/// </summary>
[CimField(false, false)]
public virtual 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_PrivilegeManagementCapabilities 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_PrivilegeManagementCapabilities objects</returns>
public static new Collection<CIM_PrivilegeManagementCapabilities> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<CIM_PrivilegeManagementCapabilities> ret = CimBase.Enumerate<CIM_PrivilegeManagementCapabilities>(client, cimKeys);
return new Collection<CIM_PrivilegeManagementCapabilities>(ret);
}
/// <summary>
/// Enumerate instances of CIM_PrivilegeManagementCapabilities class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of CIM_PrivilegeManagementCapabilities objects</returns>
public static new Collection<CIM_PrivilegeManagementCapabilities> Enumerate(IWSManClient client)
{
List<CIM_PrivilegeManagementCapabilities> ret = CimBase.Enumerate<CIM_PrivilegeManagementCapabilities>(client);
return new Collection<CIM_PrivilegeManagementCapabilities>(ret);
}
/// <summary>
/// Delete the instance of CIM_PrivilegeManagementCapabilities 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_PrivilegeManagementCapabilities>(client);
}
/// <summary>
/// Represents the keys of the CIM_PrivilegeManagementCapabilities class.
/// </summary>
public new class CimKeys : CIM_Capabilities.CimKeys
{
}
}
}