Class: Google::Apis::DriveactivityV2::FileComment
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::FileComment
- 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
-
#legacy_comment_id ⇒ String
The comment in the discussion thread.
-
#legacy_discussion_id ⇒ String
The discussion thread to which the comment was added.
-
#link_to_discussion ⇒ String
The link to the discussion thread containing this comment, for example, "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID".
-
#parent ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileComment
constructor
A new instance of FileComment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FileComment
Returns a new instance of FileComment
665 666 667 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#legacy_comment_id ⇒ String
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
644 645 646 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 644 def legacy_comment_id @legacy_comment_id end |
#legacy_discussion_id ⇒ String
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
652 653 654 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 652 def legacy_discussion_id @legacy_discussion_id end |
#link_to_discussion ⇒ String
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
658 659 660 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 658 def link_to_discussion @link_to_discussion end |
#parent ⇒ Google::Apis::DriveactivityV2::DriveItem
A Drive item, such as a file or folder.
Corresponds to the JSON property parent
663 664 665 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 663 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
670 671 672 673 674 675 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 670 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 |