def build_object_spec(client_factory, root_folder, traversal_specs):
 object_spec = client_factory.create('ns0:ObjectSpec')
 object_spec.obj = root_folder
 object_spec.skip = False
 object_spec.selectSet = traversal_specs
 return object_spec

def build_object_spec ( client_factory , root_folder , traversal_specs ) : object_spec = client_factory . create ( 'ns0:ObjectSpec' ) object_spec . obj = root_folder object_spec . skip = False object_spec . selectSet = traversal_specs return object_spec
builds the object spec .