google-cloud-dlp-v2 0.4.2 → 0.6.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 +64 -0
- data/lib/google/cloud/dlp/v2.rb +3 -0
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +258 -54
- 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 +34 -34
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +265 -52
- data/proto_docs/google/privacy/dlp/v2/storage.rb +23 -17
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +6 -4
@@ -27,8 +27,8 @@ module Google
|
|
27
27
|
# Name of the information type. Either a name of your choosing when
|
28
28
|
# creating a CustomInfoType, or one of the names listed
|
29
29
|
# at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
|
30
|
-
# a built-in type.
|
31
|
-
# `[
|
30
|
+
# a built-in type. When sending Cloud DLP results to Data Catalog, infoType
|
31
|
+
# names should conform to the pattern `[A-Za-z0-9$-_]{1,64}`.
|
32
32
|
class InfoType
|
33
33
|
include ::Google::Protobuf::MessageExts
|
34
34
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -480,14 +480,16 @@ module Google
|
|
480
480
|
|
481
481
|
# How to sample rows if not all rows are scanned. Meaningful only when used
|
482
482
|
# in conjunction with either rows_limit or rows_limit_percent. If not
|
483
|
-
# specified,
|
483
|
+
# specified, rows are scanned in the order BigQuery reads them.
|
484
484
|
module SampleMethod
|
485
485
|
SAMPLE_METHOD_UNSPECIFIED = 0
|
486
486
|
|
487
|
-
# Scan
|
487
|
+
# Scan groups of rows in the order BigQuery provides (default). Multiple
|
488
|
+
# groups of rows may be scanned in parallel, so results may not appear in
|
489
|
+
# the same order the rows are read.
|
488
490
|
TOP = 1
|
489
491
|
|
490
|
-
# Randomly pick
|
492
|
+
# Randomly pick groups of rows to scan.
|
491
493
|
RANDOM_START = 2
|
492
494
|
end
|
493
495
|
end
|
@@ -518,27 +520,31 @@ module Google
|
|
518
520
|
# Currently only supported when inspecting Google Cloud Storage and BigQuery.
|
519
521
|
# @!attribute [rw] start_time
|
520
522
|
# @return [::Google::Protobuf::Timestamp]
|
521
|
-
# 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.
|
522
525
|
# @!attribute [rw] end_time
|
523
526
|
# @return [::Google::Protobuf::Timestamp]
|
524
|
-
# Exclude files or rows newer than this value.
|
525
|
-
# If set
|
527
|
+
# Exclude files, tables, or rows newer than this value.
|
528
|
+
# If not set, no upper time limit is applied.
|
526
529
|
# @!attribute [rw] timestamp_field
|
527
530
|
# @return [::Google::Cloud::Dlp::V2::FieldId]
|
528
531
|
# Specification of the field containing the timestamp of scanned items.
|
529
532
|
# Used for data sources like Datastore and BigQuery.
|
530
533
|
#
|
531
534
|
# For BigQuery:
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
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`.
|
537
542
|
#
|
538
|
-
# For Datastore
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
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`.
|
542
548
|
# @!attribute [rw] enable_auto_population_of_timespan_config
|
543
549
|
# @return [::Boolean]
|
544
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,14 +1,14 @@
|
|
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.6.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:
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -151,7 +151,9 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0.9'
|
153
153
|
description: Provides methods for detection of privacy-sensitive fragments in text,
|
154
|
-
images, and Google Cloud Platform storage repositories.
|
154
|
+
images, and Google Cloud Platform storage repositories. Note that google-cloud-dlp-v2
|
155
|
+
is a version-specific client library. For most uses, we recommend installing the
|
156
|
+
main client library google-cloud-dlp instead. See the readme for more details.
|
155
157
|
email: googleapis-packages@google.com
|
156
158
|
executables: []
|
157
159
|
extensions: []
|
@@ -204,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
206
|
- !ruby/object:Gem::Version
|
205
207
|
version: '0'
|
206
208
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
209
|
+
rubygems_version: 3.2.6
|
208
210
|
signing_key:
|
209
211
|
specification_version: 4
|
210
212
|
summary: API Client library for the Cloud Data Loss Prevention (DLP) V2 API
|