google-cloud-dlp-v2 0.21.0 → 0.23.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]
@@ -638,6 +652,17 @@ module Google
638
652
  # since the last time the JobTrigger executed. This will be based on the
639
653
  # time of the execution of the last run of the JobTrigger or the timespan
640
654
  # end_time used in the last run of the JobTrigger.
655
+ #
656
+ # **For BigQuery**
657
+ #
658
+ # Inspect jobs triggered by automatic population will scan data that is at
659
+ # least three hours old when the job starts. This is because streaming
660
+ # buffer rows are not read during inspection and reading up to the current
661
+ # timestamp will result in skipped rows.
662
+ #
663
+ # See the [known
664
+ # issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data)
665
+ # related to this operation.
641
666
  class TimespanConfig
642
667
  include ::Google::Protobuf::MessageExts
643
668
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -772,8 +797,10 @@ module Google
772
797
  # Message for a unique key indicating a record that contains a finding.
773
798
  # @!attribute [rw] datastore_key
774
799
  # @return [::Google::Cloud::Dlp::V2::DatastoreKey]
800
+ # BigQuery key
775
801
  # @!attribute [rw] big_query_key
776
802
  # @return [::Google::Cloud::Dlp::V2::BigQueryKey]
803
+ # Datastore key
777
804
  # @!attribute [rw] id_values
778
805
  # @return [::Array<::String>]
779
806
  # Values of identifying columns in the given row. Order of values matches
@@ -854,7 +881,7 @@ module Google
854
881
  #
855
882
  # For more information about each likelihood level
856
883
  # and how likelihood works, see [Match
857
- # likelihood](https://cloud.google.com/dlp/docs/likelihood).
884
+ # likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
858
885
  module Likelihood
859
886
  # Default value; same as POSSIBLE.
860
887
  LIKELIHOOD_UNSPECIFIED = 0
@@ -893,8 +920,9 @@ module Google
893
920
  # dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
894
921
  # mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
895
922
  # 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.
923
+ # shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml,
924
+ # ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd,
925
+ # yml, yaml.
898
926
  TEXT_FILE = 2
899
927
 
900
928
  # 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.21.0
4
+ version: 0.23.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-26 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -129,6 +129,6 @@ requirements: []
129
129
  rubygems_version: 3.5.6
130
130
  signing_key:
131
131
  specification_version: 4
132
- summary: Provides methods for detection, risk analysis, and de-identification of privacy-sensitive
133
- 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.
134
134
  test_files: []