class Google::Apis::DriveV2::Comment

A comment on a file in Google Drive.

Attributes

anchor[RW]

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]

author[RW]

Information about a Drive user. Corresponds to the JSON property `author` @return [Google::Apis::DriveV2::User]

comment_id[RW]

The ID of the comment. Corresponds to the JSON property `commentId` @return [String]

content[RW]

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]

context[RW]

The context of the file which is being commented on. Corresponds to the JSON property `context` @return [Google::Apis::DriveV2::Comment::Context]

created_date[RW]

The date when this comment was first created. Corresponds to the JSON property `createdDate` @return [DateTime]

deleted[RW]

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]

deleted?[RW]

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]

file_id[RW]

The file which this comment is addressing. Corresponds to the JSON property `fileId` @return [String]

file_title[RW]

The title of the file which this comment is addressing. Corresponds to the JSON property `fileTitle` @return [String]

html_content[RW]

HTML formatted content for this comment. Corresponds to the JSON property `htmlContent` @return [String]

kind[RW]

This is always drive#comment. Corresponds to the JSON property `kind` @return [String]

modified_date[RW]

The date when this comment or any of its replies were last modified. Corresponds to the JSON property `modifiedDate` @return [DateTime]

replies[RW]

Replies to this post. Corresponds to the JSON property `replies` @return [Array<Google::Apis::DriveV2::CommentReply>]

status[RW]

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

new(**args) click to toggle source
# File generated/google/apis/drive_v2/classes.rb, line 982
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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