Package pywbem :: Module mof_compiler :: Class MOFWBEMConnection
[frames] | no frames]

Class MOFWBEMConnection

source code

object --+
         |
        MOFWBEMConnection

Access to repository used by the compiler. Does not implement all of the WBEM Operations, just the subset required by the compiler
Instance Methods
 
CreateClass(self, *args, **kwargs)
Insert a single CIMClass defined by kwargs into the target connection.
source code
 
CreateInstance(self, *args, **kwargs)
Append a new instance defined by kwargs to the target connection instances
source code
 
EnumerateQualifiers(self, *args, **kwargs)
Get all qualifier declarations in the connection namespace
source code
 
GetClass(self, *args, **kwargs)
Get a class from the MOFWBEMConnection
source code
 
GetQualifier(self, *args, **kwargs)
Get the qualifier declaration defined by name
source code
 
ModifyClass(self, *args, **kwargs)
Not Implemented because not used
source code
 
ModifyInstance(self, *args, **kwargs)
This function should never happen so generates error
source code
 
SetQualifier(self, *args, **kwargs)
Put the qualifier declaration defined in kwargs into the target repository
source code
 
__init__(self, conn=None)
Define the connection for the connection
source code
 
getns(self)
Get the namespace from the MOFWBEMConnection object
source code
 
rollback(self, verbose=False)
Rollback created instances and classes created within the context of this connection
source code
 
setns(self, value)
Set the namespace into the MOFWBEMConnection object
source code

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

Properties
  default_namespace
default_namespace property

Inherited from object: __class__

Method Details

__init__(self, conn=None)
(Constructor)

source code 
Define the connection for the connection
Overrides: object.__init__

Property Details

default_namespace

default_namespace property
Get Method:
getns(self) - Get the namespace from the MOFWBEMConnection object
Set Method:
setns(self, value) - Set the namespace into the MOFWBEMConnection object