Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 42d7975

Browse files
committedDec 6, 2022
feat(chat): update the api
#### chat:v1 The following keys were added: - resources.spaces.resources.messages.methods.patch (Total Keys: 17)
1 parent 21f9266 commit 42d7975

File tree

2 files changed

+2733
-1
lines changed

2 files changed

+2733
-1
lines changed
 

‎docs/dyn/chat_v1.spaces.messages.html

+2,693
Large diffs are not rendered by default.

‎googleapiclient/discovery_cache/documents/chat.v1.json

+40-1
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,45 @@
777777
"https://www.googleapis.com/auth/chat.messages.readonly"
778778
]
779779
},
780+
"patch": {
781+
"description": "Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.",
782+
"flatPath": "v1/spaces/{spacesId}/messages/{messagesId}",
783+
"httpMethod": "PATCH",
784+
"id": "chat.spaces.messages.patch",
785+
"parameterOrder": [
786+
"name"
787+
],
788+
"parameters": {
789+
"allowMissing": {
790+
"description": "Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.",
791+
"location": "query",
792+
"type": "boolean"
793+
},
794+
"name": {
795+
"description": "Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`",
796+
"location": "path",
797+
"pattern": "^spaces/[^/]+/messages/[^/]+$",
798+
"required": true,
799+
"type": "string"
800+
},
801+
"updateMask": {
802+
"description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - cards_v2 ",
803+
"format": "google-fieldmask",
804+
"location": "query",
805+
"type": "string"
806+
}
807+
},
808+
"path": "v1/{+name}",
809+
"request": {
810+
"$ref": "Message"
811+
},
812+
"response": {
813+
"$ref": "Message"
814+
},
815+
"scopes": [
816+
"https://www.googleapis.com/auth/chat.messages"
817+
]
818+
},
780819
"update": {
781820
"description": "Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.",
782821
"flatPath": "v1/spaces/{spacesId}/messages/{messagesId}",
@@ -849,7 +888,7 @@
849888
}
850889
}
851890
},
852-
"revision": "20221122",
891+
"revision": "20221126",
853892
"rootUrl": "https://chat.googleapis.com/",
854893
"schemas": {
855894
"ActionParameter": {

0 commit comments

Comments
 (0)
Please sign in to comment.