Package pywbem :: Module cim_obj
[frames] | no frames]

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.

Classes
  CIMClassName
A CIM class path.
  CIMProperty
Defines a CIM property including cim type, value, and possibly qualifiers.
  CIMInstanceName
A CIM instance path (aka instance name).
  CIMInstance
A CIM instance, optionally including its instance path.
  CIMClass
Create an instance of CIMClass, a CIM class with classname, properties, methods, qualifiers, and superclass name.
  CIMMethod
A CIM method.
  CIMParameter
A CIM parameter.
  CIMQualifier
A CIM qualifier value.
  CIMQualifierDeclaration
A CIM qualifier type.
Functions
 
tocimxml(value)
Convert an arbitrary object to CIM xml.
source code
 
tocimobj(type_, value)
Convert a CIM type and a string value into an appropriate CIM builtin type.
source code
Function Details

tocimxml(value)

source code 
Convert an arbitrary object to CIM xml. Works with cim_obj objects and builtin types.

tocimobj(type_, value)

source code 
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