'Index the collection of documents.
If any of the documents are already in the index, then reindex them with
their corresponding fresh document.
Args:
documents: A Document or iterable of Documents to index.
Kwargs:
deadline: Deadline for RPC call in seconds; if None use the default.
Returns:
A list of PutResult, one per Document requested to be indexed.
Raises:
PutError: If one or more documents failed to index or
number indexed did not match requested.
TypeError: If an unknown attribute is passed.
ValueError: If documents is not a Document or iterable of Document
or number of the documents is larger than
MAXIMUM_DOCUMENTS_PER_PUT_REQUEST or deadline is a negative number.'

@datastore_rpc._positional(2)
def put(self, documents, deadline=None):

    return self.put_async(documents, deadline=deadline).get_result()
