//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: IPS_HTTPProxyService.cs
//
// Contents: Represents the HTTP Proxy Service.
// This file was automatically generated from IPS_HTTPProxyService.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
{
///
///Represents the HTTP Proxy Service.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyService")]
[System.Xml.Serialization.XmlRootAttribute("IPS_HTTPProxyService", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyService", IsNullable=false)]
public class IPS_HTTPProxyService : CIM_Service
{
///
/// Default constructor.
///
public IPS_HTTPProxyService() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public IPS_HTTPProxyService(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public IPS_HTTPProxyService(IWSManClient client): base(client)
{
}
///
/// Remove SyncEnabled field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSyncEnabled()
{
RemoveField("SyncEnabled");
}
///
/// Is true if the field SyncEnabled exists in the current object,
/// otherwise is false.
///
public virtual bool SyncEnabledExist
{
get
{
return ContainsField("SyncEnabled");
}
}
///
/// Optional, This property defines whether the HTTP proxies sync (from local) is allowed
///
[CimField(false, false)]
public virtual bool SyncEnabled
{
get
{
return bool.Parse(this["SyncEnabled"][0]);
}
set
{
this.SetOrAddField("SyncEnabled",value.ToString().ToLower(CultureInfo.InvariantCulture));
}
}
///
///Adds a Proxy access point that will be used when FW needs to open a user-initiated connection
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyService", IsNullable=false)]
private class AddProxyAccessPoint_INPUT : CimParams
{
public AddProxyAccessPoint_INPUT(string ns) : base(ns)
{
}
///
/// Required, A string holding the IP address or FQDN of the server
///
[CimField(false,true)]
public virtual string AccessInfo
{
set
{
this.SetOrAddField("AccessInfo",value);
}
}
///
/// Required, An enumerated integer describing the format and interpretation of the AccessInfo property.
///
[CimField(false,true)]
public virtual ushort InfoFormat
{
set
{
this.SetOrAddField("InfoFormat",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Required, The port to be used for that HTTP proxy.
///
[CimField(false,true)]
public virtual ushort Port
{
set
{
this.SetOrAddField("Port",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Required, Domain name of the network this proxy belongs to
///
[CimField(false,true)]
public virtual string NetworkDnsSuffix
{
set
{
this.SetOrAddField("NetworkDnsSuffix",value);
}
}
}
///
///Adds a Proxy access point that will be used when FW needs to open a user-initiated connection
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyService", IsNullable=false)]
private class AddProxyAccessPoint_OUTPUT : CimParams
{
public AddProxyAccessPoint_OUTPUT() : base("")
{
}
///
/// Optional, A reference to the created Proxy Access Point if the operation succeeded.
///
[CimField(false,false)]
public virtual CimReference ProxyAccessPoint
{
get
{
string innerXML = this.GetField("ProxyAccessPoint")[0];
CimReference epr = new CimReference("ProxyAccessPoint", "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HTTPProxyService", innerXML);
return epr;
}
}
}
///
///Adds a Proxy access point that will be used when FW needs to open a user-initiated connection
///
/// Required, IN -A string holding the IP address or FQDN of the server
/// Required, IN -An enumerated integer describing the format and interpretation of the AccessInfo property.
/// Required, IN -The port to be used for that HTTP proxy.
/// Required, IN -Domain name of the network this proxy belongs to
/// OUT - A reference to the created Proxy Access Point if the operation succeeded.
///
/// Legal values:
/// PT_STATUS_SUCCESS : 0
/// PT_STATUS_INTERNAL_ERROR : 1
/// PT_STATUS_NOT_PERMITTTED : 16
/// PT_STATUS_MAX_LIMIT_REACHED : 23
/// PT_STATUS_INVALID_PARAMETER : 36
/// PT_STATUS_DUPLICATE : 2058
///
public virtual uint AddProxyAccessPoint(string inAccessInfo,ushort? inInfoFormat,ushort? inPort,string inNetworkDnsSuffix,out CimReference outProxyAccessPoint)
{
AddProxyAccessPoint_INPUT input = new AddProxyAccessPoint_INPUT(this.XmlNamespace);
if (inAccessInfo != null)
input.AccessInfo=inAccessInfo;
if (inInfoFormat.HasValue)
input.InfoFormat=inInfoFormat.Value;
if (inPort.HasValue)
input.Port=inPort.Value;
if (inNetworkDnsSuffix != null)
input.NetworkDnsSuffix=inNetworkDnsSuffix;
AddProxyAccessPoint_OUTPUT output = new AddProxyAccessPoint_OUTPUT();
uint returnValue = base.Invoke("AddProxyAccessPoint",input,out output);
outProxyAccessPoint=null;
if (returnValue == 0)
{
if (output.ContainsField("ProxyAccessPoint"))
outProxyAccessPoint = output.ProxyAccessPoint;
}
return returnValue;
}
///
/// Enumerate instances of IPS_HTTPProxyService class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of IPS_HTTPProxyService 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_HTTPProxyService class at an endpoint.
///
/// WS-Management client
/// Collection of IPS_HTTPProxyService objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of IPS_HTTPProxyService 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_HTTPProxyService class.
///
public new class CimKeys : CIM_Service.CimKeys
{
}
}
}