173 lines
4.8 KiB
C#

//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_MPSUsernamePassword.cs
//
// Contents: A username and password used to access an MPS.
// This file was automatically generated from AMT_MPSUsernamePassword.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 username and password used to access an MPS.
/// </summary>
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_MPSUsernamePassword")]
[System.Xml.Serialization.XmlRootAttribute("AMT_MPSUsernamePassword", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_MPSUsernamePassword", IsNullable=false)]
public class AMT_MPSUsernamePassword : CIM_SharedCredential
{
/// <summary>
/// Default constructor.
/// </summary>
public AMT_MPSUsernamePassword() :base()
{
}
/// <summary>
/// Constructor that recieves an xml string for deserialization.
/// </summary>
/// <param name="xml">xml string to deserialize</param>
public AMT_MPSUsernamePassword(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 AMT_MPSUsernamePassword(IWSManClient client): base(client)
{
}
/// <summary>
/// Remove RemoteID field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public override void RemoveRemoteID()
{
RemoveField("RemoteID");
}
/// <summary>
/// Is true if the field RemoteID exists in the current object,
/// otherwise is false.
/// </summary>
public override bool RemoteIDExist
{
get
{
return ContainsField("RemoteID");
}
}
/// <summary>
/// Optional, RemoteID is the name by which the principal is known at the remote secret key authentication service.
/// </summary>
[CimField(false, false)]
public override string RemoteID
{
get
{
return this.GetField("RemoteID")[0];
}
set
{
this.SetOrAddField("RemoteID",value);
}
}
/// <summary>
/// Remove Secret field.
/// Note: This method will succeed only if this field is optional in the concrete object.
/// </summary>
public override void RemoveSecret()
{
RemoveField("Secret");
}
/// <summary>
/// Is true if the field Secret exists in the current object,
/// otherwise is false.
/// </summary>
public override bool SecretExist
{
get
{
return ContainsField("Secret");
}
}
/// <summary>
/// Optional, The secret known by the principal.
/// </summary>
[CimField(false, false)]
public override string Secret
{
get
{
return this.GetField("Secret")[0];
}
set
{
this.SetOrAddField("Secret",value);
}
}
/// <summary>
/// Enumerate instances of AMT_MPSUsernamePassword class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <param name="cimKeys">Keys for selecting the instances</param>
/// <returns>Collection of AMT_MPSUsernamePassword objects</returns>
public static new Collection<AMT_MPSUsernamePassword> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List<AMT_MPSUsernamePassword> ret = CimBase.Enumerate<AMT_MPSUsernamePassword>(client, cimKeys);
return new Collection<AMT_MPSUsernamePassword>(ret);
}
/// <summary>
/// Enumerate instances of AMT_MPSUsernamePassword class at an endpoint.
/// </summary>
/// <param name="client">WS-Management client</param>
/// <returns>Collection of AMT_MPSUsernamePassword objects</returns>
public static new Collection<AMT_MPSUsernamePassword> Enumerate(IWSManClient client)
{
List<AMT_MPSUsernamePassword> ret = CimBase.Enumerate<AMT_MPSUsernamePassword>(client);
return new Collection<AMT_MPSUsernamePassword>(ret);
}
/// <summary>
/// Delete the instance of AMT_MPSUsernamePassword 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<AMT_MPSUsernamePassword>(client);
}
/// <summary>
/// Represents the keys of the AMT_MPSUsernamePassword class.
/// </summary>
public new class CimKeys : CIM_SharedCredential.CimKeys
{
}
}
}