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

Class CIMClassName

source code

                   object --+    
                            |    
cim_types._CIMComparisonMixin --+
                                |
                               CIMClassName

A CIM class path.

A CIM class path references a CIM class in a namespace in a WBEM server. Namespace and WBEM server may be unknown.

Instance Methods
 
__init__(self, classname, host=None, namespace=None)
Initialize the CIMClassName object.
source code
 
copy(self)
Return a copy the CIMClassName object
source code
 
__str__(self)
Return readable string representing path
source code
 
__repr__(self)
Return String representing path in form name=value
source code
 
tocimxml(self)
Convert the CIMClassName object to CIM/XML consistent with DMTF DSP-0200 format and return the resulting XML
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__, __subclasshook__

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

Inherited from object: __class__

Method Details

__init__(self, classname, host=None, namespace=None)
(Constructor)

source code 
Initialize the CIMClassName object.
Parameters:
  • classname (Unicode string or UTF-8 encoded byte string) - Name of the referenced class.
  • host (Unicode string or UTF-8 encoded byte string) - Optional: URL of the WBEM server that contains the CIM namespace of this class path.

    If None, the class path will not specify a WBEM server.

    Default: None.

  • namespace (Unicode string or UTF-8 encoded byte string) - Optional: Name of the CIM namespace that contains the referenced class.

    If None, the class path will not specify a CIM namespace.

    Default: None.

Raises:
  • TypeError
  • ValueError
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
Return readable string representing path
Overrides: object.__str__

__repr__(self)
(Representation operator)

source code 
Return String representing path in form name=value
Overrides: object.__repr__