google-apps-chat-v1 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/google/apps/chat/v1/chat_service/client.rb +485 -51
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +6 -1
- data/lib/google/apps/chat/v1/chat_service/paths.rb +18 -1
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +464 -51
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +185 -1
- data/lib/google/apps/chat/v1/chat_service/rest.rb +1 -1
- data/lib/google/apps/chat/v1/chat_service.rb +1 -1
- data/lib/google/apps/chat/v1/rest.rb +1 -1
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/apps/chat/v1.rb +1 -1
- data/lib/google/chat/v1/app_command_metadata_pb.rb +22 -0
- data/lib/google/chat/v1/chat_service_pb.rb +2 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +53 -8
- data/lib/google/chat/v1/markup_syntax_pb.rb +21 -0
- data/lib/google/chat/v1/message_pb.rb +2 -1
- data/lib/google/chat/v1/message_pin_pb.rb +28 -0
- data/lib/google/chat/v1/space_pb.rb +2 -1
- data/lib/google-apps-chat-v1.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/apps/card/v1/card.rb +2 -2
- data/proto_docs/google/chat/v1/action_status.rb +1 -1
- data/proto_docs/google/chat/v1/annotation.rb +6 -6
- data/proto_docs/google/chat/v1/app_command_metadata.rb +57 -0
- data/proto_docs/google/chat/v1/attachment.rb +1 -1
- data/proto_docs/google/chat/v1/contextual_addon.rb +1 -1
- data/proto_docs/google/chat/v1/deletion_metadata.rb +1 -1
- data/proto_docs/google/chat/v1/event_payload.rb +1 -1
- data/proto_docs/google/chat/v1/group.rb +1 -1
- data/proto_docs/google/chat/v1/history_state.rb +1 -1
- data/proto_docs/google/chat/v1/markup_syntax.rb +47 -0
- data/proto_docs/google/chat/v1/matched_url.rb +1 -1
- data/proto_docs/google/chat/v1/membership.rb +1 -1
- data/proto_docs/google/chat/v1/message.rb +60 -10
- data/proto_docs/google/chat/v1/message_pin.rb +106 -0
- data/proto_docs/google/chat/v1/reaction.rb +13 -13
- data/proto_docs/google/chat/v1/slash_command.rb +1 -1
- data/proto_docs/google/chat/v1/space.rb +117 -20
- data/proto_docs/google/chat/v1/space_event.rb +1 -1
- data/proto_docs/google/chat/v1/space_notification_setting.rb +4 -4
- data/proto_docs/google/chat/v1/space_read_state.rb +1 -1
- data/proto_docs/google/chat/v1/space_setup.rb +19 -7
- data/proto_docs/google/chat/v1/thread_read_state.rb +1 -1
- data/proto_docs/google/chat/v1/user.rb +1 -1
- data/proto_docs/google/chat/v1/widgets.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/protobuf/wrappers.rb +1 -1
- data/proto_docs/google/rpc/code.rb +1 -1
- data/proto_docs/google/type/color.rb +1 -1
- metadata +7 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -31,6 +31,9 @@ module Google
|
|
|
31
31
|
"https://www.googleapis.com/auth/chat.admin.memberships.readonly",
|
|
32
32
|
"https://www.googleapis.com/auth/chat.admin.spaces",
|
|
33
33
|
"https://www.googleapis.com/auth/chat.admin.spaces.readonly",
|
|
34
|
+
"https://www.googleapis.com/auth/chat.app.all.memberships.readonly",
|
|
35
|
+
"https://www.googleapis.com/auth/chat.app.all.messages.readonly",
|
|
36
|
+
"https://www.googleapis.com/auth/chat.app.all.spaces.readonly",
|
|
34
37
|
"https://www.googleapis.com/auth/chat.app.delete",
|
|
35
38
|
"https://www.googleapis.com/auth/chat.app.memberships",
|
|
36
39
|
"https://www.googleapis.com/auth/chat.app.memberships.readonly",
|
|
@@ -54,6 +57,8 @@ module Google
|
|
|
54
57
|
"https://www.googleapis.com/auth/chat.messages.readonly",
|
|
55
58
|
"https://www.googleapis.com/auth/chat.spaces",
|
|
56
59
|
"https://www.googleapis.com/auth/chat.spaces.create",
|
|
60
|
+
"https://www.googleapis.com/auth/chat.spaces.pins",
|
|
61
|
+
"https://www.googleapis.com/auth/chat.spaces.pins.readonly",
|
|
57
62
|
"https://www.googleapis.com/auth/chat.spaces.readonly",
|
|
58
63
|
"https://www.googleapis.com/auth/chat.users.availability",
|
|
59
64
|
"https://www.googleapis.com/auth/chat.users.availability.readonly",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -105,6 +105,23 @@ module Google
|
|
|
105
105
|
"spaces/#{space}/messages/#{message}"
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
+
##
|
|
109
|
+
# Create a fully-qualified MessagePin resource string.
|
|
110
|
+
#
|
|
111
|
+
# The resource will be in the following format:
|
|
112
|
+
#
|
|
113
|
+
# `spaces/{space}/messagePins/{message_pin}`
|
|
114
|
+
#
|
|
115
|
+
# @param space [String]
|
|
116
|
+
# @param message_pin [String]
|
|
117
|
+
#
|
|
118
|
+
# @return [::String]
|
|
119
|
+
def message_pin_path space:, message_pin:
|
|
120
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
|
121
|
+
|
|
122
|
+
"spaces/#{space}/messagePins/#{message_pin}"
|
|
123
|
+
end
|
|
124
|
+
|
|
108
125
|
##
|
|
109
126
|
# Create a fully-qualified QuotedMessageMetadata resource string.
|
|
110
127
|
#
|