Class: Google::Apis::DriveV2::Comment
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::Comment
- 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.
Defined Under Namespace
Classes: Context
Instance Attribute Summary collapse
-
#anchor ⇒ String
A region of the document represented as a JSON string.
-
#author ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
-
#comment_id ⇒ String
The ID of the comment.
-
#content ⇒ String
The plain text content used to create this comment.
-
#context ⇒ Google::Apis::DriveV2::Comment::Context
The context of the file which is being commented on.
-
#created_date ⇒ DateTime
The date when this comment was first created.
-
#deleted ⇒ Boolean
(also: #deleted?)
Whether this comment has been deleted.
-
#file_id ⇒ String
The file which this comment is addressing.
-
#file_title ⇒ String
The title of the file which this comment is addressing.
-
#html_content ⇒ String
HTML formatted content for this comment.
-
#kind ⇒ String
This is always drive#comment.
-
#modified_date ⇒ DateTime
The date when this comment or any of its replies were last modified.
-
#replies ⇒ Array<Google::Apis::DriveV2::CommentReply>
Replies to this post.
-
#self_link ⇒ String
A link back to this comment.
-
#status ⇒ String
The status of this comment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Comment
constructor
A new instance of Comment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Comment
Returns a new instance of Comment.
990 991 992 |
# File 'generated/google/apis/drive_v2/classes.rb', line 990 def initialize(**args) update!(**args) end |
Instance Attribute Details
#anchor ⇒ String
A region of the document represented as a JSON string. See anchor
documentation for details on how to define and interpret anchor properties.
Corresponds to the JSON property anchor
911 912 913 |
# File 'generated/google/apis/drive_v2/classes.rb', line 911 def anchor @anchor end |
#author ⇒ Google::Apis::DriveV2::User
Information about a Drive user.
Corresponds to the JSON property author
916 917 918 |
# File 'generated/google/apis/drive_v2/classes.rb', line 916 def @author end |
#comment_id ⇒ String
The ID of the comment.
Corresponds to the JSON property commentId
921 922 923 |
# File 'generated/google/apis/drive_v2/classes.rb', line 921 def comment_id @comment_id end |
#content ⇒ String
The plain text content used to create this comment. This is not HTML safe and
should only be used as a starting point to make edits to a comment's content.
Corresponds to the JSON property content
927 928 929 |
# File 'generated/google/apis/drive_v2/classes.rb', line 927 def content @content end |
#context ⇒ Google::Apis::DriveV2::Comment::Context
The context of the file which is being commented on.
Corresponds to the JSON property context
932 933 934 |
# File 'generated/google/apis/drive_v2/classes.rb', line 932 def context @context end |
#created_date ⇒ DateTime
The date when this comment was first created.
Corresponds to the JSON property createdDate
937 938 939 |
# File 'generated/google/apis/drive_v2/classes.rb', line 937 def created_date @created_date end |
#deleted ⇒ Boolean Also known as: deleted?
Whether this comment has been deleted. If a comment has been deleted the
content will be cleared and this will only represent a comment that once
existed.
Corresponds to the JSON property deleted
944 945 946 |
# File 'generated/google/apis/drive_v2/classes.rb', line 944 def deleted @deleted end |
#file_id ⇒ String
The file which this comment is addressing.
Corresponds to the JSON property fileId
950 951 952 |
# File 'generated/google/apis/drive_v2/classes.rb', line 950 def file_id @file_id end |
#file_title ⇒ String
The title of the file which this comment is addressing.
Corresponds to the JSON property fileTitle
955 956 957 |
# File 'generated/google/apis/drive_v2/classes.rb', line 955 def file_title @file_title end |
#html_content ⇒ String
HTML formatted content for this comment.
Corresponds to the JSON property htmlContent
960 961 962 |
# File 'generated/google/apis/drive_v2/classes.rb', line 960 def html_content @html_content end |
#kind ⇒ String
This is always drive#comment.
Corresponds to the JSON property kind
965 966 967 |
# File 'generated/google/apis/drive_v2/classes.rb', line 965 def kind @kind end |
#modified_date ⇒ DateTime
The date when this comment or any of its replies were last modified.
Corresponds to the JSON property modifiedDate
970 971 972 |
# File 'generated/google/apis/drive_v2/classes.rb', line 970 def modified_date @modified_date end |
#replies ⇒ Array<Google::Apis::DriveV2::CommentReply>
Replies to this post.
Corresponds to the JSON property replies
975 976 977 |
# File 'generated/google/apis/drive_v2/classes.rb', line 975 def replies @replies end |
#self_link ⇒ String
A link back to this comment.
Corresponds to the JSON property selfLink
980 981 982 |
# File 'generated/google/apis/drive_v2/classes.rb', line 980 def self_link @self_link end |
#status ⇒ String
The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- "open" - The comment is still open.
- "resolved" - The comment has been resolved by one of its replies.
Corresponds to the JSON property
status
988 989 990 |
# File 'generated/google/apis/drive_v2/classes.rb', line 988 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 |
# File 'generated/google/apis/drive_v2/classes.rb', line 995 def update!(**args) @anchor = args[:anchor] if args.key?(:anchor) @author = args[:author] if args.key?(:author) @comment_id = args[:comment_id] if args.key?(:comment_id) @content = args[:content] if args.key?(:content) @context = args[:context] if args.key?(:context) @created_date = args[:created_date] if args.key?(:created_date) @deleted = args[:deleted] if args.key?(:deleted) @file_id = args[:file_id] if args.key?(:file_id) @file_title = args[:file_title] if args.key?(:file_title) @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) @replies = args[:replies] if args.key?(:replies) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) end |