google-cloud-dlp-v2 0.16.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 +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +6 -4
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +6 -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/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
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
@@ -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
|
@@ -256,7 +256,7 @@ module Google
|
|
256
256
|
credentials = @config.credentials
|
257
257
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
258
258
|
# but only if the default endpoint does not have a region prefix.
|
259
|
-
enable_self_signed_jwt = @config.endpoint ==
|
259
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
260
260
|
!@config.endpoint.split(".").first.include?("-")
|
261
261
|
credentials ||= Credentials.default scope: @config.scope,
|
262
262
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -3113,9 +3113,9 @@ module Google
|
|
3113
3113
|
# * (`String`) The path to a service account key file in JSON format
|
3114
3114
|
# * (`Hash`) A service account key as a Hash
|
3115
3115
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3116
|
-
# (see the [googleauth docs](https://
|
3116
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3117
3117
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3118
|
-
# (see the [signet docs](https://
|
3118
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3119
3119
|
# * (`nil`) indicating no credentials
|
3120
3120
|
# @return [::Object]
|
3121
3121
|
# @!attribute [rw] scope
|
@@ -3148,7 +3148,9 @@ module Google
|
|
3148
3148
|
class Configuration
|
3149
3149
|
extend ::Gapic::Config
|
3150
3150
|
|
3151
|
-
|
3151
|
+
DEFAULT_ENDPOINT = "dlp.googleapis.com"
|
3152
|
+
|
3153
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
3152
3154
|
config_attr :credentials, nil do |value|
|
3153
3155
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3154
3156
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_inspect_content_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_redact_image_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_deidentify_content_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_reidentify_content_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_info_types_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_inspect_template_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_inspect_template_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_inspect_template_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_inspect_templates_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_inspect_template_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_deidentify_template_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_deidentify_template_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_deidentify_template_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_deidentify_templates_request request_pb
|
555
555
|
query_string_params = if query_string_params.any?
|
556
|
-
query_string_params.to_h { |p| p.split
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
557
557
|
else
|
558
558
|
{}
|
559
559
|
end
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_deidentify_template_request request_pb
|
593
593
|
query_string_params = if query_string_params.any?
|
594
|
-
query_string_params.to_h { |p| p.split
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
end
|
@@ -629,7 +629,7 @@ module Google
|
|
629
629
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_job_trigger_request request_pb
|
631
631
|
query_string_params = if query_string_params.any?
|
632
|
-
query_string_params.to_h { |p| p.split
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
633
|
else
|
634
634
|
{}
|
635
635
|
end
|
@@ -667,7 +667,7 @@ module Google
|
|
667
667
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_job_trigger_request request_pb
|
669
669
|
query_string_params = if query_string_params.any?
|
670
|
-
query_string_params.to_h { |p| p.split
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
671
|
else
|
672
672
|
{}
|
673
673
|
end
|
@@ -705,7 +705,7 @@ module Google
|
|
705
705
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_hybrid_inspect_job_trigger_request request_pb
|
707
707
|
query_string_params = if query_string_params.any?
|
708
|
-
query_string_params.to_h { |p| p.split
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
709
|
else
|
710
710
|
{}
|
711
711
|
end
|
@@ -743,7 +743,7 @@ module Google
|
|
743
743
|
|
744
744
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_job_trigger_request request_pb
|
745
745
|
query_string_params = if query_string_params.any?
|
746
|
-
query_string_params.to_h { |p| p.split
|
746
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
747
747
|
else
|
748
748
|
{}
|
749
749
|
end
|
@@ -781,7 +781,7 @@ module Google
|
|
781
781
|
|
782
782
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_job_triggers_request request_pb
|
783
783
|
query_string_params = if query_string_params.any?
|
784
|
-
query_string_params.to_h { |p| p.split
|
784
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
785
785
|
else
|
786
786
|
{}
|
787
787
|
end
|
@@ -819,7 +819,7 @@ module Google
|
|
819
819
|
|
820
820
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_trigger_request request_pb
|
821
821
|
query_string_params = if query_string_params.any?
|
822
|
-
query_string_params.to_h { |p| p.split
|
822
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
823
823
|
else
|
824
824
|
{}
|
825
825
|
end
|
@@ -857,7 +857,7 @@ module Google
|
|
857
857
|
|
858
858
|
verb, uri, query_string_params, body = ServiceStub.transcode_activate_job_trigger_request request_pb
|
859
859
|
query_string_params = if query_string_params.any?
|
860
|
-
query_string_params.to_h { |p| p.split
|
860
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
861
861
|
else
|
862
862
|
{}
|
863
863
|
end
|
@@ -895,7 +895,7 @@ module Google
|
|
895
895
|
|
896
896
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_dlp_job_request request_pb
|
897
897
|
query_string_params = if query_string_params.any?
|
898
|
-
query_string_params.to_h { |p| p.split
|
898
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
899
899
|
else
|
900
900
|
{}
|
901
901
|
end
|
@@ -933,7 +933,7 @@ module Google
|
|
933
933
|
|
934
934
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_dlp_jobs_request request_pb
|
935
935
|
query_string_params = if query_string_params.any?
|
936
|
-
query_string_params.to_h { |p| p.split
|
936
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
937
937
|
else
|
938
938
|
{}
|
939
939
|
end
|
@@ -971,7 +971,7 @@ module Google
|
|
971
971
|
|
972
972
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_dlp_job_request request_pb
|
973
973
|
query_string_params = if query_string_params.any?
|
974
|
-
query_string_params.to_h { |p| p.split
|
974
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
975
975
|
else
|
976
976
|
{}
|
977
977
|
end
|
@@ -1009,7 +1009,7 @@ module Google
|
|
1009
1009
|
|
1010
1010
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_dlp_job_request request_pb
|
1011
1011
|
query_string_params = if query_string_params.any?
|
1012
|
-
query_string_params.to_h { |p| p.split
|
1012
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1013
1013
|
else
|
1014
1014
|
{}
|
1015
1015
|
end
|
@@ -1047,7 +1047,7 @@ module Google
|
|
1047
1047
|
|
1048
1048
|
verb, uri, query_string_params, body = ServiceStub.transcode_cancel_dlp_job_request request_pb
|
1049
1049
|
query_string_params = if query_string_params.any?
|
1050
|
-
query_string_params.to_h { |p| p.split
|
1050
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1051
1051
|
else
|
1052
1052
|
{}
|
1053
1053
|
end
|
@@ -1085,7 +1085,7 @@ module Google
|
|
1085
1085
|
|
1086
1086
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_stored_info_type_request request_pb
|
1087
1087
|
query_string_params = if query_string_params.any?
|
1088
|
-
query_string_params.to_h { |p| p.split
|
1088
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1089
1089
|
else
|
1090
1090
|
{}
|
1091
1091
|
end
|
@@ -1123,7 +1123,7 @@ module Google
|
|
1123
1123
|
|
1124
1124
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_stored_info_type_request request_pb
|
1125
1125
|
query_string_params = if query_string_params.any?
|
1126
|
-
query_string_params.to_h { |p| p.split
|
1126
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1127
1127
|
else
|
1128
1128
|
{}
|
1129
1129
|
end
|
@@ -1161,7 +1161,7 @@ module Google
|
|
1161
1161
|
|
1162
1162
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_stored_info_type_request request_pb
|
1163
1163
|
query_string_params = if query_string_params.any?
|
1164
|
-
query_string_params.to_h { |p| p.split
|
1164
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1165
1165
|
else
|
1166
1166
|
{}
|
1167
1167
|
end
|
@@ -1199,7 +1199,7 @@ module Google
|
|
1199
1199
|
|
1200
1200
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_stored_info_types_request request_pb
|
1201
1201
|
query_string_params = if query_string_params.any?
|
1202
|
-
query_string_params.to_h { |p| p.split
|
1202
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1203
1203
|
else
|
1204
1204
|
{}
|
1205
1205
|
end
|
@@ -1237,7 +1237,7 @@ module Google
|
|
1237
1237
|
|
1238
1238
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_stored_info_type_request request_pb
|
1239
1239
|
query_string_params = if query_string_params.any?
|
1240
|
-
query_string_params.to_h { |p| p.split
|
1240
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1241
1241
|
else
|
1242
1242
|
{}
|
1243
1243
|
end
|
@@ -1275,7 +1275,7 @@ module Google
|
|
1275
1275
|
|
1276
1276
|
verb, uri, query_string_params, body = ServiceStub.transcode_hybrid_inspect_dlp_job_request request_pb
|
1277
1277
|
query_string_params = if query_string_params.any?
|
1278
|
-
query_string_params.to_h { |p| p.split
|
1278
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1279
1279
|
else
|
1280
1280
|
{}
|
1281
1281
|
end
|
@@ -1313,7 +1313,7 @@ module Google
|
|
1313
1313
|
|
1314
1314
|
verb, uri, query_string_params, body = ServiceStub.transcode_finish_dlp_job_request request_pb
|
1315
1315
|
query_string_params = if query_string_params.any?
|
1316
|
-
query_string_params.to_h { |p| p.split
|
1316
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1317
1317
|
else
|
1318
1318
|
{}
|
1319
1319
|
end
|