google-cloud-dlp-v2 0.20.2 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,9 +26,11 @@ module Google
26
26
  # @return [::String]
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
- # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
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}`.
29
+ # at
30
+ # https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
31
+ # when specifying a built-in type. When sending Cloud DLP results to Data
32
+ # Catalog, infoType names should conform to the pattern
33
+ # `[A-Za-z0-9$_-]{1,64}`.
32
34
  # @!attribute [rw] version
33
35
  # @return [::String]
34
36
  # Optional version name for this InfoType.
@@ -156,10 +158,10 @@ module Google
156
158
  # Dictionary words containing a large number of characters that are not
157
159
  # letters or digits may result in unexpected findings because such characters
158
160
  # are treated as whitespace. The
159
- # [limits](https://cloud.google.com/dlp/limits) page contains details about
160
- # the size limits of dictionaries. For dictionaries that do not fit within
161
- # these constraints, consider using `LargeCustomDictionaryConfig` in the
162
- # `StoredInfoType` API.
161
+ # [limits](https://cloud.google.com/sensitive-data-protection/limits) page
162
+ # contains details about the size limits of dictionaries. For dictionaries
163
+ # that do not fit within these constraints, consider using
164
+ # `LargeCustomDictionaryConfig` in the `StoredInfoType` API.
163
165
  # @!attribute [rw] word_list
164
166
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
165
167
  # List of words or phrases to search for.
@@ -200,7 +202,7 @@ module Google
200
202
 
201
203
  # Message for detecting output from deidentification transformations
202
204
  # such as
203
- # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
205
+ # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
204
206
  # These types of transformations are
205
207
  # those that perform pseudonymization, thereby producing a "surrogate" as
206
208
  # output. This should be used in conjunction with a field on the
@@ -230,7 +232,7 @@ module Google
230
232
  # if you want to modify the likelihood of an entire column of findngs,
231
233
  # set this to 1. For more information, see
232
234
  # [Hotword example: Set the match likelihood of a table column]
233
- # (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
235
+ # (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
234
236
  # @!attribute [rw] window_after
235
237
  # @return [::Integer]
236
238
  # Number of characters after the finding to consider.
@@ -278,7 +280,7 @@ module Google
278
280
  # For tabular data, if you want to modify the likelihood of an entire
279
281
  # column of findngs, see
280
282
  # [Hotword example: Set the match likelihood of a table column]
281
- # (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
283
+ # (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
282
284
  # @!attribute [rw] likelihood_adjustment
283
285
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::LikelihoodAdjustment]
284
286
  # Likelihood adjustment to apply to all matching findings.
@@ -288,6 +290,7 @@ module Google
288
290
  end
289
291
  end
290
292
 
293
+ # Type of exclusion rule.
291
294
  module ExclusionType
292
295
  # A finding of this custom info type will not be excluded from results.
293
296
  EXCLUSION_TYPE_UNSPECIFIED = 0
@@ -419,7 +422,7 @@ module Google
419
422
  # This field can't be set if de-identification is requested. For certain file
420
423
  # types, setting this field has no effect. For more information, see [Limits
421
424
  # on bytes scanned per
422
- # file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file).
425
+ # file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
423
426
  # @!attribute [rw] bytes_limit_per_file_percent
424
427
  # @return [::Integer]
425
428
  # Max percentage of bytes to scan from a file. The rest are omitted. The
@@ -429,7 +432,7 @@ module Google
429
432
  # This field can't be set if de-identification is requested. For certain file
430
433
  # types, setting this field has no effect. For more information, see [Limits
431
434
  # on bytes scanned per
432
- # file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file).
435
+ # file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
433
436
  # @!attribute [rw] file_types
434
437
  # @return [::Array<::Google::Cloud::Dlp::V2::FileType>]
435
438
  # List of file type groups to include in the scan.
@@ -441,6 +444,7 @@ module Google
441
444
  # Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
442
445
  # @!attribute [rw] sample_method
443
446
  # @return [::Google::Cloud::Dlp::V2::CloudStorageOptions::SampleMethod]
447
+ # How to sample the data.
444
448
  # @!attribute [rw] files_limit_percent
445
449
  # @return [::Integer]
446
450
  # Limits the number of files to scan to this percentage of the input FileSet.
@@ -476,6 +480,7 @@ module Google
476
480
  # in conjunction with bytes_limit_per_file. If not specified, scanning would
477
481
  # start from the top.
478
482
  module SampleMethod
483
+ # No sampling.
479
484
  SAMPLE_METHOD_UNSPECIFIED = 0
480
485
 
481
486
  # Scan from the top (default).
@@ -500,8 +505,8 @@ module Google
500
505
  # Message representing a single file or path in Cloud Storage.
501
506
  # @!attribute [rw] path
502
507
  # @return [::String]
503
- # A url representing a file or path (no wildcards) in Cloud Storage.
504
- # Example: gs://[BUCKET_NAME]/dictionary.txt
508
+ # A URL representing a file or path (no wildcards) in Cloud Storage.
509
+ # Example: `gs://[BUCKET_NAME]/dictionary.txt`
505
510
  class CloudStoragePath
506
511
  include ::Google::Protobuf::MessageExts
507
512
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -531,8 +536,14 @@ module Google
531
536
  # 100 means no limit. Defaults to 0. Only one of rows_limit and
532
537
  # rows_limit_percent can be specified. Cannot be used in conjunction with
533
538
  # TimespanConfig.
539
+ #
540
+ # Caution: A [known
541
+ # issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling)
542
+ # is causing the `rowsLimitPercent` field to behave unexpectedly. We
543
+ # recommend using `rowsLimit` instead.
534
544
  # @!attribute [rw] sample_method
