Method: Google::Apis::DocsV1::DocsService#create_document
- Defined in:
- lib/google/apis/docs_v1/service.rb
#create_document(document_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DocsV1::Document
Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.
120 121 122 123 124 125 126 127 128 129 |
# File 'lib/google/apis/docs_v1/service.rb', line 120 def create_document(document_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/documents', ) command.request_representation = Google::Apis::DocsV1::Document::Representation command.request_object = document_object command.response_representation = Google::Apis::DocsV1::Document::Representation command.response_class = Google::Apis::DocsV1::Document command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |