google-apps-chat-v1 0.a → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/apps/chat/v1/chat_service/client.rb +3663 -0
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +63 -0
- data/lib/google/apps/chat/v1/chat_service/paths.rb +191 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +3487 -0
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +1614 -0
- data/lib/google/apps/chat/v1/chat_service/rest.rb +53 -0
- data/lib/google/apps/chat/v1/chat_service.rb +56 -0
- data/lib/google/apps/chat/v1/rest.rb +37 -0
- data/lib/google/apps/chat/v1/version.rb +7 -2
- data/lib/google/apps/chat/v1.rb +45 -0
- data/lib/google/chat/v1/action_status_pb.rb +44 -0
- data/lib/google/chat/v1/annotation_pb.rb +55 -0
- data/lib/google/chat/v1/attachment_pb.rb +51 -0
- data/lib/google/chat/v1/chat_service_pb.rb +53 -0
- data/lib/google/chat/v1/chat_service_services_pb.rb +359 -0
- data/lib/google/chat/v1/contextual_addon_pb.rb +50 -0
- data/lib/google/chat/v1/deletion_metadata_pb.rb +43 -0
- data/lib/google/chat/v1/group_pb.rb +42 -0
- data/lib/google/chat/v1/history_state_pb.rb +42 -0
- data/lib/google/chat/v1/matched_url_pb.rb +44 -0
- data/lib/google/chat/v1/membership_pb.rb +61 -0
- data/lib/google/chat/v1/message_pb.rb +89 -0
- data/lib/google/chat/v1/reaction_pb.rb +54 -0
- data/lib/google/chat/v1/slash_command_pb.rb +42 -0
- data/lib/google/chat/v1/space_pb.rb +63 -0
- data/lib/google/chat/v1/space_read_state_pb.rb +51 -0
- data/lib/google/chat/v1/space_setup_pb.rb +48 -0
- data/lib/google/chat/v1/thread_read_state_pb.rb +48 -0
- data/lib/google/chat/v1/user_pb.rb +46 -0
- data/lib/google/chat/v1/widgets_pb.rb +53 -0
- data/lib/google-apps-chat-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/apps/card/v1/card.rb +2076 -0
- data/proto_docs/google/chat/v1/action_status.rb +40 -0
- data/proto_docs/google/chat/v1/annotation.rb +186 -0
- data/proto_docs/google/chat/v1/attachment.rb +131 -0
- data/proto_docs/google/chat/v1/contextual_addon.rb +120 -0
- data/proto_docs/google/chat/v1/deletion_metadata.rb +60 -0
- data/proto_docs/google/chat/v1/group.rb +41 -0
- data/proto_docs/google/chat/v1/history_state.rb +42 -0
- data/proto_docs/google/chat/v1/matched_url.rb +37 -0
- data/proto_docs/google/chat/v1/membership.rb +294 -0
- data/proto_docs/google/chat/v1/message.rb +657 -0
- data/proto_docs/google/chat/v1/reaction.rb +185 -0
- data/proto_docs/google/chat/v1/slash_command.rb +37 -0
- data/proto_docs/google/chat/v1/space.rb +382 -0
- data/proto_docs/google/chat/v1/space_read_state.rb +104 -0
- data/proto_docs/google/chat/v1/space_setup.rb +92 -0
- data/proto_docs/google/chat/v1/thread_read_state.rb +66 -0
- data/proto_docs/google/chat/v1/user.rb +84 -0
- data/proto_docs/google/chat/v1/widgets.rb +293 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/type/color.rb +173 -0
- metadata +128 -10
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apps
|
23
|
+
module Chat
|
24
|
+
module V1
|
25
|
+
module ChatService
|
26
|
+
# Credentials for the ChatService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/chat.bot",
|
30
|
+
"https://www.googleapis.com/auth/chat.delete",
|
31
|
+
"https://www.googleapis.com/auth/chat.import",
|
32
|
+
"https://www.googleapis.com/auth/chat.memberships",
|
33
|
+
"https://www.googleapis.com/auth/chat.memberships.app",
|
34
|
+
"https://www.googleapis.com/auth/chat.memberships.readonly",
|
35
|
+
"https://www.googleapis.com/auth/chat.messages",
|
36
|
+
"https://www.googleapis.com/auth/chat.messages.create",
|
37
|
+
"https://www.googleapis.com/auth/chat.messages.reactions",
|
38
|
+
"https://www.googleapis.com/auth/chat.messages.reactions.create",
|
39
|
+
"https://www.googleapis.com/auth/chat.messages.reactions.readonly",
|
40
|
+
"https://www.googleapis.com/auth/chat.messages.readonly",
|
41
|
+
"https://www.googleapis.com/auth/chat.spaces",
|
42
|
+
"https://www.googleapis.com/auth/chat.spaces.create",
|
43
|
+
"https://www.googleapis.com/auth/chat.spaces.readonly",
|
44
|
+
"https://www.googleapis.com/auth/chat.users.readstate",
|
45
|
+
"https://www.googleapis.com/auth/chat.users.readstate.readonly"
|
46
|
+
]
|
47
|
+
self.env_vars = [
|
48
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
49
|
+
"GOOGLE_CLOUD_KEYFILE",
|
50
|
+
"GCLOUD_KEYFILE",
|
51
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
52
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
53
|
+
"GCLOUD_KEYFILE_JSON"
|
54
|
+
]
|
55
|
+
self.paths = [
|
56
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
57
|
+
]
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,191 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apps
|
22
|
+
module Chat
|
23
|
+
module V1
|
24
|
+
module ChatService
|
25
|
+
# Path helper methods for the ChatService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Attachment resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `spaces/{space}/messages/{message}/attachments/{attachment}`
|
33
|
+
#
|
34
|
+
# @param space [String]
|
35
|
+
# @param message [String]
|
36
|
+
# @param attachment [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def attachment_path space:, message:, attachment:
|
40
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "message cannot contain /" if message.to_s.include? "/"
|
42
|
+
|
43
|
+
"spaces/#{space}/messages/#{message}/attachments/#{attachment}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Membership resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `spaces/{space}/members/{member}`
|
52
|
+
#
|
53
|
+
# @param space [String]
|
54
|
+
# @param member [String]
|
55
|
+
#
|
56
|
+
# @return [::String]
|
57
|
+
def membership_path space:, member:
|
58
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
59
|
+
|
60
|
+
"spaces/#{space}/members/#{member}"
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified Message resource string.
|
65
|
+
#
|
66
|
+
# The resource will be in the following format:
|
67
|
+
#
|
68
|
+
# `spaces/{space}/messages/{message}`
|
69
|
+
#
|
70
|
+
# @param space [String]
|
71
|
+
# @param message [String]
|
72
|
+
#
|
73
|
+
# @return [::String]
|
74
|
+
def message_path space:, message:
|
75
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
76
|
+
|
77
|
+
"spaces/#{space}/messages/#{message}"
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# Create a fully-qualified QuotedMessageMetadata resource string.
|
82
|
+
#
|
83
|
+
# The resource will be in the following format:
|
84
|
+
#
|
85
|
+
# `spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}`
|
86
|
+
#
|
87
|
+
# @param space [String]
|
88
|
+
# @param message [String]
|
89
|
+
# @param quoted_message_metadata [String]
|
90
|
+
#
|
91
|
+
# @return [::String]
|
92
|
+
def quoted_message_metadata_path space:, message:, quoted_message_metadata:
|
93
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
94
|
+
raise ::ArgumentError, "message cannot contain /" if message.to_s.include? "/"
|
95
|
+
|
96
|
+
"spaces/#{space}/messages/#{message}/quotedMessageMetadata/#{quoted_message_metadata}"
|
97
|
+
end
|
98
|
+
|
99
|
+
##
|
100
|
+
# Create a fully-qualified Reaction resource string.
|
101
|
+
#
|
102
|
+
# The resource will be in the following format:
|
103
|
+
#
|
104
|
+
# `spaces/{space}/messages/{message}/reactions/{reaction}`
|
105
|
+
#
|
106
|
+
# @param space [String]
|
107
|
+
# @param message [String]
|
108
|
+
# @param reaction [String]
|
109
|
+
#
|
110
|
+
# @return [::String]
|
111
|
+
def reaction_path space:, message:, reaction:
|
112
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
113
|
+
raise ::ArgumentError, "message cannot contain /" if message.to_s.include? "/"
|
114
|
+
|
115
|
+
"spaces/#{space}/messages/#{message}/reactions/#{reaction}"
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# Create a fully-qualified Space resource string.
|
120
|
+
#
|
121
|
+
# The resource will be in the following format:
|
122
|
+
#
|
123
|
+
# `spaces/{space}`
|
124
|
+
#
|
125
|
+
# @param space [String]
|
126
|
+
#
|
127
|
+
# @return [::String]
|
128
|
+
def space_path space:
|
129
|
+
"spaces/#{space}"
|
130
|
+
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# Create a fully-qualified SpaceReadState resource string.
|
134
|
+
#
|
135
|
+
# The resource will be in the following format:
|
136
|
+
#
|
137
|
+
# `users/{user}/spaces/{space}/spaceReadState`
|
138
|
+
#
|
139
|
+
# @param user [String]
|
140
|
+
# @param space [String]
|
141
|
+
#
|
142
|
+
# @return [::String]
|
143
|
+
def space_read_state_path user:, space:
|
144
|
+
raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
|
145
|
+
|
146
|
+
"users/#{user}/spaces/#{space}/spaceReadState"
|
147
|
+
end
|
148
|
+
|
149
|
+
##
|
150
|
+
# Create a fully-qualified Thread resource string.
|
151
|
+
#
|
152
|
+
# The resource will be in the following format:
|
153
|
+
#
|
154
|
+
# `spaces/{space}/threads/{thread}`
|
155
|
+
#
|
156
|
+
# @param space [String]
|
157
|
+
# @param thread [String]
|
158
|
+
#
|
159
|
+
# @return [::String]
|
160
|
+
def thread_path space:, thread:
|
161
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
162
|
+
|
163
|
+
"spaces/#{space}/threads/#{thread}"
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# Create a fully-qualified ThreadReadState resource string.
|
168
|
+
#
|
169
|
+
# The resource will be in the following format:
|
170
|
+
#
|
171
|
+
# `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
|
172
|
+
#
|
173
|
+
# @param user [String]
|
174
|
+
# @param space [String]
|
175
|
+
# @param thread [String]
|
176
|
+
#
|
177
|
+
# @return [::String]
|
178
|
+
def thread_read_state_path user:, space:, thread:
|
179
|
+
raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
|
180
|
+
raise ::ArgumentError, "space cannot contain /" if space.to_s.include? "/"
|
181
|
+
|
182
|
+
"users/#{user}/spaces/#{space}/threads/#{thread}/threadReadState"
|
183
|
+
end
|
184
|
+
|
185
|
+
extend self
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|