Class: Google::Apis::DriveV2::CommentReply

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb

Overview

A comment on a file in Google Drive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CommentReply

Returns a new instance of CommentReply



1215
1216
1217
# File 'generated/google/apis/drive_v2/classes.rb', line 1215

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorGoogle::Apis::DriveV2::User

Information about a Drive user. Corresponds to the JSON property author



1165
1166
1167
# File 'generated/google/apis/drive_v2/classes.rb', line 1165

def author
  @author
end

#contentString

The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen). Corresponds to the JSON property content

Returns:

  • (String)


1172
1173
1174
# File 'generated/google/apis/drive_v2/classes.rb', line 1172

def content
  @content
end

#created_dateDateTime

The date when this reply was first created. Corresponds to the JSON property createdDate

Returns:

  • (DateTime)


1177
1178
1179
# File 'generated/google/apis/drive_v2/classes.rb', line 1177

def created_date
  @created_date
end

#deletedBoolean Also known as: deleted?

Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed. Corresponds to the JSON property deleted

Returns:

  • (Boolean)


1183
1184
1185
# File 'generated/google/apis/drive_v2/classes.rb', line 1183

def deleted
  @deleted
end

#html_contentString

HTML formatted content for this reply. Corresponds to the JSON property htmlContent

Returns:

  • (String)


1189
1190
1191
# File 'generated/google/apis/drive_v2/classes.rb', line 1189

def html_content
  @html_content
end

#kindString

This is always drive#commentReply. Corresponds to the JSON property kind

Returns:

  • (String)


1194
1195
1196
# File 'generated/google/apis/drive_v2/classes.rb', line 1194

def kind
  @kind
end

#modified_dateDateTime

The date when this reply was last modified. Corresponds to the JSON property modifiedDate

Returns:

  • (DateTime)


1199
1200
1201
# File 'generated/google/apis/drive_v2/classes.rb', line 1199

def modified_date
  @modified_date
end

#reply_idString

The ID of the reply. Corresponds to the JSON property replyId

Returns:

  • (String)


1204
1205
1206
# File 'generated/google/apis/drive_v2/classes.rb', line 1204

def reply_id
  @reply_id
end

#verbString

The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:

  • "resolve" - To resolve a comment.
  • "reopen" - To reopen (un-resolve) a comment. Corresponds to the JSON property verb

Returns:

  • (String)


1213
1214
1215
# File 'generated/google/apis/drive_v2/classes.rb', line 1213

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
# File 'generated/google/apis/drive_v2/classes.rb', line 1220

def update!(**args)
  @author = args[:author] if args.key?(:author)
  @content = args[:content] if args.key?(:content)
  @created_date = args[:created_date] if args.key?(:created_date)
  @deleted = args[:deleted] if args.key?(:deleted)
  @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)
  @reply_id = args[:reply_id] if args.key?(:reply_id)
  @verb = args[:verb] if args.key?(:verb)
end