//---------------------------------------------------------------------------- // // 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 { /// ///The IPS_HTTPProxyAccessPoint class represents the set of proxy settings that should be used by AMT when connecting through a HTTP proxy. /// [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 { /// /// Default constructor. /// public IPS_HTTPProxyAccessPoint() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public IPS_HTTPProxyAccessPoint(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public IPS_HTTPProxyAccessPoint(IWSManClient client): base(client) { } /// /// Required, Domain name of the network this proxy belongs to. /// [CimField(false, true)] public virtual string NetworkDnsSuffix { get { return this.GetField("NetworkDnsSuffix")[0]; } set { this.SetOrAddField("NetworkDnsSuffix",value); } } /// /// Required, The port to be used for that HTTP proxy. /// [CimField(false, true)] public virtual ushort Port { get { return ushort.Parse(this["Port"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("Port",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Required, Will be initialized to the current priority counter when proxy is added. Increases whenever proxy is accessed /// [CimField(false, true)] public virtual uint Priority { get { return uint.Parse(this["Priority"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("Priority",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Required, This property will hold the information whether this proxy was set by IT or through ProxySync. /// [CimField(false, true)] public virtual byte Type { get { return byte.Parse(this["Type"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("Type",value.ToString(CultureInfo.InvariantCulture)); } } /// ///Set proxy priority to highest priority /// [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) { } } /// ///Set proxy priority to highest priority /// [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("") { } } /// ///Set proxy priority to highest priority /// /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// 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; } /// /// Enumerate instances of IPS_HTTPProxyAccessPoint class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of IPS_HTTPProxyAccessPoint objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of IPS_HTTPProxyAccessPoint class at an endpoint. /// /// WS-Management client /// Collection of IPS_HTTPProxyAccessPoint objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of IPS_HTTPProxyAccessPoint 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 IPS_HTTPProxyAccessPoint class. /// public new class CimKeys : CIM_RemoteServiceAccessPoint.CimKeys { } } }