google-cloud-dlp-v2 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfe5c508619660414cbad43e9ff2e3a412101a2d279bad41c59b58da1c350347
4
- data.tar.gz: 45f06e8ec4d5452890bf5bb76552697bc65ba5016d73f7fcdecf36025a5bad75
3
+ metadata.gz: e37b5c2a20db558a06589da232dda1197ed292328cd9eb86ca9b5651a8ba94ad
4
+ data.tar.gz: ad66a533c643f66a009a3fbe61c941c4600fb25570abdac27f047cf5810783bc
5
5
  SHA512:
6
- metadata.gz: bc5944495c1df882df55ed217df31117809f1ed44965ecf2201ef688fe4380b400c7f6fe64522d831cf7ec2c7231139d18b280b39a1288380daa2245c61c70fa
7
- data.tar.gz: 78c3693c89ac3c5e9d0c6003ec08d679177f15b31ed6b3dacc1fc6a76db926580f14a354dfa2868665bc6218278bf5138cd531e7df2318fbe3ba46bba444ed48
6
+ metadata.gz: b382823c5263cd5abccbcc691b6a9d7a15692ec841e0919b6359bda4df3fb7513ce2418d08ec656287def8d9c42a2c3176322927531203ab2cef2adce55003a8
7
+ data.tar.gz: 82c3ae0255f92910e306d40d78cc0dc292c374b6499524895980bef9ff8a1d39d0341d22c52799d6c4136612abc66b11d092e1d702d26757ffe9d97de7adb485
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Dlp::V2::InspectContentRequest.new # (request fields
37
37
  response = client.inspect_content request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dlp-v2/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/dlp)
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.8.1"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/dlp/v2"
29
31
  # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
30
32
  #
@@ -1,6 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/dlp.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/api/client_pb'
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
@@ -13,7 +14,6 @@ require 'google/rpc/status_pb'
13
14
  require 'google/type/date_pb'
14
15
  require 'google/type/dayofweek_pb'
15
16
  require 'google/type/timeofday_pb'
16
- require 'google/api/annotations_pb'
17
17
  require 'google/protobuf'
18
18
 
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -72,6 +72,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
72
  value :TEXT_UTF8, 5
73
73
  value :WORD_DOCUMENT, 7
74
74
  value :PDF, 8
75
+ value :POWERPOINT_DOCUMENT, 9
76
+ value :EXCEL_DOCUMENT, 10
75
77
  value :AVRO, 11
76
78
  value :CSV, 12
77
79
  value :TSV, 13
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/storage.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/api/resource_pb'
6
5
  require 'google/protobuf/timestamp_pb'
7
6
  require 'google/protobuf'
@@ -202,6 +201,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
202
201
  value :AVRO, 7
203
202
  value :CSV, 8
204
203
  value :TSV, 9
204
+ value :POWERPOINT, 11
205
+ value :EXCEL, 12
205
206
  end
206
207
  end
207
208
  end
@@ -106,21 +106,23 @@ module Google
106
106
  # @!attribute [rw] limits
107
107
  # @return [::Google::Cloud::Dlp::V2::InspectConfig::FindingLimits]
108
108
  # Configuration to control the number of findings returned.
109
+ # This is not used for data profiling.
109
110
  # @!attribute [rw] include_quote
110
111
  # @return [::Boolean]
111
112
  # When true, a contextual quote from the data that triggered a finding is
112
113
  # included in the response; see Finding.quote.
114
+ # This is not used for data profiling.
113
115
  # @!attribute [rw] exclude_info_types
114
116
  # @return [::Boolean]
115
117
  # When true, excludes type information of the findings.
118
+ # This is not used for data profiling.
116
119
  # @!attribute [rw] custom_info_types
117
120
  # @return [::Array<::Google::Cloud::Dlp::V2::CustomInfoType>]
118
121
  # CustomInfoTypes provided by the user. See
119
122
  # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
120
123
  # @!attribute [rw] content_options
121
124
  # @return [::Array<::Google::Cloud::Dlp::V2::ContentOption>]
122
- # List of options defining data content to scan.
123
- # If empty, text, images, and other content will be included.
125
+ # Deprecated and unused.
124
126
  # @!attribute [rw] rule_set
125
127
  # @return [::Array<::Google::Cloud::Dlp::V2::InspectionRuleSet>]
126
128
  # Set of rules to apply to the findings for this InspectConfig.
