Class: Google::Firestore::V1beta1::CreateDocumentRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb

Overview

The request for Firestore::CreateDocument.

Instance Attribute Summary collapse

Instance Attribute Details

#collection_idString

Returns The collection ID, relative to +parent+, to list. For example: +chatrooms+.

Returns:

  • (String)

    The collection ID, relative to +parent+, to list. For example: +chatrooms+.



116
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb', line 116

class CreateDocumentRequest; end

#documentGoogle::Firestore::V1beta1::Document

Returns The document to create. +name+ must not be set.

Returns:



116
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb', line 116

class CreateDocumentRequest; end

#document_idString

Returns The client-assigned document ID to use for this document.

Optional. If not specified, an ID will be assigned by the service.

Returns:

  • (String)

    The client-assigned document ID to use for this document.

    Optional. If not specified, an ID will be assigned by the service.



116
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb', line 116

class CreateDocumentRequest; end

#maskGoogle::Firestore::V1beta1::DocumentMask

Returns 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.

Returns:

  • (Google::Firestore::V1beta1::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.



116
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb', line 116

class CreateDocumentRequest; end

#parentString

Returns The parent resource. For example: +projects/project_id/databases/database_id/documents+ or +projects/project_id/databases/database_id/documents/chatrooms/chatroom_id+

Returns:

  • (String)

    The parent resource. For example: +projects/project_id/databases/database_id/documents+ or +projects/project_id/databases/database_id/documents/chatrooms/chatroom_id+



116
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb', line 116

class CreateDocumentRequest; end