def build_traversal_spec(client_factory, name, spec_type, path, skip, select_set):
 traversal_spec = client_factory.create('ns0:TraversalSpec')
 traversal_spec.name = name
 traversal_spec.type = spec_type
 traversal_spec.path = path
 traversal_spec.skip = skip
 traversal_spec.selectSet = select_set
 return traversal_spec

def build_traversal_spec ( client_factory , name , spec_type , path , skip , select_set ) : traversal_spec = client_factory . create ( 'ns0:TraversalSpec' ) traversal_spec . name = name traversal_spec . type = spec_type traversal_spec . path = path traversal_spec . skip = skip traversal_spec . selectSet = select_set return traversal_spec
builds the traversal spec object .