code: func (r *Result) Object() (runtime.Object, error) {
  	infos, err := r.Infos()
  	if err != nil {
  		return nil, err
  	}
  
  	versions := sets.String{}
  	objects := []runtime.Object{}
  	for _, info := range infos {
  		if info.Object != nil {
  			objects = append(objects, info.Object)
  			versions.Insert(info.ResourceVersion)
  		}
  	}
  
  	if len(objects) == 1 {
  		if r.singleItemImplied {
  			return objects[0], nil
  		}
  		// if the item is a list already, don't create another list
  		if meta.IsListType(objects[0]) {
  			return objects[0], nil
  		}
  	}
  
  	version := ""
  	if len(versions) == 1 {
  		version = versions.List()[0]
  	}
  
  	return toV1List(objects, version), err
  }
docs: // Object returns a single object representing the output of a single visit to all
  // found resources.  If the Builder was a singular context (expected to return a
  // single resource by user input) and only a single resource was found, the resource
  // will be returned as is.  Otherwise, the returned resources will be part of an
  // v1.List. The ResourceVersion of the v1.List will be set only if it is identical
  // across all infos returned.