google-cloud-dlp 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dlp.rb +4 -0
- data/lib/google/cloud/dlp/v2.rb +8 -0
- data/lib/google/cloud/dlp/v2/dlp_service_client.rb +8 -2
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb +17 -0
- data/lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/storage.rb +8 -3
- data/lib/google/cloud/dlp/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +6 -1
- data/lib/google/privacy/dlp/v2/storage_pb.rb +1 -0
- 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: 9371d20932a4d57bdf5a624eaee4a52e8f86e9edaa9925c8f3e3149175b22e0d
|
4
|
+
data.tar.gz: 3b3d1148d01b97a5288597a2f1976bc3a93b52fbc3a32507234e569019c8887e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73715479c9645642589e1e81cb2ebfff24e8f6d5e5a064e44a959d22942020251e05ab15b819790e01fd6732046ae31a5c2bd1b785672264ba2188fbb6feab15
|
7
|
+
data.tar.gz: 255fb6c7b08f01623187f04c153cd1f215a73439f19716d8e36df7047984d0a5a7ca92239b9ea3761744e810464e096bcb9eafec20d6dac93509fd5f748c47aa
|
data/lib/google/cloud/dlp.rb
CHANGED
@@ -129,6 +129,10 @@ module Google
|
|
129
129
|
# The default timeout, in seconds, for calls made through this client.
|
130
130
|
# @param metadata [Hash]
|
131
131
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
132
|
+
# @param service_address [String]
|
133
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
134
|
+
# @param service_port [Integer]
|
135
|
+
# Override for the service port, or `nil` to leave as the default.
|
132
136
|
# @param exception_transformer [Proc]
|
133
137
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
134
138
|
# custom error handling.
|
data/lib/google/cloud/dlp/v2.rb
CHANGED
@@ -117,6 +117,10 @@ module Google
|
|
117
117
|
# The default timeout, in seconds, for calls made through this client.
|
118
118
|
# @param metadata [Hash]
|
119
119
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
120
|
+
# @param service_address [String]
|
121
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
122
|
+
# @param service_port [Integer]
|
123
|
+
# Override for the service port, or `nil` to leave as the default.
|
120
124
|
# @param exception_transformer [Proc]
|
121
125
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
122
126
|
# custom error handling.
|
@@ -126,6 +130,8 @@ module Google
|
|
126
130
|
client_config: nil,
|
127
131
|
timeout: nil,
|
128
132
|
metadata: nil,
|
133
|
+
service_address: nil,
|
134
|
+
service_port: nil,
|
129
135
|
exception_transformer: nil,
|
130
136
|
lib_name: nil,
|
131
137
|
lib_version: nil
|
@@ -137,6 +143,8 @@ module Google
|
|
137
143
|
metadata: metadata,
|
138
144
|
exception_transformer: exception_transformer,
|
139
145
|
lib_name: lib_name,
|
146
|
+
service_address: service_address,
|
147
|
+
service_port: service_port,
|
140
148
|
lib_version: lib_version
|
141
149
|
}.select { |_, v| v != nil }
|
142
150
|
Google::Cloud::Dlp::V2::DlpServiceClient.new(**kwargs)
|
@@ -284,6 +284,10 @@ module Google
|
|
284
284
|
# The default timeout, in seconds, for calls made through this client.
|
285
285
|
# @param metadata [Hash]
|
286
286
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
287
|
+
# @param service_address [String]
|
288
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
289
|
+
# @param service_port [Integer]
|
290
|
+
# Override for the service port, or `nil` to leave as the default.
|
287
291
|
# @param exception_transformer [Proc]
|
288
292
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
289
293
|
# custom error handling.
|
@@ -293,6 +297,8 @@ module Google
|
|
293
297
|
client_config: {},
|
294
298
|
timeout: DEFAULT_TIMEOUT,
|
295
299
|
metadata: nil,
|
300
|
+
service_address: nil,
|
301
|
+
service_port: nil,
|
296
302
|
exception_transformer: nil,
|
297
303
|
lib_name: nil,
|
298
304
|
lib_version: ""
|
@@ -347,8 +353,8 @@ module Google
|
|
347
353
|
end
|
348
354
|
|
349
355
|
# Allow overriding the service path/port in subclasses.
|
350
|
-
service_path = self.class::SERVICE_ADDRESS
|
351
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
356
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
357
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
352
358
|
interceptors = self.class::GRPC_INTERCEPTORS
|
353
359
|
@dlp_service_stub = Google::Gax::Grpc.create_stub(
|
354
360
|
service_path,
|
@@ -163,6 +163,8 @@ module Google
|
|
163
163
|
IMAGE_SVG = 4
|
164
164
|
|
165
165
|
TEXT_UTF8 = 5
|
166
|
+
|
167
|
+
AVRO = 11
|
166
168
|
end
|
167
169
|
end
|
168
170
|
|
@@ -1937,6 +1939,9 @@ module Google
|
|
1937
1939
|
# @!attribute [rw] publish_summary_to_cscc
|
1938
1940
|
# @return [Google::Privacy::Dlp::V2::Action::PublishSummaryToCscc]
|
1939
1941
|
# Publish summary to Cloud Security Command Center (Alpha).
|
1942
|
+
# @!attribute [rw] publish_findings_to_cloud_data_catalog
|
1943
|
+
# @return [Google::Privacy::Dlp::V2::Action::PublishFindingsToCloudDataCatalog]
|
1944
|
+
# Publish findings to Cloud Datahub.
|
1940
1945
|
# @!attribute [rw] job_notification_emails
|
1941
1946
|
# @return [Google::Privacy::Dlp::V2::Action::JobNotificationEmails]
|
1942
1947
|
# Enable email notification to project owners and editors on job's
|
@@ -1975,6 +1980,18 @@ module Google
|
|
1975
1980
|
# Compatible with: Inspect
|
1976
1981
|
class PublishSummaryToCscc; end
|
1977
1982
|
|
1983
|
+
# Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the
|
1984
|
+
# results of the DlpJob will be applied to the entry for the resource scanned
|
1985
|
+
# in Cloud Data Catalog. Any labels previously written by another DlpJob will
|
1986
|
+
# be deleted. InfoType naming patterns are strictly enforced when using this
|
1987
|
+
# feature. Note that the findings will be persisted in Cloud Data Catalog
|
1988
|
+
# storage and are governed by Data Catalog service-specific policy, see
|
1989
|
+
# https://cloud.google.com/terms/service-terms
|
1990
|
+
# Only a single instance of this action can be specified and only allowed if
|
1991
|
+
# all resources being scanned are BigQuery tables.
|
1992
|
+
# Compatible with: Inspect
|
1993
|
+
class PublishFindingsToCloudDataCatalog; end
|
1994
|
+
|
1978
1995
|
# Enable email notification to project owners and editors on jobs's
|
1979
1996
|
# completion/failure.
|
1980
1997
|
class JobNotificationEmails; end
|
@@ -140,9 +140,10 @@ module Google
|
|
140
140
|
# not support the use of `detection_rules`.
|
141
141
|
class SurrogateType; end
|
142
142
|
|
143
|
-
# Rule for modifying a
|
144
|
-
#
|
145
|
-
# for the `surrogate_type`
|
143
|
+
# Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
|
144
|
+
# `CustomInfoType` to alter behavior under certain circumstances, depending
|
145
|
+
# on the specific details of the rule. Not supported for the `surrogate_type`
|
146
|
+
# custom infoType.
|
146
147
|
# @!attribute [rw] hotword_rule
|
147
148
|
# @return [Google::Privacy::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule]
|
148
149
|
# Hotword-based detection rule.
|
@@ -588,6 +589,10 @@ module Google
|
|
588
589
|
# bmp, gif, jpg, jpeg, jpe, png.
|
589
590
|
# bytes_limit_per_file has no effect on image files.
|
590
591
|
IMAGE = 3
|
592
|
+
|
593
|
+
# Included file extensions:
|
594
|
+
# avro
|
595
|
+
AVRO = 7
|
591
596
|
end
|
592
597
|
|
593
598
|
# Categorization of results based on how likely they are to represent a match,
|
@@ -5,7 +5,6 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
8
|
require 'google/privacy/dlp/v2/storage_pb'
|
10
9
|
require 'google/protobuf/duration_pb'
|
11
10
|
require 'google/protobuf/empty_pb'
|
@@ -15,6 +14,7 @@ require 'google/rpc/status_pb'
|
|
15
14
|
require 'google/type/date_pb'
|
16
15
|
require 'google/type/dayofweek_pb'
|
17
16
|
require 'google/type/timeofday_pb'
|
17
|
+
require 'google/api/client_pb'
|
18
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
19
19
|
add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do
|
20
20
|
repeated :info_types, :message, 1, "google.privacy.dlp.v2.InfoType"
|
@@ -68,6 +68,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
68
68
|
value :IMAGE_PNG, 3
|
69
69
|
value :IMAGE_SVG, 4
|
70
70
|
value :TEXT_UTF8, 5
|
71
|
+
value :AVRO, 11
|
71
72
|
end
|
72
73
|
add_message "google.privacy.dlp.v2.ContentItem" do
|
73
74
|
oneof :data_item do
|
@@ -667,6 +668,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
667
668
|
optional :save_findings, :message, 1, "google.privacy.dlp.v2.Action.SaveFindings"
|
668
669
|
optional :pub_sub, :message, 2, "google.privacy.dlp.v2.Action.PublishToPubSub"
|
669
670
|
optional :publish_summary_to_cscc, :message, 3, "google.privacy.dlp.v2.Action.PublishSummaryToCscc"
|
671
|
+
optional :publish_findings_to_cloud_data_catalog, :message, 5, "google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog"
|
670
672
|
optional :job_notification_emails, :message, 8, "google.privacy.dlp.v2.Action.JobNotificationEmails"
|
671
673
|
end
|
672
674
|
end
|
@@ -678,6 +680,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
678
680
|
end
|
679
681
|
add_message "google.privacy.dlp.v2.Action.PublishSummaryToCscc" do
|
680
682
|
end
|
683
|
+
add_message "google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog" do
|
684
|
+
end
|
681
685
|
add_message "google.privacy.dlp.v2.Action.JobNotificationEmails" do
|
682
686
|
end
|
683
687
|
add_message "google.privacy.dlp.v2.CreateInspectTemplateRequest" do
|
@@ -1046,6 +1050,7 @@ module Google
|
|
1046
1050
|
Action::SaveFindings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.SaveFindings").msgclass
|
1047
1051
|
Action::PublishToPubSub = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishToPubSub").msgclass
|
1048
1052
|
Action::PublishSummaryToCscc = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishSummaryToCscc").msgclass
|
1053
|
+
Action::PublishFindingsToCloudDataCatalog = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog").msgclass
|
1049
1054
|
Action::JobNotificationEmails = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.JobNotificationEmails").msgclass
|
1050
1055
|
CreateInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateInspectTemplateRequest").msgclass
|
1051
1056
|
UpdateInspectTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.UpdateInspectTemplateRequest").msgclass
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dlp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: googleapis-common-protos
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|