google.appengine.datastore.datastore_stub_index.GenerateIndexFromHistory

Generate most of the text for index.yaml from the query history.

query_history Query history, a dict mapping datastore_pb.Query to a count of the number of times that query has been issued.
all_indexes Optional datastore_index.IndexDefinitions instance representing all the indexes found in the input file. May be None.
manual_indexes Optional datastore_index.IndexDefinitions instance containing indexes for which we should not generate output. May be None.

A string representation that can safely be appended to an existing index.yaml file. Returns the empty string if it would generate no output.