class Google::Apis::DriveactivityV2::FileComment

A comment on a file.

Attributes

legacy_comment_id[RW]

The comment in the discussion thread. This identifier is an opaque string compatible with the Drive API; see developers.google.com/drive/v3/ reference/comments/get Corresponds to the JSON property `legacyCommentId` @return [String]

legacy_discussion_id[RW]

The discussion thread to which the comment was added. This identifier is an opaque string compatible with the Drive API and references the first comment in a discussion; see developers.google.com/drive/v3/reference/comments/ get Corresponds to the JSON property `legacyDiscussionId` @return [String]

parent[RW]

A Drive item, such as a file or folder. Corresponds to the JSON property `parent` @return [Google::Apis::DriveactivityV2::DriveItem]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/driveactivity_v2/classes.rb, line 789
def update!(**args)
  @legacy_comment_id = args[:legacy_comment_id] if args.key?(:legacy_comment_id)
  @legacy_discussion_id = args[:legacy_discussion_id] if args.key?(:legacy_discussion_id)
  @link_to_discussion = args[:link_to_discussion] if args.key?(:link_to_discussion)
  @parent = args[:parent] if args.key?(:parent)
end