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

Class CIMClass

source code

                   object --+    
                            |    
cim_types._CIMComparisonMixin --+
                                |
                               CIMClass

Create an instance of CIMClass, a CIM class with classname, properties, methods, qualifiers, and superclass name.
Instance Methods
 
__init__(self, classname, properties={}, methods={}, superclass=None, qualifiers={})
Initialize the CIMClass object.
source code
 
copy(self)
Return a copy of the CIMClass object
source code
 
__repr__(self)
Return string containing the CIMClass data in name=value form
source code
 
tocimxml(self)
Return string with CIM/XML representation of the CIMClass
source code
 
tomof(self)
Return string with MOF representation of the CIMClass
source code

Inherited from cim_types._CIMComparisonMixin: __eq__, __ge__, __gt__, __le__, __lt__, __ne__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
  ...
All parameters of __init__ are set as instance variables.
Properties

Inherited from object: __class__

Method Details

__init__(self, classname, properties={}, methods={}, superclass=None, qualifiers={})
(Constructor)

source code 

Initialize the CIMClass object.

Initialize instance variables containing the arguments provided for the CIMClass including classname, properties, class qualifiers, methods, and the superclass

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Return string containing the CIMClass data in name=value form
Overrides: object.__repr__