Module cim_obj
source code
Representations of CIM objects, and a case-insensitive dictionary.
In general we try to map CIM objects directly into Python primitives,
except when that is not possible or would be ambiguous. For example,
CIM class names are simply Python strings, but a class path is
represented as a special Python object.
These objects can also be mapped back into CIM-XML, by their tocimxml()
method which returns a CIM-XML string.
|
|
|
tocimobj(type_,
value)
Convert a CIM type and a string value into an appropriate
CIM builtin type. |
source code
|
|
Convert an arbitrary object to CIM xml. Works with cim_obj
objects and builtin types.
|
Convert a CIM type and a string value into an appropriate
CIM builtin type.
:return: value converted from value argument using type
argument.
:exception: ValueError if type and value string do not match
|