Skip to content

Commit 2a7934a

Browse files
feat: [chat] add UpdateMembership API (#5236)
* docs:card proto update feat: material icon in card PiperOrigin-RevId: 624942359 Source-Link: googleapis/googleapis@436a34a Source-Link: googleapis/googleapis-gen@7c86124 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNoYXQvLk93bEJvdC55YW1sIiwiaCI6IjdjODYxMjQ4YTJhYjJjM2RiZDI1ZDUyYWZlYzQ5ZmY5MDVlNjZhOGIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs:Chat API documentation update PiperOrigin-RevId: 625051297 Source-Link: googleapis/googleapis@81c27a6 Source-Link: googleapis/googleapis-gen@5bf8ea2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNoYXQvLk93bEJvdC55YW1sIiwiaCI6IjViZjhlYTJjNzEwZDEzODZiYzZkYzQ1MmY4YjZhNGU3MmJiM2ZlMjQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add UpdateMembership API PiperOrigin-RevId: 625805898 Source-Link: googleapis/googleapis@c106d2f Source-Link: googleapis/googleapis-gen@593bb0c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNoYXQvLk93bEJvdC55YW1sIiwiaCI6IjU5M2JiMGNiNmNhZmU3Y2I3MWMzNjc3NGYyNmM3ZjVjODhjYmI1ZDkifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9696d9d commit 2a7934a

36 files changed

Lines changed: 2281 additions & 914 deletions

packages/google-chat/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
145145
| Chat_service.list_reactions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_reactions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.list_reactions.js,packages/google-chat/samples/README.md) |
146146
| Chat_service.list_spaces | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_spaces.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.list_spaces.js,packages/google-chat/samples/README.md) |
147147
| Chat_service.set_up_space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.set_up_space.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.set_up_space.js,packages/google-chat/samples/README.md) |
148+
| Chat_service.update_membership | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_membership.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_membership.js,packages/google-chat/samples/README.md) |
148149
| Chat_service.update_message | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_message.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_message.js,packages/google-chat/samples/README.md) |
149150
| Chat_service.update_space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_space.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_space.js,packages/google-chat/samples/README.md) |
150151
| Chat_service.upload_attachment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.upload_attachment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.upload_attachment.js,packages/google-chat/samples/README.md) |

packages/google-chat/protos/google/apps/card/v1/card.proto

Lines changed: 242 additions & 160 deletions
Large diffs are not rendered by default.

packages/google-chat/protos/google/chat/v1/action_status.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ option php_namespace = "Google\\Apps\\Chat\\V1";
2727
option ruby_package = "Google::Apps::Chat::V1";
2828

2929
// Represents the status for a request to either invoke or submit a
30-
// [dialog](https://developers.google.com/chat/how-tos/dialogs).
30+
// [dialog](https://developers.google.com/workspace/chat/dialogs).
3131
message ActionStatus {
3232
// The status code.
3333
google.rpc.Code status_code = 1;

packages/google-chat/protos/google/chat/v1/annotation.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ option ruby_package = "Google::Apps::Chat::V1";
3030
// Output only. Annotations associated with the plain-text body of the message.
3131
// To add basic formatting to a text message, see
3232
// [Format text
33-
// messages](https://developers.google.com/chat/format-messages).
33+
// messages](https://developers.google.com/workspace/chat/format-messages).
3434
//
3535
// Example plain-text message body:
3636
// ```
@@ -155,7 +155,7 @@ message RichLinkMetadata {
155155
// Data for Google Drive links.
156156
message DriveLinkData {
157157
// A
158-
// [DriveDataRef](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref)
158+
// [DriveDataRef](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref)
159159
// which references a Google Drive file.
160160
DriveDataRef drive_data_ref = 1;
161161

packages/google-chat/protos/google/chat/v1/attachment.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,15 @@ message Attachment {
3434
pattern: "spaces/{space}/messages/{message}/attachments/{attachment}"
3535
};
3636

37+
// The source of the attachment.
3738
enum Source {
39+
// Reserved.
3840
SOURCE_UNSPECIFIED = 0;
3941

42+
// The file is a Google Drive file.
4043
DRIVE_FILE = 1;
4144

45+
// The file is uploaded to Chat.
4246
UPLOADED_CONTENT = 2;
4347
}
4448

@@ -52,6 +56,7 @@ message Attachment {
5256
// Output only. The content type (MIME type) of the file.
5357
string content_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
5458

59+
// The data reference to the attachment.
5560
oneof data_ref {
5661
// A reference to the attachment data. This field is used with the media API
5762
// to download the attachment data.
@@ -82,6 +87,7 @@ message DriveDataRef {
8287
string drive_file_id = 2;
8388
}
8489

90+
// A reference to the attachment data.
8591
message AttachmentDataRef {
8692
// The resource name of the attachment data. This field is used with the media
8793
// API to download the attachment data.
@@ -93,6 +99,7 @@ message AttachmentDataRef {
9399
string attachment_upload_token = 2;
94100
}
95101

102+
// Request to get an attachment.
96103
message GetAttachmentRequest {
97104
// Required. Resource name of the attachment, in the form
98105
// `spaces/*/messages/*/attachments/*`.
@@ -102,6 +109,7 @@ message GetAttachmentRequest {
102109
];
103110
}
104111

112+
// Request to upload an attachment.
105113
message UploadAttachmentRequest {
106114
// Required. Resource name of the Chat space in which the attachment is
107115
// uploaded. Format "spaces/{space}".
@@ -116,6 +124,7 @@ message UploadAttachmentRequest {
116124
string filename = 4 [(google.api.field_behavior) = REQUIRED];
117125
}
118126

127+
// Response of uploading an attachment.
119128
message UploadAttachmentResponse {
120129
// Reference to the uploaded attachment.
121130
AttachmentDataRef attachment_data_ref = 1;

0 commit comments

Comments
 (0)