google-cloud-dlp-v2 0.15.0 → 0.17.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 +2 -2
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +6 -4
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +3455 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +2568 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +60 -0
- data/lib/google/cloud/dlp/v2/dlp_service.rb +6 -0
- data/lib/google/cloud/dlp/v2/rest.rb +37 -0
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/cloud/dlp/v2.rb +5 -0
- 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/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eede7ce20c4c5b06471f13be98e00454dd15e886bcb77360ddd8d311246b3c3
|
4
|
+
data.tar.gz: e6f062ae18517a5f4ac7a86a602e54d2bdd3388ae10f50e784ede125cf26ad13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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://
|
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
|
@@ -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://
|
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://
|
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
|
-
|
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
|