class Google::Apis::DriveV2::Comment
A comment on a file in Google Drive.
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 ID of the comment. Corresponds to the JSON property `commentId` @return [String]
The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content. Corresponds to the JSON property `content` @return [String]
The context of the file which is being commented on. Corresponds to the JSON property `context` @return [Google::Apis::DriveV2::Comment::Context]
The date when this comment was first created. Corresponds to the JSON property `createdDate` @return [DateTime]
Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed. Corresponds to the JSON property `deleted` @return [Boolean]
Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed. Corresponds to the JSON property `deleted` @return [Boolean]
The file which this comment is addressing. Corresponds to the JSON property `fileId` @return [String]
The title of the file which this comment is addressing. Corresponds to the JSON property `fileTitle` @return [String]
HTML formatted content for this comment. Corresponds to the JSON property `htmlContent` @return [String]
This is always drive#comment. Corresponds to the JSON property `kind` @return [String]
The date when this comment or any of its replies were last modified. Corresponds to the JSON property `modifiedDate` @return [DateTime]
Replies to this post. Corresponds to the JSON property `replies` @return [Array<Google::Apis::DriveV2::CommentReply>]
A link back to this comment. Corresponds to the JSON property `selfLink` @return [String]
The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
-
“open” - The comment is still open.
-
“resolved” - The comment has been resolved by one of its replies.
Corresponds to the JSON property `status` @return [String]
Public Class Methods
# File generated/google/apis/drive_v2/classes.rb, line 982 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/drive_v2/classes.rb, line 987 def update!(**args) @anchor = args[:anchor] if args.key?(:anchor) @author = args[:author] if args.key?(:author) @comment_id = args[:comment_id] if args.key?(:comment_id) @content = args[:content] if args.key?(:content) @context = args[:context] if args.key?(:context) @created_date = args[:created_date] if args.key?(:created_date) @deleted = args[:deleted] if args.key?(:deleted) @file_id = args[:file_id] if args.key?(:file_id) @file_title = args[:file_title] if args.key?(:file_title) @html_content = args[:html_content] if args.key?(:html_content) @kind = args[:kind] if args.key?(:kind) @modified_date = args[:modified_date] if args.key?(:modified_date) @replies = args[:replies] if args.key?(:replies) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) end