def get_obj_spec(client_factory, obj, select_set=None):
    'Builds the Object Spec object.'
    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.
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