Class CreateDocumentRequest (2.6.1)

Stay organized with collections Save and categorize content based on your preferences.
CreateDocumentRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The request for Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].


parent str
Required. The parent resource. For example: ``projects/{project_id}/databases/{database_id}/documents`` or ``projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}``
collection_id str
Required. The collection ID, relative to ``parent``, to list. For example: ``chatrooms``.
document_id str
The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
Required. The document to create. ``name`` must not be set.
The fields to return. If not set, returns all fields. If the document has a field that is not present in this mask, that field will not be returned in the response.


builtins.object > proto.message.Message > CreateDocumentRequest