google-cloud-dlp-v2 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c9736f9d6fb206bec945830f37c0c13b9f9a72351999ac97e7f3faae594bafa
4
- data.tar.gz: d03d4099afc6d2975b63e7321a7b0f260da0fe21778f79a2113824353ee45082
3
+ metadata.gz: 7eede7ce20c4c5b06471f13be98e00454dd15e886bcb77360ddd8d311246b3c3
4
+ data.tar.gz: e6f062ae18517a5f4ac7a86a602e54d2bdd3388ae10f50e784ede125cf26ad13
5
5
  SHA512:
6
- metadata.gz: 1e71843a85334f9e301760fd6496346934fe90c6dad32997579eea253860b7e547765d524ecbbedb715f44d8c60469a679af2e8c2546988407353c04c5df3de2
7
- data.tar.gz: 62943749bdd66970ac83f3ffe2d073124293ef80d68b6bac5b922bfb5f0a4903b679522be262a1b573e64703ec9a4d86723edd17dd8167098f7b74f64a68df99
6
+ metadata.gz: 1efabf7aff8008c5a9d9804d63ccc6ea126eee4eaf71d0165c38cf934307e934b45172a3dc6e95aeca432c95e5d3bdc448a9fcc8b338ee051b441665762d7147
7
+ data.tar.gz: 363664c1ca51d1f9077982bb299f21ee1aad941d57e5bd98780af847bd822c78f93dd434769f474a39c9bf86a529c671254d44815fcd77ba8f8c3bbaf061cfad
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Data Loss Prevention (DLP) V2 API
2
2
 
3
- API Client library for the Cloud Data Loss Prevention (DLP) V2 API
3
+ Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
4
4
 
5
5
  Provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
6
6
 
@@ -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
@@ -3916,9 +3916,9 @@ module Google
3916
3916
  # * (`String`) The path to a service account key file in JSON format
3917
3917
  # * (`Hash`) A service account key as a Hash
3918
3918
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3919
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3919
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3920
3920
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3921
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3921
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3922
3922
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3923
3923
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3924
3924
  # * (`nil`) indicating no credentials
@@ -3960,7 +3960,9 @@ module Google
3960
3960
  class Configuration
3961
3961
  extend ::Gapic::Config
3962
3962
 
3963
- config_attr :endpoint, "dlp.googleapis.com", ::String
3963
+ DEFAULT_ENDPOINT = "dlp.googleapis.com"
3964
+
3965
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3964
3966
  config_attr :credentials, nil do |value|
3965
3967
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3966
3968
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC