CimObject

The CimObject class builds the CIM object that will be sent to the Intel AMT device embedded in a WS-Management structure. It also extracts elements from the object. CimObject deals with field names in string format and does not validate that the fields exist in the object. An application that works with CimObject directly is using the untyped mechanism. CimBase translates its requests into invocations of CimObject.

Public Member Functions

Function

Description

CimObject(string className, string nameSpace, IWSManClient client)

Constructor for the CimObject class.

CimObject(string className, string nameSpace)

Constructor for the CimObject class.

CimObject (CimObject other)

Copy constructor.

void AddField(string name, string value)

Add a new CIM object field.

void AddField(KeyValuePair< string, string > item)

Add a new CIM object field.

void AddField(KeyValuePair< string, string[]> item)

Add a new CIM object field.

void SetField(string name, string value)

Set a CIM object field with a value.

override void SetOrAddField(string name, string value)

Set or add a CIM object field value.

void Copy(CimObject other)

Copy Constructor.

void Get()

Get a CIM object.

void Get(CimObject.CimKeys keys)

Get a CIM Object.

void Get(CimReference epr)

Get a CIM Object.

void Delete(CimObject.CimKeys keys)

Delete a CIM object from the Intel AMT device.

void Put(CimObject.CimKeys keys)

Update a CIM object in the Intel AMT device.

CimReference Create()

Create a CIM object in the Intel AMT device.

void Invoke(string methodName, CimObject.CimKeys keys, ICimData input, out ICimData output)

Invoke a CIM object method.

 

Static Public Member Functions

Function

Description

static List<CimObjectEprPair> Enumerate (IWSManClient wsmanClient, Uri resourceUri, EnumerationOptions options)

Enumrate CIM objects identified by a resource URI and with enumeration options.

static List<CimObjectEprPair> Enumerate (IWSManClient wsmanClient, Uri resourceUri, CimObject.CimKeys keys, EnumerationOptions options)

Enumerate CIM objects identified by a resource URI and one or more keys and with enumeration options.

static List<CimObject> Enumerate (IWSManClient wsmanClient, Uri resourceUri, CimObject.CimKeys keys)

Enumerate CIM objects identified by a resource URI and one or more keys.

static List<CimObject> Enumerate (IWSManClient wsmanClient, Uri resourceUri)

Enumerate CIM objects identified by a resource URI.

static void Delete(IWSManClient wsmanClient, CimReference epr)

Delete a CIM object from an Intel AMT device based on a given endpoint reference.

static void Delete(IWSManClient wsmanClient, Uri ResourceURI, CimObject.CimKeys keys)

Delete a CIM object from an Intel AMT device identified by a resource URI and one or more keys.

static void Delete(IWSManClient wsmanClient, Uri ResourceURI)

Delete a CIM object from an Intel AMT device identified by a resource URI. This method will succeed only if there is one instance of this type.

 

Properties

Function

Description

IWSManClient WSManClient [get, set]

Identifies the transport layer WS-Management client.

Uri ResourceURI [get, set]

Defines the resource URI used in Get and Set operations.

string XmlNamespace [get, set]

Defines the namespace of the object.

List<Property> Properties [get]

Returned properties list containing name value pairs.

ICollection<string> Names [get]

Collection of CIM object field names.

ICollection<string> Values [get]

Collection of CIM object field values.

Copyright © 2006-2022, Intel Corporation. All rights reserved.