210 lines
6.3 KiB
C#
210 lines
6.3 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: IPS_HTTPProxyAccessPoint.cs
|
|
//
|
|
// Contents: The IPS_HTTPProxyAccessPoint class represents the set of proxy settings that should be used by AMT when connecting through a HTTP proxy.
|
|
// This file was automatically generated from IPS_HTTPProxyAccessPoint.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>
|
|
///The IPS_HTTPProxyAccessPoint class represents the set of proxy settings that should be used by AMT when connecting through a HTTP proxy.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyAccessPoint")]
|
|
[System.Xml.Serialization.XmlRootAttribute("IPS_HTTPProxyAccessPoint", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyAccessPoint", IsNullable=false)]
|
|
public class IPS_HTTPProxyAccessPoint : CIM_RemoteServiceAccessPoint
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public IPS_HTTPProxyAccessPoint() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public IPS_HTTPProxyAccessPoint(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 IPS_HTTPProxyAccessPoint(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, Domain name of the network this proxy belongs to.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual string NetworkDnsSuffix
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("NetworkDnsSuffix")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("NetworkDnsSuffix",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, The port to be used for that HTTP proxy.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual ushort Port
|
|
{
|
|
get
|
|
{
|
|
return ushort.Parse(this["Port"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Port",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, Will be initialized to the current priority counter when proxy is added. Increases whenever proxy is accessed
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual uint Priority
|
|
{
|
|
get
|
|
{
|
|
return uint.Parse(this["Priority"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Priority",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Required, This property will hold the information whether this proxy was set by IT or through ProxySync.
|
|
/// </summary>
|
|
[CimField(false, true)]
|
|
public virtual byte Type
|
|
{
|
|
get
|
|
{
|
|
return byte.Parse(this["Type"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Type",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
///Set proxy priority to highest priority
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyAccessPoint", IsNullable=false)]
|
|
private class UpdatePriority_INPUT : CimParams
|
|
{
|
|
public UpdatePriority_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Set proxy priority to highest priority
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyAccessPoint", IsNullable=false)]
|
|
private class UpdatePriority_OUTPUT : CimParams
|
|
{
|
|
public UpdatePriority_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///Set proxy priority to highest priority
|
|
/// </summary>
|
|
/// <returns>
|
|
/// Legal values:
|
|
/// PT_STATUS_SUCCESS : 0
|
|
/// PT_STATUS_INTERNAL_ERROR : 1
|
|
/// </returns>
|
|
public virtual uint UpdatePriority()
|
|
{
|
|
UpdatePriority_INPUT input = new UpdatePriority_INPUT(this.XmlNamespace);
|
|
UpdatePriority_OUTPUT output = new UpdatePriority_OUTPUT();
|
|
uint returnValue = base.Invoke("UpdatePriority",input,out output);
|
|
return returnValue;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_HTTPProxyAccessPoint class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of IPS_HTTPProxyAccessPoint objects</returns>
|
|
public static new Collection<IPS_HTTPProxyAccessPoint> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<IPS_HTTPProxyAccessPoint> ret = CimBase.Enumerate<IPS_HTTPProxyAccessPoint>(client, cimKeys);
|
|
return new Collection<IPS_HTTPProxyAccessPoint>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_HTTPProxyAccessPoint class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of IPS_HTTPProxyAccessPoint objects</returns>
|
|
public static new Collection<IPS_HTTPProxyAccessPoint> Enumerate(IWSManClient client)
|
|
{
|
|
List<IPS_HTTPProxyAccessPoint> ret = CimBase.Enumerate<IPS_HTTPProxyAccessPoint>(client);
|
|
return new Collection<IPS_HTTPProxyAccessPoint>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of IPS_HTTPProxyAccessPoint 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<IPS_HTTPProxyAccessPoint>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the IPS_HTTPProxyAccessPoint class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_RemoteServiceAccessPoint.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|