google-cloud-dlp-v2 0.16.0 → 0.18.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 +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +16 -5
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +570 -4
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +34 -34
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +32 -1329
- data/lib/google/privacy/dlp/v2/storage_pb.rb +25 -207
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca9ce3893cb120835b7de425bad3e70fc3be7bad363eb5793267f27566a5922b
|
4
|
+
data.tar.gz: 6b06a20cc78a891df2d918eb627aba82d30a547cbb8c1dab7126b6dc53ffe7f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad0e452a98b49a564bb9bef0f24afd65130ce29bdfcf2fabb2e28540c322bf35e6325afb7cb6824f31545020bc90174bf00650ec5386f30a54a5a666af94bd58
|
7
|
+
data.tar.gz: d57b1befd3690f51148772e1d52c7d0f5f1e397035cc72ab79f04665361a5aa653398ece19c2cfaf264ffb656292b08c3768851011f9a55074983a0b602ddded
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -260,7 +260,7 @@ module Google
|
|
260
260
|
credentials = @config.credentials
|
261
261
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
262
262
|
# but only if the default endpoint does not have a region prefix.
|
263
|
-
enable_self_signed_jwt = @config.endpoint ==
|
263
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
264
264
|
!@config.endpoint.split(".").first.include?("-")
|
265
265
|
credentials ||= Credentials.default scope: @config.scope,
|
266
266
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -281,7 +281,8 @@ module Google
|
|
281
281
|
credentials: credentials,
|
282
282
|
endpoint: @config.endpoint,
|
283
283
|
channel_args: @config.channel_args,
|
284
|
-
interceptors: @config.interceptors
|
284
|
+
interceptors: @config.interceptors,
|
285
|
+
channel_pool_config: @config.channel_pool
|
285
286
|
)
|
286
287
|
end
|
287
288
|
|
@@ -3916,9 +3917,9 @@ module Google
|
|
3916
3917
|
# * (`String`) The path to a service account key file in JSON format
|
3917
3918
|
# * (`Hash`) A service account key as a Hash
|
3918
3919
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3919
|
-
# (see the [googleauth docs](https://
|
3920
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3920
3921
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3921
|
-
# (see the [signet docs](https://
|
3922
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3922
3923
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
3923
3924
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
3924
3925
|
# * (`nil`) indicating no credentials
|
@@ -3960,7 +3961,9 @@ module Google
|
|
3960
3961
|
class Configuration
|
3961
3962
|
extend ::Gapic::Config
|
3962
3963
|
|
3963
|
-
|
3964
|
+
DEFAULT_ENDPOINT = "dlp.googleapis.com"
|
3965
|
+
|
3966
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
3964
3967
|
config_attr :credentials, nil do |value|
|
3965
3968
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3966
3969
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -3995,6 +3998,14 @@ module Google
|
|
3995
3998
|
end
|
3996
3999
|
end
|
3997
4000
|
|
4001
|
+
##
|
4002
|
+
# Configuration for the channel pool
|
4003
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
4004
|
+
#
|
4005
|
+
def channel_pool
|
4006
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
4007
|
+
end
|
4008
|
+
|
3998
4009
|
##
|
3999
4010
|
# Configuration RPC class for the DlpService API.
|
4000
4011
|
#
|