diff --git a/docs/dyn/chat_v1.media.html b/docs/dyn/chat_v1.media.html index 32bf700a20f..f37857d4a33 100644 --- a/docs/dyn/chat_v1.media.html +++ b/docs/dyn/chat_v1.media.html @@ -83,6 +83,9 @@
download_media(resourceName, x__xgafv=None)
Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`.
+
+ upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)
[Developer Preview](https://developers.google.com/workspace/preview): Uploads an attachment. Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
close()
@@ -125,4 +128,35 @@ upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)
+ [Developer Preview](https://developers.google.com/workspace/preview): Uploads an attachment. Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat). + +Args: + parent: string, Required. Resource name of the Chat space in which the attachment is uploaded. Format "spaces/{space}". (required) + body: object, The request body. + The object takes the form of: + +{ # [Developer Preview](https://developers.google.com/workspace/preview). + "filename": "A String", # Required. The filename of the attachment, including the file extension. +} + + media_body: string, The filename of the media request body, or an instance of a MediaUpload object. + media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object. + x__xgafv: string, V1 error format. + Allowed values + 1 - v1 error format + 2 - v2 error format + +Returns: + An object of the form: + + { + "attachmentDataRef": { # Reference to the uploaded attachment. + "attachmentUploadToken": "A String", # Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments. [Developer Preview](https://developers.google.com/workspace/preview). + "resourceName": "A String", # The resource name of the attachment data. This field is used with the media API to download the attachment data. + }, +}+