Skip to content

Commit

Permalink
feat(chat): update the API
Browse files Browse the repository at this point in the history
#### chat:v1

The following keys were added:
- resources.dms.methods.messages.description
- resources.dms.methods.messages.flatPath
- resources.dms.methods.messages.httpMethod
- resources.dms.methods.messages.id
- resources.dms.methods.messages.parameterOrder
- resources.dms.methods.messages.parameters.parent.description
- resources.dms.methods.messages.parameters.parent.location
- resources.dms.methods.messages.parameters.parent.pattern
- resources.dms.methods.messages.parameters.parent.required
- resources.dms.methods.messages.parameters.parent.type
- resources.dms.methods.messages.parameters.threadKey.description
- resources.dms.methods.messages.parameters.threadKey.location
- resources.dms.methods.messages.parameters.threadKey.type
- resources.dms.methods.messages.path
- resources.dms.methods.messages.request.$ref
- resources.dms.methods.messages.response.$ref
- resources.dms.resources.conversations.methods.messages.description
- resources.dms.resources.conversations.methods.messages.flatPath
- resources.dms.resources.conversations.methods.messages.httpMethod
- resources.dms.resources.conversations.methods.messages.id
- resources.dms.resources.conversations.methods.messages.parameterOrder
- resources.dms.resources.conversations.methods.messages.parameters.parent.description
- resources.dms.resources.conversations.methods.messages.parameters.parent.location
- resources.dms.resources.conversations.methods.messages.parameters.parent.pattern
- resources.dms.resources.conversations.methods.messages.parameters.parent.required
- resources.dms.resources.conversations.methods.messages.parameters.parent.type
- resources.dms.resources.conversations.methods.messages.parameters.threadKey.description
- resources.dms.resources.conversations.methods.messages.parameters.threadKey.location
- resources.dms.resources.conversations.methods.messages.parameters.threadKey.type
- resources.dms.resources.conversations.methods.messages.path
- resources.dms.resources.conversations.methods.messages.request.$ref
- resources.dms.resources.conversations.methods.messages.response.$ref
- resources.rooms.methods.messages.description
- resources.rooms.methods.messages.flatPath
- resources.rooms.methods.messages.httpMethod
- resources.rooms.methods.messages.id
- resources.rooms.methods.messages.parameterOrder
- resources.rooms.methods.messages.parameters.parent.description
- resources.rooms.methods.messages.parameters.parent.location
- resources.rooms.methods.messages.parameters.parent.pattern
- resources.rooms.methods.messages.parameters.parent.required
- resources.rooms.methods.messages.parameters.parent.type
- resources.rooms.methods.messages.parameters.threadKey.description
- resources.rooms.methods.messages.parameters.threadKey.location
- resources.rooms.methods.messages.parameters.threadKey.type
- resources.rooms.methods.messages.path
- resources.rooms.methods.messages.request.$ref
- resources.rooms.methods.messages.response.$ref
- resources.rooms.resources.conversations.methods.messages.description
- resources.rooms.resources.conversations.methods.messages.flatPath
- resources.rooms.resources.conversations.methods.messages.httpMethod
- resources.rooms.resources.conversations.methods.messages.id
- resources.rooms.resources.conversations.methods.messages.parameterOrder
- resources.rooms.resources.conversations.methods.messages.parameters.parent.description
- resources.rooms.resources.conversations.methods.messages.parameters.parent.location
- resources.rooms.resources.conversations.methods.messages.parameters.parent.pattern
- resources.rooms.resources.conversations.methods.messages.parameters.parent.required
- resources.rooms.resources.conversations.methods.messages.parameters.parent.type
- resources.rooms.resources.conversations.methods.messages.parameters.threadKey.description
- resources.rooms.resources.conversations.methods.messages.parameters.threadKey.location
- resources.rooms.resources.conversations.methods.messages.parameters.threadKey.type
- resources.rooms.resources.conversations.methods.messages.path
- resources.rooms.resources.conversations.methods.messages.request.$ref
- resources.rooms.resources.conversations.methods.messages.response.$ref
  • Loading branch information
yoshi-automation authored and bcoe committed Dec 3, 2020
1 parent f8dd051 commit 7cca6bf
Show file tree
Hide file tree
Showing 2 changed files with 938 additions and 38 deletions.
142 changes: 141 additions & 1 deletion discovery/chat-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,76 @@
},
"protocol": "rest",
"resources": {
"dms": {
"methods": {
"messages": {
"description": "Legacy path for creating message. Calling these will result in a BadRequest response.",
"flatPath": "v1/dms/{dmsId}/messages",
"httpMethod": "POST",
"id": "chat.dms.messages",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^dms/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages into a single thread. If this is the first message with a given thread identifier, a new thread is created. Subsequent messages with the same thread identifier will be posted into the same thread. This relieves bots and webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post further updates to it. Has no effect if thread field, corresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
},
"resources": {
"conversations": {
"methods": {
"messages": {
"description": "Legacy path for creating message. Calling these will result in a BadRequest response.",
"flatPath": "v1/dms/{dmsId}/conversations/{conversationsId}/messages",
"httpMethod": "POST",
"id": "chat.dms.conversations.messages",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^dms/[^/]+/conversations/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages into a single thread. If this is the first message with a given thread identifier, a new thread is created. Subsequent messages with the same thread identifier will be posted into the same thread. This relieves bots and webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post further updates to it. Has no effect if thread field, corresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
}
}
}
},
"media": {
"methods": {
"download": {
Expand Down Expand Up @@ -123,6 +193,76 @@
}
}
},
"rooms": {
"methods": {
"messages": {
"description": "Legacy path for creating message. Calling these will result in a BadRequest response.",
"flatPath": "v1/rooms/{roomsId}/messages",
"httpMethod": "POST",
"id": "chat.rooms.messages",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^rooms/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages into a single thread. If this is the first message with a given thread identifier, a new thread is created. Subsequent messages with the same thread identifier will be posted into the same thread. This relieves bots and webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post further updates to it. Has no effect if thread field, corresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
},
"resources": {
"conversations": {
"methods": {
"messages": {
"description": "Legacy path for creating message. Calling these will result in a BadRequest response.",
"flatPath": "v1/rooms/{roomsId}/conversations/{conversationsId}/messages",
"httpMethod": "POST",
"id": "chat.rooms.conversations.messages",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAMpdlehY",
"location": "path",
"pattern": "^rooms/[^/]+/conversations/[^/]+$",
"required": true,
"type": "string"
},
"threadKey": {
"description": "Opaque thread identifier string that can be specified to group messages into a single thread. If this is the first message with a given thread identifier, a new thread is created. Subsequent messages with the same thread identifier will be posted into the same thread. This relieves bots and webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post further updates to it. Has no effect if thread field, corresponding to an existing thread, is set in message.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+parent}/messages",
"request": {
"$ref": "Message"
},
"response": {
"$ref": "Message"
}
}
}
}
}
},
"spaces": {
"methods": {
"get": {
Expand Down Expand Up @@ -372,7 +512,7 @@
}
}
},
"revision": "20201028",
"revision": "20201127",
"rootUrl": "https://chat.googleapis.com/",
"schemas": {
"ActionParameter": {
Expand Down
Loading

0 comments on commit 7cca6bf

Please # to comment.