def setup(self): # Empty self.xml.append(cim_xml.PARAMETER_REFARRAY('arg')) # QUALIFIERS + attributes self.xml.append( cim_xml.PARAMETER_REFARRAY('arg', reference_class='CIM_Foo', array_size='0', qualifiers=[ cim_xml.QUALIFIER( 'IMPISH', 'string', cim_xml.VALUE('true')) ]))
def setUp(self): super(Method, self).setUp() # Empty self.xml.append(cim_xml.METHOD('FooMethod')) # PARAMETER self.xml.append( cim_xml.METHOD('FooMethod', [cim_xml.PARAMETER('arg', 'string')])) # PARAMETER.REFERENCE self.xml.append( cim_xml.METHOD('FooMethod', [cim_xml.PARAMETER_REFERENCE('arg', 'CIM_Foo')])) # PARAMETER.ARRAY self.xml.append( cim_xml.METHOD('FooMethod', [cim_xml.PARAMETER_ARRAY('arg', 'string')])) # PARAMETER.REFARRAY self.xml.append( cim_xml.METHOD('FooMethod', [cim_xml.PARAMETER_REFARRAY('arg', 'CIM_Foo')])) # PARAMETER + attributes self.xml.append( cim_xml.METHOD('FooMethod', [cim_xml.PARAMETER('arg', 'string')], return_type='uint32', class_origin='CIM_Foo', propagated='true')) # QUALIFIER + PARAMETER self.xml.append( cim_xml.METHOD('FooMethod', [cim_xml.PARAMETER('arg', 'string')], qualifiers=[ cim_xml.QUALIFIER('IMPISH', 'string', cim_xml.VALUE('true')) ]))