def setUp(self): super(IParamValue, self).setUp() # Empty self.xml.append(cim_xml.IPARAMVALUE('Bird')) # VALUE self.xml.append(cim_xml.IPARAMVALUE('Pet', cim_xml.VALUE('Dog'))) # VALUE.ARRAY self.xml.append(cim_xml.IPARAMVALUE('Pet', cim_xml.VALUE_ARRAY([]))) # VALUE.REFERENCE self.xml.append( cim_xml.IPARAMVALUE( 'Pet', cim_xml.VALUE_REFERENCE( cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME())))) # INSTANCENAME self.xml.append(cim_xml.IPARAMVALUE('Pet', INSTANCENAME())) # CLASSNAME self.xml.append(cim_xml.IPARAMVALUE('Pet', CLASSNAME())) # TODO: QUALIFIER.DECLARATION # CLASS self.xml.append(cim_xml.IPARAMVALUE('Pet', cim_xml.CLASS('CIM_Foo'))) # INSTANCE self.xml.append( cim_xml.IPARAMVALUE('Pet', cim_xml.INSTANCE('CIM_Pet', []))) # VALUE.NAMEDINSTANCE self.xml.append( cim_xml.IPARAMVALUE( 'Pet', cim_xml.VALUE_NAMEDINSTANCE(INSTANCENAME(), cim_xml.INSTANCE('CIM_Pet', []))))
def setUp(self): super(ValueNamedInstance, self).setUp() self.xml.append( cim_xml.VALUE_NAMEDINSTANCE(INSTANCENAME(), cim_xml.INSTANCE('CIM_Pet', [])))
def setUp(self): super(IReturnValue, self).setUp() # Empty self.xml.append(cim_xml.IRETURNVALUE(None)) # CLASSNAME self.xml.append(cim_xml.IRETURNVALUE(CLASSNAME())) # INSTANCENAME self.xml.append(cim_xml.IRETURNVALUE(INSTANCENAME())) # VALUE self.xml.append(cim_xml.IRETURNVALUE(cim_xml.VALUE('Dog'))) # VALUE.OBJECTWITHPATH self.xml.append( cim_xml.IRETURNVALUE( cim_xml.VALUE_OBJECTWITHPATH( cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()), cim_xml.CLASS('CIM_Foo')))) # VALUE.OBJECTWITHLOCALPATH self.xml.append( cim_xml.IRETURNVALUE( cim_xml.VALUE_OBJECTWITHLOCALPATH( cim_xml.LOCALCLASSPATH(LOCALNAMESPACEPATH(), CLASSNAME()), cim_xml.CLASS('CIM_Foo')))) # VALUE.OBJECT self.xml.append( cim_xml.IRETURNVALUE( cim_xml.VALUE_OBJECT(cim_xml.INSTANCE('CIM_Pet', [])))) # OBJECTPATH self.xml.append( cim_xml.IRETURNVALUE( cim_xml.OBJECTPATH( cim_xml.INSTANCEPATH(NAMESPACEPATH(), INSTANCENAME())))) # TODO: QUALIFIER.DECLARATION # VALUE.ARRAY self.xml.append(cim_xml.IRETURNVALUE(cim_xml.VALUE_ARRAY([]))) # VALUE.REFERENCE self.xml.append( cim_xml.IRETURNVALUE( cim_xml.VALUE_REFERENCE( cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME())))) # CLASS self.xml.append(cim_xml.IRETURNVALUE(cim_xml.CLASS('CIM_Foo'))) # INSTANCE self.xml.append(cim_xml.IRETURNVALUE(cim_xml.INSTANCE('CIM_Pet', []))) # VALUE.NAMEDINSTANCE self.xml.append( cim_xml.IRETURNVALUE( cim_xml.VALUE_NAMEDINSTANCE(INSTANCENAME(), cim_xml.INSTANCE('CIM_Pet', []))))
def setup(self): self.xml.append( cim_xml.VALUE_NAMEDINSTANCE(INSTANCENAME(), cim_xml.INSTANCE('CIM_Pet', [])))