class

GoogleDrive::Comment

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

A comment on a file.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, anchor : String | Nil = nil, author : GoogleDrive::User | Nil = nil, content : String | Nil = nil, created_time : Time | Nil = nil, deleted : Bool | Nil = nil, html_content : String | Nil = nil, id : String | Nil = nil, kind : String | Nil = "drive#comment", modified_time : Time | Nil = nil, quoted_file_content : GoogleDrive::CommentQuotedFileContent | Nil = nil, replies : Array(GoogleDrive::Reply) | Nil = nil, resolved : Bool | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

anchor

A region of the document represented as a JSON string. For details on defining anchor properties, refer to Add comments and replies.

Source
anchor=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] anchor Object to be assigned

Source
author
Source
author=(new_value : GoogleDrive::User | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] author Object to be assigned

Source
content

The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.

Source
content=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] content Object to be assigned

Source
created_time

The time at which the comment was created (RFC 3339 date-time).

Source
created_time=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] created_time Object to be assigned

Source
deleted

Whether the comment has been deleted. A deleted comment has no content.

Source
deleted=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] deleted Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

html_content

The content of the comment with HTML formatting.

Source
html_content=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] html_content Object to be assigned

Source
id

The ID of the comment.

Source
id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned

Source
kind

Identifies what kind of resource this is. Value: the fixed string "drive#comment".

Source
kind=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
modified_time

The last time the comment or any of its replies was modified (RFC 3339 date-time).

Source
modified_time=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] modified_time Object to be assigned

Source
quoted_file_content
Source
quoted_file_content=(new_value : GoogleDrive::CommentQuotedFileContent | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] quoted_file_content Object to be assigned

Source
replies

The full list of replies to the comment in chronological order.

Source
replies=(new_value : Array(GoogleDrive::Reply) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] replies Object to be assigned

Source
resolved

Whether the comment has been resolved by one of its replies.

Source
resolved=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] resolved Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source