Close httplib2 connections.
delete(fileId, commentId, x__xgafv=None)
Deletes a comment.
get(fileId, commentId, includeDeleted=None, x__xgafv=None)
Gets a comment by ID.
insert(fileId, body=None, x__xgafv=None)
Creates a new comment on the given file.
list(fileId, includeDeleted=None, maxResults=None, pageToken=None, updatedMin=None, x__xgafv=None)
Lists a file's comments.
Retrieves the next page of results.
patch(fileId, commentId, body=None, x__xgafv=None)
Updates an existing comment.
update(fileId, commentId, body=None, x__xgafv=None)
Updates an existing comment.
close()
Close httplib2 connections.
delete(fileId, commentId, x__xgafv=None)
Deletes a comment. Args: fileId: string, The ID of the file. (required) commentId: string, The ID of the comment. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format
get(fileId, commentId, includeDeleted=None, x__xgafv=None)
Gets a comment by ID. Args: fileId: string, The ID of the file. (required) commentId: string, The ID of the comment. (required) includeDeleted: boolean, If set, this will succeed when retrieving a deleted comment, and will include any deleted replies. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. }
insert(fileId, body=None, x__xgafv=None)
Creates a new comment on the given file. Args: fileId: string, The ID of the file. (required) body: object, The request body. The object takes the form of: { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. }
list(fileId, includeDeleted=None, maxResults=None, pageToken=None, updatedMin=None, x__xgafv=None)
Lists a file's comments. Args: fileId: string, The ID of the file. (required) includeDeleted: boolean, If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned. maxResults: integer, The maximum number of discussions to include in the response, used for paging. pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. updatedMin: string, Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A list of comments on a file in Google Drive. "items": [ # The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. }, ], "kind": "drive#commentList", # This is always `drive#commentList`. "nextLink": "A String", # A link to the next page of comments. "nextPageToken": "A String", # The page token for the next page of comments. This will be absent if the end of the comments list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. "selfLink": "A String", # A link back to this list. }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(fileId, commentId, body=None, x__xgafv=None)
Updates an existing comment. Args: fileId: string, The ID of the file. (required) commentId: string, The ID of the comment. (required) body: object, The request body. The object takes the form of: { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. }
update(fileId, commentId, body=None, x__xgafv=None)
Updates an existing comment. Args: fileId: string, The ID of the file. (required) commentId: string, The ID of the comment. (required) body: object, The request body. The object takes the form of: { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A comment on a file in Google Drive. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file. "anchor": "A String", # A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Add comments and replies](https://developers.google.com/drive/api/v2/manage-comments). "author": { # Information about a Drive user. # Output only. The author of the comment. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "commentId": "A String", # Output only. The ID of the comment. "content": "A 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. "context": { # The context of the file which is being commented on. "type": "A String", # The MIME type of the context snippet. "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about. }, "createdDate": "A String", # The date when this comment was first created. "deleted": True or False, # Output only. 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. "fileId": "A String", # Output only. The file which this comment is addressing. "fileTitle": "A String", # Output only. The title of the file which this comment is addressing. "htmlContent": "A String", # Output only. HTML formatted content for this comment. "kind": "drive#comment", # Output only. This is always `drive#comment`. "modifiedDate": "A String", # The date when this comment or any of its replies were last modified. "replies": [ # Output only. Replies to this post. { # A comment on a file in Google Drive. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply. "author": { # Information about a Drive user. # Output only. The author of the reply. The author's email address and permission ID will not be populated. "displayName": "A String", # Output only. A plain text displayable name for this user. "emailAddress": "A String", # Output only. The email address of the user. "isAuthenticatedUser": True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made. "kind": "drive#user", # Output only. This is always `drive#user`. "permissionId": "A String", # Output only. The user's ID as visible in the permissions collection. "picture": { # Output only. The user's profile picture. "url": "A String", # Output Only. A URL that points to a profile picture of this user. }, }, "content": "A String", # 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). "createdDate": "A String", # The date when this reply was first created. "deleted": True or False, # Output only. 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. "htmlContent": "A String", # Output only. HTML formatted content for this reply. "kind": "drive#commentReply", # Output only. This is always `drive#commentReply`. "modifiedDate": "A String", # The date when this reply was last modified. "replyId": "A String", # Output only. The ID of the reply. "verb": "A String", # 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. }, ], "selfLink": "A String", # Output only. A link back to this comment. "status": "A String", # Output only. 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. }