google-cloud-redis-cluster-v1beta1 0.1.2 → 0.3.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/cloud/redis/cluster/v1beta1/cloud_redis_cluster/client.rb +1072 -179
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/operations.rb +19 -15
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/paths.rb +139 -0
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/client.rb +957 -125
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/operations.rb +50 -38
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/service_stub.rb +552 -37
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest.rb +0 -6
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb +0 -6
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_pb.rb +44 -1
- data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_services_pb.rb +31 -6
- data/lib/google/cloud/redis/cluster/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb +752 -15
- data/proto_docs/google/longrunning/operations.rb +23 -14
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e9cf2a62c359bd9d20e41e2764fbfdc7ff978554fd5737807db4bdbeafc1169
|
4
|
+
data.tar.gz: 1b50499ae78a369bb7c9620f8d41713ddd6f85f0f5bdfd1dd15e7697f11cfa46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d90653ec2fcb27a31970463c29a8f1e35840efb975ff1ef0b9b656335693330e62dbfb0b3bf0ffb83b1e838aa1a0538f8a7c25414358b2d415fb951f1fc8c62
|
7
|
+
data.tar.gz: 49d47f0119b66c980e8fcbaf72830fec38d03e104c236cf1016b68fb8c9ed83f2f36a7cf829adeaaf937be58b7a5d723f966096f6a60935c0104e3e82d04c7cf
|
data/README.md
CHANGED
@@ -42,40 +42,50 @@ for class and method documentation.
|
|
42
42
|
See also the [Product Documentation](https://cloud.google.com/memorystore/docs/cluster)
|
43
43
|
for general usage information.
|
44
44
|
|
45
|
-
##
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
## Debug Logging
|
46
|
+
|
47
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
48
|
+
your application's integration with the API. When logging is activated, key
|
49
|
+
events such as requests and responses, along with data payloads and metadata
|
50
|
+
such as headers and client configuration, are logged to the standard error
|
51
|
+
stream.
|
52
|
+
|
53
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
54
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
55
|
+
customers, private keys, or other security data that could be compromising if
|
56
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
57
|
+
the principle of least access. Google also recommends that Client Library Debug
|
58
|
+
Logging be enabled only temporarily during active debugging, and not used
|
59
|
+
permanently in production.
|
60
|
+
|
61
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
62
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
63
|
+
list of client library gem names. This will select the default logging behavior,
|
64
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
65
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
66
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
67
|
+
results in logs appearing alongside your application logs in the
|
68
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
69
|
+
|
70
|
+
You can customize logging by modifying the `logger` configuration when
|
71
|
+
constructing a client object. For example:
|
54
72
|
|
55
73
|
```ruby
|
74
|
+
require "google/cloud/redis/cluster/v1beta1"
|
56
75
|
require "logger"
|
57
76
|
|
58
|
-
|
59
|
-
|
60
|
-
def logger
|
61
|
-
LOGGER
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
66
|
-
module GRPC
|
67
|
-
extend MyLogger
|
77
|
+
client = ::Google::Cloud::Redis::Cluster::V1beta1::CloudRedisCluster::Client.new do |config|
|
78
|
+
config.logger = Logger.new "my-app.log"
|
68
79
|
end
|
69
80
|
```
|
70
81
|
|
71
|
-
|
72
82
|
## Google Cloud Samples
|
73
83
|
|
74
84
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
75
85
|
|
76
86
|
## Supported Ruby Versions
|
77
87
|
|
78
|
-
This library is supported on Ruby
|
88
|
+
This library is supported on Ruby 3.0+.
|
79
89
|
|
80
90
|
Google provides official support for Ruby versions that are actively supported
|
81
91
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|