google-apps-chat-v1 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -21
- data/lib/google/apps/chat/v1/chat_service/client.rb +269 -147
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +269 -147
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +246 -176
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/attachment_pb.rb +1 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +166 -74
- data/lib/google/chat/v1/membership_pb.rb +1 -1
- data/lib/google/chat/v1/message_pb.rb +1 -1
- data/lib/google/chat/v1/reaction_pb.rb +2 -1
- data/lib/google/chat/v1/space_event_pb.rb +1 -1
- data/lib/google/chat/v1/space_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/apps/card/v1/card.rb +58 -0
- data/proto_docs/google/chat/v1/annotation.rb +10 -0
- data/proto_docs/google/chat/v1/attachment.rb +13 -8
- data/proto_docs/google/chat/v1/deletion_metadata.rb +2 -1
- data/proto_docs/google/chat/v1/membership.rb +48 -22
- data/proto_docs/google/chat/v1/message.rb +41 -38
- data/proto_docs/google/chat/v1/reaction.rb +11 -7
- data/proto_docs/google/chat/v1/space.rb +54 -30
- data/proto_docs/google/chat/v1/space_event.rb +38 -2
- data/proto_docs/google/chat/v1/widgets.rb +22 -0
- metadata +7 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a830a1a4bf358570b49854321236328ef00056a3266214f2d1e175c0894f56
|
4
|
+
data.tar.gz: bcdf425fe914a7d961e96b31ceacdf240e1ccb7a0f15627a90a06b45c99a6e76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '048007d5aa7bd8f802b35e812563eb8dbcf67bc5a469694a00ebc9056dee256c77a541c5d6fb9fa5934c204884dc19b3850d9bad4aa565ceb3891c10612a9306'
|
7
|
+
data.tar.gz: fcdfcdc23bd4da0e8455455cf951be9e9f27181587a938e14fd7488f4401fa3f8548c792a61763164e01344a6140099998c46ccfd4abff3d0cab72597135c556
|
data/README.md
CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://developers.google.com/chat/concepts)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/apps/chat/v1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Apps::Chat::V1::ChatService::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
86
|
|
77
87
|
## Supported Ruby Versions
|
78
88
|
|
79
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
80
90
|
|
81
91
|
Google provides official support for Ruby versions that are actively supported
|
82
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|