def get_obj_spec(client_factory, obj, select_set=None):
 obj_spec = client_factory.create('ns0:ObjectSpec')
 obj_spec.obj = obj
 obj_spec.skip = False
 if (select_set is not None):
  obj_spec.selectSet = select_set
 return obj_spec

def get_obj_spec ( client_factory , obj , select_set = None ) : obj_spec = client_factory . create ( 'ns0:ObjectSpec' ) obj_spec . obj = obj obj_spec . skip = False if ( select_set is not None ) : obj_spec . selectSet = select_set return obj_spec
builds the object spec object .