Class: Google::Apis::DriveV3::Comment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DriveV3::Comment
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v3/classes.rb,
 generated/google/apis/drive_v3/representations.rb,
 generated/google/apis/drive_v3/representations.rb
Overview
A comment on a file.
Defined Under Namespace
Classes: QuotedFileContent
Instance Attribute Summary collapse
- 
  
    
      #anchor  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A region of the document represented as a JSON string. 
- 
  
    
      #author  ⇒ Google::Apis::DriveV3::User 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Information about a Drive user. 
- 
  
    
      #content  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The plain text content of the comment. 
- 
  
    
      #created_time  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time at which the comment was created (RFC 3339 date-time). 
- 
  
    
      #deleted  ⇒ Boolean 
    
    
      (also: #deleted?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the comment has been deleted. 
- 
  
    
      #html_content  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The content of the comment with HTML formatting. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the comment. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #modified_time  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The last time the comment or any of its replies was modified (RFC 3339 date- time). 
- 
  
    
      #quoted_file_content  ⇒ Google::Apis::DriveV3::Comment::QuotedFileContent 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The file content to which the comment refers, typically within the anchor region. 
- 
  
    
      #replies  ⇒ Array<Google::Apis::DriveV3::Reply> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The full list of replies to the comment in chronological order. 
- 
  
    
      #resolved  ⇒ Boolean 
    
    
      (also: #resolved?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the comment has been resolved by one of its replies. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Comment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Comment. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Comment
Returns a new instance of Comment
| 433 434 435 | # File 'generated/google/apis/drive_v3/classes.rb', line 433 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#anchor ⇒ String
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
| 369 370 371 | # File 'generated/google/apis/drive_v3/classes.rb', line 369 def anchor @anchor end | 
#author ⇒ Google::Apis::DriveV3::User
Information about a Drive user.
Corresponds to the JSON property author
| 374 375 376 | # File 'generated/google/apis/drive_v3/classes.rb', line 374 def @author end | 
#content ⇒ 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
| 380 381 382 | # File 'generated/google/apis/drive_v3/classes.rb', line 380 def content @content end | 
#created_time ⇒ DateTime
The time at which the comment was created (RFC 3339 date-time).
Corresponds to the JSON property createdTime
| 385 386 387 | # File 'generated/google/apis/drive_v3/classes.rb', line 385 def created_time @created_time end | 
#deleted ⇒ Boolean Also known as: deleted?
Whether the comment has been deleted. A deleted comment has no content.
Corresponds to the JSON property deleted
| 390 391 392 | # File 'generated/google/apis/drive_v3/classes.rb', line 390 def deleted @deleted end | 
#html_content ⇒ String
The content of the comment with HTML formatting.
Corresponds to the JSON property htmlContent
| 396 397 398 | # File 'generated/google/apis/drive_v3/classes.rb', line 396 def html_content @html_content end | 
#id ⇒ String
The ID of the comment.
Corresponds to the JSON property id
| 401 402 403 | # File 'generated/google/apis/drive_v3/classes.rb', line 401 def id @id end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "drive#
comment".
Corresponds to the JSON property kind
| 407 408 409 | # File 'generated/google/apis/drive_v3/classes.rb', line 407 def kind @kind end | 
#modified_time ⇒ DateTime
The last time the comment or any of its replies was modified (RFC 3339 date-
time).
Corresponds to the JSON property modifiedTime
| 413 414 415 | # File 'generated/google/apis/drive_v3/classes.rb', line 413 def modified_time @modified_time end | 
#quoted_file_content ⇒ Google::Apis::DriveV3::Comment::QuotedFileContent
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
| 420 421 422 | # File 'generated/google/apis/drive_v3/classes.rb', line 420 def quoted_file_content @quoted_file_content end | 
#replies ⇒ Array<Google::Apis::DriveV3::Reply>
The full list of replies to the comment in chronological order.
Corresponds to the JSON property replies
| 425 426 427 | # File 'generated/google/apis/drive_v3/classes.rb', line 425 def replies @replies end | 
#resolved ⇒ Boolean Also known as: resolved?
Whether the comment has been resolved by one of its replies.
Corresponds to the JSON property resolved
| 430 431 432 | # File 'generated/google/apis/drive_v3/classes.rb', line 430 def resolved @resolved end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 438 439 440 441 442 443 444 445 446 447 448 449 450 451 | # File 'generated/google/apis/drive_v3/classes.rb', line 438 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 |