replies
Creates, updates, deletes, gets or lists a replies
resource.
Overview
Name | replies |
Type | Resource |
Id | googleworkspace.drivev3.replies |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Name | Datatype | Description |
---|---|---|
id | string | Output only. The ID of the reply. |
action | string | The action the reply performed to the parent comment. Valid values are: * resolve * reopen |
author | object | Information about a Drive user. (id: User) |
content | string | The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
createdTime | string (date-time) | The time at which the reply was created (RFC 3339 date-time). |
deleted | boolean | Output only. Whether the reply has been deleted. A deleted reply has no content. |
htmlContent | string | Output only. The content of the reply with HTML formatting. |
kind | string | Output only. Identifies what kind of resource this is. Value: the fixed string "drive#reply" . (default: drive#reply) |
modifiedTime | string (date-time) | The last time the reply was modified (RFC 3339 date-time). |
Name | Datatype | Description |
---|---|---|
id | string | Output only. The ID of the reply. |
action | string | The action the reply performed to the parent comment. Valid values are: * resolve * reopen |
author | object | Information about a Drive user. (id: User) |
content | string | The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
createdTime | string (date-time) | The time at which the reply was created (RFC 3339 date-time). |
deleted | boolean | Output only. Whether the reply has been deleted. A deleted reply has no content. |
htmlContent | string | Output only. The content of the reply with HTML formatting. |
kind | string | Output only. Identifies what kind of resource this is. Value: the fixed string "drive#reply" . (default: drive#reply) |
modifiedTime | string (date-time) | The last time the reply was modified (RFC 3339 date-time). |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | fileId , commentId , replyId | includeDeleted | Gets a reply by ID. |
list | select | fileId , commentId | includeDeleted , pageSize , pageToken | Lists a comment's replies. |
create | insert | fileId , commentId | Creates a reply to a comment. | |
update | update | fileId , commentId , replyId | Updates a reply with patch semantics. | |
delete | delete | fileId , commentId , replyId | Deletes a reply. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
commentId | string | |
fileId | string | |
replyId | string | |
includeDeleted | boolean | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Gets a reply by ID.
SELECT
id,
action,
author,
content,
createdTime,
deleted,
htmlContent,
kind,
modifiedTime
FROM googleworkspace.drivev3.replies
WHERE fileId = '{{ fileId }}' -- required
AND commentId = '{{ commentId }}' -- required
AND replyId = '{{ replyId }}' -- required
AND includeDeleted = '{{ includeDeleted }}'
;
Lists a comment's replies.
SELECT
id,
action,
author,
content,
createdTime,
deleted,
htmlContent,
kind,
modifiedTime
FROM googleworkspace.drivev3.replies
WHERE fileId = '{{ fileId }}' -- required
AND commentId = '{{ commentId }}' -- required
AND includeDeleted = '{{ includeDeleted }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
INSERT
examples
- create
- Manifest
Creates a reply to a comment.
INSERT INTO googleworkspace.drivev3.replies (
data__id,
data__kind,
data__createdTime,
data__modifiedTime,
data__action,
data__author,
data__deleted,
data__htmlContent,
data__content,
fileId,
commentId
)
SELECT
'{{ id }}',
'{{ kind }}',
'{{ createdTime }}',
'{{ modifiedTime }}',
'{{ action }}',
'{{ author }}',
{{ deleted }},
'{{ htmlContent }}',
'{{ content }}',
'{{ fileId }}',
'{{ commentId }}'
RETURNING
id,
action,
author,
content,
createdTime,
deleted,
htmlContent,
kind,
modifiedTime
;
# Description fields are for documentation purposes
- name: replies
props:
- name: fileId
value: string
description: Required parameter for the replies resource.
- name: commentId
value: string
description: Required parameter for the replies resource.
- name: id
value: string
description: >
Output only. The ID of the reply.
- name: kind
value: string
description: >
Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#reply"`.
default: drive#reply
- name: createdTime
value: string
description: >
The time at which the reply was created (RFC 3339 date-time).
- name: modifiedTime
value: string
description: >
The last time the reply was modified (RFC 3339 date-time).
- name: action
value: string
description: >
The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen`
- name: author
value: object
description: >
Information about a Drive user.
- name: deleted
value: boolean
description: >
Output only. Whether the reply has been deleted. A deleted reply has no content.
- name: htmlContent
value: string
description: >
Output only. The content of the reply with HTML formatting.
- name: content
value: string
description: >
The plain text content of the reply. This field is used for setting the content, while `htmlContent` should be displayed. This is required on creates if no `action` is specified.
UPDATE
examples
- update
Updates a reply with patch semantics.
UPDATE googleworkspace.drivev3.replies
SET
data__id = '{{ id }}',
data__kind = '{{ kind }}',
data__createdTime = '{{ createdTime }}',
data__modifiedTime = '{{ modifiedTime }}',
data__action = '{{ action }}',
data__author = '{{ author }}',
data__deleted = {{ deleted }},
data__htmlContent = '{{ htmlContent }}',
data__content = '{{ content }}'
WHERE
fileId = '{{ fileId }}' --required
AND commentId = '{{ commentId }}' --required
AND replyId = '{{ replyId }}' --required
RETURNING
id,
action,
author,
content,
createdTime,
deleted,
htmlContent,
kind,
modifiedTime;
DELETE
examples
- delete
Deletes a reply.
DELETE FROM googleworkspace.drivev3.replies
WHERE fileId = '{{ fileId }}' --required
AND commentId = '{{ commentId }}' --required
AND replyId = '{{ replyId }}' --required
;