Class CreateDocumentRequest (2.5.1)

CreateDocumentRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
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.
document google.cloud.firestore_v1.types.Document
Required. The document to create. ``name`` must not be set.
mask google.cloud.firestore_v1.types.DocumentMask
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.

Inheritance

builtins.object > proto.message.Message > CreateDocumentRequest