google-apis-dlp_v2 0.47.0 → 0.49.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71ed9c8ed5e215ed18e95c6863fd1bdf8509836087cf58f08e140b4c9df08b1b
4
- data.tar.gz: 9d9600299785bfad01f192201a74a1e69046530a746edaaf565787d31078b7c5
3
+ metadata.gz: 8be88342cbbb2e4161f5afbcfaad27d41869376a2bddcedc90011b736276ed1a
4
+ data.tar.gz: 45eee0b6f95c049255e11b1ae08621999b3f4a2b815380507edb653edf1ceda9
5
5
  SHA512:
6
- metadata.gz: 2edd54464e3a340e69386b863a3baf75e90c6d7d73e79a36a989a667006195fe12f0ce886dce0e577e1cc5c47e3a03c1c66566891021f95777ac9a7f116e4f9f
7
- data.tar.gz: 8efa8d09cda1065dd190790ed7bea50a415e1fc3915c1c608811af43dcd76848a7639b8c4c1ba988d36f423f565439e87d1ed5e3a1de13be73ca8c1bc752d08d
6
+ metadata.gz: ae8314bc7d5a6c0cd04319732a02b2ea36e7d44632656d03da5d2c416e812ce039475271a090ce5091f94c65ac5d14cda6804d13715682690f3227ed4847ca14
7
+ data.tar.gz: 952ee1fd0ad8f0120d33e0cc6d750276667980b084d2f97565c1b3abc84190121c4d778486cde3bc0771c61717af00db880a7afc66e445de1c6f451ed5c5e221
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dlp_v2
2
2
 
3
+ ### v0.49.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230903
6
+
7
+ ### v0.48.0 (2023-08-13)
8
+
9
+ * Regenerated from discovery document revision 20230806
10
+
3
11
  ### v0.47.0 (2023-07-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230625
@@ -344,7 +344,9 @@ module Google
344
344
  include Google::Apis::Core::Hashable
345
345
 
346
346
  # References to fields excluded from scanning. This allows you to skip
347
- # inspection of entire columns which you know have no findings.
347
+ # inspection of entire columns which you know have no findings. When inspecting
348
+ # a table, we recommend that you inspect all columns. Otherwise, findings might
349
+ # be impacted because hints from excluded columns will not be used.
348
350
  # Corresponds to the JSON property `excludedFields`
349
351
  # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>]
350
352
  attr_accessor :excluded_fields
@@ -358,7 +360,9 @@ module Google
358
360
  # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>]
359
361
  attr_accessor :identifying_fields
360
362
 
361
- # Limit scanning only to these fields.
363
+ # Limit scanning only to these fields. When inspecting a table, we recommend
364
+ # that you inspect all columns. Otherwise, findings might be impacted because
365
+ # hints from excluded columns will not be used.
362
366
  # Corresponds to the JSON property `includedFields`
363
367
  # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>]
364
368
  attr_accessor :included_fields
@@ -3760,6 +3764,35 @@ module Google
3760
3764
  end
3761
3765
  end
3762
3766
 
3767
+ # Configuration to control custom minimum likelihoods per infotype. Used when
3768
+ # certain infotypes need to return with higher or lower precision than the
3769
+ # baseline, i.e. when wanting PERSON_NAME to return all possible names without
3770
+ # lowering the precision of other infotypes.
3771
+ class GooglePrivacyDlpV2InfoTypeLikelihood
3772
+ include Google::Apis::Core::Hashable
3773
+
3774
+ # Type of information detected by the API.
3775
+ # Corresponds to the JSON property `infoType`
3776
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType]
3777
+ attr_accessor :info_type
3778
+
3779
+ # Only returns findings equal or above this threshold. This field is required or
3780
+ # else the configuration fails.
3781
+ # Corresponds to the JSON property `minLikelihood`
3782
+ # @return [String]
3783
+ attr_accessor :min_likelihood
3784
+
3785
+ def initialize(**args)
3786
+ update!(**args)
3787
+ end
3788
+
3789
+ # Update properties of this object
3790
+ def update!(**args)
3791
+ @info_type = args[:info_type] if args.key?(:info_type)
3792
+ @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
3793
+ end
3794
+ end
3795
+
3763
3796
  # Max findings configuration per infoType, per content item or long running
3764
3797
  # DlpJob.
3765
3798
  class GooglePrivacyDlpV2InfoTypeLimit
@@ -3943,6 +3976,13 @@ module Google
3943
3976
  # @return [String]
3944
3977
  attr_accessor :min_likelihood
3945
3978
 
3979
+ # Per infotype likelihoods. For each infotype, a user can specify a minimum
3980
+ # likelihood, and only return that infotype if it is above that threshold. If an
3981
+ # infotype is not included, it uses the InspectConfig min_likelihood.
3982
+ # Corresponds to the JSON property `minLikelihoodPerInfoType`
3983
+ # @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood>]
3984
+ attr_accessor :min_likelihood_per_info_type
3985
+
3946
3986
  # Set of rules to apply to the findings for this InspectConfig. Exclusion rules,
3947
3987
  # contained in the set are executed in the end, other rules are executed in the
3948
3988
  # order they are specified for each info type.
@@ -3963,6 +4003,7 @@ module Google
3963
4003
  @info_types = args[:info_types] if args.key?(:info_types)
3964
4004
  @limits = args[:limits] if args.key?(:limits)
3965
4005
  @min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
4006
+ @min_likelihood_per_info_type = args[:min_likelihood_per_info_type] if args.key?(:min_likelihood_per_info_type)
3966
4007
  @rule_set = args[:rule_set] if args.key?(:rule_set)
3967
4008
  end
3968
4009
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DlpV2
18
18
  # Version of the google-apis-dlp_v2 gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230625"
25
+ REVISION = "20230903"
26
26
  end
27
27
  end
28
28
  end
@@ -610,6 +610,12 @@ module Google
610
610
  include Google::Apis::Core::JsonObjectSupport
611
611
  end
612
612
 
613
+ class GooglePrivacyDlpV2InfoTypeLikelihood
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
613
619
  class GooglePrivacyDlpV2InfoTypeLimit
614
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
615
621
 
@@ -2474,6 +2480,15 @@ module Google
2474
2480
  end
2475
2481
  end
2476
2482
 
2483
+ class GooglePrivacyDlpV2InfoTypeLikelihood
2484
+ # @private
2485
+ class Representation < Google::Apis::Core::JsonRepresentation
2486
+ property :info_type, as: 'infoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
2487
+
2488
+ property :min_likelihood, as: 'minLikelihood'
2489
+ end
2490
+ end
2491
+
2477
2492
  class GooglePrivacyDlpV2InfoTypeLimit
2478
2493
  # @private
2479
2494
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2532,6 +2547,8 @@ module Google
2532
2547
  property :limits, as: 'limits', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits::Representation
2533
2548
 
2534
2549
  property :min_likelihood, as: 'minLikelihood'
2550
+ collection :min_likelihood_per_info_type, as: 'minLikelihoodPerInfoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeLikelihood::Representation
2551
+
2535
2552
  collection :rule_set, as: 'ruleSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRuleSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRuleSet::Representation
2536
2553
 
2537
2554
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dlp_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.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: 2023-07-02 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Data Loss Prevention (DLP) V2