code: public CollectionRequest<Workspace> typeahead(String workspace) {
      
          String path = String.format("/workspaces/%s/typeahead", workspace);
          return new CollectionRequest<Workspace>(this, Workspace.class, path, "GET");
      }
docs: Retrieves objects in the workspace based on an auto-completion/typeahead
  search algorithm. This feature is meant to provide results quickly, so do
  not rely on this API to provide extremely accurate search results. The
  result set is limited to a single page of results with a maximum size,
  so you won't be able to fetch large numbers of results.
  
  @param  workspace The workspace to fetch objects from.
  @return Request object