Resource: Attachment
An attachment resource with a unique name that an agent can use to identify the attachment.
| JSON representation |
|---|
{ "name": string, "gcsUrl": string, "displayName": string, "description": string, "contentType": string, "sizeBytes": string, "attachmentOperationSource": enum ( |
| Fields | |
|---|---|
name |
Output only. The unique identifier of the attachment. Read-only. Defined by the platform. |
gcsUrl |
Output only. The GCS URL of the attachment. This is the publicly accessible URL that is used to fetch the attachment from GCS. |
displayName |
Optional. Display name of the attachment. |
description |
Optional. Text description of the attachment's content. Screen readers use this description to help users with disabilities understand what the attachment contains. |
contentType |
Optional. The content type of the attachment. |
sizeBytes |
Output only. Size in bytes of the attachment. |
attachmentOperationSource |
Required. The source that triggered the attachment upload. Required if |
uploadTime |
Output only. The time when the attachment was uploaded to GCS. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
uploadError |
Output only. Error result, if any, that occurred during the attachment upload. |
Methods |
|
|---|---|
|
Deletes an attachment for an RCS for Business agent. |