//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: AMT_TLSProtocolEndpoint.cs // // Contents: A communication point from which data may be sent or received. ProtocolEndpoints link system/computer interfaces to LogicalNetworks. // This file was automatically generated from AMT_TLSProtocolEndpoint.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 { /// ///A communication point from which data may be sent or received. ProtocolEndpoints link system/computer interfaces to LogicalNetworks. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TLSProtocolEndpoint")] [System.Xml.Serialization.XmlRootAttribute("AMT_TLSProtocolEndpoint", Namespace="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TLSProtocolEndpoint", IsNullable=false)] public class AMT_TLSProtocolEndpoint : CIM_ProtocolEndpoint { /// /// Default constructor. /// public AMT_TLSProtocolEndpoint() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public AMT_TLSProtocolEndpoint(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public AMT_TLSProtocolEndpoint(IWSManClient client): base(client) { } /// /// Remove Role field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRole() { RemoveField("Role"); } /// /// Is true if the field Role exists in the current object, /// otherwise is false. /// public virtual bool RoleExist { get { return ContainsField("Role"); } } /// /// Optional, Describes what role the endpoint is playing in TLS exchanges. /// [CimField(false, false)] public virtual byte Role { get { return byte.Parse(this["Role"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("Role",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Enumerate instances of AMT_TLSProtocolEndpoint class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of AMT_TLSProtocolEndpoint objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of AMT_TLSProtocolEndpoint class at an endpoint. /// /// WS-Management client /// Collection of AMT_TLSProtocolEndpoint objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of AMT_TLSProtocolEndpoint 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 AMT_TLSProtocolEndpoint class. /// public new class CimKeys : CIM_ProtocolEndpoint.CimKeys { } } }