class Google::Apis::DriveV3::Comment
A comment on a file.
Attributes
A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties. Corresponds to the JSON property `anchor` @return [String]
The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. Corresponds to the JSON property `content` @return [String]
The time at which the comment was created (RFC 3339 date-time). Corresponds to the JSON property `createdTime` @return [DateTime]
Whether the comment has been deleted. A deleted comment has no content. Corresponds to the JSON property `deleted` @return [Boolean]
Whether the comment has been deleted. A deleted comment has no content. Corresponds to the JSON property `deleted` @return [Boolean]
The content of the comment with HTML formatting. Corresponds to the JSON property `htmlContent` @return [String]
The ID of the comment. Corresponds to the JSON property `id` @return [String]
This is always drive#comment. Corresponds to the JSON property `kind` @return [String]
The last time the comment or any of its replies was modified (RFC 3339 date- time). Corresponds to the JSON property `modifiedTime` @return [DateTime]
The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. Corresponds to the JSON property `quotedFileContent` @return [Google::Apis::DriveV3::Comment::QuotedFileContent]
The full list of replies to the comment in chronological order. Corresponds to the JSON property `replies` @return [Array<Google::Apis::DriveV3::Reply>]
Whether the comment has been resolved by one of its replies. Corresponds to the JSON property `resolved` @return [Boolean]
Whether the comment has been resolved by one of its replies. Corresponds to the JSON property `resolved` @return [Boolean]
Public Class Methods
# File generated/google/apis/drive_v3/classes.rb, line 364 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/drive_v3/classes.rb, line 369 def update!(**args) @anchor = args[:anchor] if args.key?(:anchor) @author = args[:author] if args.key?(:author) @content = args[:content] if args.key?(:content) @created_time = args[:created_time] if args.key?(:created_time) @deleted = args[:deleted] if args.key?(:deleted) @html_content = args[:html_content] if args.key?(:html_content) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @modified_time = args[:modified_time] if args.key?(:modified_time) @quoted_file_content = args[:quoted_file_content] if args.key?(:quoted_file_content) @replies = args[:replies] if args.key?(:replies) @resolved = args[:resolved] if args.key?(:resolved) end