CIMInstance¶
- class lmiwbem.lmiwbem_core.CIMInstance¶
CIMInstance(classname, properties=NocaseDict(), qualifiers=NocaseDict(), path=None, property_list=None)
Parameters: - classname (str) – Class name
- properties (NocaseDict) – Dictionary of CIMProperty
- qualifiers (NocaseDict) – Dictionary of CIMQualifier
- path (CIMInstanceName) – CIM object path
- property_list (list) – Properties
- __repr__()¶
Returns: Pretty string of the object Return type: unicode
- classname¶
- copy()¶
Returns: Copy of the object itself Return type: CIMInstance
- has_key(key)¶
Parameters: key (str) – Key to check for presence in object’s properties Returns: True, if the key is present in object’s properties; False otherwise Return type: bool
- items()¶
Returns: List of tuples with property name and value
- iteritems()¶
Returns: Iterator for property name and value iteration
- iterkeys()¶
Returns: Iterator for property names iteration
- itervalues()¶
Returns: Iterator for property values iteration
- keys()¶
Returns: List of strings of property names
- path¶
- properties¶
- property_list¶
- qualifiers¶
- tomof()¶
Returns: MOF representation of the object itself Return type: unicode
- values()¶
Returns: List of property values