LMIConstantValues¶
- class lmi.shell.LMIConstantValues.LMIConstantValues(cim_obj, cast_type)¶
Abstract class for constant value objects.
Parameters: - cim_obj – this object is either of type wbem.CIMParameter, wbem.CIMProperty or wbem.CIMMethod. Construction of this object requires to have a member _cast_type to properly cast CIM object. When constructing derived objects, make sure, that the mentioned member is present before calling this constructor.
- cast_type – parameter/property cast type
- print_values()¶
Prints all available constant names.
Usage: Get ValueMap properties.
- value(value_name)¶
Parameters: value_name (string) – constant name Returns: constant value Usage: Get ValueMap property value.
- value_name(value)¶
Parameters: value (int) – numeric constant value Returns: constant value Return type: string Usage: Get ValueMap property value name.
- values()¶
Returns: list of all available constant values
- values_dict()¶
Returns: dictionary of constants’ names and values
- class lmi.shell.LMIConstantValues.LMIConstantValuesMethodReturnType(cim_method)¶
Derived class used for constant values of wbem.CIMMethod.
Parameters: cim_method (CIMMethod) – wbem.CIMMethod object
- class lmi.shell.LMIConstantValues.LMIConstantValuesParamProp(cim_property)¶
Derived class used for constant values of wbem.CIMProperty and wbem.CIMParameter.
Parameters: cim_property – wbem.CIMProperty or wbem.CIMParameter object. Both objects have necessary member type which is needed for proper casting.