@@ -130,8 +132,8 @@ module Google
130
132
  include ::Google::Protobuf::MessageExts
131
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
132
134
 
133
- # Configuration to control the number of findings returned. Cannot be set if
134
- # de-identification is requested.
135
+ # Configuration to control the number of findings returned for inspection.
136
+ # This is not used for de-identification or data profiling.
135
137
  # @!attribute [rw] max_findings_per_item
136
138
  # @return [::Integer]
137
139
  # Max number of findings that will be returned for each item scanned.
@@ -210,6 +212,12 @@ module Google
210
212
  # pdf
211
213
  PDF = 8
212
214
 
215
+ # pptx, pptm, potx, potm, pot
216
+ POWERPOINT_DOCUMENT = 9
217
+
218
+ # xlsx, xlsm, xltx, xltm
219
+ EXCEL_DOCUMENT = 10
220
+
213
221
  # avro
214
222
  AVRO = 11
215
223
 
@@ -3934,7 +3942,7 @@ module Google
3934
3942
  MATCHING_TYPE_INVERSE_MATCH = 3
3935
3943
  end
3936
3944
 
3937
- # Options describing which parts of the provided content should be scanned.
3945
+ # Deprecated and unused.
3938
3946
  module ContentOption
3939
3947
  # Includes entire content of a file or a data stream.
3940
3948
  CONTENT_UNSPECIFIED = 0
@@ -103,7 +103,7 @@ module Google
103
103
  # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
104
104
  # will be replaced with whitespace when scanning for matches, so the
105
105
  # dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
106
- # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
106
+ # "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
107
107
  # surrounding any match must be of a different type than the adjacent
108
108
  # characters within the word, so letters must be next to non-letters and
109
109
  # digits next to non-digits. For example, the dictionary word "jen" will
@@ -116,7 +116,7 @@ module Google
116
116
  # [limits](https://cloud.google.com/dlp/limits) page contains details about
117
117
  # the size limits of dictionaries. For dictionaries that do not fit within
118
118
  # these constraints, consider using `LargeCustomDictionaryConfig` in the
119
- # [limits](https://cloud.google.com/dlp/limits) page contains details about
119
+ # `StoredInfoType` API.
120
120
  # @!attribute [rw] word_list
121
121
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
122
122
  # List of words or phrases to search for.
@@ -148,7 +148,6 @@ module Google
148
148
  # google/re2 repository on GitHub.
149
149
  # @!attribute [rw] group_indexes
150
150
  # @return [::Array<::Integer>]
151
- # (https://github.com/google/re2/wiki/Syntax) can be found under the
152
151
  # The index of the submatch to extract as findings. When not
153
152
  # specified, the entire match is returned. No more than 3 may be included.
154
153
  class Regex
@@ -161,7 +160,7 @@ module Google
161
160
  # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
162
161
  # These types of transformations are
163
162
  # those that perform pseudonymization, thereby producing a "surrogate" as
164
- # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
163
+ # output. This should be used in conjunction with a field on the
165
164
  # transformation such as `surrogate_info_type`. This CustomInfoType does
166
165
  # not support the use of `detection_rules`.
167
166
  class SurrogateType
@@ -343,7 +342,6 @@ module Google
343
342
  # under the google/re2 repository on GitHub.
344
343
  # @!attribute [rw] exclude_regex
345
344
  # @return [::Array<::String>]
346
- # [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
347
345
  # A list of regular expressions matching file paths to exclude. All files in
348
346
  # the bucket that match at least one of these regular expressions will be
349
347
  # excluded from the scan.
@@ -829,6 +827,16 @@ module Google
829
827
  # Included file extensions:
830
828
  # tsv
831
829
  TSV = 9
830
+
831
+ # Powerpoint files >30 MB will be scanned as binary files.
832
+ # Included file extensions:
833
+ # pptx, pptm, potx, potm, pot
834
+ POWERPOINT = 11
835
+
836
+ # Excel files >30 MB will be scanned as binary files.
837
+ # Included file extensions:
838
+ # xlsx, xlsm, xltx, xltm
839
+ EXCEL = 12
832
840
  end
833
841
  end
834
842
  end
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.8.1
4
+ version: 0.9.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  - !ruby/object:Gem::Version
213
213
  version: '0'
214
214
  requirements: []
215
- rubygems_version: 3.3.4
215
+ rubygems_version: 3.3.5
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: API Client library for the Cloud Data Loss Prevention (DLP) V2 API