class Google::Apis::DriveV3::Comment

A comment on a file.

Attributes

anchor[RW]

A region of the document represented as a JSON string. For details on defining anchor properties, refer to Add comments and replies. Corresponds to the JSON property `anchor` @return [String]

author[RW]

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

content[RW]

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]

created_time[RW]

The time at which the comment was created (RFC 3339 date-time). Corresponds to the JSON property `createdTime` @return [DateTime]

deleted[RW]

Whether the comment has been deleted. A deleted comment has no content. Corresponds to the JSON property `deleted` @return [Boolean]

deleted?[RW]

Whether the comment has been deleted. A deleted comment has no content. Corresponds to the JSON property `deleted` @return [Boolean]

html_content[RW]

The content of the comment with HTML formatting. Corresponds to the JSON property `htmlContent` @return [String]

id[RW]

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

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “drive# comment”. Corresponds to the JSON property `kind` @return [String]

modified_time[RW]

The last time the comment or any of its replies was modified (RFC 3339 date- time). Corresponds to the JSON property `modifiedTime` @return [DateTime]

quoted_file_content[RW]

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]

replies[RW]

The full list of replies to the comment in chronological order. Corresponds to the JSON property `replies` @return [Array<Google::Apis::DriveV3::Reply>]

resolved[RW]

Whether the comment has been resolved by one of its replies. Corresponds to the JSON property `resolved` @return [Boolean]

resolved?[RW]

Whether the comment has been resolved by one of its replies. Corresponds to the JSON property `resolved` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v3/classes.rb, line 502
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