Class: Google::Apis::DriveactivityV2::FileComment

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

Overview

A comment on a file.

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) ⇒ FileComment

Returns a new instance of FileComment.


784
785
786
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 784

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

Instance Attribute Details

#legacy_comment_idString

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

Returns:

  • (String)

763
764
765
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 763

def legacy_comment_id
  @legacy_comment_id
end

#legacy_discussion_idString

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 https://developers.google.com/drive/v3/reference/comments/ get Corresponds to the JSON property legacyDiscussionId

Returns:

  • (String)

771
772
773
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 771

def legacy_discussion_id
  @legacy_discussion_id
end

The link to the discussion thread containing this comment, for example, "https: //docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID". Corresponds to the JSON property linkToDiscussion

Returns:

  • (String)

777
778
779
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 777

def link_to_discussion
  @link_to_discussion
end

#parentGoogle::Apis::DriveactivityV2::DriveItem

A Drive item, such as a file or folder. Corresponds to the JSON property parent


782
783
784
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 782

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


789
790
791
792
793
794
# File 'generated/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