google-cloud-dlp-v2 0.4.4 → 0.7.1
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 +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/dlp/v2.rb +3 -0
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +105 -99
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +11 -11
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +5 -0
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +12 -0
- data/proto_docs/google/privacy/dlp/v2/storage.rb +16 -12
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +19 -11
@@ -356,6 +356,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
356
356
|
add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails" do
|
357
357
|
optional :requested_privacy_metric, :message, 1, "google.privacy.dlp.v2.PrivacyMetric"
|
358
358
|
optional :requested_source_table, :message, 2, "google.privacy.dlp.v2.BigQueryTable"
|
359
|
+
optional :requested_options, :message, 10, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions"
|
359
360
|
oneof :result do
|
360
361
|
optional :numerical_stats_result, :message, 3, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult"
|
361
362
|
optional :categorical_stats_result, :message, 4, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult"
|
@@ -438,6 +439,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
438
439
|
repeated :bucket_values, :message, 6, "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues"
|
439
440
|
optional :bucket_value_count, :int64, 7
|
440
441
|
end
|
442
|
+
add_message "google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions" do
|
443
|
+
optional :job_config, :message, 1, "google.privacy.dlp.v2.RiskAnalysisJobConfig"
|
444
|
+
end
|
441
445
|
add_message "google.privacy.dlp.v2.ValueFrequency" do
|
442
446
|
optional :value, :message, 1, "google.privacy.dlp.v2.Value"
|
443
447
|
optional :count, :int64, 2
|
@@ -1105,6 +1109,7 @@ module Google
|
|
1105
1109
|
AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult").msgclass
|
1106
1110
|
AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues").msgclass
|
1107
1111
|
AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket").msgclass
|
1112
|
+
AnalyzeDataSourceRiskDetails::RequestedRiskAnalysisOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions").msgclass
|
1108
1113
|
ValueFrequency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ValueFrequency").msgclass
|
1109
1114
|
Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Value").msgclass
|
1110
1115
|
QuoteInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.QuoteInfo").msgclass
|
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
@@ -1327,6 +1327,9 @@ module Google
|
|
1327
1327
|
# @!attribute [rw] delta_presence_estimation_result
|
1328
1328
|
# @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult]
|
1329
1329
|
# Delta-presence result
|
1330
|
+
# @!attribute [rw] requested_options
|
1331
|
+
# @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::RequestedRiskAnalysisOptions]
|
1332
|
+
# The configuration used for this job.
|
1330
1333
|
class AnalyzeDataSourceRiskDetails
|
1331
1334
|
include ::Google::Protobuf::MessageExts
|
1332
1335
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1599,6 +1602,15 @@ module Google
|
|
1599
1602
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1600
1603
|
end
|
1601
1604
|
end
|
1605
|
+
|
1606
|
+
# Risk analysis options.
|
1607
|
+
# @!attribute [rw] job_config
|
1608
|
+
# @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
|
1609
|
+
# The job config for the risk job.
|
1610
|
+
class RequestedRiskAnalysisOptions
|
1611
|
+
include ::Google::Protobuf::MessageExts
|
1612
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1613
|
+
end
|
1602
1614
|
end
|
1603
1615
|
|
1604
1616
|
# A value of a field, including its frequency.
|
@@ -520,27 +520,31 @@ module Google
|
|
520
520
|
# Currently only supported when inspecting Google Cloud Storage and BigQuery.
|
521
521
|
# @!attribute [rw] start_time
|
522
522
|
# @return [::Google::Protobuf::Timestamp]
|
523
|
-
# Exclude files or rows older than this value.
|
523
|
+
# Exclude files, tables, or rows older than this value.
|
524
|
+
# If not set, no lower time limit is applied.
|
524
525
|
# @!attribute [rw] end_time
|
525
526
|
# @return [::Google::Protobuf::Timestamp]
|
526
|
-
# Exclude files or rows newer than this value.
|
527
|
-
# If set
|
527
|
+
# Exclude files, tables, or rows newer than this value.
|
528
|
+
# If not set, no upper time limit is applied.
|
528
529
|
# @!attribute [rw] timestamp_field
|
529
530
|
# @return [::Google::Cloud::Dlp::V2::FieldId]
|
530
531
|
# Specification of the field containing the timestamp of scanned items.
|
531
532
|
# Used for data sources like Datastore and BigQuery.
|
532
533
|
#
|
533
534
|
# For BigQuery:
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
#
|
538
|
-
#
|
535
|
+
# If this value is not specified and the table was modified between the
|
536
|
+
# given start and end times, the entire table will be scanned. If this
|
537
|
+
# value is specified, then rows are filtered based on the given start and
|
538
|
+
# end times. Rows with a `NULL` value in the provided BigQuery column are
|
539
|
+
# skipped.
|
540
|
+
# Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
|
541
|
+
# `TIMESTAMP`, and `DATETIME`.
|
539
542
|
#
|
540
|
-
# For Datastore
|
541
|
-
#
|
542
|
-
#
|
543
|
-
#
|
543
|
+
# For Datastore:
|
544
|
+
# If this value is specified, then entities are filtered based on the given
|
545
|
+
# start and end times. If an entity does not contain the provided timestamp
|
546
|
+
# property or contains empty or invalid values, then it is included.
|
547
|
+
# Valid data types of the provided timestamp property are: `TIMESTAMP`.
|
544
548
|
# @!attribute [rw] enable_auto_population_of_timespan_config
|
545
549
|
# @return [::Boolean]
|
546
550
|
# When the job is started by a JobTrigger we will automatically figure out
|
@@ -57,10 +57,13 @@ module Google
|
|
57
57
|
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
|
-
# any, err :=
|
60
|
+
# any, err := anypb.New(foo)
|
61
|
+
# if err != nil {
|
62
|
+
# ...
|
63
|
+
# }
|
61
64
|
# ...
|
62
65
|
# foo := &pb.Foo{}
|
63
|
-
# if err :=
|
66
|
+
# if err := any.UnmarshalTo(foo); err != nil {
|
64
67
|
# ...
|
65
68
|
# }
|
66
69
|
#
|
@@ -70,7 +70,16 @@ module Google
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
72
|
#
|
73
|
-
# Example 5: Compute Timestamp from
|
73
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
|
+
#
|
75
|
+
# Instant now = Instant.now();
|
76
|
+
#
|
77
|
+
# Timestamp timestamp =
|
78
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
|
+
# .setNanos(now.getNano()).build();
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# Example 6: Compute Timestamp from current time in Python.
|
74
83
|
#
|
75
84
|
# timestamp = Timestamp()
|
76
85
|
# timestamp.GetCurrentTime()
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dlp-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,14 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
53
|
+
version: 1.25.1
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
60
|
+
version: 1.25.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: minitest
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +157,9 @@ dependencies:
|
|
151
157
|
- !ruby/object:Gem::Version
|
152
158
|
version: '0.9'
|
153
159
|
description: Provides methods for detection of privacy-sensitive fragments in text,
|
154
|
-
images, and Google Cloud Platform storage repositories.
|
160
|
+
images, and Google Cloud Platform storage repositories. Note that google-cloud-dlp-v2
|
161
|
+
is a version-specific client library. For most uses, we recommend installing the
|
162
|
+
main client library google-cloud-dlp instead. See the readme for more details.
|
155
163
|
email: googleapis-packages@google.com
|
156
164
|
executables: []
|
157
165
|
extensions: []
|
@@ -197,14 +205,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
205
|
requirements:
|
198
206
|
- - ">="
|
199
207
|
- !ruby/object:Gem::Version
|
200
|
-
version: '2.
|
208
|
+
version: '2.5'
|
201
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
210
|
requirements:
|
203
211
|
- - ">="
|
204
212
|
- !ruby/object:Gem::Version
|
205
213
|
version: '0'
|
206
214
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
215
|
+
rubygems_version: 3.2.17
|
208
216
|
signing_key:
|
209
217
|
specification_version: 4
|
210
218
|
summary: API Client library for the Cloud Data Loss Prevention (DLP) V2 API
|