def build_object_spec(client_factory, root_folder, traversal_specs):
    """Builds the object Spec.

    :param client_factory: Factory to get API input specs
    :param root_folder: Root folder reference as the starting point for
                        traversal
    :param traversal_specs: filter specs required for traversal
    :return: Object spec
    """
    object_spec = client_factory.create('ns0:ObjectSpec')
    object_spec.obj = root_folder
    object_spec.skip = False
    object_spec.selectSet = traversal_specs
    return object_spec