Skip to content

Commit

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

The following keys were changed:
- description
- resources.spaces.resources.messages.resources.attachments.methods.get.parameters.name.description
- schemas.Space.properties.name.description
  • Loading branch information
yoshi-automation authored and bcoe committed Mar 14, 2022
1 parent e34ca96 commit cfd8a7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions discovery/chat-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": "https://chat.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Hangouts Chat",
"description": "Enables bots to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.",
"description": "Enables apps to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/hangouts/chat",
"fullyEncodeReservedExpansion": true,
Expand Down Expand Up @@ -623,7 +623,7 @@
],
"parameters": {
"name": {
"description": "Resource name of the attachment, in the form \"spaces/*/messages/*/attachments/*\".",
"description": "Required. Resource name of the attachment, in the form \"spaces/*/messages/*/attachments/*\".",
"location": "path",
"pattern": "^spaces/[^/]+/messages/[^/]+/attachments/[^/]+$",
"required": true,
Expand All @@ -642,7 +642,7 @@
}
}
},
"revision": "20220302",
"revision": "20220309",
"rootUrl": "https://chat.googleapis.com/",
"schemas": {
"ActionParameter": {
Expand Down Expand Up @@ -2600,7 +2600,7 @@
"type": "string"
},
"name": {
"description": "Resource name of the space, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAAA",
"description": "Optional. Resource name of the space, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAAA",
"type": "string"
},
"singleUserBotDm": {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# chat

> Enables bots to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.
> Enables apps to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.
## Installation

Expand Down
8 changes: 4 additions & 4 deletions src/apis/chat/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export namespace chat_v1 {
/**
* Google Chat API
*
* Enables bots to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.
* Enables apps to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.
*
* @example
* ```js
Expand Down Expand Up @@ -1416,7 +1416,7 @@ export namespace chat_v1 {
*/
displayName?: string | null;
/**
* Resource name of the space, in the form "spaces/x". Example: spaces/AAAAAAAAAAAA
* Optional. Resource name of the space, in the form "spaces/x". Example: spaces/AAAAAAAAAAAA
*/
name?: string | null;
/**
Expand Down Expand Up @@ -4358,7 +4358,7 @@ export namespace chat_v1 {
*
* // Do the magic
* const res = await chat.spaces.messages.attachments.get({
* // Resource name of the attachment, in the form "spaces/x/messages/x/attachments/x".
* // Required. Resource name of the attachment, in the form "spaces/x/messages/x/attachments/x".
* name: 'spaces/my-space/messages/my-message/attachments/my-attachment',
* });
* console.log(res.data);
Expand Down Expand Up @@ -4468,7 +4468,7 @@ export namespace chat_v1 {
export interface Params$Resource$Spaces$Messages$Attachments$Get
extends StandardParameters {
/**
* Resource name of the attachment, in the form "spaces/x/messages/x/attachments/x".
* Required. Resource name of the attachment, in the form "spaces/x/messages/x/attachments/x".
*/
name?: string;
}
Expand Down

0 comments on commit cfd8a7e

Please sign in to comment.