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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05decd06046f5eacc03f49216fd4282af41d520c7eb7d8b8600c40a030b12bb3
4
- data.tar.gz: fb3c7f4c039710b08f88f9ea6398bc02cee732ebb9eda2487ce5bf04c3aaa8b4
3
+ metadata.gz: ca9ce3893cb120835b7de425bad3e70fc3be7bad363eb5793267f27566a5922b
4
+ data.tar.gz: 6b06a20cc78a891df2d918eb627aba82d30a547cbb8c1dab7126b6dc53ffe7f5
5
5
  SHA512:
6
- metadata.gz: 8d5af223f6b1c383f082fd452b32f166bf3233c8a0d8a9f6465020620701af955989eae73d20b1f92298302a4aebfe1b480ddd2f2a15a064debf8d0d2e08bfd0
7
- data.tar.gz: b972dace8650d41b3cbe9a182de9deffb6428550fa8508c12f1a40cdbcb8885a7561d2794416754f232b83537436efb4166473c9b4bfcc1e67181f3f02aba5be
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://googleapis.dev/ruby/google-cloud-logging/latest)
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 == Client.configure.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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- config_attr :endpoint, "dlp.googleapis.com", ::String
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
  #