535
545
  # @return [::Google::Cloud::Dlp::V2::BigQueryOptions::SampleMethod]
546
+ # How to sample the data.
536
547
  # @!attribute [rw] excluded_fields
537
548
  # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
538
549
  # References to fields excluded from scanning. This allows you to skip
@@ -554,6 +565,7 @@ module Google
554
565
  # in conjunction with either rows_limit or rows_limit_percent. If not
555
566
  # specified, rows are scanned in the order BigQuery reads them.
556
567
  module SampleMethod
568
+ # No sampling.
557
569
  SAMPLE_METHOD_UNSPECIFIED = 0
558
570
 
559
571
  # Scan groups of rows in the order BigQuery provides (default). Multiple
@@ -581,6 +593,7 @@ module Google
581
593
  # Hybrid inspection options.
582
594
  # @!attribute [rw] timespan_config
583
595
  # @return [::Google::Cloud::Dlp::V2::StorageConfig::TimespanConfig]
596
+ # Configuration of the timespan of the items to include in scanning.
584
597
  class StorageConfig
585
598
  include ::Google::Protobuf::MessageExts
586
599
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -629,7 +642,8 @@ module Google
629
642
  # Valid data types of the provided timestamp property are: `TIMESTAMP`.
630
643
  #
631
644
  # See the
632
- # [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
645
+ # [known
646
+ # issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan)
633
647
  # related to this operation.
634
648
  # @!attribute [rw] enable_auto_population_of_timespan_config
635
649
  # @return [::Boolean]
@@ -772,8 +786,10 @@ module Google
772
786
  # Message for a unique key indicating a record that contains a finding.
773
787
  # @!attribute [rw] datastore_key
774
788
  # @return [::Google::Cloud::Dlp::V2::DatastoreKey]
789
+ # BigQuery key
775
790
  # @!attribute [rw] big_query_key
776
791
  # @return [::Google::Cloud::Dlp::V2::BigQueryKey]
792
+ # Datastore key
777
793
  # @!attribute [rw] id_values
778
794
  # @return [::Array<::String>]
779
795
  # Values of identifying columns in the given row. Order of values matches
@@ -854,7 +870,7 @@ module Google
854
870
  #
855
871
  # For more information about each likelihood level
856
872
  # and how likelihood works, see [Match
857
- # likelihood](https://cloud.google.com/dlp/docs/likelihood).
873
+ # likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
858
874
  module Likelihood
859
875
  # Default value; same as POSSIBLE.
860
876
  LIKELIHOOD_UNSPECIFIED = 0
@@ -893,8 +909,9 @@ module Google
893
909
  # dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
894
910
  # mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
895
911
  # properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,
896
- # shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md,
897
- # txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
912
+ # shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml,
913
+ # ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd,
914
+ # yml, yaml.
898
915
  TEXT_FILE = 2
899
916
 
900
917
  # Included file extensions:
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.20.2
4
+ version: 0.22.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: 2024-02-01 00:00:00.000000000 Z
11
+ date: 2024-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -64,118 +64,6 @@ dependencies:
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
67
- - !ruby/object:Gem::Dependency
68
- name: google-style
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: 1.26.3
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: 1.26.3
81
- - !ruby/object:Gem::Dependency
82
- name: minitest
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '5.16'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '5.16'
95
- - !ruby/object:Gem::Dependency
96
- name: minitest-focus
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '1.1'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '1.1'
109
- - !ruby/object:Gem::Dependency
110
- name: minitest-rg
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '5.2'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: '5.2'
123
- - !ruby/object:Gem::Dependency
124
- name: rake
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: '13.0'
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- version: '13.0'
137
- - !ruby/object:Gem::Dependency
138
- name: redcarpet
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '3.0'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
149
- - !ruby/object:Gem::Version
150
- version: '3.0'
151
- - !ruby/object:Gem::Dependency
152
- name: simplecov
153
- requirement: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: '0.18'
158
- type: :development
159
- prerelease: false
160
- version_requirements: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - "~>"
163
- - !ruby/object:Gem::Version
164
- version: '0.18'
165
- - !ruby/object:Gem::Dependency
166
- name: yard
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - "~>"
170
- - !ruby/object:Gem::Version
171
- version: '0.9'
172
- type: :development
173
- prerelease: false
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - "~>"
177
- - !ruby/object:Gem::Version
178
- version: '0.9'
179
67
  description: Provides methods for detection of privacy-sensitive fragments in text,
180
68
  images, and Google Cloud Platform storage repositories. Note that google-cloud-dlp-v2
181
69
  is a version-specific client library. For most uses, we recommend installing the
@@ -231,16 +119,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
119
  requirements:
232
120
  - - ">="
233
121
  - !ruby/object:Gem::Version
234
- version: '2.6'
122
+ version: '2.7'
235
123
  required_rubygems_version: !ruby/object:Gem::Requirement
236
124
  requirements:
237
125
  - - ">="
238
126
  - !ruby/object:Gem::Version
239
127
  version: '0'
240
128
  requirements: []
241
- rubygems_version: 3.5.3
129
+ rubygems_version: 3.5.6
242
130
  signing_key:
243
131
  specification_version: 4
244
- summary: Provides methods for detection, risk analysis, and de-identification of privacy-sensitive
245
- fragments in text, images, and Google Cloud Platform storage repositories.
132
+ summary: Discover and protect your sensitive data. A fully managed service designed
133
+ to help you discover, classify, and protect your valuable data assets with ease.
246
134
  test_files: []