Method: Google::Apis::DocsV1::DocsService#get_document
- Defined in:
- lib/google/apis/docs_v1/service.rb
#get_document(document_id, include_tabs_content: nil, suggestions_view_mode: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DocsV1::Document
Gets the latest version of the specified document.
163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/google/apis/docs_v1/service.rb', line 163 def get_document(document_id, include_tabs_content: nil, suggestions_view_mode: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/documents/{documentId}', ) command.response_representation = Google::Apis::DocsV1::Document::Representation command.response_class = Google::Apis::DocsV1::Document command.params['documentId'] = document_id unless document_id.nil? command.query['includeTabsContent'] = include_tabs_content unless include_tabs_content.nil? command.query['suggestionsViewMode'] = suggestions_view_mode unless suggestions_view_mode.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |