class Google::Apis::DocsV1::Document
A Google
Docs document.
Attributes
The document body. The body typically contains the full document contents except for headers, footers and footnotes. Corresponds to the JSON property `body` @return [Google::Apis::DocsV1::Body]
Output only. The ID of the document. Corresponds to the JSON property `documentId` @return [String]
The style of the document. Corresponds to the JSON property `documentStyle` @return [Google::Apis::DocsV1::DocumentStyle]
Output only. The footnotes in the document, keyed by footnote ID. Corresponds to the JSON property `footnotes` @return [Hash<String,Google::Apis::DocsV1::Footnote>]
Output only. The headers in the document, keyed by header ID. Corresponds to the JSON property `headers` @return [Hash<String,Google::Apis::DocsV1::Header>]
Output only. The inline objects in the document, keyed by object ID. Corresponds to the JSON property `inlineObjects` @return [Hash<String,Google::Apis::DocsV1::InlineObject>]
Output only. The lists in the document, keyed by list ID. Corresponds to the JSON property `lists` @return [Hash<String,Google::Apis::DocsV1::List>]
Output only. The named ranges in the document, keyed by name. Corresponds to the JSON property `namedRanges` @return [Hash<String,Google::Apis::DocsV1::NamedRanges>]
The named styles. Paragraphs in the document can inherit their TextStyle
and ParagraphStyle
from these named styles. Corresponds to the JSON property `namedStyles` @return [Google::Apis::DocsV1::NamedStyles]
Output only. The positioned objects in the document, keyed by object ID. Corresponds to the JSON property `positionedObjects` @return [Hash<String,Google::Apis::DocsV1::PositionedObject>]
Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the document has not changed. Conversely, a changed ID ( for the same document and user) usually means the document has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Corresponds to the JSON property `revisionId` @return [String]
Output only. The suggested changes to the style of the document, keyed by suggestion ID. Corresponds to the JSON property `suggestedDocumentStyleChanges` @return [Hash<String,Google::Apis::DocsV1::SuggestedDocumentStyle>]
Output only. The suggested changes to the named styles of the document, keyed by suggestion ID. Corresponds to the JSON property `suggestedNamedStylesChanges` @return [Hash<String,Google::Apis::DocsV1::SuggestedNamedStyles>]
Output only. The suggestions view mode applied to the document. Note: When editing a document, changes must be based on a document with SUGGESTIONS_INLINE. Corresponds to the JSON property `suggestionsViewMode` @return [String]
The title of the document. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File lib/google/apis/docs_v1/classes.rb, line 964 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/docs_v1/classes.rb, line 969 def update!(**args) @body = args[:body] if args.key?(:body) @document_id = args[:document_id] if args.key?(:document_id) @document_style = args[:document_style] if args.key?(:document_style) @footers = args[:footers] if args.key?(:footers) @footnotes = args[:footnotes] if args.key?(:footnotes) @headers = args[:headers] if args.key?(:headers) @inline_objects = args[:inline_objects] if args.key?(:inline_objects) @lists = args[:lists] if args.key?(:lists) @named_ranges = args[:named_ranges] if args.key?(:named_ranges) @named_styles = args[:named_styles] if args.key?(:named_styles) @positioned_objects = args[:positioned_objects] if args.key?(:positioned_objects) @revision_id = args[:revision_id] if args.key?(:revision_id) @suggested_document_style_changes = args[:suggested_document_style_changes] if args.key?(:suggested_document_style_changes) @suggested_named_styles_changes = args[:suggested_named_styles_changes] if args.key?(:suggested_named_styles_changes) @suggestions_view_mode = args[:suggestions_view_mode] if args.key?(:suggestions_view_mode) @title = args[:title] if args.key?(:title) end