def setup(self):

        self.xml.append(
            cim_xml.KEYBINDING('pet', cim_xml.KEYVALUE('dog', 'string')))

        self.xml.append(
            cim_xml.KEYBINDING(
                'CIM_Foo',
                cim_xml.VALUE_REFERENCE(
                    cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()))))
Esempio n. 2
0
def INSTANCENAME():  # pylint: disable=invalid-name
    return cim_xml.INSTANCENAME('CIM_Pet', [
        cim_xml.KEYBINDING('type', cim_xml.KEYVALUE('dog', 'string')),
        cim_xml.KEYBINDING('age', cim_xml.KEYVALUE('2', 'numeric'))
    ])
def INSTANCENAME():
    return cim_xml.INSTANCENAME('CIM_Pet', [
        cim_xml.KEYBINDING('type', cim_xml.KEYVALUE('dog', 'string')),
        cim_xml.KEYBINDING('age', cim_xml.KEYVALUE('2', 'numeric'))
    ])